kmem_map too small panic in kmem_malloc, related to ACLs?

From: Andreas Kohn <andreas.kohn_at_gmx.net>
Date: Fri, 22 Jul 2005 14:10:30 +0200
Hi,

I got a reproducible panic 
panic: kmem_malloc(943013888): kmem_map too small: xxxx total allocated
(943... is constant, xxx varies)
when doing a rm -f * in /tmp as user. Looking at the backtraces, it
looks like this may be related to ACLs active on /tmp. 

/dev/vol/tmp on /tmp (ufs, local, soft-updates, acls)

Also interesting to note: both panics referred to the same file in 
kern_unlink, so I tried to do ls -al oracle1.jpg...and it panicked again.
I don't have the dump for this one, my /var/crash was full.

The system is
FreeBSD klamath.syndrom23.de 7.0-CURRENT FreeBSD 7.0-CURRENT #11: Wed
Jul 20 20:13:51 CEST 2005
root_at_klamath.syndrom23.de:/usr/obj/usr/src/sys/KLAMATH  i386

Kernel config contains SCHED_ULE, PREEMPTION, no INVARIANTS/WITNESS, and is 
attached.

Backtraces from the first rm -f attempts are attached, please let me know
if you would like me to retrieve any additional information.


Best regards,
Andreas

-- 
<TalisA> was macht man eigentlich auf einer linux-gamer lan ? hl server
aufsetzen und freuen ? *duck* ^^
-- 
<TalisA> was macht man eigentlich auf einer linux-gamer lan ? hl server
aufsetzen und freuen ? *duck* ^^

machine		i386
cpu		I686_CPU
ident		KLAMATH

#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		#ULE scheduler
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=2000 	#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.
device		isa
device		eisa
device		pci

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
options 	ATA_STATIC_ID		#Static device numbering

# SCSI Controllers
device		amd		# AMD 53C974 (Tekram DC-390(T))
device		trm		# Tekram DC395U/UW/F DC315U adapters

# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)

# 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

device		agp		# support several AGP chipsets

# Floating point support - do not disable.
device		npx

# 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, Rhine II

# Pseudo devices - the number indicates how many units to allocate.
device		random		# Entropy device
device		loop		# Network loopback
device		ether		# Ethernet support
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 1.x interface
device		ehci		# EHCI PCI->USB 2.0 interface
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
# keep umass as module, so adding quirks is easier
#device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse

device		sound

options		IPFIREWALL
options		IPFIREWALL_VERBOSE
options		IPDIVERT

device		iicbus
device		iicbb
device		smbus

device		bktr

options		BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL
options		BROOKTREE_ALLOC_PAGES=512 # default: 216*4k = 864k, increasing
					  # may help with 24bit mode

device		atapicam

options		INCLUDE_CONFIG_FILE	# Include this configuration file in the 
					# kernel image.

#options		IPSEC
#options		IPSEC_ESP
#options		IPSEC_DEBUG

device		io
device		mem
device		cpufreq

#device		bridge_ng

#options		CODA
#device		vcoda
#options	CODA_COMPAT_5 # naaa, don't want coda 5.x compat, 6.x is better and realms aware

options		SC_PIXEL_MODE
options		PREEMPTION
#options	FULL_PREEMPTION
Received on Fri Jul 22 2005 - 10:10:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:39 UTC