Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp875307pxb; Wed, 1 Sep 2021 11:52:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzokTwEtByJW/K/yihqRtSAcMar6hZdB0SHVgBkApNrBpSAOe86Zohh62c5ymQEqOZ6iR1i X-Received: by 2002:a92:dd0e:: with SMTP id n14mr643326ilm.224.1630522319899; Wed, 01 Sep 2021 11:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630522319; cv=none; d=google.com; s=arc-20160816; b=fE5pbIEZDTQm5RFPy9NXnlFWoSyUfJWosmSXS239xSDQfJut061kLA0Cjqm8MGE2vU XyIoo9gDmFlUj2hHQP/O0BEnFuxQxD9UhFLHPQRFXEWGK/jiFPZBRNaSDPskjSLYBjDH D8sTrghGcUAK31a/SjqwH05kA8r1au5JlN3R3OVfViNAFZyptrpxefICcJdQuCp4Ys0g zJ6E2Alxmvrfce/C0CngLD8lFNvEoxEuGG3b8W4XVWM80jM6vtiKdtxg1ZFBEOGHvqec rnBTMrAvRPKmzQRhm6zDlSgutSWb4tMLH3LlACgTba4p/mZnuuuHkItKGLtR6V6eZD85 U78A== 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:from:subject:cc:to:message-id:date; bh=zNr8S2g5cYCjT/7D9vYxUG24D9neCm8Uj49HhxvJjHk=; b=TL8oL82OgGSK2iNPL1KbRGKdvO/RrR4mpD7SSzXShaO54KP85TnbN6lHmlNtV7EGC7 NYRYPq3WQTWcdhgdGDmNdLnTcgykf4m1+2OaKUUJkKaYyWnb9nlV7/vF4vCz2R2VkcOM ia2MLKzanIFRi1pSnZ7bmrujFAzR6nfNcmGAr4Yr6MmFhvPOGDS0j95DJKAHYlM23b6W 8cUmx7+22zSHbPWTrVN70td3dAKQ8ChnkQI5V+RyA1lakNfKxz9koyX6inC1Y1gHm9Wq 8vQ9b5G3pfjZneoXbFNd3EKrlUAKxrG1z+MJKm06SMOSas6AVSP6mzOwxLTG2KQEcxZc WkJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si379198ilg.5.2021.09.01.11.51.48; Wed, 01 Sep 2021 11:51:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237607AbhIAKqG (ORCPT + 99 others); Wed, 1 Sep 2021 06:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236140AbhIAKqF (ORCPT ); Wed, 1 Sep 2021 06:46:05 -0400 X-Greylist: delayed 4467 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 01 Sep 2021 03:45:08 PDT Received: from mail.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9648CC061575; Wed, 1 Sep 2021 03:45:08 -0700 (PDT) Received: from localhost (cpc147930-brnt3-2-0-cust60.4-2.cable.virginm.net [86.15.196.61]) by mail.monkeyblade.net (Postfix) with ESMTPSA id 561D34CD3FCDE; Wed, 1 Sep 2021 03:45:05 -0700 (PDT) Date: Wed, 01 Sep 2021 11:45:00 +0100 (BST) Message-Id: <20210901.114500.1826347270421267882.davem@davemloft.net> To: yun.wang@linux.alibaba.com Cc: paul@paul-moore.com, kuba@kernel.org, yoshfuji@linux-ipv6.org, dsahern@kernel.org, netdev@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: fix NULL pointer reference in cipso_v4_doi_free From: David Miller In-Reply-To: <6ca4a2d5-9a9c-1b14-85b4-1f4a0f743104@linux.alibaba.com> References: <1ed31e79-809b-7ac9-2760-869570ac22ea@linux.alibaba.com> <20210901.103033.925382819044968737.davem@davemloft.net> <6ca4a2d5-9a9c-1b14-85b4-1f4a0f743104@linux.alibaba.com> X-Mailer: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.monkeyblade.net [0.0.0.0]); Wed, 01 Sep 2021 03:45:07 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: 王贇 Date: Wed, 1 Sep 2021 17:41:00 +0800 > > > On 2021/9/1 下午5:30, David Miller wrote: >> From: 王贇 >> Date: Wed, 1 Sep 2021 09:51:28 +0800 >> >>> >>> >>> On 2021/8/31 下午9:48, Paul Moore wrote: >>>> On Mon, Aug 30, 2021 at 10:42 PM 王贇 wrote: >>>>> On 2021/8/31 上午12:50, Paul Moore wrote: >>>>> [SNIP] >>>>>>>>> Reported-by: Abaci >>>>>>>>> Signed-off-by: Michael Wang >>>>>>>>> --- >>>>>>>>> net/netlabel/netlabel_cipso_v4.c | 4 ++-- >>>>>>>>> 1 file changed, 2 insertions(+), 2 deletions(-) >>>>>>>> >>>>>>>> I see this was already merged, but it looks good to me, thanks for >>>>>>>> making those changes. >>>>>>> >>>>>>> FWIW it looks like v1 was also merged: >>>>>>> >>>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=733c99ee8b >>>>>> >>>>>> Yeah, that is unfortunate, there was a brief discussion about that >>>>>> over on one of the -stable patches for the v1 patch (odd that I never >>>>>> saw a patchbot post for the v1 patch?). Having both merged should be >>>>>> harmless, but we want to revert the v1 patch as soon as we can. >>>>>> Michael, can you take care of this? >>>>> >>>>> As v1 already merged, may be we could just goon with it? >>>>> >>>>> Actually both working to fix the problem, v1 will cover all the >>>>> cases, v2 take care one case since that's currently the only one, >>>>> but maybe there will be more in future. >>>> >>>> No. Please revert v1 and stick with the v2 patch. The v1 patch is in >>>> my opinion a rather ugly hack that addresses the symptom of the >>>> problem and not the root cause. >>>> >>>> It isn't your fault that both v1 and v2 were merged, but I'm asking >>>> you to help cleanup the mess. If you aren't able to do that please >>>> let us know so that others can fix this properly. >>> >>> No problem I can help on that, just try to make sure it's not a >>> meaningless work. >>> >>> So would it be fine to send out a v3 which revert v1 and apply v2? >> >> Please don't do things this way just send the relative change. > > Could you please check the patch: > > Revert "net: fix NULL pointer reference in cipso_v4_doi_free" > > see if that's the right way? It is not. Please just send a patch against the net GIT tree which relatively changes the code to match v2 of your change. Thank you.