mount_smbfs + suspend = kernel panic

EforeZZ eforezz at
Sat Jul 25 22:42:10 UTC 2009

Hi guys,

I use mount_smbfs on my notebook and I have a little nasty problem..
Sometimes I have kernel panic when resuming after the suspend. The
issue seems to happen when I go to suspend with my USB network (WiFi)
adapter plugged in (I do use "/etc/rc.d/netif stop rum0" before going
to suspend), then I resume the notebook without the adapter, then I
suspend it again, and finally I resume it with the adapter plugged in.
The system panics. Maybe there are any workarounds to avoid the
problem.. Should I do umount all smbfs' before I go to suspend?.. Is
there any other more elegant way?

Here is the kernel buffer and the backtrace:

kernel trap 12 with interrupts disabled

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x18
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc081fa05
stack pointer           = 0x28:0xe8cf2adc
frame pointer           = 0x28:0xe8cf2af8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 37632 (smbiod4)
trap number             = 12
panic: page fault
cpuid = 0
Uptime: 7d12h57m21s
Physical memory: 2022 MB
Dumping 275 MB: (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to
abort)  260 244 228 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to
abort)  212 196 180 164 148 132 116 100 84 68 52 36 20 4

#0  doadump () at pcpu.h:196
#1  0xc07e8767 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418
#2  0xc07e8a39 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3  0xc0aecd3c in trap_fatal (frame=0xe8cf2a9c, eva=24) at
#4  0xc0aed6bf in trap (frame=0xe8cf2a9c) at /usr/src/sys/i386/i386/trap.c:320
#5  0xc0ad207b in calltrap () at /usr/src/sys/i386/i386/exception.s:159
#6  0xc081fa05 in turnstile_broadcast (ts=0x0, queue=0) at
#7  0xc07d93f2 in _mtx_unlock_sleep (m=0xc8d82d94, opts=0,
file=0xc107c6c3 "/usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c",
    line=97) at /usr/src/sys/kern/kern_mutex.c:619
#8  0xc07d9752 in _mtx_unlock_flags (m=0xc8d82d94, opts=0,
file=0xc107c6c3 "/usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c",
    line=97) at /usr/src/sys/kern/kern_mutex.c:210
#9  0xc106fb73 in smb_iod_invrq (iod=Variable "iod" is not available.
) at /usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c:97
#10 0xc1070d57 in smb_iod_addrq (rqp=0xc8d82d00) at
#11 0xc106d28c in smb_rq_enqueue (rqp=0xc8d82d00) at
#12 0xc106d6d8 in smb_rq_simple (rqp=0xc8d82d00) at
#13 0xc106b9e4 in smb_smb_treeconnect (ssp=0xc778d500,
scred=0xc7a6e144) at
#14 0xc10708b8 in smb_iod_thread (arg=0xc7a6e100) at
#15 0xc07c2159 in fork_exit (callout=0xc10705c0 <smb_iod_thread>,
arg=0xc7a6e100, frame=0xe8cf2d38)
    at /usr/src/sys/kern/kern_fork.c:810
#16 0xc0ad20f0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:264

Best regards,

More information about the freebsd-questions mailing list