Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357121 - Upgrade for gentoo-sources-2.6.37 to 2.6.37-r1 makes nfs fails to copy files
Summary: Upgrade for gentoo-sources-2.6.37 to 2.6.37-r1 makes nfs fails to copy files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.38
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 18:10 UTC by Andrew John Hughes
Modified: 2011-04-22 12:51 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 Andrew John Hughes 2011-03-02 18:10:57 UTC
Cloning using Mercurial from an NFS mount to a local partition:

destination directory: icedtea6-hg
updating to branch default
abort: data/contrib/templater/hotspot/src/cpu/CPU/vm/bytecodeInterpreter_CPU.inline.hpp.i@16d04ce16287: no match found!

This works fine on 2.6.37 so seems to be a regression caused by NFS changes in 2.6.37.1 or 2.6.37.2.

http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.37.1
http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.37.2

This patch:

commit a8ebfc0286ec46f4367d77a4f02938c611bbc3bd
Author: Konstantin Khorenko <khorenko@parallels.com>
Date:   Tue Feb 1 17:16:29 2011 +0300

    NFSD: memory corruption due to writing beyond the stat array
    
    commit 3aa6e0aa8ab3e64bbfba092c64d42fd1d006b124 upstream.

in 2.6.37.1 seems a possible culprit as do the return value changes in 2.6.37.1.

Reproducible: Always




Portage 2.2.0_alpha25 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo.rivendell x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo.rivendell-x86_64-Intel-R-_Xeon-R-_CPU_X5482_@_3.20GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 02 Mar 2011 02:15:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.1_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
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
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo xmmsroot2_overlay java-overlay fixes-overlay kde-sunset
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FSF-APPROVED-EXT @X11-LICENSES @PRESUMED-FOSS @CREATIVE-COMMONS TeX MOTIF popt unRAR"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -ggdb -mno-tls-direct-seg-refs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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="-O2 -pipe -march=core2 -ggdb -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentoo/xmmsroot2-overlay /usr/local/gentoo/java-overlay /usr/local/gentoo/fixes-overlay /var/lib/layman/kde-sunset"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bindist bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cracklib crypt cups curl cvs cxx dbus dga dirac djvu dri dts dv dvb dvd dvdr eds emacs emboss encode evo exif fam ffmpeg fftw firefox flac fontconfig fortran ftp fuse gcj gd gdbm gdu gif gimp gmp gnome gnome-keyring gnutls gpm graphviz gs gstreamer gtk gtkhtml hal hddtemp iconv idn ieee1394 imagemagick imap ipv6 java java5 java6 javascript jbig jpeg jpeg2k kde kerberos ladspa lame latex lcms libass libcaca libnotify libsamplerate lm_sensors lzma lzo mad mbox mikmod mmap mmx mng modules mp3 mp4 mpeg mpi mudflap multilib musepack musicbrainz ncurses nis nls nntp nptl nptlonly ntp ogg openexr opengl openmp pam pango pch pcre pdf perl png policykit postgres ppds pppd pulseaudio python qt3 qt3support qt4 readline sasl schroedinger sdl session sndfile sox speex spell sqlite sse sse2 ssl ssse3 startup-notification subversion svg sysfs taglib tcpd tga theora threads tiff truetype udev unicode urandom usb vorbis wavpack wmf x264 xattr xcb xcomposite xft xml xmmsroot2 xorg xosd xprint xscreensaver xulrunner xv xvid zeroconf zlib" 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" CAMERAS="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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" LIRC_DEVICES="hauppauge_dvb" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Pagano gentoo-dev 2011-03-06 20:20:36 UTC
Can you do a bisect between 2.6.37 and 2.6.37.1 ?
Comment 2 Andrew John Hughes 2011-03-06 21:00:41 UTC
I can confirm that vanilla 2.6.37.1 fails, so it's not a change between 2.6.37.1 and 2.6.37.2.

I'll look at bisecting between 2.6.37 and 2.6.37.1.

http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.37.1 lists several NFS fixes, one of which I guess is causing this.
Comment 3 Andrew John Hughes 2011-03-08 21:16:05 UTC
Found this on Sunday, but got caught by the Bugzilla upgrade.

The changeset is:

http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.37.y.git;a=commit;h=6650239a4b01077e80d5a4468562756d77afaa59

commit 55ea499d60aefa3d03a77fc8590c26b5881faa92
Author: Trond Myklebust <Trond.Myklebust@netapp.com>
Date:   Sat Jan 8 17:45:38 2011 -0500
NFS: Don't use vm_map_ram() in readdir

added early in the 2.6.37.1 development cycle.

Reverting this from the tip of the 2.6.37.y git tree fixes the bug.
Comment 4 Andrew John Hughes 2011-03-16 22:18:55 UTC
The issue is fixed with 2.6.38.  I'm using it from git at the moment but I pulled it around the time of the release, so gentoo-sources-2.6.38 should presumably be fine too.

From discussion on LKML, it was fixed in 2.6.38 but hasn't yet been backported to 2.6.37.
Comment 5 Mike Pagano gentoo-dev 2011-03-17 10:18:39 UTC
(In reply to comment #4)
> The issue is fixed with 2.6.38.  
Thanks for reporting that
Comment 6 Mike Pagano gentoo-dev 2011-03-23 00:50:35 UTC
Can you post the url of those discussions on lkml, please?
Comment 7 Fab 2011-04-01 11:17:10 UTC
(In reply to comment #6)
> Can you post the url of those discussions on lkml, please?

https://lkml.org/lkml/2011/3/10/355

The fix seems to have been commited into 2.6.37.4 :
https://lkml.org/lkml/2011/3/10/561
Comment 8 Mike Pagano gentoo-dev 2011-04-01 12:40:55 UTC
Can you confirm by testing gentoo-sources-2.6.37-r4?
Comment 9 Fab 2011-04-05 08:03:54 UTC
(In reply to comment #8)
> Can you confirm by testing gentoo-sources-2.6.37-r4?

If you talk to me, I can not reproduce the original bug with gentoo-sources-2.6.37-r1, so I can't tell you if -r4 is fixed. You should see bug #361575, which is probably a duplicate.
Comment 10 Mike Pagano gentoo-dev 2011-04-22 12:51:26 UTC
Please reopen if this is still an issue in >=gentoo-sources-2.6.37-r4