Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134020 - gentoo-sources 2.6.16-r4 oops with scsi tape and amanda 2.5.0_p2
Summary: gentoo-sources 2.6.16-r4 oops with scsi tape and amanda 2.5.0_p2
Status: RESOLVED NEEDINFO
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-22 03:57 UTC by Andrej Filipcic
Modified: 2006-06-15 11:40 UTC (History)
0 users

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 Andrej Filipcic 2006-05-22 03:57:06 UTC
Hi, I have tried to run amanda 2.5.0_p2, but taper oopses the machine at the end of the backup when trying to write end marker. amanda 2.4.5_p1 worked fine. The main difference is that the new taper uses several buffers for tape writting.

Any idea where is the problem?
I have looked into newer gentoo-sources, but there appears to be no difference in scsi.

Here is the oops log:

Unable to handle kernel paging request at ffff82fc01000038 RIP:
<ffffffff8016c5d8>{kmem_cache_free+88}
PGD 0
Oops: 0000 [1] SMP
CPU 1
Modules linked in: nfsd lockd nfs_acl sunrpc openafs lock_dlm dlm cman gfs lock_harness ext3 jbd ipv6 sg dm_mod autofs4 e100 shpchp hw_random st eepro100 aic7xxx mii lpfc scsi_transport_fc i2c_amd811
1 i2c_amd756 sata_sil ohci_hcd tg3 libata i2c_core
Pid: 21652, comm: taper Tainted: PF     2.6.16-gentoo-r4 #1
RIP: 0010:[<ffffffff8016c5d8>] <ffffffff8016c5d8>{kmem_cache_free+88}
RSP: 0018:ffff810012903c78  EFLAGS: 00010086
RAX: ffff82fc01000000 RBX: ffff810082643000 RCX: 000000000000001f
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff82fc01000000
RBP: ffff81000306d400 R08: 0000000000000000 R09: 0000000000000400
R10: 0000000000000000 R11: ffffffff8015196b R12: ffff81007fdb0680
R13: 0000000000000600 R14: 0000000000000600 R15: ffff8100a783f0b8
FS:  00002b735ba1dae0(0000) GS:ffff8100fbf96240(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: ffff82fc01000038 CR3: 0000000010fa7000 CR4: 00000000000006e0
Process taper (pid: 21652, threadinfo ffff810012902000, task ffff8100601d40c0)
Stack: 00000000000000d0 0000000000000000 0000000000000296 ffff8100fb658840
       ffff81000306d400 ffff8100fb658840 0000000000000600 ffffffff801752a0
       ffff8100fb658840 ffff8100a880ea88
Call Trace: <ffffffff801752a0>{bio_free+48} <ffffffff802f1f76>{scsi_execute_async+643}
       <ffffffff880b14c4>{:st:st_do_scsi+484} <ffffffff880b1296>{:st:st_sleep_done+0}
       <ffffffff880b5e7c>{:st:st_write+1521} <ffffffff80170f12>{vfs_write+212}
       <ffffffff80171063>{sys_write+69} <ffffffff8010a93e>{system_call+126}

Code: 48 8b 48 38 0f b7 51 28 65 8b 04 25 30 00 00 00 39 c2 0f 84
RIP <ffffffff8016c5d8>{kmem_cache_free+88} RSP <ffff810012903c78>
CR2: ffff82fc01000038
 <3>Debug: sleeping function called from invalid context at include/linux/rwsem.h:43
in_atomic():0, irqs_disabled():1

Call Trace: <ffffffff801241be>{__might_sleep+190} <ffffffff801346b1>{lock_timer_base+27}
       <ffffffff8012d274>{profile_task_exit+32} <ffffffff8012ea1a>{do_exit+34}
       <ffffffff803bbc63>{_spin_lock_irqsave+11} <ffffffff8027cbec>{vgacon_set_cursor_size+52}
       <ffffffff8011ba8e>{do_page_fault+1723} <ffffffff80151837>{mempool_alloc+65}
       <ffffffff80151837>{mempool_alloc+65} <ffffffff8010b87d>{error_exit+0}
       <ffffffff8015196b>{mempool_free_slab+0} <ffffffff8016c5d8>{kmem_cache_free+88}
       <ffffffff8016c5d8>{kmem_cache_free+88} <ffffffff801752a0>{bio_free+48}
       <ffffffff802f1f76>{scsi_execute_async+643} <ffffffff880b14c4>{:st:st_do_scsi+484}
       <ffffffff880b1296>{:st:st_sleep_done+0} <ffffffff880b5e7c>{:st:st_write+1521}
       <ffffffff80170f12>{vfs_write+212} <ffffffff80171063>{sys_write+69}
       <ffffffff8010a93e>{system_call+126}
Unable to handle kernel paging request at ffff82fc01000038 RIP:
<ffffffff8016c5d8>{kmem_cache_free+88}
PGD 0
Oops: 0000 [2] SMP
CPU 1
Modules linked in: nfsd lockd nfs_acl sunrpc openafs lock_dlm dlm cman gfs lock_harness ext3 jbd ipv6 sg dm_mod autofs4 e100 shpchp hw_random st eepro100 aic7xxx mii lpfc scsi_transport_fc i2c_amd811
1 i2c_amd756 sata_sil ohci_hcd tg3 libata i2c_core
Pid: 21652, comm: taper Tainted: PF     2.6.16-gentoo-r4 #1
RIP: 0010:[<ffffffff8016c5d8>] <ffffffff8016c5d8>{kmem_cache_free+88}
RSP: 0018:ffff810012903838  EFLAGS: 00010086
RAX: ffff82fc01000000 RBX: ffff810082643000 RCX: 000000000000001f
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff82fc01000000
RBP: ffff81000306d400 R08: 0000000000000600 R09: 0000000000000400
R10: ffff810081f2c420 R11: ffffffff8015196b R12: ffff81007fdb0680
R13: 0000000000000a00 R14: 0000000000000a00 R15: ffff8100a783f128
FS:  00002b735ba1dae0(0000) GS:ffff8100fbf96240(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: ffff82fc01000038 CR3: 0000000000101000 CR4: 00000000000006e0
Process taper (pid: 21652, threadinfo ffff810012902000, task ffff8100601d40c0)
Stack: 00000000000000d0 0000000000000000 0000000000000292 ffff8100fb6586c0
       ffff81000306d400 ffff8100fb6586c0 0000000000000a00 ffffffff801752a0
       ffff8100fb6586c0 ffff8100faa45328
Call Trace: <ffffffff801752a0>{bio_free+48} <ffffffff802f1f76>{scsi_execute_async+643}
       <ffffffff880b14c4>{:st:st_do_scsi+484} <ffffffff880b1296>{:st:st_sleep_done+0}
       <ffffffff880b16e0>{:st:flush_write_buffer+20} <ffffffff880b2c55>{:st:st_flush+266}
       <ffffffff80170656>{filp_close+56} <ffffffff8012e126>{put_files_struct+105}
       <ffffffff8012ec4a>{do_exit+594} <ffffffff803bbc63>{_spin_lock_irqsave+11}
       <ffffffff8027cbec>{vgacon_set_cursor_size+52} <ffffffff8011ba8e>{do_page_fault+1723}
       <ffffffff80151837>{mempool_alloc+65} <ffffffff80151837>{mempool_alloc+65}
       <ffffffff8010b87d>{error_exit+0} <ffffffff8015196b>{mempool_free_slab+0}
       <ffffffff8016c5d8>{kmem_cache_free+88} <ffffffff8016c5d8>{kmem_cache_free+88}
       <ffffffff801752a0>{bio_free+48} <ffffffff802f1f76>{scsi_execute_async+643}
       <ffffffff880b14c4>{:st:st_do_scsi+484} <ffffffff880b1296>{:st:st_sleep_done+0}
       <ffffffff880b5e7c>{:st:st_write+1521} <ffffffff80170f12>{vfs_write+212}
       <ffffffff80171063>{sys_write+69} <ffffffff8010a93e>{system_call+126}

Code: 48 8b 48 38 0f b7 51 28 65 8b 04 25 30 00 00 00 39 c2 0f 84
RIP <ffffffff8016c5d8>{kmem_cache_free+88} RSP <ffff810012903838>
CR2: ffff82fc01000038
 <1>Fixing recursive fault but reboot is needed!

emerge --info:
---------------
Portage 2.1_rc1-r3 (default-linux/amd64/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r4 x86_64 AMD Opteron(tm) Processor 250
Gentoo Base System version 1.12.0_pre19
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/net/teran/d0/nfs/gentoo/distfiles"
FEATURES="autoconfig buildpkg distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://ftp.gentoo.skynet.be/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j6"
PKGDIR="/net/teran/d0/nfs/gentoo/packages/amd64.general"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/net/teran/d0/nfs/gentoo/portage.local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d a52 aac aalib accessibility accounting acl alsa apache2 arts asf athena atlas avahi avi bash-completion berkdb bidi bitmap-fonts blas bonobo bzip2 canvas cdparanoia cdr cli crypt cups curl dba dbm dbus dedicated dga directfb divx4linux dri dts dvd dvdr dxr3 edl eds emacs emacs-w3 emboss encode esd exif expat fame fastcgi fbcon festival ffmpeg firefox flac font-server foomaticdb fortran gcj gd gdbm gif gimp gimpprint gmp gnome gnuplot gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal howl idn ieee1394 imagemagick imap imlib innodb ipv6 irda isdnlog ithreads jack java joystick jpeg junit kde kerberos krb4 lcms ldap ldapsam libcaca libclamav lirc live lm_sensors logrotate lzo lzw lzw-tiff mad matroska mbox mhash mikmod mime mng modplug mozdevelop mozilla mozsvg mp3 mpeg mule musicbrainz mysql mysqli nagios-dns nagios-ntp nagios-ping nas ncurses network nls nptl nptlonly nvidia objc odbc ogg openal openexr opengl oss overlays pam pam_console pcmcia pcre pda pdf pdflib pear perl perlsuid php png posix postgres postgresql povray ppds pppd python qt quicktime quotas rdesktop readline reflection rtc samba sasl scanner sdl server session slang slp smime snmp sox speex spell spl sqlite ssl subversion svg tcltk tcpd tetex tga theora threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd vhosts vorbis webdav wifi wmf xanim xcomposite xfs xine xinerama xml xml2 xmms xorg xpm xscreensaver xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andrej Filipcic 2006-05-23 07:10:43 UTC
It appears that the tape configuration was wrong (autogenerated by amanda's amtapetype). taper works without an oops if used with "filemark 256 kbytes". The tape configuration which caused the oops used "filemark 0 kbytes". That might be amanda problem. Is this oops relevant?
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2006-06-01 14:12:38 UTC
Yes, the oops is relevant: it should never happen under any circumstances. Can you reliably reproduce this?
Comment 3 Andrej Filipcic 2006-06-01 23:38:23 UTC
Yes, the oops allways happens if filemark is set to 0 in amanda. Strange thing is that all the backup files are correctly written to the tape, but when amanda tries  to write the end-of-tape mark (tapefd_wrendmark in amanda sources), there is oops.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-06-07 13:32:02 UTC
Can you reproduce this on the latest development kernel (currently 2.6.17-rc6)?
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-06-15 11:40:38 UTC
please reopen when the latest development kernel has been tested