Message ID | 20220428135648.958508-2-ovidiu.panait@windriver.com |
---|---|
State | New |
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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4493CC433F5 for <stable@archiver.kernel.org>; Thu, 28 Apr 2022 13:57:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347716AbiD1OAh (ORCPT <rfc822;stable@archiver.kernel.org>); Thu, 28 Apr 2022 10:00:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231529AbiD1OAf (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 28 Apr 2022 10:00:35 -0400 Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715BC2ED5B for <stable@vger.kernel.org>; Thu, 28 Apr 2022 06:57:20 -0700 (PDT) Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23SCOPGt008894; Thu, 28 Apr 2022 06:57:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=PPS06212021; bh=mSHQPLE1tL0y2QFgOK2qSZ5zYRzWJxnAgm9IlF8QJIA=; b=kM5IKkPfkB81h2ra/ruIZQ217stxGvWG3bSRSn/izeG5VGVpRb0MiNKSzV+jrz00r7kV NSrWboDdqVeiTSLE3Ci8WjJ5sujkQfZhvzIHuygXyk6JhEEe+2QTKTj8i3q4uTSIuH5f XjnhI2oz9wUA/EP89exHlTBCuBU3xB2LOkOi9dKTp3HIcnYYxN3GzZB+8zsNWkwBXNKI FP8L5hgJus4CkjUklkZx1LKfYlqY2CZ0I3YvXyWt0phPrCl4IsJKGqhKCr/BaacxEG4t VfemIF6fl8Eac613lB9rU2ew8nWJIuVIVnHEWOB4XkY905bjcgijegS4pooOa5KPDxtW MQ== Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2177.outbound.protection.outlook.com [104.47.57.177]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3fpshjsd42-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Apr 2022 06:57:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UH0qbES2QCCsYHFTZaTqUxyRhq62yy+NEN7uvqN+i+BW+7Z+z8BxEbhR9pZ+OpgbCK4OYgiI8iveqPMJSAj71ecvVRUB0gX/4cyrAypd+l31DBL5bgGVbcyjL/ZUcxMAthFyjv/Ig+a2vdTJwTQQS+kPT8xbNubmmhny5cMhSbBNIBZAmv3p3vTnaqvFHnYQaXkB4HrM+iuF9y/VAi4wBVNM/AqRwDhZENi8NGGdidmbwodf6knfsvdMi0sxpZim2W7SV4zFF0WcfoTZ8rVP82LQGCnDyRZI6RXQENiFBhd1L6yV2OlfJeLyjyaGP44SiodjkrNBaQ0tWDMsUF3i/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mSHQPLE1tL0y2QFgOK2qSZ5zYRzWJxnAgm9IlF8QJIA=; b=dUWo0PGrAMV6OOQ3Nm4IOATTooehCrLg8YgaYjJmj6TontpKU6safGz30ttwfrx/tgd/XRMZkzajW0A8V/zd9kVbirC1ZLwb0urD9hEI4T3XlgpQBfcswCl3mEa3J8wlLFtc0IEUWnzVG9FxQmhA7cLsGL5br7/RjwHfxi4w4sRC1SrjJ78l4gOqRQJf0ELnp7TFK2xPFIa0GU9bqK5NZdzLz4PFWkz5iLJ1wwZJtA8K3McFGa4ta8jrlxvdKiUYuc1FSpvc/uIakebaTcko1YLo2Shs/5D26U58APBtlj9hvTrF1B6QndPHCF6hbwysEJNP3la/j2+hDYZnBtgDUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) by BN6PR11MB1586.namprd11.prod.outlook.com (2603:10b6:405:f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Thu, 28 Apr 2022 13:57:07 +0000 Received: from DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::806f:3f7a:c1be:ff34]) by DM4PR11MB5327.namprd11.prod.outlook.com ([fe80::806f:3f7a:c1be:ff34%7]) with mapi id 15.20.5186.023; Thu, 28 Apr 2022 13:57:07 +0000 From: Ovidiu Panait <ovidiu.panait@windriver.com> To: stable@vger.kernel.org Cc: Lin Ma <linma@zju.edu.cn>, Jakub Kicinski <kuba@kernel.org>, Xu Jia <xujia39@huawei.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Ovidiu Panait <ovidiu.panait@windriver.com> Subject: [PATCH 4.19 2/2] hamradio: remove needs_free_netdev to avoid UAF Date: Thu, 28 Apr 2022 16:56:48 +0300 Message-Id: <20220428135648.958508-2-ovidiu.panait@windriver.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220428135648.958508-1-ovidiu.panait@windriver.com> References: <20220428135648.958508-1-ovidiu.panait@windriver.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR04CA0051.eurprd04.prod.outlook.com (2603:10a6:802:2::22) To DM4PR11MB5327.namprd11.prod.outlook.com (2603:10b6:5:392::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 27be9011-98f0-43bc-acb1-08da291efb7c X-MS-TrafficTypeDiagnostic: BN6PR11MB1586:EE_ X-Microsoft-Antispam-PRVS: <BN6PR11MB1586C3982DA1C2231393071FFEFD9@BN6PR11MB1586.namprd11.prod.outlook.com> X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6jsIxuX93ag6SgWfOW4wK4Z/eSdfWPFrlLVmjzdbQXr+AAl5peZrRtA9xx2x86zDNkiNDFUNgAyJ7e3n9qSJKjnPqeQ6y6aOK28ss3aa/dmesgs7vNBfwkd7bgNT3kFDN1f57gFC4dIlJmFin3JcZYrLe5AGdQP0Kvu8KF8xuoPljJKcWFw2IId6QlVkBPx1dmHrk2qB5YCKXCfQvQf9JgQu5cYgDVGT6HUvv6D74eggHNdRWU6A7MVIBoaos2I6ziP3AAgkUXv4WPJMonnVmNQ48wglysFvPi9fTEq/pxNMKmPZ30JxnxNQHLTeykn3w5Fc2SbvdfN4NTx6LsDLc9NTj0AEhVXCspMWpinaAfSc9qMBBsaIrvanojUTITZgJr8uzRsNmx2M/6AzU8bIjilPwZhQSJCoC45dimav5u1kqUsdyDmoJDGcVGRarpkz+m6EHx9OezXfUplaGPiiyRR4qykkXoSn4Dtqmx2jo25l2Ws+vj8uYhpknCQzsBU+0LNVqHtgyOZTNRbLm/7u4h0VFyYhOsDZqw2gKckz5BPPYRhrYqXixSast8vOh9QtzoIvjHYtcLLAcOUcrZENN+2EmXBh5eWUiwiMU7kUF/4tdBfgDV1u51eX12fcBB/dB9qDaOuzgHy5fx2wXou/yYE96YpvVUVMmPAsYsuSpxZNrJb9MgGOQ0gx3/SiGeYUY8XuzCNSfis3JWBonBbYOAUjxD+FVGKm6/lks0bNCqwDtiNffv79sjikeFOHzyU1A91M0DWlsHJtxSY/YAs6u3V4pDJUw3vN9itfR030A0Q= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5327.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(2906002)(44832011)(36756003)(5660300002)(66946007)(66476007)(316002)(186003)(66556008)(83380400001)(8676002)(4326008)(6916009)(8936002)(54906003)(52116002)(86362001)(2616005)(107886003)(966005)(6486002)(508600001)(38100700002)(38350700002)(6666004)(26005)(1076003)(6512007)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7VhoHNxXbvd+6oAUKHRAUyOJY7TvbiGDBv3o7+r1Hp2TtyNd4Dw+LURoPN9c6SFkJKEcuqndfSSdIdJcXndffRsrlv4H0GpD9wVzxIwhTIhymgxGGBvMNgkJe1Px6J/QlAljx2CRcYkhWdeZzrg7NOREkHt3k2HjkP4MwSpXTRNt4vJbsVHxbEtHnheYEf6RMExAigOEHsKwYXmkzY0e4bMSbDbcGqPYNrpt25iBaM4ge1wINdr1yN8QTnTsdfUprClZIY3qylzydHT5bNJoULt0mydnOGnrXuRsQ2OoKTaNH4LZTTLnTddMRRhrPocsG2GSwB6DPYtiZJvtr8Uen84iWcE45XtybVf0bXCKFz7ArX8B3/fmOcaZvybRP6JUJI5UBf2g/IKLbY3nk/ot5DY8p2hCAwq5naYRkpbPelQX7jepGNXT2cSjBOpZqNA2jGgxRDb/v1gMfGr27mw1bUnUBNW8hBFJ2eM8trU4ieTqoNx3wX3AYPNAys3k1cU+ZL4+ms9gvxjIhn6gXQiEYPz77u20Qvdcy8ih25EHhA8i8iWZ6B/QIIzWYXriYmHSFT4om0CZJZUFs/DoUtqpfmDTnGmPORRZPX6dWarrJ4zQ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CmeuyTXtupZh6NZbYpKckpcEuusoZwYhcQFgY4NwQeeACBgKfCeeH/1eSRiJCrRjNhWiS45AwhDiIy8= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27be9011-98f0-43bc-acb1-08da291efb7c X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5327.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2022 13:57:07.2760 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5IJ3x/pJSlibFpo5pvExGQkbQ4EObWyCztaGbPJXZsfiLuiFL2jFPsrIlFHiGLEDmI+8eCfrhepu79wPk9KAzG6eGF08H8U27YaDwp5o3Ac= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1586 X-Proofpoint-GUID: TMHncyvZQYdsnSgpbh6tG9Gusjow40wZ X-Proofpoint-ORIG-GUID: TMHncyvZQYdsnSgpbh6tG9Gusjow40wZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-28_01,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 spamscore=0 mlxscore=0 malwarescore=0 bulkscore=0 phishscore=0 impostorscore=0 adultscore=0 clxscore=1015 mlxlogscore=838 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204280086 Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
[4.14,1/2] hamradio: defer 6pack kfree after unregister_netdev
|
expand
|
diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c index 381febb99bc3..87094189af74 100644 --- a/drivers/net/hamradio/6pack.c +++ b/drivers/net/hamradio/6pack.c @@ -311,7 +311,6 @@ static void sp_setup(struct net_device *dev) { /* Finish setting up the DEVICE info. */ dev->netdev_ops = &sp_netdev_ops; - dev->needs_free_netdev = true; dev->mtu = SIXP_MTU; dev->hard_header_len = AX25_MAX_HEADER_LEN; dev->header_ops = &ax25_header_ops;