Date: Mon, 24 Jun 2002 18:04:07 -0400 (EDT) From: Wesley Morgan <morganw@chemikals.org> To: <current@freebsd.org> Subject: -current panic in suser_cred() Message-ID: <13961.148.175.49.1.1024956247.squirrel@www.chemikals.org>
index | next in thread | raw e-mail
[-- Attachment #1 --]
At some point between 20 Jun and (by my best guest) 22 Jun there has been
a problem introduced somewhere... How much more vague can you get? :)...
File creation works fine, but attempting to rm causes a panic.
config and dmesg (of a non-panicking kernel) are attached, panic message
and gdb stuff below... Hope it's enough info to get a fix in the works!
Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x4
fault code = supervisor read, page not present
instruction pointer = 0x8:0xc019249c
stack pointer = 0x10:0xdb467b4c
frame pointer = 0x10:0xdb467b50
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 = 145 (rm)
panic: from debugger
#0 0xc019614b in doadump ()
#1 0xc01965db in boot (howto=260)
#2 0xc01967fb in panic ()
#3 0xc0139452 in db_panic ()
#4 0xc01393d2 in db_command (last_cmdp=0xc02fd2e0, cmd_table=0xc02fd100,
aux_cmd_tablep=0xc02f4c7c, aux_cmd_tablep_end=0xc02f4c80)
#5 0xc01394e6 in db_command_loop ()
#6 0xc013c07a in db_trap (type=12, code=0) at ../../../ddb/db_trap.c:76
#7 0xc0298dfe in kdb_trap (type=12, code=0, regs=0xdb467b0c)
at ../../../i386/i386/db_interface.c:214
#8 0xc02a9153 in trap_fatal (frame=0xdb467b0c, eva=4)
#9 0xc02a8e62 in trap_pfault (frame=0xdb467b0c, usermode=0, eva=4)
#10 0xc02a885a in trap (frame=
{tf_fs = -1013055464, tf_es = 196624, tf_ds = 16, tf_edi = -1, tf_esi
= -1012546560, tf_ebp = -616137904, tf_isp = -616137928, tf_ebx = 0, tf_edx
= 0, tf_ecx = -1012854016, tf_eax = 1, tf_trapno = 12, tf_err = 0, tf_eip =
-1072094052, tf_cs = 8, tf_eflags = 66050, tf_esp = -1012854016, tf_ss =
-616137864}) at ../../../i386/i386/trap.c:659
--- begin interesting stuff ---
#11 0xc019249c in suser_cred (cred=0x0, flag=0)
#12 0xc025dab5 in chkiq (ip=0xc3a5c400, change=4294967295, cred=0x0,
flags=0)#13 0xc025b57f in ufs_inactive (ap=0xdb467be0)
at ../../../ufs/ufs/ufs_inode.c:132
#14 0xc0263a08 in ufs_vnoperate (ap=0xdb467be0)
#15 0xc01e01e5 in vput (vp=0xc3a59c00)
#16 0xc01e77c4 in unlink (td=0xc393c41c, uap=0xdb467d10)
#17 0xc02a948a in syscall (frame=
{tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077936696, tf_esi = 0,
tf_ebp = -1077936776, tf_isp = -616137356, tf_ebx = -1077936553, tf_edx =
-1077936508, tf_ecx = 47, tf_eax = 10, tf_trapno = 12, tf_err = 2, tf_eip =
134524795, tf_cs = 31, tf_eflags = 582, tf_esp = -1077936916, tf_ss = 47})
#18 0xc029a57d in syscall_with_err_pushed () at {standard input}:128
#19 0x0804839a in ?? ()
#20 0x08048145 in ?? ()
[-- Attachment #2 --]
machine i386
ident CATALYST
maxusers 64
options NMBCLUSTERS=16384
makeoptions CONF_CFLAGS="-fno-builtin"
options PQ_CACHESIZE=512 # color for 512k/16k cache
options MALLOC_PROFILE
# strings -aout -n 3 /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL
#
options INCLUDE_CONFIG_FILE # Include this file in kernel
#####################################################################
# CPU OPTIONS
cpu I686_CPU
options CPU_ENABLE_SSE
options CPU_SUSP_HLT
#####################################################################
# COMPATIBILITY OPTIONS
options COMPAT_43
options SYSVSHM
options SYSVSEM
options SYSVMSG
options DDB
#options DDB_UNATTENDED
options KTRACE #kernel tracing
#options USERCONFIG #boot -c editor
#options VISUAL_USERCONFIG #visual boot -c editor
#####################################################################
# NETWORKING OPTIONS
options INET #Internet communications protocols
#options INET6 #IPv6 communications protocols
options IPSEC #IP security
options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
device ether #Generic Ethernet
device loop #Network loopback device
device bpf #Berkeley packet filter
#device tun #Tunnel driver (ppp(8), nos-tun(8))
#device gif 4 #IPv6 and IPv4 tunneling
#device faith 1 #for IPv6 and IPv4 translation
#device stf #6to4 IPv6 over IPv4 encapsulation
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
options RANDOM_IP_ID
#####################################################################
# FILESYSTEM OPTIONS
options FFS #Fast filesystem
options SOFTUPDATES
options UFS_DIRHASH #Improve performance on big directories
#options UFS_EXTATTR
#options UFS_EXTATTR_AUTOSTART
#options UFS_ACL
options SHOW_BUSYBUFS # List buffers that prevent root unmount
#options NODEVFS #devices filesystem
options PROCFS #Process filesystem
options PSEUDOFS
options NSWAPDEV=2
options QUOTA #enable disk quotas
device random
#####################################################################
# POSIX P1003.1B
options P1003_1B
options _KPOSIX_PRIORITY_SCHEDULING
options _KPOSIX_VERSION=199309L
#####################################################################
# CLOCK OPTIONS
#options HZ=1000
#options CLK_USE_I8254_CALIBRATION
options CLK_USE_TSC_CALIBRATION
#####################################################################
# MISCELLANEOUS DEVICES AND OPTIONS
device pty #Pseudo ttys
device md #Memory/malloc disk
device snp #Snoop device - to look at pty/vty/etc..
#####################################################################
# HARDWARE BUS CONFIGURATION
device isa
#device eisa
device pci
options PCI_ENABLE_IO_MODES
device agp
options PPS_SYNC
options NTIMECOUNTER=20
#####################################################################
# HARDWARE DEVICE CONFIGURATION
device atkbdc 1
device atkbd
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
device psm
options PSM_RESETAFTERSUSPEND #reset the device at the resume event
device vga
options VESA
#device splash
device sc 1
options MAXCONS=16 # number of virtual consoles
options SC_ALT_MOUSE_IMAGE # simplified mouse cursor in text mode
options SC_PIXEL_MODE
options SC_TWOBUTTON_MOUSE
device npx
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
options ATAPICAM
device scbus
device pass
device cd
#device fdc
device sio
#device miibus
#device dc # DEC/Intel 21143 and various workalikes
#device fxp
#device wi
#device pcm
#device sbc
#device apm
device pmtimer
#
# PC Card/PCMCIA
# (OLDCARD)
#
# card: pccard slots
# pcic: isa/pccard bridge
device pcic
device card
#
# PC Card/PCMCIA and Cardbus
# (NEWCARD)
#
# pccbb: isa/pccard and pci/cardbus bridge
# pccard: pccard slots
# cardbus: cardbus slots
#device pccbb
#device pccard
#device cardbus
# You may need to reset all pccards after resuming
options POWERFAIL_NMI # make it beep instead of panicing
#device ppc
#device ppbus
#device lpt
#device ppi
#device pps
device scbus #base SCSI code
device da #SCSI direct access devices (aka disks)
[-- Attachment #3 --]
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #65: Thu Jun 20 18:30:59 MDT 2002
root@catalyst.chemikals.org:/usr/src/sys/i386/compile/CATALYST
Preloaded elf kernel "/boot/kernel.work/kernel" at 0xc03b8000.
Preloaded elf module "/boot/kernel.work/apm.ko" at 0xc03b80b0.
Timecounter "i8254" frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (995.96-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory = 519438336 (507264K bytes)
avail memory = 501293056 (489544K bytes)
Pentium Pro MTRR support enabled
VESA: v2.0, 16384k memory, flags:0x0, mode table:0xc034fce0 (1000040)
VESA: Trident CYBER 8820
Using $PIR table, 7 entries at 0xc00f01d0
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
agp0: <Ali Generic host to PCI bridge> mem 0xf0000000-0xf3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pci0: <serial bus, USB> at device 2.0 (no driver attached)
atapci0: <AcerLabs Aladdin ATA66 controller> port 0xeff0-0xefff at device 4.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <multimedia, audio> at device 6.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge, PCI-unknown> at device 8.0 (no driver attached)
pci0: <network, ethernet> at device 10.0 (no driver attached)
pci0: <base peripheral> at device 18.0 (no driver attached)
orm0: <Option ROMs> at iomem 0xe0000-0xeffff,0xc0000-0xcbfff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
sc0: <System console> at flags 0x6 on isa0
sc0: VGA <16 virtual consoles, flags=0x206>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
sio0: <16550A-compatible COM port> at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
pcic0: <Intel i82365SL-A/B> at port 0x3e0-0x3e1 on isa0
pcic0: Polling mode
pccard0: <PC Card bus (classic)> on pcic0
pccard1: <PC Card bus (classic)> on pcic0
Timecounters tick every 10.000 msec
IPsec: Initialized Security Association Processing.
pccard: card inserted, slot 0
ata1-slave: timeout waiting for interrupt
ata1-slave: ATAPI identify failed
ad0: 28615MB <TOSHIBA MK3017GAP> [58140/16/63] at ata0-master UDMA66
stray irq 7
acd0: CD-RW <UJDA720 DVD/CDRW> at ata1-master PIO4
(noperiph:atapi1:0:-1:-1): Registered SIM for ata1
acd0: unknown CMD (0x12) - ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00 0x01 error=0x00
acd0: unknown CMD (0x12) - ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00 0x01 error=0x00
Mounting root from ufs:/dev/ad0s2a
cd0 at atapi1 bus 0 target 0 lun 0
cd0: <MATSHITA UJDA720 DVD/CDRW 1.00> Removable CD-ROM SCSI-0 device
cd0: 844.800MB/s transfers (2048bit)
cd0: cd present [2274626 x 2048 byte records]
WARNING: / was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
md0: Malloc disk
sio1 at port 0x2e8-0x2ef irq 3 slot 0 on pccard0
sio1: type 16550A
Connection attempt to TCP 127.0.0.1:25 from 127.0.0.1:49158
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xeb40-0xeb7f mem 0xf7ec0000-0xf7edffff,0xf7efd000-0xf7efdfff irq 11 at device 10.0 on pci0
fxp0: Ethernet address 00:00:39:24:d0:de
inphy0: <i82555 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13961.148.175.49.1.1024956247.squirrel>
