From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 5B4B6C25B08 for ; Wed, 17 Aug 2022 15:51:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237384AbiHQPvY (ORCPT ); Wed, 17 Aug 2022 11:51:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237220AbiHQPvX (ORCPT ); Wed, 17 Aug 2022 11:51:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76ABA9BB65 for ; Wed, 17 Aug 2022 08:51:22 -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 ams.source.kernel.org (Postfix) with ESMTPS id 39253B81E1A for ; Wed, 17 Aug 2022 15:51:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F538C433C1; Wed, 17 Aug 2022 15:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660751479; bh=mRWaSwAWrVSW5xWS69xv2YwO0eCFBQtF69gVkM+CU4s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JfH+8pzazyKLgRpES8TDvrCY3UBRuJyhZqTXY7UifVl8yiMsRMacl3XP4jkABpfq2 kp1+73fb+vnUyiMnxeLQtkOkZpcpGOoIr942H48lF40kTVJdvIvCKH8c5UrXCLdhgq A/qIfytwz1episvXJisn/l8MPy9B/Ztz1grNbCMLVrg80dciPKViX+oVxZ9CS94WzZ ZCoFyAOggdXW0hNlDJjPHTWqT5Aj7CfYa8PYeYi5M9nYCr2JA5hbxqE8T7Zj1ipW00 LK/Ff+0BDUjLsGPsJZ+Y/U2UjVZoGkQnE42cKdce1kPvjGkSCdmitdFJS/1Lq6EXEX Q/5eOdHPo0x4w== Date: Wed, 17 Aug 2022 08:51:18 -0700 From: Jakub Kicinski To: Jakub Sitnicki Cc: netdev@vger.kernel.org, kernel-team@cloudflare.com, "David S. Miller" , Eric Dumazet , Paolo Abeni , Haowei Yan , Tom Parkin Subject: Re: [PATCH net v2] l2tp: Serialize access to sk_user_data with sock lock Message-ID: <20220817085118.0c45c690@kernel.org> In-Reply-To: <87edxfvsxs.fsf@cloudflare.com> References: <20220815130107.149345-1-jakub@cloudflare.com> <20220816184150.78d6e3e3@kernel.org> <87edxfvsxs.fsf@cloudflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 17 Aug 2022 16:33:33 +0200 Jakub Sitnicki wrote: > > Note to other netdev maintainers that based on the discussion about > > the reuseport locking it's unclear whether we shouldn't also take > > the callback lock... > > You're right. reuseport_array, psock, and kcm protect sk_user_data with > the callback lock, not the sock lock. Need to fix it. Where 'it' == current patch? Would you mind adding to the kdoc on sk_user_data that it's protected by the callback lock while at it?