[OpenAFS-devel] oops on trying to unmount /afs [i386_linux24, SMP]

Daniel Jacobowitz dmj+@andrew.cmu.edu
Thu, 16 Nov 2000 16:11:07 -0500


--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I spent half an hour trying to figure this out, and just got myself
confused (ksymoops attached).

The best guess I have is that afsd tried to generate traffic and the afs
module tries to process it while we're shutting down - perhaps something is
not being done atomically?  I've never successfully unmounted AFS on this
configuration, while I know that it works on 2.2 UP systems.

This happens within the attempt to unmount /afs, right after shutting down
the listener.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/

--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="afs-umount-oops.txt"

ksymoops 2.3.4 on i686 2.4.0-test11.  Options used
     -v /usr/src/dink/linux/vmlinux (specified)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.4.0-test11/ (default)
     -m /boot/System.map-2.4.0-test11 (default)

Warning (compare_maps): snd symbol pm_register not found in /lib/modules/2.4.0-test11/sound/snd.o.  Ignoring /lib/modules/2.4.0-test11/sound/snd.o entry
Warning (compare_maps): snd symbol pm_send not found in /lib/modules/2.4.0-test11/sound/snd.o.  Ignoring /lib/modules/2.4.0-test11/sound/snd.o entry
Warning (compare_maps): snd symbol pm_unregister not found in /lib/modules/2.4.0-test11/sound/snd.o.  Ignoring /lib/modules/2.4.0-test11/sound/snd.o entry
activating NMI Watchdog ... done.
cpu: 0, clocks: 668156, slice: 222718
cpu: 1, clocks: 668156, slice: 222718
WARM shutting down of: CB... afs... BkG... CTrunc... RxEvent... RxListener... <1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
c0123c4a
*pde = 00000000
Oops: 0002
CPU:    1
EIP:    0010:[<c0123c4a>]
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00013086
eax: 00003286   ebx: 00000000   ecx: 00000026   edx: c3615a4c
esi: c3615a4c   edi: c04d17e0   ebp: c3615a80   esp: c3615a24
ds: 0018   es: 0018   ss: 0018
Process afsd (pid: 22184, stackpage=c3615000)
Stack: ffffff95 c0216fd6 00000246 c04d17e0 c04d1834 c3615ab0 00000000 c3614000 
       00000000 00000000 00000001 c3614000 c04f132c c04f132c c02170ec c04d17e0 
       c3615ab0 c3615a80 00000000 c3615bd8 0000214c c04d17e0 00000000 7fffffff 
Call Trace: [<c0216fd6>] [<c02170ec>] [<c023b805>] [<c0240ee0>] [<c02137a1>] [<ca958c7d>] [<ca9b7988>] 
       [<ca9b7940>] [<ca9b45c0>] [<ca9b7a08>] [<ca9b7a24>] [<ca9ba0c4>] [<ca9ba734>] [<ca9bada4>] [<ca9bb414>] 
       [<ca9bba84>] [<ca94feb3>] [<ca9b7940>] [<ca9b72d0>] [<ca984edc>] [<ca9b7940>] [<ca9b7984>] [<ca984f24>] 
       [<ca97ba94>] [<ca959685>] [<ca9b7984>] [<ca9b7940>] [<ca97ba94>] [<ca9598b1>] [<ca9b7940>] [<ca97bdc8>] 
       [<ca966ee3>] [<ca97ba94>] [<c02544e6>] [<c01559bc>] [<c01569ac>] [<c01560a4>] [<c02182b7>] [<c0216386>] 
       [<c0216460>] [<c02165d4>] [<c02230ef>] [<c021863e>] [<c01294fc>] [<c02182b7>] [<c01ad912>] [<c02182b7>] 
       [<ec7bedc8>] [<c0139b94>] [<c012e100>] [<c012e116>] [<c012e912>] [<c011e17b>] [<c011e038>] [<ca968231>] 
       [<c010c293>] 
Code: f0 fe 0b 0f 88 e5 3f 13 00 8b 4a 0c 8b 52 08 89 4a 04 89 11 

