From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF4EFF8E4A5 for ; Fri, 17 Apr 2026 05:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gK7Ebbn3E5XrQfQA5dZs9AyY4fK/9oe7aLDqtF127dE=; b=3aQF53stu4M8COE2NAKcHVbrRs TBErEbW0xcuxwt2/5/+yLuo9bPwWgUzVc8NSVjrdout2YR5WVbnNO9iM/pV0fF5d1hRsVPyVMndRb QnrE3QUvXVg4vsAQrNiWQyWm913lYJH2rBHZA72njAc6MyGzJ0Xxgwsy+5Q/0A0q7WAyd8xD7BKOb QqNfuoR8g8sEm/bg6o1ApXneTWBbI5KQEcixt/eQ57V1JoczRMhZsNKvuLYLZkfACuCZExisRnGGe RolW+QBfQT/7mRRoQNyCJQeyZc3riyBafwlZI5DWrmkgWAX3zqxYiDKc4eecSGK506srWmM3odbqR vvQpvnvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wDbrD-00000003TvT-1dmj; Fri, 17 Apr 2026 05:35:11 +0000 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wDbrB-00000003Tv6-0CH2 for linux-nvme@lists.infradead.org; Fri, 17 Apr 2026 05:35:10 +0000 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1EB956A977; Fri, 17 Apr 2026 05:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1776404107; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gK7Ebbn3E5XrQfQA5dZs9AyY4fK/9oe7aLDqtF127dE=; b=saaCVjspeGPzOl3ZzxNUvqSy+uTMCbpUY0W2Xxu9SDJj3KTDuou97wXxGcM+RH5LUJrvOx kTlAGhiI/hstLDLxf9D9NCZgv671APwMno8+sqEjAKLhV3+cEBvcxz5H50ns6GR6bCmbc9 yQWnW7Bee6gwd1Mky7lQ8x06GDT2xSs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1776404107; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gK7Ebbn3E5XrQfQA5dZs9AyY4fK/9oe7aLDqtF127dE=; b=0rnlf36FWNY85Xk4U2X20CmpSiM7t+PKmuqn+/88qOnm4iYNxbvd7Q0Eqg5378iNBakTeV 1yhfOAQFxzRrboBg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1776404107; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gK7Ebbn3E5XrQfQA5dZs9AyY4fK/9oe7aLDqtF127dE=; b=saaCVjspeGPzOl3ZzxNUvqSy+uTMCbpUY0W2Xxu9SDJj3KTDuou97wXxGcM+RH5LUJrvOx kTlAGhiI/hstLDLxf9D9NCZgv671APwMno8+sqEjAKLhV3+cEBvcxz5H50ns6GR6bCmbc9 yQWnW7Bee6gwd1Mky7lQ8x06GDT2xSs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1776404107; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gK7Ebbn3E5XrQfQA5dZs9AyY4fK/9oe7aLDqtF127dE=; b=0rnlf36FWNY85Xk4U2X20CmpSiM7t+PKmuqn+/88qOnm4iYNxbvd7Q0Eqg5378iNBakTeV 1yhfOAQFxzRrboBg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 5EC6B593AE; Fri, 17 Apr 2026 05:35:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id yKswFYrG4WlEFAAAD6G6ig (envelope-from ); Fri, 17 Apr 2026 05:35:06 +0000 Message-ID: Date: Fri, 17 Apr 2026 07:35:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] Revert "nvmet-tcp: Don't free SQ on authentication success" To: alistair23@gmail.com, hch@lst.de, sagi@grimberg.me, kch@nvidia.com, kbusch@kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, yi.zhang@redhat.com, mlombard@arkamax.eu, linux-block@vger.kernel.org Cc: shinichiro.kawasaki@wdc.com, Alistair Francis References: <20260417004809.2894745-1-alistair.francis@wdc.com> Content-Language: en-US From: Hannes Reinecke In-Reply-To: <20260417004809.2894745-1-alistair.francis@wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWELVE(0.00)[12]; FREEMAIL_TO(0.00)[gmail.com,lst.de,grimberg.me,nvidia.com,kernel.org,lists.infradead.org,vger.kernel.org,redhat.com,arkamax.eu]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[wdc.com:email,suse.de:mid,suse.de:email] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260416_223509_236010_5C2AAE1F X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org On 4/17/26 02:48, alistair23@gmail.com wrote: > From: Alistair Francis > > In an attempt to fix REPLACETLSPSK we stopped freeing the secrets on > successful connections. This resulted in memory leaks in the kernel, so > let's revert the commit. A improved fix is being developed to just avoid > clearing the tls_key variable. > > This reverts commit 2e6eb6b277f593b98f151ea8eff1beb558bbea3b. > > Signed-off-by: Alistair Francis > --- > drivers/nvme/target/fabrics-cmd-auth.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich