Message ID | 20210726153825.506530218@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2047BC432BE for <stable@archiver.kernel.org>; Mon, 26 Jul 2021 15:45:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D04E60F6E for <stable@archiver.kernel.org>; Mon, 26 Jul 2021 15:45:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236053AbhGZPEl (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 26 Jul 2021 11:04:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:44560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235978AbhGZPE1 (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 26 Jul 2021 11:04:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E2CF660F38; Mon, 26 Jul 2021 15:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627314295; bh=mp11EiE24wDcNafm9JEypj8lxrQqDu93h6rWFarLp/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IDstCVxzPfRioIo+UnI8tX9UjZcoM+93sIjHNKHq3HIWZMAGeLXaDkvadj70v+Vyd sbso2cnhqGpcWTO+vyk7XqTP4IuxNGBrDmle9UgbLD4jA7uKNNvcO6ntxtmFP/UEFQ dOn0i5wtotoM3aL3Th/UsLzqFZa929E/LZ6ZfyUw= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Pavel Skripkin <paskripkin@gmail.com>, "David S. Miller" <davem@davemloft.net> Subject: [PATCH 4.9 20/60] net: ti: fix UAF in tlan_remove_one Date: Mon, 26 Jul 2021 17:38:34 +0200 Message-Id: <20210726153825.506530218@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153824.868160836@linuxfoundation.org> References: <20210726153824.868160836@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/net/ethernet/ti/tlan.c +++ b/drivers/net/ethernet/ti/tlan.c @@ -313,9 +313,8 @@ static void tlan_remove_one(struct pci_d pci_release_regions(pdev); #endif - free_netdev(dev); - cancel_work_sync(&priv->tlan_tqueue); + free_netdev(dev); } static void tlan_start(struct net_device *dev)