tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ktrace -p nonexistent process causes a panic


I can reliabily crash latest netbsd-5 kernel with an unprivilegied
ktrace -p on an unexisting process:

$ ktrace -p 666
panic: kernel diagnostic assertion "fp->f_count == 0" failed: file
"/usr/src-5/sys/kern/kern_descrip.c", line 1115
fatal breakpoint trap in supervisor mode
trap type 1 code 0 eip c03a821c cs 9 eflags 246 cr2 bbb52b80 ilevel 0
Stopped in pid 547.1 (ktrace) at        netbsd:breakpoint+0x4:  popl
db> bt
c,c02da20f,cb465f38,3) at netbsd:breakpoint+0x4
91,c044a0f4) at netbsd:panic+0x1a6
,cb553184,cb553184) at netbsd:__kernassert+0x39
0) at netbsd:ffree+0x6f
a2,1000000,13be) at netbsd:sys_ktrace+0x12b
syscall(cb802d48,1f,1f,1f,1f,8049564,80495a3,bfbfec18,1000000,1) at

This is annoying since it can be very easily tirggered by mistake: an
unrpivilegied user doing a typo can bring down the system.

Known problem? PR already filled? If not, is it reproductible on other
systems than mine?

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index