Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413651 - kernel-3.2.1-gentoo-r2 - Mounting remote CIFS shares shows empty directories ONLY when cifs is compiled as kernel module
Summary: kernel-3.2.1-gentoo-r2 - Mounting remote CIFS shares shows empty directories ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-bugzilla-pending
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-26 18:17 UTC by Chris Paras
Modified: 2012-11-12 22:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Paras 2012-04-26 18:17:36 UTC
Mounting remote CIFS shares list empty directories when CIFS is compiled as module. When CIFS is compiled into the kernel directly files and directories show up as expected. Also when doing smbclient -Lserver the available shares show up.
This behaviour happens since I am using gentoo-kernel-3.2.1-gentoo-r2. The last kernel it worked with CIFS compiled as module was gentoo-kernel-3.1.10-gentoo-r1.

Reproducible: Always

Steps to Reproduce:
1. compile kernel above version xx xx xx with CIFS as MODULE
2. reboot / load cifs module
3. mount a remote CIFS share
4. cd into remote mount and type ls -al

Actual Results:  
Directory shows no contents, altough i can cd into subdirectories and copy files which i know they do exist.. They just don't show up.

Expected Results:  
Directories and files should be listed as usual.

I also did the same with an vanilla kernel, with the same results. Since kernel version xx xx xx, this hasn't changed. Sounds like an upstream bug ?
Here's my emerge --info :

Portage 2.1.10.49 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64)
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 26 Apr 2012 12:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            3.4.6-r2, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.3 Nero-EULA-US Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ "
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages/amd64"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aacs aalib acl acpi alsa amd64 archive arts autoipd automount avahi battery berkdb bluray bonjour branding bzip2 cairo caps cdda cddax cddb cdio cdr cjk cli clucene consolekit cpufreq cracklib crypt css cups cxx daap dbus dts dvb dvd dvdr dvdread emacs embedded emboss encode exif faac faad fam fame fbcon ffmpeg firefox flac fontconfig fortran fts3 fuse gdbm gdu geoip gif gimp gnome-keyring gphoto2 gpm gtk gtk3 hddtemp howl-compat iconv id3tag imap inotify ios iphon iphone jack java joystick jpeg kde kdrive kerberos kino kipi ladspa lame laptop lcms ldap libcaca libnotify lzo mad maildir mdnsresponder-compat midi mjpeg mmx mmxext mng modules mono mozilla mp3 mp4 mpeg mplayer mudflap multilib ncurses network network-cron nls nntp nptl nptlonly nsplugin ntp nuv nvidia ogg openal opengl openmp pam pango pcre pdf pmu png policykit pop pppd pulseaudio qt3 qt3support qt4 quicktime readline rtsp samba sdl semantic-desktop session sid slang slp smp sndfile sound spell sql sqlite sse sse2 sse3 ssh ssl ssse3 startup-notification svg symlink sysfs tcpd teletext templates themes theora threads thumbnail tiff timidity truetype twolame udev unicode upnp usb v4l v4l2 vaapi vcd vcdinfo vcdx vdpau vim-syntax visualization vorbis webkit wifi wma wxwidgets x264 xattr xcb xcomposite xinerama xml xorg xrandr xscreensaver xulrunner xv xvid xvmc zeroconf zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="joystick evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Chris Paras 2012-04-26 18:20:39 UTC
Mounting remote CIFS shares list empty directories when CIFS is compiled as module. When CIFS is compiled into the kernel directly files and directories show up as expected. Also when doing smbclient -Lserver the available shares show up.
This behaviour happens since I am using gentoo-kernel-3.2.1-gentoo-r2. The last kernel it worked with CIFS compiled as module was gentoo-kernel-3.1.10-gentoo-r1.

Reproducible: Always

Steps to Reproduce:
1. compile kernel above version 3.1.10-gentoo-r1 with CIFS as MODULE
2. reboot / load cifs module
3. mount a remote CIFS share
4. cd into remote mount and type ls -al

Actual Results:  
Directory shows no contents, altough i can cd into subdirectories and copy files which i know they do exist.. They just don't show up.

Expected Results:  
Directories and files should be listed as usual.

I also did the same with an vanilla kernel, with the same results. Since kernel version 3.1.10-gentoo-r1 this hasn't changed. Sounds like an upstream bug ?
Here's my emerge --info :

