panic: pool_cache_item_magic_pchaencikc:: mkberunfepll dcpiuag nfroseet icl isats semordtiiofnie d":!_ kietermne ald_d

1 view
Skip to first unread message

syzbot

unread,
Apr 25, 2020, 9:16:15 PM4/25/20
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 47f5535c Enable dsxrtc(4) and pcfrtc(4).
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=17df2828100000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=5afb9295d207ce500004

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+5afb92...@syzkaller.appspotmail.com

login: panic: pool_cache_item_magic_pchaencikc:: mkberunfepll dcpiuag nfroseet icl isats semordtiiofnie d":!_ kietermne ald_dlor ck0_xfheffldf(fd)8" 06ffa3il5e4cd:0 f0+il1e6 0"x/s0!yz=k0xa3l5le5rad/m7and9ag16ercs9f/maau1l
ti
cStopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
110145 75138 0 0 0x4000000 1 syz-executor.1
* 78837 12224 0 0 0x4000000 0 syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821f8ccd) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82679e88) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff82679e88) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff82679e88,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_get(2,1) at m_get+0x4c sys/kern/uipc_mbuf.c:250
switchwrite(a6138,ffff800023189150,1) at switchwrite+0x260 sys/net/switchctl.c:260
spec_write(ffff800023188f20) at spec_write+0xd4 sys/kern/spec_vnops.c:309
VOP_WRITE(fffffd8063e65768,ffff800023189150,1,fffffd807f7bf840) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:268
vn_write(fffffd8065bd2e58,ffff800023189150,1) at vn_write+0x198 sys/kern/vfs_vnops.c:414
dofilewritev(ffff800020ed9398,3,ffff800023189150,1,ffff800023189240) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365
sys_pwritev(ffff800020ed9398,ffff8000231891f8,ffff800023189240) at sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3338
syscall(ffff8000231892c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000231892c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xda80de76f40, count: 2
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 0xfffffd806f354c00+16 0x0!=0x355ad7d916c9faa1
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821f8ccd) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82679e88) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff82679e88) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff82679e88,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_get(2,1) at m_get+0x4c sys/kern/uipc_mbuf.c:250
switchwrite(a6138,ffff800023189150,1) at switchwrite+0x260 sys/net/switchctl.c:260
spec_write(ffff800023188f20) at spec_write+0xd4 sys/kern/spec_vnops.c:309
VOP_WRITE(fffffd8063e65768,ffff800023189150,1,fffffd807f7bf840) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:268
vn_write(fffffd8065bd2e58,ffff800023189150,1) at vn_write+0x198 sys/kern/vfs_vnops.c:414
dofilewritev(ffff800020ed9398,3,ffff800023189150,1,ffff800023189240) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365
sys_pwritev(ffff800020ed9398,ffff8000231891f8,ffff800023189240) at sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3338
syscall(ffff8000231892c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000231892c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xda80de76f40, count: -13
ddb{0}> show registers
rdi 0xffffffff816cee17 db_enter+0x17
rsi 0x6132 __ALIGN_SIZE+0x5132
rbp 0xffff800023188be0
rbx 0xffff800023188c90
rdx 0x6133 __ALIGN_SIZE+0x5133
rcx 0xffff800020f6c000
rax 0xffff800020f6c000
r8 0xffffffff81dc909f kprintf+0x16f
r9 0x1
r10 0x25
r11 0xf59fdae24c2e401e
r12 0x3000000008
r13 0xffff800023188bf0
r14 0x100
r15 0x1
rip 0xffffffff816cee18 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800023188bd0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.0) pid=78837 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=32, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff800020ed8018,0xffff800020ed9618
process=0xffff800020e81af8 user=0xffff800023184000, vmspace=0xfffffd807f0008a0
estcpu=36, cpticks=3, pctcpu=0.0
user=0, sys=2, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
75138 255669 87032 0 2 0 syz-executor.1
75138 110145 87032 0 7 0x4000000 syz-executor.1
12224 498523 5693 0 2 0 syz-executor.0
*12224 78837 5693 0 7 0x4000000 syz-executor.0
87032 78964 9544 0 3 0x82 nanosleep syz-executor.1
5693 102347 9544 0 3 0x82 nanosleep syz-executor.0
9544 378382 41031 0 3 0x82 thrsleep syz-fuzzer
9544 425989 41031 0 3 0x4000082 thrsleep syz-fuzzer
9544 55497 41031 0 3 0x4000082 thrsleep syz-fuzzer
9544 210936 41031 0 3 0x4000082 thrsleep syz-fuzzer
9544 181886 41031 0 3 0x4000082 thrsleep syz-fuzzer
9544 247239 41031 0 3 0x4000082 thrsleep syz-fuzzer
9544 358875 41031 0 3 0x4000082 thrsleep syz-fuzzer
9544 407456 41031 0 3 0x4000082 thrsleep syz-fuzzer
9544 465255 41031 0 3 0x4000082 kqread syz-fuzzer
9544 265009 41031 0 3 0x4000082 thrsleep syz-fuzzer
41031 354820 86404 0 3 0x10008a pause ksh
86404 446184 43932 0 3 0x92 select sshd
56210 288681 1 0 3 0x100083 ttyin getty
43932 227756 1 0 3 0x80 select sshd
68043 220552 44132 74 3 0x100092 bpf pflogd
44132 467797 1 0 3 0x80 netio pflogd
7632 409976 38490 73 3 0x100090 kqread syslogd
38490 115497 1 0 3 0x100082 netio syslogd
33424 354317 1 77 3 0x100090 poll dhclient
79753 260254 1 0 3 0x80 poll dhclient
47967 28298 0 0 3 0x14200 bored smr
40039 176749 0 0 2 0x14200 zerothread
89805 318289 0 0 3 0x14200 aiodoned aiodoned
75202 114488 0 0 3 0x14200 syncer update
96084 185417 0 0 3 0x14200 cleaner cleaner
68835 389250 0 0 3 0x14200 reaper reaper
57403 106921 0 0 3 0x14200 pgdaemon pagedaemon
95249 257273 0 0 3 0x14200 bored crynlk
83825 460020 0 0 3 0x14200 bored crypto
13340 520370 0 0 3 0x40014200 acpi0 acpi0
22033 60755 0 0 3 0x40014200 idle1
14961 336880 0 0 3 0x14200 bored softnet
16109 395255 0 0 3 0x14200 bored systqmp
72504 229053 0 0 3 0x14200 bored systq
19360 129865 0 0 3 0x40014200 bored softclock
55347 46413 0 0 3 0x40014200 idle0
1 137931 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 12224 (syz-executor.0) thread 0xffff800020ed9398 (78837)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826697d8)
#0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1 vn_write+0x42 sys/kern/vfs_vnops.c:399
#2 dofilewritev+0x1b6 sys/kern/sys_generic.c:365
#3 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3338
#4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#5 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9487 6466K 6466K 78643K 10579 0
pcb 13 8K 8K 78643K 23 0
rtable 105 3K 3K 78643K 201 0
ifaddr 49 11K 11K 78643K 52 0
counters 43 33K 33K 78643K 43 0
ioctlops 0 0K 4K 78643K 1469 0
iov 1 0K 2K 78643K 2 0
mount 1 1K 1K 78643K 1 0
vnodes 1218 77K 77K 78643K 1225 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 4 0K 0K 78643K 4 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 6 17K 25K 78643K 47 0
sigio 0 0K 0K 78643K 1 0
proc 59 63K 95K 78643K 438 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 33 2K 2K 78643K 33 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 31 148K 148K 78643K 31 0
exec 0 0K 1K 78643K 207 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 113 22K 22K 78643K 1047 0
UVM aobj 2 2K 2K 78643K 4 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 4 0
NDP 7 0K 0K 78643K 11 0
temp 73 3036K 3100K 78643K 2098 0
kqueue 3 4K 4K 78643K 3 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 6 0 0 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 19 0 17 1 0 1 1 0 8 0
rtentry 112 45 0 1 2 0 2 2 0 8 0
unpcb 120 37 0 27 1 0 1 1 0 8 0
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpqe 32 777 0 777 1 0 1 1 0 8 1
tcpcb 544 14 0 10 1 0 1 1 0 8 0
inpcb 280 51 0 44 1 0 1 1 0 8 0
nd6 48 6 0 0 1 0 1 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 14 0 0 1 0 1 1 0 8 0
pfstkey 112 14 0 0 1 0 1 1 0 8 0
pfstate 328 14 0 0 2 0 2 2 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 188 0 0 12 0 12 12 0 8 0
art_table 32 189 0 0 2 0 2 2 0 8 0
art_node 16 44 0 4 1 0 1 1 0 8 0
sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0
semupl 112 1 0 1 1 0 1 1 0 8 1
semapl 112 2 0 0 1 0 1 1 0 8 0
shmpl 112 2 0 2 1 0 1 1 0 8 1
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1450 0 40 89 0 89 89 0 8 0
ffsino 272 1450 0 40 95 0 95 95 0 8 0
nchpl 144 1698 0 76 61 0 61 61 0 8 0
uvmvnodes 72 1495 0 0 28 0 28 28 0 8 0
vnodes 208 1495 0 0 79 0 79 79 0 8 0
namei 1024 4401 0 4401 1 0 1 1 0 8 1
percpumem 16 32 0 0 1 0 1 1 0 8 0
scxspl 192 4996 0 4996 2 1 1 2 0 8 1
plimitpl 152 15 0 7 1 0 1 1 0 8 0
sigapl 424 262 0 230 4 0 4 4 0 8 0
futexpl 56 278 0 278 1 0 1 1 0 8 1
knotepl 112 53 0 34 1 0 1 1 0 8 0
kqueuepl 144 2 0 0 1 0 1 1 0 8 0
pipelkpl 48 76 0 66 1 0 1 1 0 8 0
pipepl 120 152 0 133 1 0 1 1 0 8 0
fdescpl 496 247 0 230 3 0 3 3 0 8 0
filepl 152 1237 0 1136 5 0 5 5 0 8 1
lockfpl 104 8 0 7 1 0 1 1 0 8 0
lockfspl 48 4 0 3 1 0 1 1 0 8 0
sessionpl 112 18 0 7 1 0 1 1 0 8 0
pgrppl 48 18 0 7 1 0 1 1 0 8 0
ucredpl 96 77 0 68 1 0 1 1 0 8 0
zombiepl 144 230 0 230 1 0 1 1 0 8 1
processpl 984 262 0 230 5 0 5 5 0 8 1
procpl 624 294 0 251 4 0 4 4 0 8 0
sockpl 400 107 0 88 3 0 3 3 0 8 1
mcl64k 65536 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 1 0 0 1 0 1 1 0 8 0
mcl4k 4096 3 0 0 1 0 1 1 0 8 0
mcl2k 2048 224 0 0 27 0 27 27 0 8 0
mtagpl 80 2 0 0 1 0 1 1 0 8 0
mbufpl 256 215 0 0 14 1 13 13 0 8 0
bufpl 280 4152 0 190 283 0 283 283 0 8 0
anonpl 16 37502 0 23321 58 1 57 57 0 124 0
amapchunkpl 152 1099 0 965 8 0 8 8 0 158 1
amappl16 192 922 0 160 39 0 39 39 0 8 0
amappl15 184 1 0 0 1 0 1 1 0 8 0
amappl14 176 27 0 20 1 0 1 1 0 8 0
amappl13 168 42 0 37 1 0 1 1 0 8 0
amappl12 160 6 0 3 2 1 1 1 0 8 0
amappl11 152 58 0 42 1 0 1 1 0 8 0
amappl10 144 39 0 28 1 0 1 1 0 8 0
amappl9 136 392 0 391 1 0 1 1 0 8 0
amappl8 128 333 0 302 2 0 2 2 0 8 0
amappl7 120 125 0 113 1 0 1 1 0 8 0
amappl6 112 28 0 22 1 0 1 1 0 8 0
amappl5 104 146 0 129 1 0 1 1 0 8 0
amappl4 96 489 0 458 2 0 2 2 0 8 1
amappl3 88 110 0 102 1 0 1 1 0 8 0
amappl2 80 1015 0 939 3 0 3 3 0 8 1
amappl1 72 15702 0 15250 25 8 17 20 0 8 7
amappl 80 538 0 494 1 0 1 1 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 3 0 2 1 0 1 1 0 8 0
uaddrrnd 24 247 0 230 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 247 0 230 1 0 1 1 0 8 0
vmmpekpl 168 5891 0 5861 2 0 2 2 0 8 0
vmmpepl 168 37298 0 35282 115 2 113 113 0 357 25
vmsppl 368 246 0 230 2 0 2 2 0 8 0
pdppl 4096 502 0 460 6 0 6 6 0 8 0
pvpl 32 133315 0 115811 142 0 142 142 0 265 0
pmappl 232 246 0 230 2 0 2 2 0 8 1
extentpl 40 46 0 29 1 0 1 1 0 8 0
phpool 112 265 0 4 8 0 8 8 0 8 0


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

Anton Lindqvist

unread,
Apr 26, 2020, 2:56:32 AM4/26/20
to syzbot, syzkaller-o...@googlegroups.com
#syz dup: pool: cpu free list modified: mbufpl
Reply all
Reply to author
Forward
0 new messages