Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5375614rwb; Wed, 17 Aug 2022 16:45:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Pr7QRRoSHb92oReRE7PtZ+veZ5ReIzOrY8TSlZd0S9gShYs/slVl+I7G0lwhmdNxx+/85 X-Received: by 2002:a63:d94a:0:b0:412:6e04:dc26 with SMTP id e10-20020a63d94a000000b004126e04dc26mr439082pgj.539.1660779948639; Wed, 17 Aug 2022 16:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660779948; cv=none; d=google.com; s=arc-20160816; b=FzETQIYSb0R2qbj2qusbc8mRgJEXmLhk1h0NnxsLHNm0QY0T9wQxup/th5nSB7BMx5 0Uks9WRt41Tilx6SCjDaczU88TB5pok8/8EYA0e88gUeL94pC1xnB4yTZA/0/9ZOc+S7 UGmC5s2xbeTWeFCkVQUex2qI5CzFbK4rMwroZKa4pPt49b9Cm2CFN67JCG8Ge0VCGzj3 gOXmysvVJJwTFWXgkf+LaVlNOEPtHWcLhP+8SCC1HcKsrvaJmkXb7SDMVsfwBRBIj0o9 1drb08u8WkLIuTMFIHnoqU1e771Q85PL/pvm9enVy+CacoO8NFAISnkimsuf40o117fq ukEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6wWN95iFBYSPihtM9M74QJUbWfYOshvOyqE0m+5Z7FY=; b=0wxfuCbMgubXgTR/k45MdTwJhvHaz7Il0j2hKS9ywqc3Ccmgki5PsTeedD9r9MFMVW uBf5W+ye5anNXXuI0hqX0ReALaKsmm6QEdtJkeiwUb2ova03NSZnjN1jJOQ7rZY4K+a2 FlSrdqE2OvaoIRE3KaJZIcYD7lOtgm28CRF3v0t7dlkNorbEELa6t0jSND6CAyd2LSn3 YSJ6iBvhtwtmnHE8dFC8wGlCwst4LasvCrl1Oy28P0AGm1QZjIdxwmDN+OVMHM52Ju4k WjFuy8cPdtOX1bCdvx/ZDHi8+uZB9JKvoCwPYJZqvis0mvF7Csa3RslIMY/HIZJiTbjp whYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bKqzDfLd; 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 a64-20020a639043000000b004129a8bd432si50527pge.622.2022.08.17.16.45.37; Wed, 17 Aug 2022 16:45:48 -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=bKqzDfLd; 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 S231939AbiHQXmP (ORCPT + 99 others); Wed, 17 Aug 2022 19:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239249AbiHQXmO (ORCPT ); Wed, 17 Aug 2022 19:42:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D13495AE1; Wed, 17 Aug 2022 16:42:11 -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 77B866133B; Wed, 17 Aug 2022 23:42:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F3A8C433D6; Wed, 17 Aug 2022 23:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660779730; bh=90a0gHd140Crru58gwz91c0iI4UzcfwU6EDuHdNf2Mc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bKqzDfLdSmpjAPt1fgcvYgH9DmrNEP84Fa4J4OmzTzbSQ3xi+N30wqlhxxB8F/DsU 67waHblV+XrGuh4SPKBgvy+kHI3rK97tZ6AaFE0DBIzZgJAnIEbDELwggfu7+sx00N 7MyWl+NacEKVkMCvr1syY0zMGfcsmLNHc8ETKXrFz+ZBeyLTzXF1bkWLpuqlhJNzKV lOSyh56WbqUEH0AG/Yq/gxjEz/erUXZGTr4zGs56oeWqcx1mZiw7Pp4U629N2aAYcX ReOxkkYj9J6SN9NJFsatUEf73nWVVDQMDhdmQxzkBKkdPclgQJ/E4dUHKSvVtZLf0t HDctf4J7QsLEA== Date: Wed, 17 Aug 2022 16:42:09 -0700 From: Jakub Kicinski To: David Howells Cc: Hawkins Jiawei , "David S. Miller" , Eric Dumazet , 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, Jakub Sitnicki Subject: Re: [PATCH] net: Fix suspicious RCU usage in bpf_sk_reuseport_detach() Message-ID: <20220817164209.72c182fb@kernel.org> In-Reply-To: <3974013.1660769749@warthog.procyon.org.uk> References: <20220816164435.0558ef94@kernel.org> <20220816103452.479281-1-yin31149@gmail.com> <166064248071.3502205.10036394558814861778.stgit@warthog.procyon.org.uk> <804153.1660684606@warthog.procyon.org.uk> <3974013.1660769749@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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,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 On Wed, 17 Aug 2022 21:55:49 +0100 David Howells wrote: > Jakub Kicinski wrote: > > > I like your version because it documents what the lock protecting this > > field is. > > > > In fact should we also add && sock_owned_by_user(). Martin, WDYT? Would > > that work for reuseport? Jakub S is fixing l2tp to hold the socket lock > > while setting this field, yet most places take the callback lock... > > So how do you want to proceed? My first version of the patch with > sock_owned_by_user()? Sorry about the lack of clarity. I was sort of expecting the name to still be shortened, but what you have is probably good enough. Applying v1, then, thanks!