Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1346190rwb; Thu, 4 Aug 2022 23:33:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR55RcgwNSX0/LAaI97GHJxKEm7z3B+QKvVKfQohI38l6SbEuOLT5dhmBYpw8hAGSgAOjD+s X-Received: by 2002:a17:90a:b010:b0:1f3:161c:30a0 with SMTP id x16-20020a17090ab01000b001f3161c30a0mr5861656pjq.243.1659681195189; Thu, 04 Aug 2022 23:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659681195; cv=none; d=google.com; s=arc-20160816; b=f1EpuPyE0ZmMlMP2kOoFI5R6BA0cFYynBZeMRJMvMfAgQY1tC3ZOZLsGqI4LBv9cjW K+DNRd22l0cggKhX/nBLcBiNDYNEdEJw42lXicy53LjcG65YpI1ItxqESWOcIK3Jlkm+ snQ049Q0kcG/6/Eg1R2GYW5SRadPWPGp9sXPj/vvMCJSIpONGMUCiazu+ubhXMuxz3sK Fp3b96lmsrTQT+ugZ3JDD3Xp7wx4FrkDx5gQhiWR5LNnUGGkH4D9HuJL5CW53Alws8iC yE+rX5vy23KkuR3nAWhEJ7fHCui8xyh7FSWWR6m5O9BnKKkZdPyjIh7n+T721kz7D6L0 uY4A== 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:date:subject:cc:to:from :dkim-signature; bh=66sTXdJI9D/uDofdTmj8j7tOsf58bY5fHMNycNv2J+8=; b=wVW6Kyn/BqiStqwnVc9C8XKwJfX3644gnOOSqOQTErzEku0DtMWpResAAukxi0gROa 9x2rCwg73nxGS53uKhzvanJHc8VSfcxwqlNjTo5oAiCVCtEtxTxx2tllAq5lmxHzRihx sLiHaE94eVAOSB0bkVq3okee9ii4qHWYiCgzj7W76xAKRXqFARW95qEenOgAohDHqTun iZ+Jzgxr3nyIAr/TgnUm9VOmrHN8Sr32cjI6XFu9P/yinYBgsKTrhXiQ18waR+a4yndJ iJh6vKaaWaTjJ7t6rSF4E/WKzVReTSdwObReBNSFtw2/XsBksM8sizjqh2WC1jGWXH9W /5Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Sxdyg77b; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020a63cc13000000b0041a3b20ba0esi2345155pgf.383.2022.08.04.23.33.00; Thu, 04 Aug 2022 23:33:15 -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=@gmail.com header.s=20210112 header.b=Sxdyg77b; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236840AbiHEG33 (ORCPT + 99 others); Fri, 5 Aug 2022 02:29:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230475AbiHEG31 (ORCPT ); Fri, 5 Aug 2022 02:29:27 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68F06606A2; Thu, 4 Aug 2022 23:29:26 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id t2-20020a17090a4e4200b001f21572f3a4so1972562pjl.0; Thu, 04 Aug 2022 23:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=66sTXdJI9D/uDofdTmj8j7tOsf58bY5fHMNycNv2J+8=; b=Sxdyg77bcCLSPX470DdsbQZEx5dV699VcOaq5ukagYnFSrvwC6HCy6vHuf29m2kzp6 6jlO5vrBv6NObDGMAjeraj5FLjwX4Tp57UVpDYadL+P63SZnQR2VEepuzrElBjCWGE8/ +V6pk4L1PxDZwIuzbVDBKMz6WLi0M1IjfDen82CXXNhEWXDk+qM9p/pLtMdIvmNo2PJT WHk8uGpaVfr3eJ9XKUIyyzUTYWXCgzKqEwS5ozEO9N/nS/wbPBA5xXHiRKnxWY9Wzagj Tv9LS/prQ9/4JbanwL3geBEP5n6WIzJHm3X1kW3HTTAuocL1BTGLHwnPRpnzbUWWbSQl ZW9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=66sTXdJI9D/uDofdTmj8j7tOsf58bY5fHMNycNv2J+8=; b=SZC9ZEub+rI28dbQ37FbG9tOhEboafy/rd5CbCO0BgxlMGGcxNs8D5TZpF4hlS1ZQY AFPlQbO9GFbKDPFoV2PiMU0vTonzR2DEFC9ORDhumtfFwlg4m71MKsfO/cD09lo9YLnT 5nLlQTj+m8IDaxbqj41fM/FBfAip8wr09i5KfOZiLkClhgaMnwpujOJk8aW0q+zLKz/H 7mjF7ynxKDyIXwZUidWTAz95Klrg+I72LwFPCc/KUtgPC/e6TRY64McEjmVjeenZV93+ UvNNlKCKHbvug+FTF7qYISLaAFnHIvCKoxvzMxdjx7GkC53fqyB9nhRTSXZqcQEEpDmt 9wUQ== X-Gm-Message-State: ACgBeo2RDmxl8exq2NucYq3MU3yJahQ1GRBy7iYaFaRKeYlL/DLQJby6 8telO/etrA0F5vE1wOxImgi6UZa1/xSPoot8dfI= X-Received: by 2002:a17:90a:558f:b0:1f5:bbc:c58e with SMTP id c15-20020a17090a558f00b001f50bbcc58emr14305788pji.102.1659680965733; Thu, 04 Aug 2022 23:29:25 -0700 (PDT) Received: from localhost ([117.136.0.155]) by smtp.gmail.com with ESMTPSA id m17-20020a170902d19100b0016d83ed0a2csm2056223plb.80.2022.08.04.23.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 23:29:25 -0700 (PDT) From: Hawkins Jiawei To: kuba@kernel.org Cc: 18801353760@163.com, andrii@kernel.org, ast@kernel.org, borisp@nvidia.com, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, edumazet@google.com, guwen@linux.alibaba.com, jakub@cloudflare.com, john.fastabend@gmail.com, kafai@fb.com, kgraul@linux.ibm.com, kpsingh@kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, paskripkin@gmail.com, skhan@linuxfoundation.org, songliubraving@fb.com, syzbot+5f26f85569bd179c18ce@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com, yhs@fb.com, yin31149@gmail.com Subject: Re: [PATCH v4] net: fix refcount bug in sk_psock_get (2) Date: Fri, 5 Aug 2022 14:28:44 +0800 Message-Id: <20220805062844.89787-1-yin31149@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220804082913.5dac303c@kernel.org> References: <20220804082913.5dac303c@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 On Thu, 4 Aug 2022 at 23:29, Jakub Kicinski wrote: > > On Thu, 4 Aug 2022 11:05:15 +0800 Hawkins Jiawei wrote: > > I wonder if it is proper to gather these together in a patchset, for > > they are all about flags in sk_user_data, maybe: > > > > [PATCH v5 0/2] net: enhancement to flags in sk_user_data field > > - introduce the patchset > > > > [PATCH v5 1/2] net: clean up code for flags in sk_user_data field > > - refactor the things in include/linux/skmsg.h and > > include/net/sock.h > > - refactor the flags's usage by other code, such as > > net/core/skmsg.c and kernel/bpf/reuseport_array.c > > > > [PATCH v5 2/2] net: fix refcount bug in sk_psock_get (2) > > - add SK_USER_DATA_PSOCK flag in sk_user_data field > > Usually the fix comes first, because it needs to be backported to > stable, and we don't want to have to pull extra commits into stable > and risk regressions in code which was not directly involved in the bug. Ok, I got it. Thanks for the explanation.