Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2004 13:50:33 +0200
From:      Marc "UBM" Bocklet <ubm@u-boot-man.de>
To:        current@freebsd.org
Subject:   Re: Bogus signal handler causes kernel panic (5.2.1-p8/i386)
Message-ID:  <20040616135033.3148f290.ubm@u-boot-man.de>
In-Reply-To: <20040616105706.GC1140@zi025.glhnet.mhn.de>
References:  <20040616105706.GC1140@zi025.glhnet.mhn.de>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, 16 Jun 2004 12:57:06 +0200
Simon Barner <barner@in.tum.de> wrote:

> Hi,
> 
> I tried the local denial of service attack described in [1], that was
> reported for Linux 2.4 and 2.6 some days ago (see [2] for the original
> thread in linux.kernel)  on my FreeBSD 5.2.1-p8 system.
> 
> The result is a kernel panic (back trace attached).
> 
> Since des@ told me in a private mail, that he could not reprocduce the
> panic on -CURRENT, I'd like to ask how to proceed from here.
> 
> Is the problem known to be fixed in current?
> Is somebody able to reproduce this on FreeBSD 5.2.1 (I am sorry,
> upgrading to -CURRENT is out of question for me)?

I just did a "gcc crash.c" and ran the resulting a.out. I assume that is
the right way to compile it? (I have no experience with those things).

Nothing happened, the program did not even dump core, I just got lots of
weird screen output. I ran it both as root and as a normal user.

I'm running:

FreeBSD greatsheep 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #3: Sun Jun
13 03:22:44 CEST 2004    
sheep@greatsheep:/usr/obj/usr/src/sys/SUBMARINE_SMP  i386

I've attached my kernel config and my dmesg.

Hope that helps. :-)

Bye
Marc

[-- Attachment #2 --]

machine		i386
cpu		I686_CPU
ident		SUBMARINE_SMP


# SMP options for SUBMARINE_SMP

options		SMP
device		apic
device 		acpi


# Networking options for SUBMARINE

options		BRIDGE
#options	IPFIREWALL
#options	IPFIREWALL_DEFAULT_TO_ACCEPT
options         PFIL_HOOKS
options		TCP_DROP_SYNFIN
options		IPSTEALTH
options		RANDOM_IP_ID
#options 	DUMMYNET
options		HZ=2000


# VESA support

options		VESA


# raster display support (allows VESA_800x600)

options		SC_PIXEL_MODE


# Sound support

device 		pcm
device		sbc


# midi support

device		midi
device		seq


# SMBus support for INTEL PIIX4 chipset

device		smbus
device		intpm
device		smb


# KGI4BSD support (!!!EXPERIMENTAL!!!)

#options	KGI_COMPAT
#options	KGI_DBG_LEVEL=0
#options        KGI_NOSPLASH
#device		kgi			# Kernel Graphic Interface
#device		kip			# KGI input parser
#device		kgy	       		# KGI compatible display
#device		scemul         		# syscons emulation for KGC
#device		kgc            		# KGI console
#device		kgu            		# KGI graphic user interface
#device		kiu            		# KGI input user interface
#device		crt            		# KGI crt monitor driver


#To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		#Default places to look for devices.

#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

#options 	SCHED_4BSD		#4BSD scheduler
options		SCHED_ULE		#new 5.x thread scheduler (experimental!!)
options 	INET			#InterNETworking
options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	UFS_ACL			#Support for access control lists
options 	UFS_DIRHASH		#Improve performance on big directories
options 	MD_ROOT			#MD is a potential root device
options 	NFSCLIENT		#Network Filesystem Client
options 	NFSSERVER		#Network Filesystem Server
options 	NFS_ROOT		#NFS usable as /, requires NFSCLIENT
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	PROCFS			#Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		#Pseudo-filesystem framework
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD4		#Compatible with FreeBSD4
options 	SCSI_DELAY=5000		#Delay (in ms) before probing SCSI
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~215k to driver.

# Debugging for use in -current
#options 	DDB			#Enable the kernel debugger
#options 	INVARIANTS		#Enable calls of extra sanity checking
options 	INVARIANT_SUPPORT	#Extra sanity checks of internal structures, required by INVARIANTS
#options 	WITNESS			#Enable checks to detect deadlocks and cycles
#options 	WITNESS_SKIPSPIN	#Don't run witness on spinlocks for speed

# standard bus systems

device		isa
device		eisa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
device		atapicam		# SCSI emulation
options 	ATA_STATIC_ID		# Static device numbering

# SCSI Controllers
device		ahc		# AHA2940 and onboard AIC7xxx devices
device		sym		# Symbios/LSI 53C8xx devices

# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
device		ch		# SCSI media changers
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)
device		ses		# SCSI Environmental Services (and SAF-TE)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

# Enable this for the pcvt (VT220 compatible) console driver
#device		vt
#options 	XSERVER			# support for X server on a vt console
#options 	FAT_CURSOR		# start with block cursor

device		agp		# support several AGP chipsets

# Floating point support - do not disable.
device		npx

# Power management support (see NOTES for more options)
#device		apm
# Add suspend/resume support for the i8254.
device		pmtimer

# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		rl		# RealTek 8129/8139
device		vr		# Via Rhine II/III
device		xl		# 3Com 3c90x

