Return-Path: Received: from pandora.arm.linux.org.uk ([78.32.30.218]:48077 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754747AbbEOOYU (ORCPT ); Fri, 15 May 2015 10:24:20 -0400 Date: Fri, 15 May 2015 15:24:03 +0100 From: Russell King - ARM Linux To: Trond Myklebust , Anna Schumaker Cc: linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: NFS client broken in 4.1.0-rc2 Message-ID: <20150515142403.GL2067@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-nfs-owner@vger.kernel.org List-ID: While trying to update a kernel and modules on one of my test systems, I was greeted by these errors: tar: lib/modules/4.1.0-rc2+/kernel/drivers/media/platform/coda/coda.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/drivers/media/dvb-frontends/drx39xyj/drx39xyj.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/drivers/media/usb/em28xx/em28xx.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/drivers/usb/serial/option.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/drivers/usb/serial/ftdi_sio.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/drivers/input/mouse/psmouse.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/fs/udf/udf.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/fs/fuse/fuse.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/fs/nfsd/nfsd.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/sound/soc/codecs/snd-soc-wm8962.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/kernel/net/bluetooth/bluetooth.ko: Cannot utime tar: lib/modules/4.1.0-rc2+/modules.alias.bin: Cannot utime tar: lib/modules/4.1.0-rc2+/modules.alias: Cannot utime tar: Exiting with failure status due to previous errors Searching google wasn't helpful, as all the "Cannot utime" errors that google could find are followed by an errno string. stracing at first sight didn't seem to be helpful, as no syscalls (apart from openat() with a pre-existing file) were failing. Having recently updated to fc21 tar generating the archive, I thought maybe it was a tar format bug between fc21 tar and the target's tar. That was until I tried to "apt-get source tar" on the target, and was greeted by the same error. So I then tried untaring the tar source archive onto a ramfs, which worked without complaint. The difference being that it's a root NFS box, and so I was untaring onto NFS. Here's the entry from /proc/mounts: x.y.z.221:/var/boot/ci on / type nfs (rw,nolock,vers=4,addr=x.y.z.221,clientaddr=a.b.c.55) Looking closer at the strace reveals this: openat(AT_FDCWD, "lib/modules/4.1.0-rc2+/kernel/drivers/media/platform/coda/coda.ko", O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC, 0600) = -1 EEXIST (File exists) unlinkat(AT_FDCWD, "lib/modules/4.1.0-rc2+/kernel/drivers/media/platform/coda/coda.ko", 0) = 0 openat(AT_FDCWD, "lib/modules/4.1.0-rc2+/kernel/drivers/media/platform/coda/coda.ko", O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC, 0600) = 4 write(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\1\0(\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 ... write(4, "\300H\0\0\34\345\1\0\314H\0\0\34\345\1\0\330H\0\0\34\345\1\0