Код: Выделить всё
FreeBSD 8.0-CURRENT #0 r189900: Tue Mar 17 01:00:13 UTC 2009
luser@qemu:/usr/obj/i386/usr/src/sys/DEBUG
...
# dd if=/dev/random of=/dev/mem
Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex random reseed (random reseed) r = 0 (0xc0d6ce20) locked @ /usr/src/sys/dev/random/yarrow.c:278
KDB: stack backtrace:
db_trace_self_wrapper(c0c322ac,d63839dc,c0898b65,c0c0ce34,116,...) at db_trace_self_wrapper+0x26
kdb_backtrace(c0c0ce34,116,ffffffff,c0ec1cd4,d6383a14,...) at kdb_backtrace+0x29
_witness_debugger(c0c346fe,d6383a28,4,1,0,...) at _witness_debugger+0x25
witness_warn(5,0,c0c6665d,c0d85870,c37a3548,...) at witness_warn+0x1fd
trap(d6383ab4) at trap+0x152
calltrap() at calltrap+0x6
--- trap 0xc, eip = 0xc04b9e41, esp = 0xd6383af4, ebp = 0xd6383b51 ---
rijndaelEncrypt(20c0d6d3,c0d6d1,c0d6d1,c0000001,94c0d6d0,...) at rijndaelEncrypt+0x11
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0xfffffff6
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc04b9e41
stack pointer = 0x28:0xd6383af4
frame pointer = 0x28:0xd6383b51
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, IOPL = 0
current process = 19 (dd)
[thread pid 19 tid 100039 ]
Stopped at rijndaelEncrypt+0x11: addb 0xfffffff6(%ecx),%bl
db> bt
Tracing pid 19 tid 100039 td 0xc37d7000
rijndaelEncrypt(20c0d6d3,c0d6d1,c0d6d1,c0000001,94c0d6d0,...) at rijndaelEncrypt+0x11
db> show all locks
Process 19 (dd) thread 0xc37d7000 (100039)
exclusive sleep mutex random reseed (random reseed) r = 0 (0xc0d6ce20) locked @ /usr/src/sys/dev/random/yarrow.c:278
db> show lockedvnods
Locked vnodes
db> show thread 0xc37d7000
Thread 100039 at 0xc37d7000:
proc (pid 19): 0xc37a3548
name: dd
stack: 0xd6382000-0xd6383fff
flags: 0x4 pflags: 0
state: RUNNING (CPU 0)
priority: 187
container lock: sched lock 0 (0xc0d85840)
db> show lock 0xc0d6ce20
class: sleep mutex
name: random reseed
flags: {DEF}
state: {OWNED}
owner: 0xc37d7000 (tid 100039, pid 19, "dd")