>>EIP; c0123c4a <remove_wait_queue+6/24>   <=====
Trace; c0216fd6 <wait_for_packet+e6/12c>
Trace; c02170ec <skb_recv_datagram+d0/f0>
Trace; c023b805 <udp_recvmsg+55/230>
Trace; c0240ee0 <inet_recvmsg+58/70>
Trace; c02137a1 <sock_recvmsg+3d/ac>
Trace; ca958c7d <[openafs.mp]osi_NetReceive+bd/f8>
Trace; ca9b7988 <END_OF_CODE+2e049/????>
Trace; ca9b7940 <END_OF_CODE+2e001/????>
Trace; ca9b45c0 <END_OF_CODE+2ac81/????>
Trace; ca9b7a08 <END_OF_CODE+2e0c9/????>
Trace; ca9b7a24 <END_OF_CODE+2e0e5/????>
Trace; ca9ba0c4 <END_OF_CODE+30785/????>
Trace; ca9ba734 <END_OF_CODE+30df5/????>
Trace; ca9bada4 <END_OF_CODE+31465/????>
Trace; ca9bb414 <END_OF_CODE+31ad5/????>
Trace; ca9bba84 <END_OF_CODE+32145/????>
Trace; ca94feb3 <[openafs.mp]rxi_ReceiveAckPacket+44b/ce8>
Trace; ca9b7940 <END_OF_CODE+2e001/????>
Trace; ca9b72d0 <END_OF_CODE+2d991/????>
Trace; ca984edc <[openafs.mp]afs_shared_mmap_ops+25c/4cbf>
Trace; ca9b7940 <END_OF_CODE+2e001/????>
Trace; ca9b7984 <END_OF_CODE+2e045/????>
Trace; ca984f24 <[openafs.mp]afs_shared_mmap_ops+2a4/4cbf>
Trace; ca97ba94 <[openafs.mp]afs_global_lock+0/14>
Trace; ca959685 <[openafs.mp]rxk_ReadPacket+a1/22c>
Trace; ca9b7984 <END_OF_CODE+2e045/????>
Trace; ca9b7940 <END_OF_CODE+2e001/????>
Trace; ca97ba94 <[openafs.mp]afs_global_lock+0/14>
Trace; ca9598b1 <[openafs.mp]rxk_Listener+a1/138>
Trace; ca9b7940 <END_OF_CODE+2e001/????>
Trace; ca97bdc8 <[openafs.mp]afs_initState+0/4>
Trace; ca966ee3 <[openafs.mp]afs_syscall_call+18b/1298>
Trace; ca97ba94 <[openafs.mp]afs_global_lock+0/14>
Trace; c02544e6 <clear_user+2e/40>
Trace; c01559bc <padzero+1c/20>
Trace; c01569ac <load_elf_binary+908/a48>
Trace; c01560a4 <load_elf_binary+0/a48>
Trace; c02182b7 <netif_rx+bb/128>
Trace; c0216386 <alloc_skb+106/1b8>
Trace; c0216460 <kfree_skbmem+28/84>
Trace; c02165d4 <__kfree_skb+118/120>
Trace; c02230ef <ip_rcv+347/358>
Trace; c021863e <net_rx_action+162/24c>
Trace; c01294fc <do_softirq+5c/8c>
Trace; c02182b7 <netif_rx+bb/128>
Trace; c01ad912 <tulip_rx+2d6/35c>
Trace; c02182b7 <netif_rx+bb/128>
Trace; ec7bedc8 <END_OF_CODE+21e35489/????>
Trace; c0139b94 <__alloc_pages+e0/2d4>
Trace; c012e100 <do_wp_page+1d0/218>
Trace; c012e116 <do_wp_page+1e6/218>
Trace; c012e912 <handle_mm_fault+15a/198>
Trace; c011e17b <do_page_fault+143/3e8>
Trace; c011e038 <do_page_fault+0/3e8>
Trace; ca968231 <[openafs.mp]afs_syscall+165/3e4>
Trace; c010c293 <system_call+33/38>
Code;  c0123c4a <remove_wait_queue+6/24>
00000000 <_EIP>:
Code;  c0123c4a <remove_wait_queue+6/24>   <=====
   0:   f0 fe 0b                  lock decb (%ebx)   <=====
Code;  c0123c4d <remove_wait_queue+9/24>
   3:   0f 88 e5 3f 13 00         js     133fee <_EIP+0x133fee> c0257c38 <stext_lock+8f4/9624>
Code;  c0123c53 <remove_wait_queue+f/24>
   9:   8b 4a 0c                  mov    0xc(%edx),%ecx
Code;  c0123c56 <remove_wait_queue+12/24>
   c:   8b 52 08                  mov    0x8(%edx),%edx
Code;  c0123c59 <remove_wait_queue+15/24>
   f:   89 4a 04                  mov    %ecx,0x4(%edx)
Code;  c0123c5c <remove_wait_queue+18/24>
  12:   89 11                     mov    %edx,(%ecx)


3 warnings issued.  Results may not be reliable.

--HcAYCG3uE/tztfnV--