Bug 70562

Summary: Fatal Trap 12 in kernel mode from samba3 with QUOTA support
Product: Base System Reporter: William D. Colburn <wcolburn>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.2.1-RELEASE   
Hardware: Any   
OS: Any   

Description William D. Colburn 2004-08-17 06:40:26 UTC
If a user logs into a Windows XP box connected to the samba server then
the machine panics.

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x8
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0689c0f
stack pointer           = 0x10:0xec926c70
frame pointer		= 0x10:0xec926ce4
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 870 (smbd)
trap number		= 12
panic: page fault
cpuid = 0;
boot() called on cpu#0

Fix: 

Turning off QUOTA in samba seems to stabilize it.
How-To-Repeat: 
Compile a kernel with QUOTA, install samba with QUOTA, try logging in to
a windows box connected to the samba server.  The filesystem that samba
is accessing is not a filesystem with quotas enabled, but we haven't
tested yet to see if that matters.
Comment 1 Tim Robbins freebsd_committer freebsd_triage 2004-09-05 07:53:18 UTC
State Changed
From-To: open->closed

Fixed in -current. For more information, see: 
http://docs.freebsd.org/cgi/mid.cgi?5j1ph0pdod0dnjefu1tpsj4vo2pvqv3uom