Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 694780

Summary: net-fs/cifs-utils with sys-kernel/gentoo-sources-5.3.0 - cifs-mounted files inaccessible with error "Stale file handle"
Product: Gentoo Linux Reporter: he.ousia <he.ousia>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: UNCONFIRMED ---    
Severity: normal CC: kernel, marci_r, moralapostel
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description he.ousia 2019-09-18 06:11:40 UTC
After kernel upgrade to 5.3  cifs-mounted files becameinaccessible with error "Stale file handle". Directory browsing is possible, juct files are non-readable and non-copyable.
None of cifs-mount options are helpful.
After installing linux-headers-5.3 and recompiling glibc / cifs-utils promlem persists.
After returning to 5.2.14 kernel (even with the 5.3 linux-headers and glibc against them) all OK.


Reproducible: Always

Steps to Reproduce:
1. emerge sys-kernel/gentoo-sources-5.3.0
2. mount any cifs share (my default  options are _netdev,defaults,noperm,credentials=/home/vt/.credentials,rw,file_mode=0644,dir_mode=0755,vers=2.1).
3. browse cifs share and try to read/copy any file.
Actual Results:  
Files are inaccessible with error "Stale file handle"

Expected Results:  
Allow file manipulation

emerge --info after I have downgraded to 5.2.14 kernel
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.2.0, glibc-2.29-r5, 5.2.14-gentoo x86_64)
=================================================================
System uname: Linux-5.2.14-gentoo-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.6
KiB Mem:     3931300 total,   1391004 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Wed, 18 Sep 2019 00:45:01 +0000
Head commit of repository gentoo: 235fbb7762199b190934c0352bb0d684e0f6dcf3
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p11::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo, 3.7.4-r1::gentoo
dev-util/cmake:           3.15.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0-r1::gentoo, 9.2.0::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -march=native -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize -fuse-ld=gold "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-Os -pipe -march=native -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize -fuse-ld=gold "
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --deep "
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news nodoc noinfo parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf-8"
LDFLAGS="-O1 -Wl,--enable-new-dtags -Wl,--sort-common "
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="16bittmp X \ a52 aac aacs acpi alac alsa amd64 apng asf avi berkdb bluray branding bzip2 cairo calligra_experimental_features_stage cdaudio cdda cdio cdr cinepaint classic cli context contrast crypt cups custom-cflags cxx cyrillic dbus declarative demosaic djvu dmi dri dri2 dri3 dts dv dvd dvdnav dvdr dvdread ecdsa elogind embedded emboss enblend encode epub evdev exif exiv2 extra faac faad fam ffmpeg fftw firefox firmware flac fontconfig fortran g3dvl gallium gcj gd gdbm gentoo-vm gif gimp glamor gles graphics graphite gs haptic hdri humanities hwaccel iconv ieee1394 ifp imlib infinality inotify jack jadetex java6 javafx jpeg kde kipi kpathsea ladspa lame latex latex3 lcdfilter lcms libkms libnotify libtirpc libvisual libwww llvm lto mad matroska mbox melt minizip mjpeg mng moznopango mp2 mp3 mp4 mpeg mtp musepack music ncurses njb nopo normalizemime nptl nptlonly nsplugin ogg omega openexr opengl openmp openssl optimized-qmake opus pam pango pcre pcre16 pdf pdfimport plasma png pnm policykit ppds private-headers pstricks publishers q16 qalculate qml qt4support qt5 quicktime rar raw readline real redeyes romio scanner schroedinger science sdl seccomp shared-glapi sift skins sna spell split-usr sql sqlite srt ssl startup-notification stream svg tcpd tetex tex4ht theora threads threadsafe tidy tiff truetype udev udisks unicode upower usb uxa v4l2 vaapi vdpau vector-icons video visualization vorbis wavpack wayland widgets win32codecs wxwidgets wxwindows x264 x265 xattr xcb xcomposite xetex xft xinerama xml xmp xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 he.ousia 2019-09-23 05:47:04 UTC
With 5.3.1 the problem persists.
Comment 2 he.ousia 2019-10-02 06:50:55 UTC
With 5.3.2, when attempting file operations, some diagnostics appears in dmesg:

[Wed Oct  2 09:43:43 2019] 00000000: 424d53fe 00000040 00000000 00000012  .SMB@...........
[Wed Oct  2 09:43:43 2019] 00000010: 00000001 00000000 ffffffff ffffffff  ................
[Wed Oct  2 09:43:43 2019] 00000020: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:43:43 2019] 00000030: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:43:48 2019] CIFS VFS: No task to wake, unknown frame received! NumMids 1
[Wed Oct  2 09:43:48 2019] 00000000: 424d53fe 00000040 00000000 00000012  .SMB@...........
[Wed Oct  2 09:43:48 2019] 00000010: 00000001 00000000 ffffffff ffffffff  ................
[Wed Oct  2 09:43:48 2019] 00000020: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:43:48 2019] 00000030: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:09 2019] CIFS VFS: No task to wake, unknown frame received! NumMids 1
[Wed Oct  2 09:44:09 2019] 00000000: 424d53fe 00000040 00000000 00000012  .SMB@...........
[Wed Oct  2 09:44:09 2019] 00000010: 00000001 00000000 ffffffff ffffffff  ................
[Wed Oct  2 09:44:09 2019] 00000020: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:09 2019] 00000030: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:14 2019] CIFS VFS: No task to wake, unknown frame received! NumMids 1
[Wed Oct  2 09:44:14 2019] 00000000: 424d53fe 00000040 00000000 00000012  .SMB@...........
[Wed Oct  2 09:44:14 2019] 00000010: 00000001 00000000 ffffffff ffffffff  ................
[Wed Oct  2 09:44:14 2019] 00000020: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:14 2019] 00000030: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:19 2019] CIFS VFS: No task to wake, unknown frame received! NumMids 1
[Wed Oct  2 09:44:19 2019] 00000000: 424d53fe 00000040 00000000 00000012  .SMB@...........
[Wed Oct  2 09:44:19 2019] 00000010: 00000001 00000000 ffffffff ffffffff  ................
[Wed Oct  2 09:44:19 2019] 00000020: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:19 2019] 00000030: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:24 2019] CIFS VFS: No task to wake, unknown frame received! NumMids 1
[Wed Oct  2 09:44:24 2019] 00000000: 424d53fe 00000040 00000000 00000012  .SMB@...........
[Wed Oct  2 09:44:24 2019] 00000010: 00000001 00000000 ffffffff ffffffff  ................
[Wed Oct  2 09:44:24 2019] 00000020: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:24 2019] 00000030: 00000000 00000000 00000000 00000000  ................
[Wed Oct  2 09:44:29 2019] CIFS VFS: cifs_acl_to_fattr: error -4 getting sec desc
Comment 3 he.ousia 2019-10-08 05:29:40 UTC
Workaround is mount option "ver=1.0"
Comment 4 Sebastian Doering 2019-10-17 20:23:00 UTC
I'm also encountering this issue with kernel 5.3.6 and cifs-utils-6.9-r1
Comment 5 he.ousia 2019-11-20 10:56:27 UTC
Even next-20191120 works only with "ver=1.0".