kern/70562: Fatal Trap 12 in kernel mode from samba3 with QUOTA support

William D. Colburn wcolburn at
Mon Aug 16 22:40:26 PDT 2004

>Number:         70562
>Category:       kern
>Synopsis:       Fatal Trap 12 in kernel mode from samba3 with QUOTA support
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 17 05:40:26 GMT 2004
>Originator:     William D. Colburn (aka Schlake)
>Release:        FreeBSD 5.2.1-RELEASE-p9 i386
New Mexico Institute of Mining and Technology
System: FreeBSD 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Sat Aug 14 16:55:45 MDT 2004 wcolburn at i386

A Del 2650, running FreeBSD 5.2.1, with current everything (from today)
via cvsup.  The kernel config is a copy of GENERIC with "ident" changed
to "USERHOST" and "options QUOTA" added.  The samba compile is standard
(with QUOTA enabled).

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 0x0, 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


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.


Turning off QUOTA in samba seems to stabilize it.

More information about the freebsd-bugs mailing list