Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3136189rdb; Thu, 16 Nov 2023 00:44:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IESgfHu4iVY+WbsP9P4VEaxw20x0kPJWUH1Owhb90zCFGBLzMg+nc8H8IsZsRSd92fiMeGu X-Received: by 2002:a05:6a20:7288:b0:187:5db4:168c with SMTP id o8-20020a056a20728800b001875db4168cmr1477081pzk.31.1700124270744; Thu, 16 Nov 2023 00:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700124270; cv=none; d=google.com; s=arc-20160816; b=ws07IZO0ZvYOyC5B2ZwysqcPl5ieTUqvpc4f1TtwxWyJvsrVb7Vt+EHMlA2wJdKfUg x6OLT2xFClwWivIRmPlQYqATLHpMtRospEHprAmtEeImdatoX/EclnjLCTbZ9rdqdmS7 ZUxAfnxxWzaeXgp9mERvHxRutB3GoNqOCmiyefpfLQlyrJZLPIDSK3HbclleSE8PwY3B 2EblbtLqQ2ASLW/Bl90Rb2P0bXMSToJ8q3Rs4i5IFtGKtkhG2duhwWfCN6KomvP8uZFv eJ3vsmqe1b4nPc0qGeHaY92FC6RZQOTaPVynCs8anHvNLS61ySaQlZuUo8mFWlvtU616 PEgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=15Ckw1RtaRbBRvnRVWh1ML35SM8E8zgJILg29jp+Kk8=; fh=XHuoB3nqpLvrKOTcILQnYVzFapdeHsHFBKcJIxFSYWM=; b=nlguFTNEIp3IAPtalHB20oZ4BDTN7j/eHw1ucCLJ4+bU2PdylQ8siyqgdHpHS6qHYA SOdFY0qWJH7uxmsGcuRjwTv6ZcV6ZQeXufu2DokSszGNwNgcUkgBCDu8tTDhSAjQIR83 2PScg+xZcJzHD6j77WJhTjWuUS95dQrqkaU3CNawLw5gXO93RRoelEoloaJpx+vAfZ4k YFO57n8pTsvRt30GATVbtyvuSAgIFUBrl/y/4UtSuzmI1U7TRK/r60nLgvOQgWk7zZP+ c1KrC/sSqqryTPBZhPAVsiI1BZnIEeigl/uIhDNkJwEVAv87SB5HEoGH84+/fkt5WJaX mf4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ba1PJ5xS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cb4-20020a056a02070400b005859b2d8d7asi12909958pgb.4.2023.11.16.00.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 00:44:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ba1PJ5xS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BF10B818F69A; Thu, 16 Nov 2023 00:44:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344958AbjKPIo0 (ORCPT + 99 others); Thu, 16 Nov 2023 03:44:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230228AbjKPIoW (ORCPT ); Thu, 16 Nov 2023 03:44:22 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B9D1A1 for ; Thu, 16 Nov 2023 00:44:19 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-54366bb1c02so5411a12.1 for ; Thu, 16 Nov 2023 00:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1700124257; x=1700729057; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=15Ckw1RtaRbBRvnRVWh1ML35SM8E8zgJILg29jp+Kk8=; b=Ba1PJ5xST+5KadfEw0wJqatM9FQU51DTPhKxQiGpsd+JUsP3bAAkvIykt51SrqpHgw mLyMv+vBW6hiFlhmXZUOuv10NPzKiz2OrTWdYHvlNOlrOB9pfxrfU//i0ysbxPLClaNy 8m8aVTK3SFXA/coHCmXKYpk0GVD1z5RrkeqspUjYDxyTl6TCjfmjuB0qRug22b90luVm q2Hp6rDBPmUpUYUCEDBKR7XcrWWwYPoTqWWrfTe0BLl64RteN0VqDm4RoZ+toC7DeTYA BPUf0wxU0U2EwAQXCulAnpXmpm3kjarTXPTkz/tAynHRbaZ6L/hUcFNZLo57PH0dhiFr Qr6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700124257; x=1700729057; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=15Ckw1RtaRbBRvnRVWh1ML35SM8E8zgJILg29jp+Kk8=; b=ZQfBCqfnXpDCka60Ci4WOYY+fNF65HeMYYXh3AijoBy6qWtrXiUAZlI/y/IahrvOO2 WeAeF3EFy88AJdtL7sx1OTPqaHPj9dANSBhvunAlgwp1MySwRf3zvfwn8B6wzVU3PARL 9Eor6uLghm93IF8R8IsCM+cC+D/hxobRYbvMnNbaZiJ3fr0gdC/iZF3IO0iNpvgMvEYZ i01b/mdVFz0Ew/2R0x7ERdkCXOdGSUhtfuH+y6wiU4oM7npHrEzqjhx0Mxr8a8VnUAoD fgLz7uYuMFvboQ4OunM5Xrrdf/FtsDe8iReNm6dPYWxfQTWs19OvhXVRT5rTpYNVO7PR NXLw== X-Gm-Message-State: AOJu0Yw3M7m7mD2b8ehKOXfyKp8Rbs5DFMRBMJO6MV3b8oY6QRoAlSEY XVA939BJr5gBsImg6OptDWynqPvkpsaNU1Y+Wuu+RA== X-Received: by 2002:aa7:c592:0:b0:545:2921:d217 with SMTP id g18-20020aa7c592000000b005452921d217mr81119edq.6.1700124257443; Thu, 16 Nov 2023 00:44:17 -0800 (PST) MIME-Version: 1.0 References: <20231116022213.28795-1-duminjie@vivo.com> In-Reply-To: <20231116022213.28795-1-duminjie@vivo.com> From: Eric Dumazet Date: Thu, 16 Nov 2023 09:44:03 +0100 Message-ID: Subject: Re: [PATCH v2] net/tcp: use kfree_sensitive() instend of kfree() in two functions To: Minjie Du Cc: "David S. Miller" , David Ahern , Jakub Kicinski , Paolo Abeni , "open list:NETWORKING [TCP]" , open list , opensource.kernel@vivo.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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]); Thu, 16 Nov 2023 00:44:29 -0800 (PST) On Thu, Nov 16, 2023 at 3:22=E2=80=AFAM Minjie Du wrote= : > > key might contain private information, so use kfree_sensitive to free it. > In tcp_time_wait_init() and tcp_md5_twsk_free_rcu() use kfree_sensitive()= . > > Signed-off-by: Minjie Du > --- > You have not addressed my prior feedback. 3) You forgot tcp_time_wait_init(), tcp_md5_do_del(), tcp_md5_key_copy(), tcp_md5_do_add(), tcp_clear_md5_list().