Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5240133rwb; Wed, 21 Sep 2022 05:18:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5AavfCUyZ57LgbfW423u17zFMf/OXyWETcMGeRLTdLNqCF+os1yxxGpg66Uz45zKq+WVNl X-Received: by 2002:a65:6693:0:b0:434:a2ca:2330 with SMTP id b19-20020a656693000000b00434a2ca2330mr24169942pgw.227.1663762696823; Wed, 21 Sep 2022 05:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663762696; cv=none; d=google.com; s=arc-20160816; b=l/jS4+DXS7sG1FsikWRvnFTh3I3jxPg4K2MjZaJuDVtgw1DmkhTKbBgO3VbTvgmDtV s/cGNaN4bKcBcbZQocSpRJAcz2jDB+PufMHwEQtvuzsSrF56yHuMLWVYJ3+liQxRJzb5 IaSIqV0iesRY7wA2W2hkGH0di1K1s0eSVO50RGJcpYgrsVLVLoxO/fVs005925Hybtbo sIKu0ipumQDFfDABHUZx0jWvRU1ds3veF1w/wQ90PRQ1mvzaW+bjDVOn+O5SML5AC0G7 QZr0P3RekXCgUTp8ogrHcKEeQJODbBKufjqXeZYgM85ZhS6SmW4Z9BI26jTPK8PyNAcL UBqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=ZCtoP6MPv7FIKH3rFRZV2MTe1odYudABQw2TxdQN4eQ=; b=0/EbA1dCF+VBEY7M6C6+dH2e6zORwLVZKQfRYIzyCus0KgaVKckzzIbL9qlJEvxDQ3 HgEUoGsd2D0Pb0Lb06Gy/FcAZMG5KcNmw7ml+kzqzncacm7AyeA+95CwPSn09HlgPqL6 zsU+w7hmfvj8PQQ1Yj7mchWArdNgQKa5iuAQVegPAGtrZoXyjWQb4z84DzTYZse3+Mi5 8D8G2g7j5wfJnnpOPrzIyn9apOaOfPNA5w2bZ1pWFd/SC0/3E3SddlXugskgpSI2Lo5m 3psn69vY1yQ9LtaXj8Z4A35oMhXuYJfthZFjiJg8QLolC88QRb3ACVnX63OF4fMEscRX Dw0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mlrMbTCt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a170902e84200b0017540816378si2856208plg.48.2022.09.21.05.18.03; Wed, 21 Sep 2022 05:18:16 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=mlrMbTCt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbiIUMA0 (ORCPT + 99 others); Wed, 21 Sep 2022 08:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiIUMAS (ORCPT ); Wed, 21 Sep 2022 08:00:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE3D976966; Wed, 21 Sep 2022 05:00:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 59F7762A90; Wed, 21 Sep 2022 12:00:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id B3F61C43141; Wed, 21 Sep 2022 12:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663761616; bh=rhaWXaBoWYJCMLyvZr/lV4NaGpgZysIMwXQeBhtisLU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=mlrMbTCtfc/mHiTriH4QVgzkZnmeD08aoqMvOb0FLWYNji9UerccdI451ipJlM8nI EnIOvNQ1Iu2baiwyVAU3Tq3GvXJ4Z0MzTSmPUbj1kisjQh8Pu/kBpLypmInACKx3r7 kVuosql3ZBKnDTnA4B7PdqveCJA7TPzf3jPg/N53HcHDDEX0COgfFYHKk9sI/X4/+2 Tg3+l3X/6W5QvZztxQkfZYSVUb2PFIjKp0asZHvtoMuSy+FWxHjQCzK35NvSkXkn4e HTJyhSWs5mcqmbj8vwyP+Revqozxb7ng0W1gWcBQ9obULRzj8upJedc2JwIGJgBA66 sT7htwyypiJNA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 9DF8AE4D03D; Wed, 21 Sep 2022 12:00:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next] net/af_packet: registration process optimization in packet_init() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166376161664.20264.16952481668732388176.git-patchwork-notify@kernel.org> Date: Wed, 21 Sep 2022 12:00:16 +0000 References: <20220915010835.1761211-1-william.xuanziyang@huawei.com> In-Reply-To: <20220915010835.1761211-1-william.xuanziyang@huawei.com> To: Ziyang Xuan Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller : On Thu, 15 Sep 2022 09:08:35 +0800 you wrote: > Now, register_pernet_subsys() and register_netdevice_notifier() are both > after sock_register(). It can create PF_PACKET socket and process socket > once sock_register() successfully. It is possible PF_PACKET socket is > creating but register_pernet_subsys() and register_netdevice_notifier() > are not registered yet. Thus net->packet.sklist_lock and net->packet.sklist > will be accessed without initialization that is done in packet_net_init(). > Although this is a low probability scenario. > > [...] Here is the summary with links: - [net-next] net/af_packet: registration process optimization in packet_init() https://git.kernel.org/netdev/net-next/c/63b7c2ebcc1d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html