Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8570787ybl; Thu, 16 Jan 2020 19:53:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzfEvf1XdVvNxA2wXzUYzGWDQL2bGuK6Lhy1kb9VVjytoT0qIJUsQOY3KNiZKt3xSu2ZRGt X-Received: by 2002:aca:5795:: with SMTP id l143mr2016371oib.27.1579233199534; Thu, 16 Jan 2020 19:53:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579233199; cv=none; d=google.com; s=arc-20160816; b=B7MU+/T2jLXeTOuxCciXrX2xijyQAD1QLLGEo/5bCEyeDrJfAy88nuSC2WZAJ638xO YuWvNtZxzLhJdf7XGjwptzNhFlPgBT6vVdIlX6uIoos7hENQ0hCfACv6bOtvT6aLmvAL +zAKeDbxgHcilVBHRdmdZpyOCQidgyq20rRylOrwQ6MghT8RP/7UB3hRJPeZ0GgwTsSN TRLWvjUwPbNSnldwYb8lnPCd9I1QRIT629FyOp7awZUOPFcCTNM1a3SNmZxgT0eWqOMC 5jSotmTdIHEbsR6isQI9yOzG7/45OrL7aRW1MK5QOMzxdB7rW9rfPUNwiB2Hkfyw+SFC kt2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:in-reply-to:mime-version:references :message-id:subject:cc:to:from:date; bh=q9R1IBjq+KII9pA83cL3LGkwFasOz68YIflP/p31764=; b=k/CXU1L/eAnFFvpxpZMCNl26Uc0mfRtjkOJhvSxa2nje0H6nsPLH8ydrJMttGjKD88 ExaMFyajiyShZyVDLWVZySUL+POFNE/O/hGKg5zu/ApJQoA3CFQn4WUPOy7tWMliHSbD CnVX1iejXB4xYWSFharJHRyC11kYqv+Ym+nZ8yy9nsEblchh37vYNtIpF7emm8j8zmV4 xrHwFw4tD8FVB9nWkgGzJFZei/+PivY/OGq8WuUcrtpISZNYkKMM2DVADbMmpHh2gdEt vBrwr70dQwdt7MJjCXjdxi0JgE3u1a9Vhgai5XMhsyo7Ubl2eHbDetttDZ2BAVhOPvIj +nkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (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 x11si12698460oic.185.2020.01.16.19.53.08; Thu, 16 Jan 2020 19:53:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733186AbgAQAtW convert rfc822-to-8bit (ORCPT + 99 others); Thu, 16 Jan 2020 19:49:22 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:37473 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726378AbgAQAtW (ORCPT ); Thu, 16 Jan 2020 19:49:22 -0500 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-143-KhgvyvhuP5WGglsW0BZP2w-1; Thu, 16 Jan 2020 19:49:18 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8887C800D41; Fri, 17 Jan 2020 00:49:16 +0000 (UTC) Received: from aion.usersys.redhat.com (ovpn-126-23.rdu2.redhat.com [10.10.126.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E7C8481200; Fri, 17 Jan 2020 00:49:15 +0000 (UTC) Received: by aion.usersys.redhat.com (Postfix, from userid 1000) id 278561A006B; Thu, 16 Jan 2020 19:49:15 -0500 (EST) Date: Thu, 16 Jan 2020 19:49:15 -0500 From: Scott Mayhew To: Krzysztof Kozlowski Cc: Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, "linux-kernel@vger.kernel.org" , David Howells , Al Viro , Arnd Bergmann Subject: Re: [BISECT BUG] NFS v4 root not working after 6d972518b821 ("NFS: Add fs_context support.") Message-ID: <20200117004915.GA3111@aion.usersys.redhat.com> References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: KhgvyvhuP5WGglsW0BZP2w-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aion.usersys.redhat.com Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Jan 2020, Krzysztof Kozlowski wrote: > Hi all, > > Bisect pointed to 6d972518b821 ("NFS: Add fs_context support.") for > failures of mounting NFS v4 root on my boards: > mount.nfs4 -o vers=4,nolock 192.168.1.10:/srv/nfs/odroidhc1 /new_root > [ 24.980839] NFS4: Couldn't follow remote path > [ 24.986201] NFS: Value for 'minorversion' out of range > mount.nfs4: Numerical result out of range > > https://krzk.eu/#/builders/21/builds/1692 > Full console log: > https://krzk.eu/#/builders/21/builds/1692/steps/14/logs/serial0 > > Enabling NFS v4.1 in defconfig seems to help. I can send patches for > this (for defconfigs) but probably the root cause should be fixed as > well. > > Environment: > 1. Arch ARM Linux > 2. exynos_defconfig > 3. Exynos boards (Odroid XU3, etc), ARMv7, octa-core (Cortex-A7+A15), > Exynos5422 SoC > 4. systemd, boot up with static IP set in kernel command line > 5. No swap > 6. Kernel, DTB and initramfs are downloaded with TFTP > 7. NFS root from NFSv4 server > > Let me know if you need more details. I haven't had much luck reproducing this. I disabled v4.1 in my .config and I can still boot a VM with NFS root (granted, I don't really use NFS root so this setup is brand new and pretty basic): [root@localhost ~]# cat /proc/cmdline BOOT_IMAGE=mountapi/vmlinuz initrd=mountapi/initrd.img ip=dhcp selinux=0 console=tty0 console=ttyS0,115200 root=nfs4:192.168.122.3:/export/nfsroot/fedora31 [root@localhost ~]# grep nfs /proc/mounts 192.168.122.3:/export/nfsroot/fedora31 / nfs rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.122.69,local_lock=none,addr=192.168.122.3 0 0 Just out of curiousity, what version of the mount.nfs program do you have in your initramfs? I'm wondering if it's maybe passing the mount options differently than mine. FWIW I'm using version 2.4.2: [smayhew@aion tmp]$ lsinitrd /var/lib/tftpboot/mountapi/initrd.img|grep mount.nfs -rwsr-xr-x 1 root root 208600 Feb 14 2019 usr/sbin/mount.nfs lrwxrwxrwx 1 root root 9 Feb 14 2019 usr/sbin/mount.nfs4 -> mount.nfs [smayhew@aion tmp]$ /usr/lib/dracut/skipcpio /var/lib/tftpboot/mountapi/initrd.img|zcat|cpio -id usr/sbin/mount.nfs 256163 blocks [smayhew@aion tmp]$ ./usr/sbin/mount.nfs -V mount.nfs: (linux nfs-utils 2.4.2) [smayhew@aion tmp]$ -Scott > > Best regards, > Krzysztof >