Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2380173rdb; Tue, 10 Oct 2023 02:04:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtr99rq7QfiEbiSBppyDEmI/jJZ900lTCPH3/jmGH1ao8w98WceaCkk/hLXnVe9ZAvKD4J X-Received: by 2002:a17:902:f68d:b0:1c7:61de:f25c with SMTP id l13-20020a170902f68d00b001c761def25cmr20776194plg.22.1696928665767; Tue, 10 Oct 2023 02:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696928665; cv=none; d=google.com; s=arc-20160816; b=jr8k4A8JUDbOp6c+N4yxJwo7dlYHSkg/wSJgxqCHPlbpKuaE1uzwtDDIotp4jry/OZ 6SwBCzCAkkX2KqPh0A252nQodifyavymnav7jlMoxb3+jIAM53aMAD2cqrJ0cwlAfmGD Y1JaTpjcvxG4qwUe8ywQ2Wi9oK4X0rn2Cnw/YnfQR1rSLDkJKl0ThlQviTaRXdkqcjUz h/d5ipROrKGCb9Llow9c3sWqmCwGGhDV6nOJdAQpysKllEJaAoTkEZX2rm2s/+IuW1Ry 31x3lXmbymxD2bvTc6e66RxaK05Uc5QlIcQ6Hm9YwrGxPSrzeGiww07eRCe2j3ubsyPd JMOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mvyNwQRoUK/EPz7HoJIQl6cG9aLDln6HscQGtaTV11I=; fh=gqQ4rKmF+tOSkftYNQG2ag03dQc2RQ3HmDp6YBMiJrg=; b=yE5+0Td8wad9KjtW7JSNWPoxiJO8ZKkCIcVuKFnLWy6a6HWpInNk65R+Gou/CaQUsm y7bSSHYGcg62XAY0w58jdVE2M5ezJoL97CdZqwv3DxD/oycYtLLLu/3qsRV5/bHUazXj Ja4tiIs3br9+qivuXUDm05QdfSeidEeqQ7w6zFfPvhTEJw4Kgeo4kO+t8GBR7l7/JU8b i2gvtzgnP2EoYgi1nRrpfE57EE6MonN0ibhJzQbrHzrq6XjXp8bLVNWXvDxF0ifUaLOd riPgEDE75K4F609riaomvfGvURindqUAdM0kcy093EKRZsKJgGXIPoIofuQyM87laDv8 UT5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c6-20020a170902d48600b001bda57935fasi12025812plg.64.2023.10.10.02.04.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 02:04:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D7D4181393C7; Tue, 10 Oct 2023 02:04:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjJJJEM (ORCPT + 99 others); Tue, 10 Oct 2023 05:04:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjJJJEL (ORCPT ); Tue, 10 Oct 2023 05:04:11 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB098A7; Tue, 10 Oct 2023 02:04:09 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qq8eW-005TST-2G; Tue, 10 Oct 2023 17:03:45 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 10 Oct 2023 17:03:48 +0800 Date: Tue, 10 Oct 2023 17:03:48 +0800 From: Herbert Xu To: Cong Wang Cc: Ma Ke , steffen.klassert@secunet.com, davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: ipv6: fix return value check in esp_remove_trailer Message-ID: References: <20231007005953.3994960-1-make_ruc2021@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 02:04:23 -0700 (PDT) On Sun, Oct 08, 2023 at 10:07:30AM -0700, Cong Wang wrote: > On Sat, Oct 07, 2023 at 08:59:53AM +0800, Ma Ke wrote: > > In esp_remove_trailer(), to avoid an unexpected result returned by > > pskb_trim, we should check the return value of pskb_trim(). > > > > Signed-off-by: Ma Ke > > --- > > net/ipv6/esp6.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > We need the same change for net/ipv4/esp4.c? Please verify that it can actually fail first. Note that I'm busy right now so I haven't looked at it at all. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt