panic:W ApoRNoIlN_Gc:a chSPeL_ iNtOeTm _LOmaWgEiRcE_cDh eOcNk :S YmSCbAuLfpL l2 cp1u8 85fr4e2e11 7l0i EsXt ITmo d0 ifa
i
edStopped at savectx+0xb1: movl $0,%gs:0x530
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*337271 87248 0 0x2 0 0 syz-executor.1
174301 76896 0 0x12 0 1 sshd
savectx() at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffd3cf0, count: 14
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd807d509b00+16 0x0!=0xc66aff598a14becc
ddb{0}> trace
savectx() at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffd3cf0, count: -1
ddb{0}> show registers
rdi 0
rsi 0
rbp 0xffff800020ba5300
rbx 0
rdx 0xffff800020ad7ae8
rcx 0
rax 0x3a
r8 0xffffffff81d5b7df kprintf+0x16f
r9 0x1
r10 0x25
r11 0x698d7d658ae25828
r12 0
r13 0
r14 0xffff800020ad7ae8
r15 0
rip 0xffffffff81b0b3f1 savectx+0xb1
cs 0x8
rflags 0x46
rsp 0xffff800020ba5280
ss 0x10
savectx+0xb1: movl $0,%gs:0x530
ddb{0}> show proc
PROC (syz-executor.1) pid=337271 stat=onproc
flags process=2<EXEC> proc=0
pri=79, usrpri=79, nice=20
forw=0xffffffffffffffff, list=0xffff800020a7dd48,0xffff800020ad69e8
process=0xffff800020a912d0 user=0xffff800020ba0000, vmspace=0xfffffd807efffb80
estcpu=29, cpticks=1, pctcpu=0.19
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
29384 58964 87248 0 2 0 syz-executor.1
75733 196519 0 0 3 0x14200 bored sosplice
*87248 337271 55278 0 7 0x2 syz-executor.1
2701 209726 55278 0 3 0x2 biowait syz-executor.0
55278 175228 79926 0 3 0x82 kqread syz-fuzzer
55278 491096 79926 0 3 0x4000082 nanosleep syz-fuzzer
55278 95873 79926 0 3 0x4000082 nanosleep syz-fuzzer
55278 331600 79926 0 3 0x4000082 thrsleep syz-fuzzer
55278 364229 79926 0 3 0x4000082 thrsleep syz-fuzzer
55278 108291 79926 0 3 0x4000082 thrsleep syz-fuzzer
55278 285757 79926 0 3 0x4000082 thrsleep syz-fuzzer
55278 301057 79926 0 3 0x4000082 thrsleep syz-fuzzer
55278 57713 79926 0 3 0x4000082 thrsleep syz-fuzzer
55278 46232 79926 0 3 0x4000082 thrsleep syz-fuzzer
55278 254273 79926 0 3 0x4000082 thrsleep syz-fuzzer
79926 439806 76896 0 3 0x10008a pause ksh
76896 174301 91950 0 7 0x12 sshd
44898 415163 1 0 3 0x100083 ttyin getty
91950 134853 1 0 3 0x80 select sshd
62240 133711 61345 74 3 0x100092 bpf pflogd
61345 29697 1 0 3 0x80 netio pflogd
97541 195902 9297 73 3 0x100090 kqread syslogd
9297 232986 1 0 3 0x100082 netio syslogd
15213 411526 0 0 2 0x14200 zerothread
49108 441411 0 0 3 0x14200 aiodoned aiodoned
91958 154684 0 0 3 0x14200 syncer update
23866 406014 0 0 3 0x14200 cleaner cleaner
32707 215998 0 0 3 0x14200 reaper reaper
8887 276287 0 0 3 0x14200 pgdaemon pagedaemon
53093 439764 0 0 3 0x14200 bored crynlk
13979 49973 0 0 3 0x14200 bored crypto
43918 40250 0 0 3 0x40014200 acpi0 acpi0
51552 252141 0 0 3 0x40014200 idle1
75527 98524 0 0 3 0x14200 bored softnet
35441 85011 0 0 3 0x14200 bored systqmp
48689 423832 0 0 3 0x14200 bored systq
71985 160651 0 0 3 0x40014200 bored softclock
49740 40687 0 0 3 0x40014200 idle0
18722 136369 0 0 3 0x14200 bored smr
1 260988 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
CPU 0:
exclusive mutex vmmpekpl r = 0 (0xffffffff8264f170)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 mtx_enter_try+0x102
#2 mtx_enter+0x4b sys/kern/kern_lock.c:266
#3 pool_put+0x64 sys/kern/subr_pool.c:792
#4 uvm_unmap_detach+0x231 sys/uvm/uvm_map.c:1577
#5 uvm_map+0xe24 sys/uvm/uvm_map.c:1414
#6 uvm_km_kmemalloc_pla+0x11d sys/uvm/uvm_km.c:334
#7 uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274
#8 fork1+0x295 sys/kern/kern_fork.c:368
#9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#10 Xsyscall+0x128
Process 87248 (syz-executor.1) thread 0xffff800020ad7ae8 (337271)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82653998)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline]
#1 syscall+0x400 sys/arch/amd64/amd64/trap.c:570
#2 Xsyscall+0x128
exclusive mutex vmmpekpl r = 0 (0xffffffff8264f170)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 mtx_enter_try+0x102
#2 mtx_enter+0x4b sys/kern/kern_lock.c:266
#3 pool_put+0x64 sys/kern/subr_pool.c:792
#4 uvm_unmap_detach+0x231 sys/uvm/uvm_map.c:1577
#5 uvm_map+0xe24 sys/uvm/uvm_map.c:1414
#6 uvm_km_kmemalloc_pla+0x11d sys/uvm/uvm_km.c:334
#7 uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274
#8 fork1+0x295 sys/kern/kern_fork.c:368
#9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#10 Xsyscall+0x128
Process 2701 (syz-executor.0) thread 0xffff800020a7c4e8 (209726)
exclusive rrwlock inode r = 0 (0xfffffd807e34fe70)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615
#4 vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5 vget+0x1c8 sys/kern/vfs_subr.c:671
#6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119
#7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323
#8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487
#9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91
#10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568
#11 namei+0x63c sys/kern/vfs_lookup.c:249
#12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1860
#13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806b4316f8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615
#4 vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419
#6 namei+0x63c sys/kern/vfs_lookup.c:249
#7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1860
#8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#9 Xsyscall+0x128
Process 76896 (sshd) thread 0xffff800020aeec40 (174301)
exclusive rwlock netlock r = 0 (0xffffffff82460e68)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 solock+0x5a sys/kern/uipc_socket2.c:282
#2 sosend+0x559 sys/kern/uipc_socket.c:537
#3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364
#4 sys_write+0x83 sys/kern/sys_generic.c:284
#5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#6 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9515 6353K 6935K 78643K 10937 0
pcb 13 8K 8K 78643K 85 0
rtable 106 4K 4K 78643K 290 0
ifaddr 76 14K 15K 78643K 114 0
counters 43 33K 34K 78643K 53 0
ioctlops 0 0K 4K 78643K 1486 0
iov 0 0K 16K 78643K 28 0
mount 1 1K 1K 78643K 1 0
vnodes 1224 77K 77K 78643K 1316 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 23 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 5 13K 25K 78643K 176 0
proc 55 51K 95K 78643K 468 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 21 0
in_multi 44 2K 2K 78643K 89 0
ether_multi 1 0K 0K 78643K 14 0
mrt 0 0K 0K 78643K 6 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 49 228K 228K 78643K 49 0
exec 0 0K 1K 78643K 211 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 103 21K 38K 78643K 1552 0
UVM aobj 11 2K 2K 78643K 13 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 46 0
NDP 13 0K 0K 78643K 23 0
temp 124 3019K 3083K 78643K 3729 0
kqueue 3 4K 8K 78643K 10 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 8 0 3 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 29 0 29 1 0 1 1 0 8 1
rtentry 112 57 0 17 2 0 2 2 0 8 0
unpcb 120 452 0 444 2 0 2 2 0 8 1
syncache 264 5 0 5 2 2 0 1 0 8 0
tcpqe 32 2 0 2 1 1 0 1 0 8 0
tcpcb 544 83 0 77 1 0 1 1 0 8 0
inpcb 280 386 0 380 2 0 2 2 0 8 1
rttmr 72 2 0 2 2 2 0 1 0 8 0
nd6 48 7 0 3 1 0 1 1 0 8 0
pkpcb 40 3 0 3 1 1 0 1 0 8 0
ppxss 1128 1 0 1 1 1 0 1 0 8 0
pffrag 232 6 0 6 1 1 0 1 0 482 0
pffrnode 88 6 0 6 1 1 0 1 0 8 0
pffrent 40 267 0 267 1 1 0 1 0 8 0
pfosfp 40 846 0 423 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 49 0 7 1 0 1 1 0 8 0
pfstkey 112 49 0 7 2 0 2 2 0 8 0
pfstate 328 49 0 7 4 0 4 4 0 8 0
pfrule 1360 21 0 16 2 1 1 2 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 291 0 58 15 0 15 15 0 8 0
art_table 32 292 0 58 2 0 2 2 0 8 0
art_node 16 56 0 19 1 0 1 1 0 8 0
sysvmsgpl 40 20 0 17 1 0 1 1 0 8 0
semupl 112 1 0 1 1 0 1 1 0 8 1
semapl 112 19 0 9 1 0 1 1 0 8 0
shmpl 112 11 0 2 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1639 0 232 46 0 46 46 0 8 0
ffsino 272 1639 0 232 95 0 95 95 0 8 0
nchpl 144 2062 0 447 61 0 61 61 0 8 0
uvmvnodes 72 1753 0 0 32 0 32 32 0 8 0
vnodes 208 1753 0 0 93 0 93 93 0 8 0
namei 1024 5528 0 5528 1 0 1 1 0 8 1
percpumem 16 37 0 5 1 0 1 1 0 8 0
vcpupl 1984 1 0 0 1 0 1 1 0 8 0
vmpool 560 3 0 2 2 1 1 1 0 8 0
scxspl 192 6104 0 6103 8 7 1 7 0 8 0
plimitpl 152 23 0 16 1 0 1 1 0 8 0
sigapl 432 375 0 362 3 1 2 3 0 8 0
futexpl 56 3053 0 3053 1 0 1 1 0 8 1
knotepl 112 62 0 43 1 0 1 1 0 8 0
kqueuepl 104 26 0 24 1 0 1 1 0 8 0
pipelkpl 48 104 0 94 1 0 1 1 0 8 0
pipepl 120 208 0 189 1 0 1 1 0 8 0
fdescpl 496 376 0 362 3 0 3 3 0 8 0
filepl 152 2620 0 2531 6 0 6 6 0 8 2
lockfpl 104 26 0 26 1 0 1 1 0 8 1
lockfspl 48 10 0 10 1 0 1 1 0 8 1
sessionpl 112 18 0 9 1 0 1 1 0 8 0
pgrppl 48 18 0 9 1 0 1 1 0 8 0
ucredpl 96 152 0 144 1 0 1 1 0 8 0
zombiepl 144 362 0 362 1 0 1 1 0 8 1
processpl 960 392 0 362 5 0 5 5 0 8 0
procpl 624 764 0 724 4 0 4 4 0 8 0
srpgc 64 2 0 2 1 1 0 1 0 8 0
sosppl 128 2 0 2 1 1 0 1 0 8 0
sockpl 400 870 0 856 6 0 6 6 0 8 3
mcl64k 65536 9 0 0 2 0 2 2 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 2 0 0 1 0 1 1 0 8 0
mcl9k 9216 2 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 6 0 0 1 0 1 1 0 8 0
mcl2k2 2112 1 0 0 1 0 1 1 0 8 0
mcl2k 2048 173 0 0 21 0 21 21 0 8 0
mtagpl 80 13 0 0 1 0 1 1 0 8 0
mbufpl 256 455 0 0 28 0 28 28 0 8 0
bufpl 280 4312 0 191 295 0 295 295 0 8 0
anonpl 16 61404 0 45508 83 2 81 81 0 125 16
amapchunkpl 152 2061 0 1930 9 0 9 9 0 158 1
amappl16 192 2276 0 1413 64 10 54 56 0 8 10
amappl15 184 139 0 134 1 0 1 1 0 8 0
amappl14 176 28 0 26 1 0 1 1 0 8 0
amappl13 168 64 0 63 2 1 1 1 0 8 0
amappl12 160 11 0 6 1 0 1 1 0 8 0
amappl11 152 55 0 47 1 0 1 1 0 8 0
amappl10 144 16 0 8 1 0 1 1 0 8 0
amappl9 136 610 0 606 1 0 1 1 0 8 0
amappl8 128 125 0 101 1 0 1 1 0 8 0
amappl7 120 108 0 98 1 0 1 1 0 8 0
amappl6 112 56 0 51 1 0 1 1 0 8 0
amappl5 104 132 0 120 1 0 1 1 0 8 0
amappl4 96 687 0 660 1 0 1 1 0 8 0
amappl3 88 115 0 108 1 0 1 1 0 8 0
amappl2 80 2187 0 2125 3 1 2 3 0 8 0
amappl1 72 17999 0 17595 26 16 10 21 0 8 0
amappl 80 1025 0 986 2 0 2 2 0 84 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma256 256 6 0 6 1 1 0 1 0 8 0
dma128 128 253 0 253 1 1 0 1 0 8 0
dma64 64 6 0 6 1 1 0 1 0 8 0
dma32 32 7 0 7 1 1 0 1 0 8 0
dma16 16 18 0 17 1 0 1 1 0 8 0
aobjpl 64 12 0 2 1 0 1 1 0 8 0
uaddrrnd 24 379 0 364 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 379 0 364 1 0 1 1 0 8 0
vmmpekpl 168 6925 0 6893 2 0 2 2 0 8 0
vmmpepl 168 53822 0 51882 119 16 103 111 0 357 12
vmsppl 368 378 0 364 2 0 2 2 0 8 0
pdppl 4096 765 0 729 6 1 5 6 0 8 0
pvpl 32 180720 0 161813 193 1 192 192 0 265 36
pmappl 232 378 0 364 2 1 1 2 0 8 0
extentpl 40 46 0 29 1 0 1 1 0 8 0
phpool 112 192 0 4 6 0 6 6 0 8 0