Portage 2.1.10.49 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64)
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 26 Apr 2012 12:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            3.4.6-r2, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.3 Nero-EULA-US Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ "
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages/amd64"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aacs aalib acl acpi alsa amd64 archive arts autoipd automount avahi battery berkdb bluray bonjour branding bzip2 cairo caps cdda cddax cddb cdio cdr cjk cli clucene consolekit cpufreq cracklib crypt css cups cxx daap dbus dts dvb dvd dvdr dvdread emacs embedded emboss encode exif faac faad fam fame fbcon ffmpeg firefox flac fontconfig fortran fts3 fuse gdbm gdu geoip gif gimp gnome-keyring gphoto2 gpm gtk gtk3 hddtemp howl-compat iconv id3tag imap inotify ios iphon iphone jack java joystick jpeg kde kdrive kerberos kino kipi ladspa lame laptop lcms ldap libcaca libnotify lzo mad maildir mdnsresponder-compat midi mjpeg mmx mmxext mng modules mono mozilla mp3 mp4 mpeg mplayer mudflap multilib ncurses network network-cron nls nntp nptl nptlonly nsplugin ntp nuv nvidia ogg openal opengl openmp pam pango pcre pdf pmu png policykit pop pppd pulseaudio qt3 qt3support qt4 quicktime readline rtsp samba sdl semantic-desktop session sid slang slp smp sndfile sound spell sql sqlite sse sse2 sse3 ssh ssl ssse3 startup-notification svg symlink sysfs tcpd teletext templates themes theora threads thumbnail tiff timidity truetype twolame udev unicode upnp usb v4l v4l2 vaapi vcd vcdinfo vcdx vdpau vim-syntax visualization vorbis webkit wifi wma wxwidgets x264 xattr xcb xcomposite xinerama xml xorg xrandr xscreensaver xulrunner xv xvid xvmc zeroconf zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="joystick evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Michael Orlitzky gentoo-dev 2012-04-26 18:36:34 UTC
Works here?

  $ uname -a
  Linux gantu 3.2.1-gentoo-r2 #1 SMP PREEMPT Sat Mar 17 11:29:11 EDT 2012 x86_64 
  AMD Phenom(tm) II X4 920 Processor AuthenticAMD GNU/Linux

  $ lsmod | grep cifs
  cifs                  214955  2

  $ grep music /etc/fstab
  //bubbles/music	/mnt/mc/music	cifs	noauto,rw,credentials=/root
  /.smbcreds,uid=mjo,gid=mjo,file_mode=0600,dir_mode=0700	0 0

  $ sudo mount /mnt/mc/music
  Password: 
  $ ls /mnt/mc/music
  total 512
  drwx------ 0 mjo mjo   0 2010-02-25 16:08 0-9
  drwx------ 0 mjo mjo   0 2011-04-10 12:28 A
  drwx------ 0 mjo mjo   0 2011-08-21 14:41 B
  ...
Comment 3 Cyprien Nicolas (fulax) 2012-04-26 19:03:36 UTC
Works for me with both 3.2.1-gentoo-r2 and 3.2.12-gentoo, on x86; cifs as module.
Comment 4 Chris Paras 2012-04-26 19:09:08 UTC
For me, it works on an x86 machine with gentoo-kernel-3.2.12-gentoo-r2 and everything else, but for amd64 (i have only one amd64 box) it fails exactly like described above.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-27 15:16:24 UTC
It would help if you posted the relevant fstab entry or mount command.
Comment 6 Chris Paras 2012-04-27 15:26:36 UTC
mount -t cifs //nexus/temporary /mnt/tmp -o credentials=/etc/samba/cifscreds.txt
Comment 7 Chris Paras 2012-04-27 15:27:37 UTC
(In reply to comment #6)
> mount -t cifs //nexus/temporary /mnt/tmp -o
> credentials=/etc/samba/cifscreds.txt

I alsa tried with -o noserverino, nounix and combinations, no luck.
Comment 8 Mike Pagano gentoo-dev 2012-07-17 15:49:21 UTC
Can you test with vanilla 3.4.5 and let me know if it's still an issue?
Comment 9 Chris Paras 2012-07-18 18:32:34 UTC
Yes, problem still exists.
Comment 10 Mike Pagano gentoo-dev 2012-09-08 23:08:33 UTC
ok, I'm going to ask you to take this upstream at:

http://bugzilla.kernel.org

They will probably want you to test 3.5.3 and 3.6_rc4.  If you can do that and then post the bug upstream and copy the url back here, that would be great/
Comment 11 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-12 22:58:19 UTC
Does the problem still occur at this point? Please let us know.

If so, did you ever report this upstream? Let us know its URL if you can, thanks.