Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1492428rdb; Sun, 8 Oct 2023 10:07:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRr/pjowC5LEHU4/4FkytYYO7mTzUsjzw8sccQouTvLJ4qy15cEYAeQk0cM+V1vtK8rQ7H X-Received: by 2002:a05:6870:8a2a:b0:1d6:c7e7:abb5 with SMTP id p42-20020a0568708a2a00b001d6c7e7abb5mr16523674oaq.54.1696784862240; Sun, 08 Oct 2023 10:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696784862; cv=none; d=google.com; s=arc-20160816; b=iN4/1drcrZMDO0Tloi6K9EhkZPEME8FWWYCPvu981wSovbaOz/4v214da2iz+LD22z pP5KNJMVYzPvpsFWu5nQ4jRG9eOWckj66Sw9L3964deVeoKOf079QD8l36BCYZRStnDX 1wf7U95J5qY399wqQvBhuDkYuHw0OTOMmZDI8r/jIW+/6Ts4GNzumDj0NzumsiY+MlH8 E6uEbAEKokMAt3ZX6ALhFSSrMr1UO7QeUnoj/FEZY8joGcIpu9eN3wTh3094Sk75mlrl shDOaN3Kn5YpXkU4jasn8ZR2ZSzE/plLRblBgHZBxqEBieGa59rb/YpIntTGPgYlV5oc Ub+Q== 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:dkim-signature; bh=ZpndYN4f7naEuL14aFLLGfFvBTssPCHabYEQXlCTG3E=; fh=vmWSKddITw4RO25kD+cSy6Xx2Wwu9Emji56L/wd0qsg=; b=tf+XTRTOkRolgPW1p9mjf/JEZjMbvR1hUOXtOrc8ib938JyZom3k+J/8ja6NuKtyRi 4XXNsvhkya/iUghdolmwoVmqRSk0ArOOe12Y4urfjd0Zw1sxoKVxKiPeLf5p8nYoJKiJ SgToR8CVImR/lFPB5bv8nRNYPU8/dvFBVSuZASjdwtr7kdAMm5tyCiQXuk8mAgBUDfsj bCG9FqBFccAmYjkj1DChVyOcc5e4pBd9yHJ8qYT69WxLGw/wS+TxD4/A3ByDHA/ebE5S 3To/PrbQZEiNbBzk/777Ir4YTC86cttnnNrgX4dAWPp4IeyMJFGCxCojsCSP6gBcbkuQ nHLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VqGUuvW3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f16-20020a635550000000b0057de1fae0ccsi8076305pgm.67.2023.10.08.10.07.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 10:07:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VqGUuvW3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id CD95880787F7; Sun, 8 Oct 2023 10:07:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344953AbjJHRHd (ORCPT + 99 others); Sun, 8 Oct 2023 13:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344915AbjJHRHd (ORCPT ); Sun, 8 Oct 2023 13:07:33 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35344A6; Sun, 8 Oct 2023 10:07:32 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1dd8304b980so2652338fac.2; Sun, 08 Oct 2023 10:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696784851; x=1697389651; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZpndYN4f7naEuL14aFLLGfFvBTssPCHabYEQXlCTG3E=; b=VqGUuvW3+mz4ry1yKs8kMmWOefDS+PbBxFY9bIV1LGUJ+aDmYhGxFaF4KqZtkmdE/B 0yCJUx0NaGUs/9vBdG/Xi1j5rGLYEdfF6NBrFfDwlvirNCUO/82GqCIbV7Vvvcv5pTKh KAE0keXDkk+vQYE6MmwsPISJDOGvd60VYEM5DQEmtobr6jGLhWzKrZPZ0jt18aISgJb1 Rs9aP1pf7pZZ1+jhC3uf12w6xUi5Q9h0rohnE9EHZHlkudb8ZwxZt/7J/a1HtPfOPprY iuB7VDtuBgy8wtMvdi1FoFTKpWxvqdrqngzhyiLlqOxylxwyNSEW9Mdgd+i4gxXPrnJC jXOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696784851; x=1697389651; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZpndYN4f7naEuL14aFLLGfFvBTssPCHabYEQXlCTG3E=; b=Ri+vPKR196WqYEScx/xXrLqzu30nADWDhjlxITrrq2159EtNja13/VFSBVyuLCXfdD 3lV4yhxGRlIcNgTbJg/g6KrqRnxnK4sBC/XM55sWiVHEoNUeLOc6+U+mH8/R1LFPICge CrirzQZX2jk8Zbrj5Y2y5vawcY2CjpDeNZa12kcaOTflAQDqGXtusAikVPGzWwT38gJp nGvcp0ketOOfYaRZnfHp3qQTD/pMa+CUHyIOFbAkuCtj6ysWyi5M3rIN/8gkxkwtrXwS ZKOC2QDjWONN8MQbAiZII3s5YD6yWERdIowGC1FSxUOi4RqkBmXpZg8BLkO0iPoWeSQu UDFQ== X-Gm-Message-State: AOJu0Yy99FdOZtnpH4ouIaV/XKYpFo0UXSSoQ4HO1mD/0O96usIAWGQE SgsdfMXIZqpLyTnWZqrtFtg= X-Received: by 2002:a05:6870:ac1f:b0:1bf:50e0:95d9 with SMTP id kw31-20020a056870ac1f00b001bf50e095d9mr16177181oab.26.1696784851429; Sun, 08 Oct 2023 10:07:31 -0700 (PDT) Received: from localhost ([2601:647:5b81:12a0:a3e9:5a65:be6:12db]) by smtp.gmail.com with ESMTPSA id f15-20020aa782cf000000b00694ebe2b0d4sm4732282pfn.191.2023.10.08.10.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 10:07:30 -0700 (PDT) Date: Sun, 8 Oct 2023 10:07:30 -0700 From: Cong Wang To: Ma Ke Cc: steffen.klassert@secunet.com, herbert@gondor.apana.org.au, 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: <20231007005953.3994960-1-make_ruc2021@163.com> X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 08 Oct 2023 10:07:39 -0700 (PDT) X-Spam-Level: ** 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? Thanks.