Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9098574ybl; Fri, 17 Jan 2020 06:20:49 -0800 (PST) X-Google-Smtp-Source: APXvYqw/Ju6Zmn9R/XMsuqK7ahn/GWDVHMgWTvGVWAvxnRAudgwJBn5OLRjoLojzFpdFQZx3EEE7 X-Received: by 2002:a9d:6c92:: with SMTP id c18mr6346996otr.157.1579270849339; Fri, 17 Jan 2020 06:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579270849; cv=none; d=google.com; s=arc-20160816; b=Zx7omotd43NE0tZnRoTOKUCjefvkk8jFr+BPMG2OXtSibO4vV7M8jFw2a9+vzIhH+M DxZWerergMTQeAglsZcJuXW+XzRIAaDjlcwuXULnIPWxUqbCj5ql4s2KYo9t5LKLjnFm v3br0pZ6OD3at9fBLMNXj+5UHV79VLuLukLQJhbRKNLPXx+eDabNPJtQ6nwX8zGuKqPS 8xQp+53nxP6Pg/79SbvSNufW3h1g0gQJkSbH563nSRYj6NOx0nXEXyfkvzF7oa1YjSNM LR0lRl/MF+VKHMnZeGTBNuXZe9JRj7sa04gBCAyIkTrzR0Z3ZQYYrfhz3bp3zrD07dW2 ag2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :dkim-signature; bh=eeEZ0qUeju7e6fsOK/2xeFdlefM8ZRogr0yjS7mThiU=; b=ZckqzxUHfuA6WDglKiBeBqvmBQu0vahVmNtWW63uLu8sKUoi3qk7r1GfAd6nQneNyn diYV7ScaipHZQTBp2l+eLDx2wvAVgs73jE4mQdGSdRb8+bllFbt1yteMCWtTKSWbFMT4 IFm/9Khk3fsT+WdaCdvMIdoJfEAcSEEKQySM99WzQNl0bZaUTVVWze8nRF6kf2zPE8sZ 5eSwY4t3ZE6Pml0Vex5bwKMtexxXUmZpfO3aqs+N9yzfKBnnm+utV/5fFOjXfvaqDP1d EpFdFpPp0V8bxCTqJHNS/23FTsU4f+VNZAJYJvgLgP+xpTUs+WPil4mhkiW5TaDheoQZ TT1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qe5ZKjnt; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si14015017otn.241.2020.01.17.06.20.31; Fri, 17 Jan 2020 06:20:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qe5ZKjnt; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgAQOUR (ORCPT + 99 others); Fri, 17 Jan 2020 09:20:17 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:23492 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726574AbgAQOUQ (ORCPT ); Fri, 17 Jan 2020 09:20:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579270815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eeEZ0qUeju7e6fsOK/2xeFdlefM8ZRogr0yjS7mThiU=; b=Qe5ZKjnt+5PO9FdaTbiRWcGO5qb9bZzwkMIGVzRcueIQ3FgTERlJLQpf0+i97egpT9zDa1 xIGJTiioQqgocQG8RaUqHb0pFbC/Ik1voUxyHhx2uL1pAQ4fTXqFOJMcKLc7WbPCejY7QY dhpi1RmpPF0rzIM+gYS5rUIKQD/Qttg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-436-r2Rpb7Z4N9ao2YSI1_W4aQ-1; Fri, 17 Jan 2020 09:20:11 -0500 X-MC-Unique: r2Rpb7Z4N9ao2YSI1_W4aQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 711248010CE; Fri, 17 Jan 2020 14:20:10 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-49.rdu2.redhat.com [10.10.120.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id 24CD3845C6; Fri, 17 Jan 2020 14:20:04 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: To: Krzysztof Kozlowski Cc: dhowells@redhat.com, Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, "linux-kernel@vger.kernel.org" , Al Viro , Scott Mayhew , Arnd Bergmann Subject: Re: [BISECT BUG] NFS v4 root not working after 6d972518b821 ("NFS: Add fs_context support.") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <433862.1579270803.1@warthog.procyon.org.uk> Date: Fri, 17 Jan 2020 14:20:03 +0000 Message-ID: <433863.1579270803@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org You seem to be running afoul of the check here: case Opt_minorversion: if (result.uint_32 > NFS4_MAX_MINOR_VERSION) goto out_of_bounds; ctx->minorversion = result.uint_32; break; which would seem to indicate that the mount process is supplying minorversion=X as an option. Can you modify your kernel to print param->key and param->string at the top of nfs_fs_context_parse_param()? Adding something like: pr_notice("NFSOP '%s=%s'\n", param->key, param->string); will likely suffice unless you're directly driving the new mount API - in which case param->string might be things other than a string, but that's unlikely. It might also be NULL, but printk should handle that. David