Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3619603rwb; Tue, 16 Aug 2022 06:17:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR4zUuK3zfZXuoUPdREH8HqQ9sxBou80q7ta5hi/VK2xkx2ngNwRDMy6kg/MI/iDGLBq66uY X-Received: by 2002:a17:907:2894:b0:730:df55:b65f with SMTP id em20-20020a170907289400b00730df55b65fmr13209292ejc.138.1660655852059; Tue, 16 Aug 2022 06:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660655852; cv=none; d=google.com; s=arc-20160816; b=R1fKF5QsSQLAZRpZMzrwLkXfM0O2em3EpIShrXDJRl42ZeesWDjtSgaztcJ7dZLHDq 36QhLNrtMJvHMbgToKpZv1pq7a74Sov7X1jFXeHBmNL87nfXBSwa4SkELZnq9NPUdrey V0ZtOBtNZH8lvOFq3LVB3plM3AWSu4v75yB6EHqFm7xG6JZAunU+xez7KJOAz79p3SMx 9LHE5vSr9BRwTl8BL+pfCl3auMB6i63+4KCySp/uhwzS26OIHeua/iZ07bN2Gctfwzh+ Epj42J3ox9HYO25wcMQwiGmglmIvQH/8WlSnmrXq5HtGOdG+ly9xbcku99Maog98aAkf moaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=8awJny9/ykLwiE6dZBhJI/2SwPImayCQ0hkEt7cHi1w=; b=IpiVN6uLUveDxcGqvj1ispEBHdimJLhWYcL1nh9p3VLUm9dl0wAolPU6dHqO7HfiUV yzhuTKWG1bvjK2tUb5YOoeM6P9UhoNEmDFy1RzV1dI5xNxldf3ehH5Tb9SkaV8PBWVGq inqyFMhtzC/4br+ysUUzx13Y9S6hMC4kqFEDOFxK1Y97qNphQG93xal30v2XesO+MsuR EVTvR8QZXcEsxYwmgDRELsmwz/KZpOonovkZJW2p2jDk/WB116tckctEZPh4EAMAKrq8 auIa7LpjVvRqz5EFMCjT/UthiKyyCcc3CsRxvQLNBHzlpCysiLyY+5BQOYxcyHf7+RQm PmkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gBseYpV7; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a056402144e00b0043d5dd96fcfsi8728819edx.272.2022.08.16.06.16.57; Tue, 16 Aug 2022 06:17:32 -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=@redhat.com header.s=mimecast20190719 header.b=gBseYpV7; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235534AbiHPNKB (ORCPT + 99 others); Tue, 16 Aug 2022 09:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235399AbiHPNJ7 (ORCPT ); Tue, 16 Aug 2022 09:09:59 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4C79B274F for ; Tue, 16 Aug 2022 06:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660655396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8awJny9/ykLwiE6dZBhJI/2SwPImayCQ0hkEt7cHi1w=; b=gBseYpV7MhL48gp60qum0qMeBqkls399KmMRRxsm94IidlbKD+CYJC2W5UvwgAEkJ4SJKB C9OezqDmzr1hyvfSeTd3A50GMiL+31QVAH8XBYCi+v3YIYW1QlGpACXImkaIDU89tipHKx PD3vf5Td6XkOkPr8i38nSQtxTrnXa78= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-645-CUgRfkWnO82eztXDflM4gA-1; Tue, 16 Aug 2022 09:09:50 -0400 X-MC-Unique: CUgRfkWnO82eztXDflM4gA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 949E13C1014B; Tue, 16 Aug 2022 13:09:49 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.72]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F7B0C15BA6; Tue, 16 Aug 2022 13:09:47 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20220816103452.479281-1-yin31149@gmail.com> References: <20220816103452.479281-1-yin31149@gmail.com> <166064248071.3502205.10036394558814861778.stgit@warthog.procyon.org.uk> To: Hawkins Jiawei Cc: dhowells@redhat.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, bpf@vger.kernel.org Subject: Re: [PATCH] net: Fix suspicious RCU usage in bpf_sk_reuseport_detach() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3961604.1660655386.1@warthog.procyon.org.uk> Date: Tue, 16 Aug 2022 14:09:46 +0100 Message-ID: <3961607.1660655386@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hawkins Jiawei wrote: > if (socks) { > WRITE_ONCE(sk->sk_user_data, NULL); Btw, shouldn't this be rcu_assign_pointer() or RCU_INIT_POINTER(), not WRITE_ONCE()? David