Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp751434rdg; Thu, 12 Oct 2023 22:54:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzlJYwIucFaV5EQZSZkq9QVx46PfCaogTvcIbv68uJOf+kThdM9Em+HOF8HmYoynUha3XM X-Received: by 2002:a05:6a20:1607:b0:140:61f8:53f6 with SMTP id l7-20020a056a20160700b0014061f853f6mr19074026pzj.29.1697176450568; Thu, 12 Oct 2023 22:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697176450; cv=none; d=google.com; s=arc-20160816; b=ozrt+a6uH/hZGMqzjbPZrAIB/pBDl+WWcpkdRqH11HHUJdFhm4uq7eWPCNs5+LqMkN P2Gh3tYhHoS6QLh/N1o6BA0cMZ03t0frL38cfXSCVtU/kHPd/zXDrMTZFuyE+yQAaDEv 94lxsa4OvscDCIEhCoCZiwRJNFskXI9BlDuWCEhAU6tar80RJfLMoie4D3J8Kby7dpze TcLqGLN84rMq/fjR+31v/lI6q2MgvJ2/Q2BKKXn/YfTSJHqdy6gSpddWk6vAwyV6cZI2 egDscVSozdAR4cIF8s8gYWmjOn2fW95WXMwpN0W66oEfyxhBvL28/YCeTE4zKNG6gNlv tcsg== 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=DwWrQL09BNYPQrvUzwy241Ph3mWyt1MBsJP3vfqheUA=; fh=UaRrR7lHPEof/CEDkUN6LKLlqwtXVwHFtqKSNYoVacs=; b=IrrulKTGakca6Q74KlQlWhfrhicOgNBJgPBKFeqAf9dRussHpLvFWzJWi2E/NR0tOn x/y3e4xdelH498WsEYG1P+3w7FYsAVIkh49wGrJo+gVjmI9ZBLiiIaFTDJA+4lV3Lbmw l4ZO3ShLXrN4wdzA5C+7pwD+Lbu2XGfgjbU7w1ioaeWnjjeFARdSev9by7UYoifZUfW5 RJuD0TMuJc/C4KDwmZK9vfstOpPPUiVn4fHYGv4RsujlthDF1Av9mWGvPZt1WCn3i4nb yZGnV85H6WsLKN680tkgaSY236Ik8P4ptDzygF9LR8VOlkzHOtZO5nqNFtJxOxqbic7Z 1aug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id m6-20020a63ed46000000b00563d9ff5157si3764618pgk.547.2023.10.12.22.54.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 22:54:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 7E01381F3331; Thu, 12 Oct 2023 22:54:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbjJMFxz (ORCPT + 99 others); Fri, 13 Oct 2023 01:53:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjJMFxx (ORCPT ); Fri, 13 Oct 2023 01:53:53 -0400 Received: from a.mx.secunet.com (a.mx.secunet.com [62.96.220.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 817AAC0; Thu, 12 Oct 2023 22:53:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 4D60720847; Fri, 13 Oct 2023 07:53:48 +0200 (CEST) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QFD-3-QelxB8; Fri, 13 Oct 2023 07:53:47 +0200 (CEST) Received: from mailout2.secunet.com (mailout2.secunet.com [62.96.220.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 17372207C6; Fri, 13 Oct 2023 07:53:47 +0200 (CEST) Received: from cas-essen-02.secunet.de (unknown [10.53.40.202]) by mailout2.secunet.com (Postfix) with ESMTP id 1247D80004A; Fri, 13 Oct 2023 07:53:47 +0200 (CEST) Received: from mbx-essen-02.secunet.de (10.53.40.198) by cas-essen-02.secunet.de (10.53.40.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Fri, 13 Oct 2023 07:53:46 +0200 Received: from gauss2.secunet.de (10.182.7.193) by mbx-essen-02.secunet.de (10.53.40.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Fri, 13 Oct 2023 07:53:46 +0200 Received: by gauss2.secunet.de (Postfix, from userid 1000) id 48E423182B10; Fri, 13 Oct 2023 07:53:46 +0200 (CEST) Date: Fri, 13 Oct 2023 07:53:46 +0200 From: Steffen Klassert To: Herbert Xu CC: Cong Wang , Ma Ke , , , , , , , 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-ClientProxiedBy: cas-essen-01.secunet.de (10.53.40.201) To mbx-essen-02.secunet.de (10.53.40.198) X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 22:54:08 -0700 (PDT) On Tue, Oct 10, 2023 at 05:03:48PM +0800, Herbert Xu wrote: > 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. It can, we don't linearize the packte data anymore.