Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1242533rda; Mon, 23 Oct 2023 07:00:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH34G0lZtkZLLJxUWBsqMjW6Aa+ZN2ghAOGL6XDCTW7z0xJkKh43kOgYG+MYNB12yojLzCc X-Received: by 2002:a05:6a20:8414:b0:17b:9d92:7d0 with SMTP id c20-20020a056a20841400b0017b9d9207d0mr13649229pzd.52.1698069652340; Mon, 23 Oct 2023 07:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698069652; cv=none; d=google.com; s=arc-20160816; b=nhWy5oSCrwPRtZbM1lZogheFhdNL3Sd6Hn0Dei7BYidtMM1PF15YDw4uRTg8q7lQB1 +uQbstMNvN4MneOxdg8MyikM+azf5tMsd2Gb2BFC3jpu8UNlDZWCe3BPbT5lxL/au6py 7rb5xIUCO+ICP/P/8OCaA4OzeROuPNsp0F64BgpISInDGkm6VsQ+0v6IubluD2oPuAAm +X+sr3cugDzGpva5jI6mdxpveEyMeBUrLYMvN7ho3GSnTIbhakqjLOaeQGfFz5gA+t47 zoOxV6P1YQJkH26u0BDtVu+kvowsi2H4SmL1shCJ5ug27XVajec7TbNMYfYehnKgUp7J M05w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pq71ZFQSmqDBvaHKCanMYuz149NpjN7yRS2IvpkR2UA=; fh=nK/B2gIzvYPsKU0sJgdKEVdz5eoE00hHt727sEimwsQ=; b=idi5s/0uQR3xMJOaFNB1gEaLWmWJPdJ7MU2JiFutbivqr5B+Bz+7IVUrEa2hskCZym ai4NFzRtAv9y21osjywf64u2KsOo9O97BGzRapvQfCAiB7Rh5+iM72uARUvwWQRYo1V0 L8VSDu0uDRbjJNLgch6c5nh0VmmodQp4wkXKALgxBL0qHwVMjvDm8+d8fISKQEGy4xyR t2Mg3sf/qfyrX0EPeYd+bt7j7cRiPfny/rdVXGzpghHcVSAkEDdUxZv5UC3rroplPrnY xdouPyZi+C0/9rkrWNPinyAL3R5/RKlBQqXz/kkac5HEDJdMkHlYlqhvKPdUAKW1hxQZ /46A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=N7uhrotP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id b5-20020a056a000cc500b00690a7aefa50si6551958pfv.325.2023.10.23.07.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:00:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=N7uhrotP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7CEA8807C5E9; Mon, 23 Oct 2023 07:00:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbjJWOAU (ORCPT + 99 others); Mon, 23 Oct 2023 10:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjJWOAS (ORCPT ); Mon, 23 Oct 2023 10:00:18 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22241110 for ; Mon, 23 Oct 2023 07:00:15 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DA0D124002A for ; Mon, 23 Oct 2023 16:00:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1698069612; bh=iFQQRi702AynL/9DH88qNRr40fv94tsGYlUkbNd2M+0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=N7uhrotP+wekJVq0e7CpzAlPHahMV8F+OMntufbLbW3Apeuc82xdLHC/ivS6frjlI FtZU50WLmF+P4EpVqOlcRIEwBlmpXQ4NoloC0RngwitC7wI7IMkAlFvviPnRU3lux0 gkt9JhMCjyKO3tmW1pbM4JwqfsLlVxTZwP0w+76XGRG/9yFhTbgtrAZ/3GXwkZ3/Fs 5GZfz7rVMcCxN0wVkYLZVhB8fFM3T19qpCc5HLIH+m4dou98HTq4/SwgbT8lMt8TfO oBGMYwQzm1cdQMwXPjdgdkBxZdD9n3Wo0dprvZIibCeuzpmGfkF8Xmz+Np0qxT63H0 jaGk7dWzvLsSQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SDcJp23Dnz6tvl; Mon, 23 Oct 2023 16:00:10 +0200 (CEST) From: Mark O'Donovan To: linux-kernel@vger.kernel.org Cc: linux-nvme@lists.infradead.org, sagi@grimberg.me, hch@lst.de, axboe@kernel.dk, kbusch@kernel.org, hare@suse.de, Mark O'Donovan Subject: [PATCH v2 0/3] nvme-tcp: always set valid seq_num in dhchap reply Date: Mon, 23 Oct 2023 14:00:00 +0000 Message-Id: <20231023140003.58019-1-shiftee@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 07:00:27 -0700 (PDT) The first patch is a small unrelated fix which makes it clear that the response data section of the Success1 message is not optional. The second patch removes use of the host sequence number (S2) as an indicator of bi-directional authentication. The third patch causes us to always set the host sequence number (S2) to a non-zero value instead of the 0 value reserved for the secure channel feature. Mark O'Donovan (3): nvme-auth: auth success1 msg always includes resp nvme-auth: add flag for bi-directional auth nvme-auth: always set valid seq_num in dhchap reply drivers/nvme/host/auth.c | 13 ++++++------- include/linux/nvme.h | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) base-commit: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 -- 2.39.2