Bug 32267

Summary: kernel panic with 'options LOCKF_DEBUG'
Product: Base System Reporter: Maxim Konovalov <maxim>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Maxim Konovalov 2001-11-25 12:20:02 UTC
	src/kern/kern_lockf.c:

	lf_print and lf_printlist are trying to deref an
	uninitiliazed lf_inode.

	There was a short discussion in -hackers but nobody has
	committed the fix:

http://www.freebsd.org/cgi/getmsg.cgi?fetch=414034+0+/usr/local/www/db/text/2001/freebsd-hackers/20011118.freebsd-hackers

How-To-Repeat: 
	echo 'options LOCKF_DEBUG' >> KERNCONF,
	recompile the kernel, install it, reboot,

	# sysctl -w debug.lockf_debug=1
	$ lockf -k /etc/passwd sleep 1

	got the panic.
Comment 1 Alfred Perlstein freebsd_committer freebsd_triage 2001-12-02 12:47:51 UTC
State Changed
From-To: open->closed

attached patch has been committed