Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1264484rwd; Tue, 16 May 2023 14:31:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64eXBzSOjY4BNj5hA3BqEOGkyCFp3jRaURmNn5C2WCQE3DmiLEK/SS3/EcBQDAw7ww9Bf6 X-Received: by 2002:a17:903:451:b0:1ae:44f0:82d0 with SMTP id iw17-20020a170903045100b001ae44f082d0mr2037039plb.43.1684272696924; Tue, 16 May 2023 14:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684272696; cv=none; d=google.com; s=arc-20160816; b=BMUGuC3yUxcFUHr8tP1NjmT0IEaUiKYFDIs1lHlpKAANPe9PO6xB/CIugUkRRO6z69 plUV6fw6q06k0BxcYvQYOIeC5DHX9LO0TUR8yHXJ+/mK+v0FMYFdrqJc5qKJUo83TVID fZUvA5APZ9zoQtY7Pww+rCrt50lNN8uiErYj7pPfMBtdFuuRu4RbFLTrmE3YHivKO+LR MHVCqPbQurhCA7ftvSRqhzPQ1hjtfDsYNygwUiFibduL1GuJ6scAkkV6ebd+nuIonn/M Zg9aKv/9mDXMMYjZSRz7sIrjTRYPhCzj+lK6pgAldOr/js4NIUvaLpBmzvNdIwl3wSXA msXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Nn2bizJ7lqE42WXHeDipEyNKCkOPW5WMqOPndkycDXQ=; b=jvr9XJ6UZKJOQnvYvS+RbSawNL16gblmNO6Z3CP1+5cmKlbBbtl8hnstF0osFwmhKE r9+fDsrLHiOWRBeCRwq6B1Murdcu7Dq6+sLxaj24FDJdNWYoQCScseb3T24mhCkYBll0 EYhee1SSWkJmqelEqoe/8Nq39a2rdT8fJZXDHfgV4JyWRzG1tOBtUktnGFhx7htL6Duw 2OOSiG7yarnBEtZ0xKZuhdKqkOPOYQN0ApdCeyOr4xFHIkdNG3uExoSf57LVin8aMKnO bSnmRcDvYQ4FefvoUHk+baMpu0wgbobEzOCSgT0K0epdoWT/RrRN2B++j8l+2jXAHg05 V2OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tzW9zAGR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a17090a440100b0024df7c1b9e7si75175pjg.151.2023.05.16.14.31.20; Tue, 16 May 2023 14:31:36 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tzW9zAGR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbjEPVZY (ORCPT + 99 others); Tue, 16 May 2023 17:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjEPVZY (ORCPT ); Tue, 16 May 2023 17:25:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B83B61B7 for ; Tue, 16 May 2023 14:25:22 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 190A663F81 for ; Tue, 16 May 2023 21:25:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C94D9C433D2; Tue, 16 May 2023 21:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684272321; bh=Nn2bizJ7lqE42WXHeDipEyNKCkOPW5WMqOPndkycDXQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=tzW9zAGRiFTjkN39qPyB0UmuWlT9kSpf+VhurXCPG4N+pUNcLfQeHvGfF0/Uy4tf+ wOnRW5nVEmQwqzlYVsq/Bte3d6ym6y5Ek3+YYTvE/70R1bWw8VBpy1VbLIW7MBmGLf GvZag7mzrQYfv7eT7AqNMi29W6tUD2ytlji1aQDqKhWIPxAUErIPtNZx0xt+1K9yhe B+NGOkT4PohGP/WCrAs7R0knW/MvYW9jBEEh+mEx2pEMY3GviiJFgiTXyQbfQZFOFi xCa77qw87es81sFDAyf2hQqlS+aqttr5SSajZ2yT+fM+3GFtEFwkT4yJqt0TLPwrja yhODlCYAQQWHg== Message-ID: <08b1fc12a271688c908ad615c08f910c3ec19672.camel@kernel.org> Subject: Re: [PATCH v1 26/27] SUNRPC: Set rq_accept_statp inside ->accept methods From: Jeff Layton To: Chuck Lever III Cc: Jiri Slaby , Steve Dickson , Chuck Lever , Linux NFS Mailing List , Neil Brown , Alexander Ahring Oder Aring Date: Tue, 16 May 2023 17:25:19 -0400 In-Reply-To: <0DEDF045-8C95-463D-B5E7-D2A3DF3230FC@oracle.com> References: <167319499150.7490.2294168831574653380.stgit@bazille.1015granger.net> <167319546521.7490.43383592461162363.stgit@bazille.1015granger.net> <3e34a2dc-7d72-b719-248f-e78361db8a5b@kernel.org> <4AB1ED03-57C8-42C1-9A04-6C224E98EDCC@oracle.com> <569be8e6eff7af373e6baaf2170edb8a8c52f262.camel@kernel.org> <0DEDF045-8C95-463D-B5E7-D2A3DF3230FC@oracle.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 (3.48.1-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, 2023-05-16 at 19:25 +0000, Chuck Lever III wrote: >=20 > > On May 16, 2023, at 3:23 PM, Jeff Layton wrote: > >=20 > > On Tue, 2023-05-02 at 14:14 +0000, Chuck Lever III wrote: > > >=20 > > > > On May 2, 2023, at 7:01 AM, Jiri Slaby wrote= : > > > >=20 > > > > On 08. 01. 23, 17:31, Chuck Lever wrote: > > > > > From: Chuck Lever > > > > > To navigate around the space that svcauth_gss_accept() reserves > > > > > for the RPC payload body length and sequence number fields, > > > > > svcauth_gss_release() does a little dance with the reply's > > > > > accept_stat, moving the accept_stat value in the response buffer > > > > > down by two words. > > > > > Instead, let's have the ->accept() methods each set the proper > > > > > final location of the accept_stat to avoid having to move > > > > > things. > > > >=20 > > > > Hi, > > > >=20 > > > > I bisected to this (4bcf0343e8) > > >=20 > > > Assuming you did the bisect on the NFS server's kernel? > > >=20 > > >=20 > > > > as it breaks nfs3-only servers in 6.3. I.e. /etc/nfs.conf containin= g: > > > > [nfsd] > > > > vers4=3Dno > > >=20 > > > Note: Changing the settings in /etc/nfs.conf had no effect > > > on my server, so I effected the change by stopping the > > > server and poking values into /proc/fs/nfsd/versions by > > > hand. > > >=20 > > > Steve? > > >=20 > > >=20 > > > > The client sees: > > > > mount("10.0.2.15:/tmp", "/mnt", "nfs", 0, "vers=3D4.2,addr=3D10.0.2= .15,clientad"...) =3D -1 EIO (Input/output error) > > > > write(2, "mount.nfs: mount system call fai"..., 45 > > > > mount.nfs: mount system call failed for /mnt > > > >=20 > > > > And the kernel says: > > > > nfs4_discover_server_trunking unhandled error -5. Exiting with erro= r EIO > > > >=20 > > > > I reported in downstream as: > > > > https://bugzilla.suse.com/show_bug.cgi?id=3D1210995 > > > >=20 > > > > It cannot be reverted cleanly on the top of 6.3. > > > >=20 > > > > Any ideas? > > >=20 > > > I can reproduce a similar problem. Network capture shows > > > that the server is responding with NFS4ERR_NOENT to the > > > EXCHANGE_ID operation, and the client kernel log says: > > >=20 > > > > nfs4_discover_server_trunking unhandled error -121. Exiting with er= ror EIO > > >=20 > > > That's not the failure mode I expected given the commit > > > you bisected to, so it might not be the same problem you've > > > hit. I'll troubleshoot this and send a fix for testing. > > >=20 > >=20 > > Alex hit this problem in testing too, and I took a quick look. > >=20 > > In the attached capture, the client should have gotten back a > > RPC_PROG_MISMATCH error, but the server has recorded an extra successfu= l > > accept state before encoding the RPC_PROG_MISMATCH error, leading to a > > malformed reply. > >=20 > > I think that the problem is that encoding the accept status too early > > means that we can't properly handle failures from the pg_init_request > > call. > >=20 > > Chuck, any thoughts on how you'd like to handle this? >=20 > With this: >=20 > https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?h= =3Dnfsd-fixes&id=3D29cd2927fb914cc53b5ba4f67d2b74695c994ba4 >=20 > I plan to send the fix to Linus tomorrow. >=20 >=20 Oh! I hadn't seen that cross the list. Did I miss it? --=20 Jeff Layton