# Pseudo devices - the number indicates how many units to allocate.
device		random		# Entropy device
device		loop		# Network loopback
device		ether		# Ethernet support
device		sl		# Kernel SLIP
device		ppp		# Kernel PPP
device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
device		urio		# Diamond Rio 500 MP3 player
device		uscanner	# Scanners


[-- Attachment #3 --]
Copyright (c) 1992-2004 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.2.1-RELEASE-p8 #3: Sun Jun 13 03:22:44 CEST 2004
    sheep@greatsheep:/usr/obj/usr/src/sys/SUBMARINE_SMP
Preloaded elf kernel "/boot/kernel/kernel" at 0xc08cc000.
Preloaded elf module "/boot/kernel/if_fxp.ko" at 0xc08cc244.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium III/Pentium III Xeon/Celeron (451.03-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 402522112 (383 MB)
avail memory = 381313024 (363 MB)
ACPI APIC Table: <OEMTYN OEMTYNTB>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
Pentium Pro MTRR support enabled
VESA: v2.0, 65536k memory, flags:0x1, mode table:0xc080c082 (1000022)
VESA: ATI RADEON 8500
acpi0: <OEMTYN OEMTYNTB> on motherboard
acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 20
pcibios: BIOS version 2.10
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
acpi_cpu1: <CPU> port 0x530-0x537 on acpi0
acpi_cpu1: Failed to attach throttling P_CNT
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82443GX host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 16
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xef80-0xef9f irq 19 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
intpm0: <Intel 82371AB Power management controller> port 0x440-0x44f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 440
intpm0: intr IRQ 9 enabled revision 0
intsmb0: <Intel PIIX4 SMBUS Interface> on intpm0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus generic I/O> on smbus0
intpm0: PM I/O mapped 400 
sym0: <896> port 0xe400-0xe4ff mem 0xfebe0000-0xfebe1fff,0xfebe8000-0xfebe83ff irq 17 at device 11.0 on pci0
sym0: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: handling phase mismatch from SCRIPTS.
sym1: <896> port 0xe800-0xe8ff mem 0xfebf0000-0xfebf1fff,0xfebf8000-0xfebf83ff irq 18 at device 11.1 on pci0
sym1: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
sym1: open drain IRQ line driver, using on-chip SRAM
sym1: using LOAD/STORE-based firmware.
sym1: handling phase mismatch from SCRIPTS.
pcm0: <AudioPCI ES1373-8> port 0xef00-0xef3f irq 18 at device 12.0 on pci0
pcm0: <Cirrus Logic CS4297 AC97 Codec>
fxp0: <Intel 82559 Pro/100 Ethernet> port 0xee80-0xeebf mem 0xfea00000-0xfeafffff,0xfebdf000-0xfebdffff irq 19 at device 13.0 on pci0
fxp0: Ethernet address 00:e0:81:10:e4:49
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <display, VGA> at device 14.0 (no driver attached)
xl0: <3Com 3c905B-FX/SC Fast Etherlink XL> port 0xec00-0xec7f mem 0xfebdef80-0xfebdefff irq 17 at device 17.0 on pci0
xl0: Ethernet address: 00:50:da:26:69:30
vr0: <VIA VT6105 Rhine III 10/100BaseTX> port 0xe000-0xe0ff mem 0xfebdee00-0xfebdeeff irq 18 at device 18.0 on pci0
vr0: Ethernet address: 00:e0:7d:f0:4e:3d
miibus1: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
acpi_button0: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0: cmd 3 failed at out byte 1 of 3
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
fdc0: cmd 3 failed at out byte 1 of 3
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
orm0: <Option ROMs> at iomem 0xcc000-0xcffff,0xc0000-0xcbfff on isa0
pmtimer0 on isa0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sbc0: <Creative SB16/SB32> at port 0x388-0x38b,0x330-0x331,0x220-0x22f irq 5 drq 5,1 on isa0
pcm1: <SB16 DSP 4.13> on sbc0
midi0: <SB Midi Interface> on sbc0
midi1: <SB OPL FM Synthesizer> on sbc0
ata2: <Generic ESDI/IDE/ATA controller> at port 0x36e-0x36f,0x168-0x16f irq 10 on isa0
ata2: [MPSAFE]
midi2: <CTL0021 WaveTable Synthesizer> at port 0x620-0x623 on isa0
emu2: Resource alloc failed, pnp_quirks may need { 0x48008c0e, 0x21008c0e }
device_probe_and_attach: midi2 attach returned 6
Timecounters tick every 1.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
GEOM: create disk ad2 dp=0xc3b0a460
ad2: 8056MB <ST38421A> [16368/16/63] at ata1-master UDMA33
Waiting 5 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
(noperiph:sym1:0:-1:-1): SCSI BUS reset delivered.
GEOM: create disk da0 dp=0xc3b9d050
da0 at sym1 bus 0 target 0 lun 0
da0: <FUJITSU MAG3182LC 5210> Fixed Direct Access SCSI-2 device 
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 17429MB (35694860 512 byte sectors: 255H 63S/T 2221C)
SMP: AP CPU #1 Launched!
Mounting root from ufs:/dev/ad2s1a

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040616135033.3148f290.ubm>