Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp835462imi; Fri, 22 Jul 2022 10:27:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqLHjZA6JBWGrWcMnQ4x1u7RVGkHRD5N1b3hHWJ11RBkEZcRdJrcAZX61qXtxLT0BtMVe2 X-Received: by 2002:a17:907:9715:b0:72b:340b:9059 with SMTP id jg21-20020a170907971500b0072b340b9059mr733678ejc.384.1658510839337; Fri, 22 Jul 2022 10:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658510839; cv=none; d=google.com; s=arc-20160816; b=yZOf40K3TQEpf5Hn6iqV+pfSjvXNAt9ydzTLPXBgZh+FUXVv5vG4NUUMm1K0viYF0F 6XE1HsKJmLCwM1lBS8J/iz30qPcDPMLgDCd0Si66uXGX4ET7ZTelTNJKA4iaOqY07Hrx eP9HiPJ0kzJEaDbL0Y0OY8UYV3Lu+3kFeBAxX/SxaDRijZhwRylNtmg12jVYwv19/y0X 0C/WYqY7ea1hsF8Wk4yH1mCVddPb+sTwt5MAF8tAYF9MJxVIhX03ZSkrZhedYAiSg+iL yB+1D64+l8GHZc/l3okNeYGzq1Gozo//ytu6DiHJyIYnvsIUflGUCllAhMnrliX9dBr4 jDtA== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject; bh=x5jEuvPCV/z/5AexbqzB0oXw/QQyWUpykebdDWfRPG4=; b=A+W2ukj40avB/Ur5iBP+YCY1nbQFOU1ObAST2EbPwNp9P2ikQacQGoJ2iC9NiTz99q 8w9Ih9SJbDYjo95Jh2Rxxq8hNWYoSi8PZXxeac6K3LVoXYzRNz2OfZ6DYXXlnb/XhWIU WHiQ40BF9hb4eoI7kKEnXkbNJkAm21jgnOVNtqX0XLBIdxCxiZBdoXQCijRREhx3UpIg JTxPWWu+gDnzRimKfHmePG82I0cwq+4b2T+P6U1bF/V1TueNj6EjHhNcsAQKuz2s1owQ jgfvj13wAo/hEV352vJXbpDdV/9HSneXXqyCQA8RSnnq4WDgMoj93dFZgL5CPpwyfbTH 30VA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p22-20020a056402045600b0043aa021096dsi5979615edw.378.2022.07.22.10.26.52; Fri, 22 Jul 2022 10:27:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235970AbiGVRZl (ORCPT + 99 others); Fri, 22 Jul 2022 13:25:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235909AbiGVRZf (ORCPT ); Fri, 22 Jul 2022 13:25:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 627B674DDA for ; Fri, 22 Jul 2022 10:25:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0E841B8296E for ; Fri, 22 Jul 2022 17:25:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D116C341C7; Fri, 22 Jul 2022 17:25:30 +0000 (UTC) Subject: [PATCH 1/4] SUNRPC: Fail faster on bad verifier From: Chuck Lever To: anna.schumaker@netapp.com, trondmy@hammerspace.com Cc: linux-nfs@vger.kernel.org Date: Fri, 22 Jul 2022 13:25:29 -0400 Message-ID: <165851072945.361126.5868156674844369539.stgit@morisot.1015granger.net> In-Reply-To: <165851065336.361126.17865870911497306083.stgit@morisot.1015granger.net> References: <165851065336.361126.17865870911497306083.stgit@morisot.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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-nfs@vger.kernel.org A bad verifier is not a garbage argument, it's an authentication failure. Retrying it doesn't make the problem go away, and delays upper layer recovery steps. Signed-off-by: Chuck Lever Reviewed-by: Jeff Layton Signed-off-by: Chuck Lever --- net/sunrpc/clnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index b6781ada3aa8..a97d4e06cae3 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2650,7 +2650,7 @@ rpc_decode_header(struct rpc_task *task, struct xdr_stream *xdr) out_verifier: trace_rpc_bad_verifier(task); - goto out_garbage; + goto out_err; out_msg_denied: error = -EACCES;