Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4068328pxb; Fri, 11 Feb 2022 14:35:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0fWgxY799UJHvzlASRVd8ls25DJxkfWAUs/4hXTYdPy8RCw3j5oP5r+nHUBVLUiND/Khl X-Received: by 2002:a17:902:d510:: with SMTP id b16mr3579489plg.89.1644618903633; Fri, 11 Feb 2022 14:35:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644618903; cv=pass; d=google.com; s=arc-20160816; b=U3B/onbCJ2RlZKoWu+CphKWNL1NEumxoOkVFNhXoOHDIqpZXTB0W74HSA9Q0Jd0zUo t/5BjVtUQ6kllYRuZ4mSObLEfgelyMRDwTmL1O2iXuGmEhyjuJtHRIPbMXcJjRnF/Apt RL4j/FZTLXsWZmCNfru5ClN3Pz7GgMVtHRSM6W8bIk+I+s5sCZv0p+Q1n7eBJ0GwE9JQ PLI/+MxDspW/wYdZVrrM7XIp9JJC/K7JqLpi3nzL8zbwDLrmBtEXyfww+OBOT+UG6oI5 Ib+esWLW8aVQp7k4nQ2Ta8jfmVCX9eJqxwdxJKe9gLkmUQRlcoRADUJrqCk7Y9kwC26G KChg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=QxNMYoJjOhCf75nk5DUY3i6gpzuaQVWIOc3wo3Cw++g=; b=wV3d62mm/koBt6nA2VW4PRER4lhJE1w+ZEVOzmhjzqGoUC3tPPhEZjJE9cuHvns5sc TKT9JpxLz1uKkRJBnFY+x3sG6K/IJjW7EgTl2b4Zr5d+yraLQI859t2FDcy7FTmbXR/i e+aNpj1NH3MqZKpWzAVlp1Ts8lxktc/UvLhmoAUpECKrGT+Yyt4bVDqVfIW97fTKhM4p ZDvDn1AC7QemlTjpWe0toFXa4PXYx4yXgXmfXIVcVoqbtM5D9WcOinD57j64ffCnlwrR JXjK3qRSU2MpmdpbXzb+ThmbM1s0sDqPxkkzW1ZOoxbnR999l0ZDw0X/tx1pD+ErOyIX AJbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=zyCiF75b; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17si5641521plg.366.2022.02.11.14.34.45; Fri, 11 Feb 2022 14:35:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=zyCiF75b; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243350AbiBJPFD (ORCPT + 99 others); Thu, 10 Feb 2022 10:05:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235829AbiBJPFA (ORCPT ); Thu, 10 Feb 2022 10:05:00 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2127.outbound.protection.outlook.com [40.107.223.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9392398; Thu, 10 Feb 2022 07:05:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jT56UznRYmFT4ToNc19tvLLTEIpYzkItIwcIBalGHW6NjMLzn7in+8cbel53JqRzoWOcJJ5NG5f5H968Cpg4QCr5tpd2qGKJ0d3Jy6p8mbFhK0Lx5mqD+j4V8+Rtz7NaWPz7n8t3ENZSyKl6X5RoBnkTHaVgV2N3zErlEm/dAfrpcA59AY0E7D3rB01HZ0Tz3hEzewA/Cb1bdfyEs6pfHUESB0JfHPJXmT/DzMnQY6+42oQVXk8gCZG/o22U/uy60p2CcnjPmBZvQIFb/SA93DU1MwJBM1wLjwIEDNhP7CF5Fpavti/FWg3x1w88BiYHys0yCiMdLH4V1e0qs+Q9/A== 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=QxNMYoJjOhCf75nk5DUY3i6gpzuaQVWIOc3wo3Cw++g=; b=TPplxT9WATnoZU//FL/J0tQc7/BewLqFQHpvu2ecdEZCg2sIqA7RTt2JEGGgvT9yIJK6Kykipelz5Ue8UcANUboJqox5BCSyMl4fLbGXh5rCPfnC66x5wZAYFAs/nJ7c0knktuoKYKgqL4h/bJJEdhf9E2CYNDf5QlDAzOJlTKqCywGBIQR+Hf1DXU0s8KNtXn7K3XyCsoDVPrx3L3D79fBAA/qxIG+k3zbSJcWHlAPod+qYqbq9bzqGPfnpEh0bnELnrT1dogu6f+W4uhEE7sg5/+ZXl3vIMVTIsslWBZlI4ikyMD9d3i81L2TmFoXmbWA2aEq/h2XxpmZfznYLKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QxNMYoJjOhCf75nk5DUY3i6gpzuaQVWIOc3wo3Cw++g=; b=zyCiF75boG8CKjM/as2sDIF00TATOFlCEj9FgG+PoXtfDYKFlkr4YpXT8stXvZUgi0mlXaEORpGpGXo7vjly2IWPVQIgxXSUv2qWppE2h/cykkGQW6iX0RUJ8poxcCMnpOpd9jUwwkTYmRa4IfzP8xw1G9vM8+7l7I/RfO/UOpM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by DM6PR10MB3420.namprd10.prod.outlook.com (2603:10b6:5:1b1::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Thu, 10 Feb 2022 15:05:00 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::7c:dc80:7f24:67c5]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::7c:dc80:7f24:67c5%6]) with mapi id 15.20.4975.012; Thu, 10 Feb 2022 15:05:00 +0000 From: Colin Foster To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Andrew Lunn , Jakub Kicinski , "David S. Miller" , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Subject: [PATCH v1 net 0/1] ocelot stats mutex fix Date: Thu, 10 Feb 2022 07:04:50 -0800 Message-Id: <20220210150451.416845-1-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MWHPR13CA0001.namprd13.prod.outlook.com (2603:10b6:300:16::11) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 585210af-091c-4803-ee24-08d9eca6b54c X-MS-TrafficTypeDiagnostic: DM6PR10MB3420:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3yHkwo2fU7+x1w3Sq1vZKpSyN6nMtSerZBbvgsjiLb6D1JaKbchHqYwZ/OryJ8rPVBdwdzMVre8N0HAwMmwZvLuB3usnTvsE8OrH/kMa/EGdFvVnthnBaESIaUd/xlyo/3ir4RWao+PKnirAmxfhL5sThpwmkzwaS9+ndeiL/en5UFt3hNbGN/6PUuPsjEvYRibxSUV4ny8l/PwSA8Mzv0jOMPMTFnzw/j5NcAuHc2SjHfrBEzSC0bOylLDL+jv4rVKiTrE2sq6hE9EfrLaFORgcPPMwpc1e3LjT5JTAIMhLUdoFhRVuymLa352Ry9rFb/aJSyqUEnhqDRH3tyxFDmhu6ZoBrSiKJbMDwIKigsTbOWc/+cfe1Zg+YzTTxJc609w+oC4RN9zMGZWCRCzDN8wluwmmXq88LG7mA7FIZulo0l6vLe+rVZhnURnDeePeblT4w/J3+vlBu3Fz4iYsnjIAbi4b/LYEVgHIIkTdExGoJER+0AKvM/aHdaMZ9kKxeJNTHRjegSpcSbhKSAar4kRKuBOS29MyFqg+DoXqz9PaOrq8SdSZ0s2nZWZLmCCWrhMw2WyNmiyO96vpfRcGsfjFKRJ8+dr9q0H0dZVMuSoGBjgKI9gfprOduhZPENQ2wkjFdMTJEGRWB3eJdpWEu1EICmDZy1w4DAZ8T8reMjthuXG8d1bgdOm2vo9IQT2VKtJFdGmIC4+6Fmu2Y7V4JA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(376002)(366004)(396003)(346002)(39830400003)(136003)(42606007)(4744005)(8676002)(66946007)(316002)(508600001)(5660300002)(52116002)(6506007)(6666004)(66556008)(2616005)(4326008)(66476007)(6512007)(8936002)(54906003)(86362001)(1076003)(83380400001)(44832011)(6486002)(38100700002)(26005)(186003)(36756003)(38350700002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?q5UysjolMKV6zX/W1u6UrMlDFC91TBFrVVveLq4vELz0HjRWxQk1p/AEIcso?= =?us-ascii?Q?AKLlwQraN7sBqAWaHNkbVN8RfVi0IbDuEmu0dBTGUVTcnhagEheUKWWFihnq?= =?us-ascii?Q?+eRwseKgGwguAaB8b+0djDJc8PQ+ISf8RKKDZNYhCRCzK9kLusPNY8fXwDh/?= =?us-ascii?Q?2iAYsGxXu4YYF+2fyfVlVwNLUvci862SImnjFiXeO6hhkxvf38LrwD7g0FyR?= =?us-ascii?Q?i9rvTtLqYJbkS/2bjw7XueHb+mBhVhuIXuMz9UoikN+Ob5AB/iECiZW18Ocu?= =?us-ascii?Q?ifM95PuPIOAUsYhwsfmzYH+vaeCfvuGPbELLg3uO3cckCjqKlb4DcIbBBYXb?= =?us-ascii?Q?RTOdJUWd4XMbbhISCnngEd2iYpglLc95aI/F8yGjKvDh/KkLNueYuOH7BrCJ?= =?us-ascii?Q?2GUY7ffCUsf+d8UA98OcCSX4ab6y9K5eQSF6fokV0EONBDsxghlEHv1QUPst?= =?us-ascii?Q?8GWBLQt+/LcvOvf3VDrs3Ze0ow7mjVMvKLi21PV0Xpuyo2V6tf0ylvkg//Cq?= =?us-ascii?Q?fsTABqK6HAEm7WNZc1tVI5E838tIE9oCjGUffSBjvsPeOKatdt0uUGuT5M+Y?= =?us-ascii?Q?NU6Fj5F7Pp6yaJIcTdO0tMVdnDVdX+zVDYbMEVg3FHSJiumiyDrFfzi2UThb?= =?us-ascii?Q?ukgVNcUmDC4nX4YKgIq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g?= =?us-ascii?Q?TgegeR6Wa91aHhluHou+zn2GzWCiojxf6HleQoNkup54ZNV8v4wdDDLojsb5?= =?us-ascii?Q?peOi7YB2CrDPfdgW7fX2+pJ03jBPPGqXp9OCcMmcbifqbkLopsRFshAVXg08?= =?us-ascii?Q?eAtL8eB6w3G9ydM1jZ3avD5sH/8=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 585210af-091c-4803-ee24-08d9eca6b54c X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2022 15:05:00.1954 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Kzuz6BTLCvYFFoIvu+PLr9ZZMcfAbh6yiIMYs7/g2tGkOYgYAoq27hf39ewde+7D8fTt1pN80j8F2hU1XZ2LtphYARE1GNHOAK+E0cbOzck= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB3420 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Originally submitted to net-next as part of 20220210041345.321216-6-colin.foster@in-advantage.com, this patch resolves a bug where a mutex was not guarding a buffer read that could be concurrently written into. Break this out as a separate patch to be applied to net. Colin Foster (1): net: mscc: ocelot: fix mutex lock error during ethtool stats read drivers/net/ethernet/mscc/ocelot.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) -- 2.25.1