panic: pool_cache_item_magic_check: mbufppaln icpcu: fkreeren elli stdi amgonodistfiiecd a: sisteretmi aond dr" !_0xkef

Yametazamwa mara 3
Ruka hadi kwenye ujumbe wa kwanza ambao haujasomwa

syzbot

hayajasomwa,
10 Des 2019, 14:00:1110/12/2019
kwa syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: e650aea3 Plug two mem leaks in udp_receive() and zap unnee..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=158caaeae00000
kernel config: https://syzkaller.appspot.com/x/.config?x=26ca0a9c07f16a3a
dashboard link: https://syzkaller.appspot.com/bug?extid=40924b4b6a5a793ee62d

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+40924b...@syzkaller.appspotmail.com

panic: pool_cache_item_magic_check: mbufppaln icpcu: fkreeren elli stdi
amgonodistfiiecd a: sisteretmi aond
dr" !_0xkeffrnfeffl_d8l0o6ck5a_h33edl0d(0)+2"4 f a0ixlfe58df:
4f9iclc7e4 "f/9s3dyazk2a!=l0lxerf5/8mfa4n9a4gce1r9as/e9mufalt2i
coStopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
247703 21858 0 0 0x4000000 1 syz-executor.1
*198635 54958 0 0 0x4000000 0 syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821c40bb) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82641a78) at pool_cache_get+0x323
pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline]
pool_cache_get(ffffffff82641a78) at pool_cache_get+0x323
sys/kern/subr_pool.c:1892
pool_get(ffffffff82641a78,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_copym(fffffd807934e100,7094,5a0,2) at m_copym+0x174 m_get
sys/kern/uipc_mbuf.c:250 [inline]
m_copym(fffffd807934e100,7094,5a0,2) at m_copym+0x174
sys/kern/uipc_mbuf.c:667
ip_fragment(fffffd807934e100,ffff8000001732a8,5b4) at ip_fragment+0x324
ip_output(fffffd807934e100,0,fffffd806f66cc78,0,0,fffffd806f66cc08) at
ip_output+0xfc1 sys/netinet/ip_output.c:501
udp_output(fffffd806f66cc08,fffffd807934e100,0,0) at udp_output+0x5af
sys/netinet/udp_usrreq.c:1008
sosend(fffffd80793c1020,0,ffff800023bbd1a0,0,0,0) at sosend+0x645
sys/kern/uipc_socket.c:524
sendit(ffff800020ac0508,9,ffff800023bbd280,0,ffff800023bbd360) at
sendit+0x52b sys/kern/uipc_syscalls.c:662
sys_sendto(ffff800020ac0508,ffff800023bbd318,ffff800023bbd360) at
sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
syscall(ffff800023bbd3e0) at syscall+0x4a4 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800023bbd3e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x20a5be211c0, 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
0xfffffd8065a33d00+24 0xf58f49cc74f93da2!=0xf58f494c19ae9fa2
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821c40bb) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82641a78) at pool_cache_get+0x323
pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline]
pool_cache_get(ffffffff82641a78) at pool_cache_get+0x323
sys/kern/subr_pool.c:1892
pool_get(ffffffff82641a78,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_copym(fffffd807934e100,7094,5a0,2) at m_copym+0x174 m_get
sys/kern/uipc_mbuf.c:250 [inline]
m_copym(fffffd807934e100,7094,5a0,2) at m_copym+0x174
sys/kern/uipc_mbuf.c:667
ip_fragment(fffffd807934e100,ffff8000001732a8,5b4) at ip_fragment+0x324
ip_output(fffffd807934e100,0,fffffd806f66cc78,0,0,fffffd806f66cc08) at
ip_output+0xfc1 sys/netinet/ip_output.c:501
udp_output(fffffd806f66cc08,fffffd807934e100,0,0) at udp_output+0x5af
sys/netinet/udp_usrreq.c:1008
sosend(fffffd80793c1020,0,ffff800023bbd1a0,0,0,0) at sosend+0x645
sys/kern/uipc_socket.c:524
sendit(ffff800020ac0508,9,ffff800023bbd280,0,ffff800023bbd360) at
sendit+0x52b sys/kern/uipc_syscalls.c:662
sys_sendto(ffff800020ac0508,ffff800023bbd318,ffff800023bbd360) at
sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
syscall(ffff800023bbd3e0) at syscall+0x4a4 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800023bbd3e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x20a5be211c0, count: -13
ddb{0}> show registers
rdi 0xffffffff8152d6e7 db_enter+0x17
rsi 0x983d __ALIGN_SIZE+0x883d
rbp 0xffff800023bbcbb0
rbx 0xffff800023bbcc60
rdx 0x983e __ALIGN_SIZE+0x883e
rcx 0xffff800021d86000
rax 0xffff800021d86000
r8 0xffffffff81b4ee6f kprintf+0x16f
r9 0x1
r10 0x25
r11 0x68125ceaad4418a4
r12 0x3000000008
r13 0xffff800023bbcbc0
r14 0x100
r15 0x1
rip 0xffffffff8152d6e8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800023bbcba0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.0) pid=198635 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=81, usrpri=81, nice=20
forw=0xffffffffffffffff, list=0xffff800020ac0c70,0xffff800020ac02a0
process=0xffff800020aece00 user=0xffff800023bb8000,
vmspace=0xfffffd80793342f0
estcpu=36, cpticks=4, pctcpu=0.0
user=0, sys=3, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
21858 87762 89175 0 2 0 syz-executor.1
21858 247703 89175 0 7 0x4000000 syz-executor.1
54958 208111 17552 0 2 0 syz-executor.0
*54958 198635 17552 0 7 0x4000000 syz-executor.0
17552 109631 99321 0 3 0x82 nanosleep syz-executor.0
13643 99574 0 0 3 0x14200 acct acct
29425 26735 0 0 3 0x14200 bored sosplice
89175 20001 99321 0 3 0x82 nanosleep syz-executor.1
99321 467431 28945 0 3 0x82 thrsleep syz-fuzzer
99321 169452 28945 0 3 0x4000082 thrsleep syz-fuzzer
99321 152178 28945 0 3 0x4000082 thrsleep syz-fuzzer
99321 390353 28945 0 3 0x4000082 thrsleep syz-fuzzer
99321 225516 28945 0 3 0x4000082 thrsleep syz-fuzzer
99321 137860 28945 0 3 0x4000082 thrsleep syz-fuzzer
99321 399302 28945 0 3 0x4000082 thrsleep syz-fuzzer
99321 485552 28945 0 3 0x4000082 thrsleep syz-fuzzer
99321 451087 28945 0 3 0x4000082 thrsleep syz-fuzzer
99321 247086 28945 0 3 0x4000082 kqread syz-fuzzer
99321 343668 28945 0 3 0x4000082 thrsleep syz-fuzzer
28945 377312 18576 0 3 0x10008a pause ksh
18576 157144 71559 0 3 0x92 select sshd
75065 82576 1 0 3 0x100083 ttyin getty
71559 349002 1 0 3 0x80 select sshd
9683 292164 38881 74 3 0x100092 bpf pflogd
38881 29034 1 0 3 0x80 netio pflogd
66128 55805 24946 73 3 0x100090 kqread syslogd
24946 157740 1 0 3 0x100082 netio syslogd
68040 372143 1 77 3 0x100090 poll dhclient
55526 379181 1 0 3 0x80 poll dhclient
36066 267504 0 0 2 0x14200 zerothread
51400 253190 0 0 3 0x14200 aiodoned aiodoned
59028 509223 0 0 3 0x14200 syncer update
9471 415498 0 0 3 0x14200 cleaner cleaner
58333 477379 0 0 3 0x14200 reaper reaper
92230 28385 0 0 3 0x14200 pgdaemon pagedaemon
96953 142153 0 0 3 0x14200 bored crynlk
62830 80358 0 0 3 0x14200 bored crypto
14357 396637 0 0 3 0x40014200 acpi0 acpi0
90809 164416 0 0 3 0x40014200 idle1
62945 392715 0 0 3 0x14200 bored softnet
24957 465068 0 0 3 0x14200 bored systqmp
90552 199670 0 0 3 0x14200 bored systq
41063 95848 0 0 3 0x40014200 bored softclock
22298 7261 0 0 3 0x40014200 idle0
4097 226521 0 0 3 0x14200 bored smr
1 284813 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 54958 (syz-executor.0) thread 0xffff800020ac0508 (198635)
exclusive rwlock netlock r = 0 (0xffffffff824aa9f8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 solock+0x5a sys/kern/uipc_socket2.c:282
#2 sosend+0x51b sys/kern/uipc_socket.c:512
#3 sendit+0x52b sys/kern/uipc_syscalls.c:662
#4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
#5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#6 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9598 6837K 7844K 78643K 12611 0
pcb 13 8K 8K 78643K 184 0
rtable 105 4K 4K 78643K 570 0
ifaddr 109 20K 21K 78643K 319 0
counters 39 33K 33K 78643K 39 0
ioctlops 0 0K 4K 78643K 1510 0
iov 0 0K 32K 78643K 178 0
mount 1 1K 1K 78643K 1 0
vnodes 1234 78K 78K 78643K 1970 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 22 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 1K 78643K 237 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 6 17K 25K 78643K 802 0
sigio 1 0K 0K 78643K 101 0
proc 61 63K 95K 78643K 589 0
subproc 32 2K 2K 78643K 68 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 301 0
in_multi 130 5K 6K 78643K 263 0
ether_multi 1 0K 0K 78643K 5 0
mrt 0 0K 0K 78643K 7 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 96 424K 424K 78643K 96 0
exec 0 0K 1K 78643K 345 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 162 137K 138K 78643K 3865 0
UVM aobj 113 8K 8K 78643K 115 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 134 0
NDP 18 0K 0K 78643K 61 0
temp 164 3024K 3097K 78643K 21486 0
kqueue 0 0K 0K 78643K 6 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 12 0 6 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtpcb 80 70 0 68 1 0 1 1 0
8 0
rtentry 112 84 0 43 2 0 2 2 0
8 0
unpcb 120 1256 0 1244 2 1 1 2 0
8 0
syncache 264 12 0 12 4 3 1 1 0
8 1
sackhl 24 1 0 1 1 1 0 1 0
8 0
tcpqe 32 122 0 122 3 2 1 1 0
8 1
tcpcb 544 377 0 373 3 2 1 2 0
8 0
inpcb 280 1968 0 1958 5 3 2 4 0
8 1
rttmr 72 3 0 3 2 2 0 1 0
8 0
nd6 48 11 0 8 1 0 1 1 0
8 0
pkpcb 40 8 0 8 2 2 0 1 0
8 0
swfcl 56 2 0 0 1 0 1 1 0
8 0
ppxss 1128 29 0 29 2 1 1 1 0
8 1
pffrag 232 28 0 28 4 3 1 1 0
482 1
pffrnode 88 28 0 28 4 3 1 1 0
8 1
pffrent 40 1053 0 1053 3 2 1 1 0
8 1
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 79 0 23 1 0 1 1 0
8 0
pfstkey 112 79 0 23 2 0 2 2 0
8 0
pfstate 328 79 0 23 5 0 5 5 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 390 0 179 16 2 14 15 0
8 0
art_table 32 391 0 179 2 0 2 2 0
8 0
art_node 16 83 0 45 1 0 1 1 0
8 0
sysvmsgpl 40 53 0 28 1 0 1 1 0
8 0
semupl 112 5 0 5 2 2 0 1 0
8 0
semapl 112 235 0 225 1 0 1 1 0
8 0
shmpl 112 113 0 2 4 0 4 4 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 2740 0 1327 46 0 46 46 0
8 0
ffsino 272 2740 0 1327 95 0 95 95 0
8 0
nchpl 144 4330 0 2711 61 0 61 61 0
8 0
uvmvnodes 72 3263 0 0 60 0 60 60 0
8 0
vnodes 208 3263 0 0 172 0 172 172 0
8 0
namei 1024 15155 0 15155 1 0 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
vcpupl 1984 10 0 0 2 0 2 2 0
8 0
vmpool 560 14 0 4 1 0 1 1 0
8 0
scxspl 192 13122 0 13121 11 10 1 7 0
8 0
plimitpl 152 77 0 69 1 0 1 1 0
8 0
sigapl 432 995 0 979 3 1 2 3 0
8 0
futexpl 56 20994 0 20994 1 0 1 1 0
8 1
knotepl 112 201 0 182 1 0 1 1 0
8 0
kqueuepl 104 232 0 230 1 0 1 1 0
8 0
pipepl 160 686 0 667 3 1 2 2 0
8 1
fdescpl 488 996 0 979 3 0 3 3 0
8 0
filepl 152 9608 0 9501 9 3 6 7 0
8 1
lockfpl 104 374 0 371 1 0 1 1 0
8 0
lockfspl 48 129 0 126 1 0 1 1 0
8 0
sessionpl 112 20 0 9 1 0 1 1 0
8 0
pgrppl 48 34 0 23 1 0 1 1 0
8 0
ucredpl 96 1503 0 1494 1 0 1 1 0
8 0
zombiepl 144 979 0 979 1 0 1 1 0
8 1
processpl 896 1013 0 979 4 0 4 4 0
8 0
procpl 632 2908 0 2862 5 0 5 5 0
8 1
srpgc 64 4 0 4 1 1 0 1 0
8 0
sosppl 128 29 0 29 5 4 1 1 0
8 1
sockpl 384 3317 0 3293 9 4 5 7 0
8 2
mcl64k 65536 17 0 0 3 0 3 3 0
8 0
mcl16k 16384 5 0 0 1 0 1 1 0
8 0
mcl12k 12288 13 0 0 2 0 2 2 0
8 0
mcl9k 9216 7 0 0 1 0 1 1 0
8 0
mcl8k 8192 7 0 0 1 0 1 1 0
8 0
mcl4k 4096 18 0 0 3 0 3 3 0
8 0
mcl2k2 2112 5 0 0 1 0 1 1 0
8 0
mcl2k 2048 178 0 0 22 0 22 22 0
8 0
mtagpl 80 27 0 0 1 0 1 1 0
8 0
mbufpl 256 425 0 0 24 0 24 24 0
8 0
bufpl 280 9267 0 2197 506 0 506 506 0
8 0
anonpl 16 114617 0 93829 105 18 87 94 0
125 3
amapchunkpl 152 6571 0 6410 18 11 7 14 0
158 0
amappl16 192 4780 0 3629 69 9 60 65 0
8 2
amappl15 184 319 0 315 1 0 1 1 0
8 0
amappl14 176 41 0 37 1 0 1 1 0
8 0
amappl13 168 190 0 188 1 0 1 1 0
8 0
amappl12 160 369 0 363 1 0 1 1 0
8 0
amappl11 152 62 0 46 1 0 1 1 0
8 0
amappl10 144 80 0 73 1 0 1 1 0
8 0
amappl9 136 636 0 632 1 0 1 1 0
8 0
amappl8 128 174 0 134 2 0 2 2 0
8 0
amappl7 120 177 0 166 1 0 1 1 0
8 0
amappl6 112 62 0 53 1 0 1 1 0
8 0
amappl5 104 519 0 503 1 0 1 1 0
8 0
amappl4 96 1092 0 1061 1 0 1 1 0
8 0
amappl3 88 522 0 511 1 0 1 1 0
8 0
amappl2 80 7108 0 7023 3 1 2 3 0
8 0
amappl1 72 32241 0 31777 25 15 10 20 0
8 0
amappl 80 3214 0 3160 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 114 0 2 2 0 2 2 0
8 0
uaddrrnd 24 1010 0 983 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 1010 0 983 1 0 1 1 0
8 0
vmmpekpl 168 12346 0 12311 2 0 2 2 0
8 0
vmmpepl 168 131436 0 128933 170 44 126 146 0 357
16
vmsppl 368 1009 0 983 3 0 3 3 0
8 0
pdppl 4096 2027 0 1976 7 0 7 7 0
8 0
pvpl 32 345039 0 320956 226 27 199 219 0
265 4
pmappl 232 1009 0 983 3 1 2 2 0
8 0
extentpl 40 46 0 29 1 0 1 1 0
8 0
phpool 112 187 0 7 6 0 6 6 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

hayajasomwa,
10 Des 2019, 15:05:3210/12/2019
kwa syzbot,syzkaller-o...@googlegroups.com
#syz dup: pool: cpu free list modified: mbufpl
Jibu wote
Mjibu mchapishaji
Sambaza
Ujumbe 0 mpya