Hello,
syzbot found the following crash on:
HEAD commit: 8864b422 Switch bpf to use pgsigio(9) and sigio_init(9) in..
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=14974e3ee00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=fe55924c11e64b0a
dashboard link:
https://syzkaller.appspot.com/bug?extid=e7d2c71b12dee4fd2378
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+e7d2c7...@syzkaller.appspotmail.com
panic: unhandled af 226
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*275281 43060 0 0 0x4000000 0 syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821b8616) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(e2) at unhandled_af+0x16
pf_addrcpy(ffff80001f43e9a8,ffff80001f43eca0,e2) at pf_addrcpy+0x99
sys/net/pf.c:409
pfioctl(4900,c0504417,ffff80001f43eca0,1,ffff8000ffff3b40) at
pfioctl+0x43c0 sys/net/pf_ioctl.c:1827
VOP_IOCTL(fffffd8060f374e0,c0504417,ffff80001f43eca0,1,fffffd806c3bec60,ffff8000ffff3b40)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd8053f969e8,c0504417,ffff80001f43eca0,ffff8000ffff3b40) at
vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533
sys_ioctl(ffff8000ffff3b40,ffff80001f43edb8,ffff80001f43ee00) at
sys_ioctl+0x5b9
syscall(ffff80001f43ee80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x11ce42e6300, count: 5
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
unhandled af 226
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821b8616) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(e2) at unhandled_af+0x16
pf_addrcpy(ffff80001f43e9a8,ffff80001f43eca0,e2) at pf_addrcpy+0x99
sys/net/pf.c:409
pfioctl(4900,c0504417,ffff80001f43eca0,1,ffff8000ffff3b40) at
pfioctl+0x43c0 sys/net/pf_ioctl.c:1827
VOP_IOCTL(fffffd8060f374e0,c0504417,ffff80001f43eca0,1,fffffd806c3bec60,ffff8000ffff3b40)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd8053f969e8,c0504417,ffff80001f43eca0,ffff8000ffff3b40) at
vn_ioctl+0xb7 sys/kern/vfs_vnops.c:533
sys_ioctl(ffff8000ffff3b40,ffff80001f43edb8,ffff80001f43ee00) at
sys_ioctl+0x5b9
syscall(ffff80001f43ee80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x11ce42e6300, count: -10
ddb> show registers
rdi 0xffffffff81f91017 db_enter+0x17
rsi 0xc28
rbp 0xffff80001f43e860
rbx 0xffff80001f43e910
rdx 0xc29
rcx 0xffff80001f455000
rax 0xffff80001f455000
r8 0xffff80001f43e820
r9 0x1
r10 0xffff8000009f4040
r11 0xd39fd3565e296469
r12 0x3000000008
r13 0xffff80001f43e870
r14 0x100
r15 0x1
rip 0xffffffff81f91018 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff80001f43e850
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor.0) pid=275281 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=80, usrpri=80, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff2018,0xffffffff8256b098
process=0xffff8000ffff6a48 user=0xffff80001f439000,
vmspace=0xfffffd806bc0a990
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
43060 339617 46246 0 2 0 syz-executor.0
*43060 275281 46246 0 7 0x4000000 syz-executor.0
41085 130553 0 0 3 0x14200 bored sosplice
24304 74483 85998 0 2 0x2 syz-executor.1
46246 485527 85998 0 3 0x82 nanosleep syz-executor.0
85998 311933 846 0 3 0x82 thrsleep syz-fuzzer
85998 399013 846 0 3 0x4000082 nanosleep syz-fuzzer
85998 133240 846 0 3 0x4000082 thrsleep syz-fuzzer
85998 293796 846 0 3 0x4000082 thrsleep syz-fuzzer
85998 508230 846 0 3 0x4000082 kqread syz-fuzzer
85998 261526 846 0 3 0x4000082 thrsleep syz-fuzzer
85998 39761 846 0 3 0x4000082 thrsleep syz-fuzzer
85998 126601 846 0 3 0x4000082 thrsleep syz-fuzzer
846 208337 90077 0 3 0x10008a pause ksh
90077 150668 67083 0 3 0x92 select sshd
39602 284644 1 0 3 0x100083 ttyin getty
67083 357004 1 0 3 0x80 select sshd
77803 332482 89911 73 3 0x100090 kqread syslogd
89911 223534 1 0 3 0x100082 netio syslogd
49478 181863 1 77 3 0x100090 poll dhclient
98156 330578 1 0 3 0x80 poll dhclient
59075 219926 0 0 2 0x14200 zerothread
25285 182506 0 0 3 0x14200 aiodoned aiodoned
80634 415489 0 0 3 0x14200 syncer update
72983 157920 0 0 3 0x14200 cleaner cleaner
76346 6078 0 0 3 0x14200 reaper reaper
79079 282569 0 0 3 0x14200 pgdaemon pagedaemon
79526 476890 0 0 3 0x14200 bored crynlk
88642 248159 0 0 3 0x14200 bored crypto
12674 481694 0 0 3 0x40014200 acpi0 acpi0
76604 96054 0 0 3 0x14200 bored softnet
15311 6077 0 0 3 0x14200 bored systqmp
25039 458306 0 0 3 0x14200 bored systq
86319 450322 0 0 3 0x40014200 bored softclock
39317 229406 0 0 3 0x40014200 idle0
83136 421788 0 0 3 0x14200 bored smr
1 293048 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
devbuf 9464 6345K 6356K 78643K 13737 0
pcb 14 9K 10K 78643K 28196 0
rtable 105 3K 3K 78643K 352 0
ifaddr 43 10K 10K 78643K 81 0
counters 19 16K 16K 78643K 19 0
ioctlops 0 0K 2K 78643K 374 0
iov 0 0K 16K 78643K 2230 0
mount 1 1K 1K 78643K 1 0
vnodes 1217 76K 76K 78643K 3622 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 126 0
VM map 2 0K 0K 78643K 2 0
sem 12 0K 0K 78643K 300 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1794 195K 288K 78643K 12646 0
file desc 5 13K 25K 78643K 28916 0
sigio 0 0K 0K 78643K 951 0
proc 77 40K 63K 78643K 593 0
subproc 32 2K 2K 78643K 85 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 275 0
in_multi 33 2K 2K 78643K 177 0
ether_multi 1 0K 0K 78643K 15 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 471 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 152 24K 24K 78643K 61069 0
UVM aobj 29 2K 2K 78643K 36 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 3152 0
NDP 6 0K 0K 78643K 23 0
temp 107 3018K 3090K 78643K 155972 0
kqueue 0 0K 0K 78643K 130 0
SYN cache 2 16K 16K 78643K 2 0
ddb> 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
rtpcb 80 75 0 73 1 0 1 1 0
8 0
rtentry 112 75 0 31 2 0 2 2 0
8 0
unpcb 120 36362 0 36354 20 18 2 2 0
8 1
syncache 264 4 0 4 1 1 0 1 0
8 0
sackhl 24 3 0 3 1 1 0 1 0
8 0
tcpcb 544 2642 0 2638 2 1 1 2 0
8 0
inpcb 280 35390 0 35380 52 49 3 3 0
8 2
nd6 48 10 0 6 1 0 1 1 0
8 0
pkpcb 40 65 0 65 4 4 0 1 0
8 0
art_heap8 4096 1 0 0 1 0 1 1 0
8 0
art_heap4 256 341 0 129 14 0 14 14 0
8 0
art_table 32 342 0 129 2 0 2 2 0
8 0
art_node 16 74 0 34 1 0 1 1 0
8 0
semapl 112 298 0 288 1 0 1 1 0
8 0
shmpl 112 34 0 7 1 0 1 1 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 35556 0 34043 50 1 49 50 0
8 0
ffsino 240 35556 0 34043 90 0 90 90 0
8 0
nchpl 144 79594 0 77926 62 0 62 62 0
8 0
uvmvnodes 72 5926 0 0 108 0 108 108 0
8 0
vnodes 208 5926 0 0 312 0 312 312 0
8 0
namei 1024 243250 0 243250 1 0 1 1 0
8 1
vmpool 528 2 0 2 1 1 0 1 0
8 0
scxspl 192 196014 0 196014 1 0 1 1 0
8 1
plimitpl 152 200 0 193 1 0 1 1 0
8 0
sigapl 432 29078 0 29065 2 0 2 2 0
8 0
futexpl 56 290745 0 290745 1 0 1 1 0
8 1
knotepl 112 1806 0 1787 1 0 1 1 0
8 0
kqueuepl 104 7568 0 7566 1 0 1 1 0
8 0
pipepl 112 6970 0 6951 1 0 1 1 0
8 0
fdescpl 424 29079 0 29065 2 0 2 2 0
8 0
filepl 120 173824 0 173722 44 38 6 7 0
8 2
lockfpl 104 3064 0 3063 1 0 1 1 0
8 0
lockfspl 48 1241 0 1240 1 0 1 1 0
8 0
sessionpl 112 20 0 10 1 0 1 1 0
8 0
pgrppl 48 133 0 123 1 0 1 1 0
8 0
ucredpl 96 15756 0 15749 1 0 1 1 0
8 0
zombiepl 144 29065 0 29065 1 0 1 1 0
8 1
processpl 872 29094 0 29065 4 0 4 4 0
8 0
procpl 632 60153 0 60116 4 0 4 4 0
8 0
sockpl 384 73324 0 73304 111 103 8 10 0
8 6
mcl64k 65536 268 0 268 26 25 1 1 0
8 1
mcl16k 16384 99 0 99 19 19 0 1 0
8 0
mcl12k 12288 823 0 823 30 29 1 1 0
8 1
mcl9k 9216 113 0 113 19 18 1 1 0
8 1
mcl8k 8192 962 0 962 34 33 1 1 0
8 1
mcl4k 4096 1211 0 1211 38 37 1 1 0
8 1
mcl2k2 2112 84 0 84 27 27 0 1 0
8 0
mcl2k 2048 59629 0 59595 28 23 5 10 0
8 0
mtagpl 80 2 0 2 1 1 0 1 0
8 0
mbufpl 256 255301 0 255247 31 24 7 15 0
8 0
bufpl 280 38490 0 32306 442 0 442 442 0
8 0
anonpl 16 1710356 0 1705889 67 41 26 35 0
107 0
amapchunkpl 152 92333 0 92246 10 5 5 5 0
158 0
amappl16 192 119885 0 119579 55 39 16 27 0
8 0
amappl15 184 2740 0 2735 1 0 1 1 0
8 0
amappl14 176 14078 0 14076 1 0 1 1 0
8 0
amappl13 168 36 0 36 2 2 0 1 0
8 0
amappl12 160 3950 0 3946 1 0 1 1 0
8 0
amappl11 152 58 0 47 1 0 1 1 0
8 0
amappl10 144 27 0 24 1 0 1 1 0
8 0
amappl9 136 8681 0 8678 1 0 1 1 0
8 0
amappl8 128 8566 0 8495 3 0 3 3 0
8 0
amappl7 120 119 0 105 1 0 1 1 0
8 0
amappl6 112 59 0 50 1 0 1 1 0
8 0
amappl5 104 4374 0 4363 1 0 1 1 0
8 0
amappl4 96 29228 0 29202 1 0 1 1 0
8 0
amappl3 88 1092 0 1085 1 0 1 1 0
8 0
amappl2 80 233774 0 233704 3 1 2 3 0
8 0
amappl1 72 479793 0 479363 27 18 9 20 0
8 0
amappl 80 60411 0 60377 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 35 0 7 1 0 1 1 0
8 0
uaddrrnd 24 29081 0 29067 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 29081 0 29067 1 0 1 1 0
8 0
vmmpekpl 168 148848 0 148828 2 0 2 2 0
8 0
vmmpepl 168 3197447 0 3195996 165 96 69 84 0
357 4
vmsppl 272 29080 0 29067 4 3 1 2 0
8 0
pdppl 4096 58168 0 58134 6 1 5 6 0
8 0
pvpl 32 4756696 0 4749164 245 168 77 116 0
265 2
pmappl 200 29080 0 29067 1 0 1 1 0
8 0
extentpl 40 46 0 29 1 0 1 1 0
8 0
phpool 112 299 0 168 4 0 4 4 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.