From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4CC3606A322 for ; Fri, 4 Dec 2026 15:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=nZ9FnP8g 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:MIME-Version:Date:Message-ID:Subject:References:In-Reply-To:CC: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=kwJNkxU0WxPeh2x1eupwIU4NQrXRdTXvd5NQUCgb2r4=; b=nZ9FnP8gHQHNVO gZQapuIbXhnN+MJmbM5sxEZSnks4vwUnoiMamdg1d4p/esspYXkunpKm0pteRxiSsdjmoGXD9l208 STGNQf6LGnAckqHje1uYjrFQW9O2lyndM5UbWhhANK/EUAHG6dVZJpxC71bt/w9VOgzH3TE4qIBe9 t7QjuAm25faOSgwxOKWJ/X5qdK/fk4UU8K5gKWsO8gQgIPyIeMwNQH4gHCEZOtHmtVtKROfCMxUae o6A1zje5oH4nTqB2oEILtsLpXO0FmA74EWLmD7L9iMVjV8mdvn/t8WfAGq71dAZh93D9LYBCZdqmz n80pIGSy8/x1iYQm3aQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZVM1-00000000n3M-2VDM; Fri, 04 Dec 2026 15:37:46 +0000 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZVKo-00000000mqf-10T3 for linux-nvme@lists.infradead.org; Fri, 04 Dec 2026 15:36:38 +0000 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B4FVhbW259052 for ; Fri, 4 Dec 2026 07:36:29 -0800 Received: from mail.thefacebook.com ([163.114.134.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 4jbq7kk0u2-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 04 Dec 2026 07:36:29 -0800 (PST) Received: from twshared121089.14.frc2.facebook.com (2620:10d:c085:108::4) by mail.thefacebook.com (2620:10d:c08b:78::2ac9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.57; Fri, 4 Dec 2026 15:36:27 +0000 Received: from devbig197.nha3.facebook.com (localhost [IPv6:::1]) by devbig197.nha3.facebook.com (Postfix) with ESMTP id E446F300D15BA; Fri, 4 Dec 2026 07:36:04 -0800 (PST) From: Keith Busch To: Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , "Shu Takahashi (Velcore Consulting Inc.)" CC: Max Gurtovoy , In-Reply-To: <20261204115532.59548-1-kq5y@proton.me> References: <20261204064802.42918-1-kq5y@proton.me> <20261204115532.59548-1-kq5y@proton.me> Subject: Re: [PATCH v2] nvmet: bound the admin queue size of a Connect Message-ID: <179639856493.1243276.223868296366106574.b4-ty@kernel.org> Date: Fri, 4 Dec 2026 07:36:04 -0800 X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13.0 X-FB-Internal: Safe X-Proofpoint-Spam-Details-Enc: AW1ha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2ut3YA:10 a=zZCYzV9kfG8A:10 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-04_03,2026-12-03_04,2025-10-01_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_073630_326581_F8F5FDA7 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.4 (-) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, 04 Dec 2026 11:55:42 +0000, Shu Takahashi (Velcore Consulting Inc.) wrote: > Since commit 143667ee9a9c ("nvmet: compare mqes and sqsize only for IO > SQ") nvmet_install_queue() accepts any non-zero sqsize for the admin > queue. Transports size per-queue resources from it, and nvmet-tcp can > allocate an excessive amount of memory for one connection. > > The discovery subsystem can be reached without authenticating to a data > subsystem on ports that permit plaintext connections. An oversized admin > queue can therefore exhaust target memory before access to a data > subsystem is checked. > > [...] Thanks, applied to nvme-7.5. [1/1] nvmet: bound the admin queue size of a Connect commit: 951860bb8701ce3ccfec41364867784fa950a345 -- Keith Busch