panic: pr_find_pagehead: mbufpl: incorrect page (2)

0 views
Skip to first unread message

syzbot

unread,
Oct 27, 2019, 2:38:09 AM10/27/19
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 2715532e make vmx transmit (vmxnet3_start) mpsafe.
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1011cbc0e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=d0fe83f82fe104d4
dashboard link: https://syzkaller.appspot.com/bug?extid=37bcb22d6d4cf1b90273

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+37bcb2...@syzkaller.appspotmail.com

Q à8Qpanic: pr_find_pagehead: mbufpl: incorrect page
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pool_do_put(ffffffff825a3130,fffffd803cc20000) at pool_do_put+0x36a
pool_put(ffffffff825a3130,fffffd803cc20000) at pool_put+0x4b
sys/kern/subr_pool.c:802
m_free(fffffd803cc20000) at m_free+0x119 sys/kern/uipc_mbuf.c:459
ml_purge(ffff80001571b778) at ml_purge+0x50 m_freem
sys/kern/uipc_mbuf.c:538 [inline]
ml_purge(ffff80001571b778) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628
ifq_purge(ffff800000b5a260) at ifq_purge+0x97 sys/net/ifq.c:423
tapclose(5d01,7,2000,ffff800014915160) at tapclose+0xfc tun_dev_close
sys/net/if_tun.c:417 [inline]
tapclose(5d01,7,2000,ffff800014915160) at tapclose+0xfc sys/net/if_tun.c:396
spec_close(ffff80001571b890) at spec_close+0x3b0 sys/kern/spec_vnops.c:553
VOP_CLOSE(fffffd803e7e6820,7,fffffd803f7c69c0,ffff800014915160) at
VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175
vn_closefile(fffffd803a3fce10,ffff800014915160) at vn_closefile+0xd3
vn_close sys/kern/vfs_vnops.c:301 [inline]
vn_closefile(fffffd803a3fce10,ffff800014915160) at vn_closefile+0xd3
sys/kern/vfs_vnops.c:613
fdrop(fffffd803a3fce10,ffff800014915160) at fdrop+0xc2
sys/kern/kern_descrip.c:1273
closef(fffffd803a3fce10,ffff800014915160) at closef+0x118
sys/kern/kern_descrip.c:1257
fdfree(ffff800014915160) at fdfree+0x100 sys/kern/kern_descrip.c:1189
end trace frame: 0xffff80001571bae0, count: 0
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>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
pr_find_pagehead: mbufpl: incorrect page
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pool_do_put(ffffffff825a3130,fffffd803cc20000) at pool_do_put+0x36a
pool_put(ffffffff825a3130,fffffd803cc20000) at pool_put+0x4b
sys/kern/subr_pool.c:802
m_free(fffffd803cc20000) at m_free+0x119 sys/kern/uipc_mbuf.c:459
ml_purge(ffff80001571b778) at ml_purge+0x50 m_freem
sys/kern/uipc_mbuf.c:538 [inline]
ml_purge(ffff80001571b778) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628
ifq_purge(ffff800000b5a260) at ifq_purge+0x97 sys/net/ifq.c:423
tapclose(5d01,7,2000,ffff800014915160) at tapclose+0xfc tun_dev_close
sys/net/if_tun.c:417 [inline]
tapclose(5d01,7,2000,ffff800014915160) at tapclose+0xfc sys/net/if_tun.c:396
spec_close(ffff80001571b890) at spec_close+0x3b0 sys/kern/spec_vnops.c:553
VOP_CLOSE(fffffd803e7e6820,7,fffffd803f7c69c0,ffff800014915160) at
VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175
vn_closefile(fffffd803a3fce10,ffff800014915160) at vn_closefile+0xd3
vn_close sys/kern/vfs_vnops.c:301 [inline]
vn_closefile(fffffd803a3fce10,ffff800014915160) at vn_closefile+0xd3
sys/kern/vfs_vnops.c:613
fdrop(fffffd803a3fce10,ffff800014915160) at fdrop+0xc2
sys/kern/kern_descrip.c:1273
closef(fffffd803a3fce10,ffff800014915160) at closef+0x118
sys/kern/kern_descrip.c:1257
fdfree(ffff800014915160) at fdfree+0x100 sys/kern/kern_descrip.c:1189
exit1(ffff800014915160,0,1) at exit1+0x32f sys/kern/kern_exit.c:196
sys_exit(ffff800014915160,ffff80001571bb20,ffff80001571bb70) at
sys_exit+0x17 sys/kern/kern_exit.c:94
syscall(ffff80001571bbf0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,1,0,1,0,7f7ffffded44) at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffded10, count: -18
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff80001571b520
rbx 0xffff80001571b5d0
rdx 0x2
rcx 0
rax 0
r8 0xffff80001571b4e0
r9 0x1
r10 0
r11 0x3e2de8f5edf57517
r12 0x3000000008
r13 0xffff80001571b530
r14 0x100
r15 0x1
rip 0xffffffff81de0cc8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff80001571b510
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor.1) pid=507595 stat=onproc
flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
pri=32, usrpri=82, nice=20
forw=0xffffffffffffffff, list=0xffff800014914508,0xffffffff825a1a88
process=0xffff8000148a2018 user=0xffff800015716000,
vmspace=0xfffffd803f014330
estcpu=36, cpticks=3, pctcpu=0.0
user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
9223 176987 0 0 3 0x14200 acct acct
89377 139241 1 0 3 0x80 nanosleep init
58934 448833 81047 0 2 0x2 syz-executor.0
53489 230199 0 0 3 0x14200 bored sosplice
81047 86873 45016 0 3 0x82 thrsleep syz-fuzzer
81047 133410 45016 0 3 0x4000082 nanosleep syz-fuzzer
81047 99663 45016 0 3 0x4000082 thrsleep syz-fuzzer
81047 400893 45016 0 3 0x4000082 thrsleep syz-fuzzer
81047 285684 45016 0 3 0x4000082 thrsleep syz-fuzzer
81047 193823 45016 0 2 0x4000082 syz-fuzzer
81047 276146 45016 0 3 0x4000082 thrsleep syz-fuzzer
45016 177746 10803 0 3 0x10008a pause ksh
10803 47798 74425 0 3 0x92 select sshd
74425 180461 1 0 3 0x80 select sshd
99192 356670 73213 73 3 0x100090 kqread syslogd
73213 188541 1 0 3 0x100082 netio syslogd
68626 359315 1 77 3 0x100090 poll dhclient
96819 380133 1 0 3 0x80 poll dhclient
46263 352777 0 0 2 0x14200 zerothread
20568 295696 0 0 3 0x14200 aiodoned aiodoned
33467 74853 0 0 3 0x14200 syncer update
57841 511133 0 0 3 0x14200 cleaner cleaner
19463 133594 0 0 3 0x14200 reaper reaper
68441 51867 0 0 3 0x14200 pgdaemon pagedaemon
42589 114489 0 0 3 0x14200 bored crynlk
29136 503065 0 0 3 0x14200 bored crypto
95715 230545 0 0 3 0x40014200 acpi0 acpi0
43537 182746 0 0 2 0x14200 softnet
81177 283217 0 0 3 0x14200 bored systqmp
30393 495287 0 0 3 0x14200 bored systq
15857 402581 0 0 3 0x40014200 bored softclock
73249 111074 0 0 3 0x40014200 idle0
78006 154806 0 0 3 0x14200 bored smr
1 31121 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9565 6380K 7738K 78643K 16726 0 0
pcb 13 10K 12K 78643K 557 0 0
rtable 87 11K 13K 78643K 1632 0 0
ifaddr 73 15K 17K 78643K 465 0 0
counters 19 16K 16K 78643K 19 0 0
ioctlops 0 0K 2K 78643K 152 0 0
iov 0 0K 32K 78643K 1719 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1223 77K 77K 78643K 3776 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 5K 78643K 45 0 0
VM map 18 4K 4K 78643K 33 0 0
sem 12 0K 0K 78643K 1274 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1793 195K 288K 78643K 12645 0 0
file desc 4 9K 25K 78643K 2689 0 0
sigio 0 0K 0K 78643K 51 0 0
proc 43 30K 63K 78643K 1003 0 0
subproc 23 1K 2K 78643K 212 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 0K 78643K 289 0 0
in_multi 14 0K 2K 78643K 252 0 0
ether_multi 1 0K 0K 78643K 21 0 0
mrt 0 0K 0K 78643K 6 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 114 503K 503K 78643K 114 0 0
exec 0 0K 1K 78643K 624 0 0
pagedep 1 8K 8K 78643K 1 0 0
inodedep 1 32K 32K 78643K 1 0 0
newblk 1 0K 0K 78643K 1 0 0
VM swap 7 26K 26K 78643K 7 0 0
UVM amap 137 169K 170K 78643K 7611 0 0
UVM aobj 130 4K 4K 78643K 136 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 0K 78643K 587 0 0
NDP 18 0K 1K 78643K 142 0 0
temp 212 3540K 4185K 78643K 123911 0 0
kqueue 0 0K 0K 78643K 13 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 59 0 54 1 0 1 1 0
8 0
rtpcb 80 276 0 274 1 0 1 1 0
8 0
rtentry 112 267 0 238 2 0 2 2 0
8 0
unpcb 120 1873 0 1862 2 1 1 2 0
8 0
syncache 264 27 0 27 8 8 0 1 0
8 0
tcpqe 32 176 0 176 4 4 0 1 0
8 0
tcpcb 544 2262 0 2258 33 31 2 14 0
8 1
ipq 40 28 0 28 10 10 0 1 0
8 0
ipqe 40 679 0 679 10 10 0 1 0
8 0
inpcb 280 5235 0 5228 24 20 4 9 0
8 3
ip6q 72 2 0 2 1 1 0 1 0
8 0
ip6af 40 6 0 6 1 1 0 1 0
8 0
nd6 48 31 0 31 4 4 0 1 0
8 0
pkpcb 40 13 0 13 4 4 0 1 0
8 0
ppxss 1128 55 0 55 7 6 1 1 0
8 1
art_heap8 4096 9 0 8 6 5 1 4 0
8 0
art_heap4 256 1034 0 897 30 19 11 15 0
8 0
art_table 32 1043 0 905 2 0 2 2 0
8 0
art_node 16 266 0 239 1 0 1 1 0
8 0
sysvmsgpl 40 32 0 24 1 0 1 1 0
8 0
semapl 112 1272 0 1262 1 0 1 1 0
8 0
shmpl 112 134 0 6 4 0 4 4 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 5944 0 4544 46 0 46 46 0
8 0
ffsino 240 5944 0 4544 83 0 83 83 0
8 0
nchpl 144 11000 0 10539 60 41 19 60 0
8 0
uvmvnodes 72 6661 0 0 122 0 122 122 0
8 0
vnodes 208 6661 0 0 351 0 351 351 0
8 0
namei 1024 42630 0 42630 2 1 1 1 0
8 1
vcpupl 1984 16 0 0 2 0 2 2 0
8 0
vmpool 520 31 0 15 3 1 2 2 0
8 0
scsiplug 64 4 0 4 2 2 0 1 0
8 0
scxspl 192 36273 0 36273 19 18 1 7 0
8 1
plimitpl 152 257 0 251 1 0 1 1 0
8 0
sigapl 432 2832 0 2820 2 0 2 2 0
8 0
futexpl 56 87812 0 87812 3 2 1 1 0
8 1
knotepl 112 602 0 583 1 0 1 1 0
8 0
kqueuepl 104 1048 0 1046 7 6 1 4 0
8 0
pipepl 112 2404 0 2388 8 6 2 2 0
8 1
fdescpl 424 2833 0 2820 2 0 2 2 0
8 0
filepl 120 32988 0 32906 30 25 5 11 0
8 2
lockfpl 104 1132 0 1131 1 0 1 1 0
8 0
lockfspl 48 382 0 381 1 0 1 1 0
8 0
sessionpl 112 28 0 19 1 0 1 1 0
8 0
pgrppl 48 103 0 94 1 0 1 1 0
8 0
ucredpl 96 10437 0 10429 1 0 1 1 0
8 0
zombiepl 144 2825 0 2823 1 0 1 1 0
8 0
processpl 864 2853 0 2823 4 0 4 4 0
8 0
procpl 632 6268 0 6232 4 0 4 4 0
8 0
sosppl 128 67 0 67 11 10 1 1 0
8 1
sockpl 384 7609 0 7589 48 41 7 14 0
8 3
mcl64k 65536 273 0 273 6 5 1 1 0
8 1
mcl16k 16384 35 0 35 11 11 0 1 0
8 0
mcl12k 12288 92 0 92 10 9 1 1 0
8 1
mcl9k 9216 58 0 58 12 12 0 1 0
8 0
mcl8k 8192 146 0 146 5 4 1 1 0
8 1
mcl4k 4096 390 0 390 5 4 1 1 0
8 1
mcl2k2 2112 28 0 28 11 11 0 1 0
8 0
mcl2k 2048 72978 0 72933 28 21 7 16 0
8 0
mtagpl 80 101 0 94 3 2 1 1 0
8 0
mbufpl 256 143737 0 143600 86 71 15 23 0
8 4
bufpl 256 16767 0 10121 417 0 417 417 0
8 0
anonpl 16 372873 0 352889 175 76 99 99 0 62
16
amapchunkpl 152 14455 0 14322 55 46 9 16 0
158 3
amappl16 192 18842 0 17682 186 119 67 71 0
8 8
amappl15 184 19 0 19 2 1 1 1 0
8 1
amappl14 176 1623 0 1619 1 0 1 1 0
8 0
amappl13 168 166 0 165 1 0 1 1 0
8 0
amappl12 160 6 0 2 1 0 1 1 0
8 0
amappl11 152 301 0 289 1 0 1 1 0
8 0
amappl10 144 368 0 367 1 0 1 1 0
8 0
amappl9 136 946 0 940 1 0 1 1 0
8 0
amappl8 128 547 0 505 2 0 2 2 0
8 0
amappl7 120 433 0 427 1 0 1 1 0
8 0
amappl6 112 296 0 286 1 0 1 1 0
8 0
amappl5 104 263 0 253 1 0 1 1 0
8 0
amappl4 96 3008 0 2980 1 0 1 1 0
8 0
amappl3 88 1476 0 1469 1 0 1 1 0
8 0
amappl2 80 21207 0 21141 3 1 2 3 0
8 0
amappl1 72 60462 0 60082 27 18 9 20 0
8 0
amappl 80 6701 0 6654 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 17 0 17 1 1 0 1 0
8 0
aobjpl 64 135 0 6 3 0 3 3 0
8 0
uaddrrnd 24 2864 0 2820 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 2864 0 2820 1 0 1 1 0
8 0
vmmpekpl 168 21300 0 21265 2 0 2 2 0
8 0
vmmpepl 168 348185 0 345993 293 167 126 145 0 357
21
vmsppl 272 2832 0 2820 3 2 1 2 0
8 0
pdppl 4096 5734 0 5686 9 2 7 7 0
8 0
pvpl 32 964446 0 942114 380 158 222 329 0 265
32
pmappl 200 2863 0 2835 2 0 2 2 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 729 0 178 17 1 16 17 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.

syzbot

unread,
Oct 17, 2020, 7:59:11 PM10/17/20
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages