uvm_fault: bpfioctl

5 views
Skip to first unread message

syzbot

unread,
Jul 22, 2019, 4:03:07 PM7/22/19
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: cae8c152 Correct minor style nit in sys_getdents() for con..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=14925c10600000
kernel config: https://syzkaller.appspot.com/x/.config?x=7f659e47e42d9641
dashboard link: https://syzkaller.appspot.com/bug?extid=8c1ab00701ceeccddc13

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+8c1ab0...@syzkaller.appspotmail.com

uvm_fault(0xfffffd807f00cb80, 0x9b, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at bpfioctl+0xc7: movzbl 0x9b(%r14),%ebx
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
kernel page fault
uvm_fault(0xfffffd807f00cb80, 0x9b, 0, 1) -> e
bpfioctl(41700,80104267,ffff800024a52e50,1,ffff800020b5ec70) at
bpfioctl+0xc7 sys/net/bpf.c:674
end trace frame: 0xffff800024a52d30, count: 0
ddb{1}> trace
bpfioctl(41700,80104267,ffff800024a52e50,1,ffff800020b5ec70) at
bpfioctl+0xc7 sys/net/bpf.c:674
VOP_IOCTL(fffffd806e375a10,80104267,ffff800024a52e50,1,fffffd807f7c6900,ffff800020b5ec70)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290
vn_ioctl(fffffd806657a7d0,80104267,ffff800024a52e50,ffff800020b5ec70) at
vn_ioctl+0xb6 sys/kern/vfs_vnops.c:524
sys_ioctl(ffff800020b5ec70,ffff800024a52f68,ffff800024a52fd0) at
sys_ioctl+0x5b8
syscall(ffff800024a53040) at syscall+0x552 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800024a53040) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff17,0,3,c0042f9f0e0) at Xsyscall+0x128
end of kernel
end trace frame: 0xc02b0977060, count: -6
ddb{1}> show registers
rdi 0xffffffff81639a7c bpfioctl+0xac
rsi 0x139
rbp 0xffff800024a52c80
rbx 0x400
rdx 0x13a
rcx 0xffff800021e04000
rax 0xffff800021e04000
r8 0xffff800020b5ec70
r9 0x5
r10 0x4
r11 0x5efa29bd99540f8d
r12 0x80104267 __kernel_virt_to_phys+0x104267
r13 0xffff800020b5ec70
r14 0
r15 0xffff800024a52e50
rip 0xffffffff81639a97 bpfioctl+0xc7
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800024a52c10
ss 0x10
bpfioctl+0xc7: movzbl 0x9b(%r14),%ebx
ddb{1}> show proc
PROC (syz-executor.0) pid=161735 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=77, usrpri=77, nice=20
forw=0xffffffffffffffff, list=0xffff800020b5e508,0xffff800020b5f660
process=0xffff800020b7c700 user=0xffff800024a4e000,
vmspace=0xfffffd807f00cb80
estcpu=27, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
55702 45246 29014 0 2 0 syz-executor.0
55702 143689 29014 0 2 0x4000000 syz-executor.0
*55702 161735 29014 0 7 0x4000000 syz-executor.0
55702 124257 29014 0 3 0x4000080 fsleep syz-executor.0
48594 216392 22079 0 3 0x82 piperd syz-executor.1
66015 112142 1 0 3 0x100083 ttyin getty
29014 345360 22079 0 3 0x82 nanosleep syz-executor.0
63488 313226 0 0 3 0x14200 bored sosplice
22079 299852 7246 0 3 0x82 thrsleep syz-fuzzer
22079 305358 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 19993 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 479587 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 426674 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 519544 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 174224 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 430448 7246 0 3 0x4000082 thrsleep syz-fuzzer
22079 473072 7246 0 3 0x4000082 kqread syz-fuzzer
22079 77721 7246 0 3 0x4000082 thrsleep syz-fuzzer
7246 376510 5921 0 3 0x10008a pause ksh
5921 141968 41305 0 3 0x92 select sshd
41305 494213 1 0 3 0x80 select sshd
25321 33034 93724 74 3 0x100092 bpf pflogd
93724 5588 1 0 3 0x80 netio pflogd
42471 250444 92480 73 3 0x100090 kqread syslogd
92480 517022 1 0 3 0x100082 netio syslogd
21771 173291 1 77 7 0x100010 dhclient
63867 129982 1 0 3 0x80 poll dhclient
86165 401902 0 0 3 0x14200 pgzero zerothread
6783 390188 0 0 3 0x14200 aiodoned aiodoned
70141 447393 0 0 3 0x14200 syncer update
26973 247878 0 0 3 0x14200 cleaner cleaner
77777 102743 0 0 3 0x14200 reaper reaper
92560 372047 0 0 3 0x14200 pgdaemon pagedaemon
78651 136424 0 0 3 0x14200 bored crynlk
12218 438085 0 0 3 0x14200 bored crypto
75341 498594 0 0 3 0x40014200 acpi0 acpi0
24288 276717 0 0 3 0x40014200 idle1
87592 315000 0 0 3 0x14200 bored softnet
50370 82043 0 0 3 0x14200 bored systqmp
70315 349880 0 0 3 0x14200 bored systq
62618 374372 0 0 3 0x40014200 bored softclock
71447 336445 0 0 3 0x40014200 idle0
35680 107094 0 0 3 0x14200 bored smr
1 363193 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 55702 (syz-executor.0) thread 0xffff800020b5ec70 (161735)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff823765d0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 syscall+0x412 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1 syscall+0x412 sys/arch/amd64/amd64/trap.c:555
#2 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9638 6610K 14993K 78643K 44021 0 0
pcb 13 8K 8K 78643K 829 0 0
rtable 113 4K 5K 78643K 2536 0 0
ifaddr 94 24K 28K 78643K 1308 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 2072 0 0
iov 0 0K 32K 78643K 1510 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1201 75K 77K 78643K 12681 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 172 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 12 1K 1K 78643K 732 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 5 13K 25K 78643K 13333 0 0
sigio 1 0K 0K 78643K 165 0 0
proc 55 51K 83K 78643K 1641 0 0
subproc 32 2K 2K 78643K 78 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 1167 0 0
in_multi 33 2K 2K 78643K 390 0 0
ether_multi 1 0K 0K 78643K 49 0 0
mrt 0 0K 0K 78643K 41 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 126 556K 556K 78643K 126 0 0
exec 0 0K 1K 78643K 1241 0 0
pfkey data 0 0K 4K 78643K 14 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 115 22K 32K 78643K 44170 0 0
UVM aobj 130 4K 4K 78643K 130 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 602 0 0
NDP 23 0K 0K 78643K 358 0 0
temp 249 2749K 3388K 78643K 44200 0 0
kqueue 0 0K 0K 78643K 122 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 10 0 4 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtpcb 80 528 0 526 1 0 1 1 0
8 0
rtentry 112 84 0 40 2 0 2 2 0
8 0
unpcb 120 4131 0 4119 1 0 1 1 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpqe 32 7109 0 7109 2 2 0 2 0
8 0
tcpcb 544 2080 0 2076 1 0 1 1 0
8 0
inpcb 280 5506 0 5497 6 5 1 2 0
8 0
rttmr 72 7 0 7 3 3 0 1 0
8 0
ip6q 72 2 0 2 2 2 0 1 0
8 0
ip6af 48 4 0 4 2 2 0 1 0
8 0
nd6 48 12 0 6 1 0 1 1 0
8 0
pkpcb 40 77 0 77 29 29 0 1 0
8 0
swfcl 56 3 0 0 1 0 1 1 0
8 0
ppxss 1128 250 0 250 37 36 1 1 0
8 1
pffrag 232 9 0 9 6 6 0 1 0
482 0
pffrnode 88 9 0 9 6 6 0 1 0
8 0
pffrent 40 23 0 23 6 6 0 1 0
8 0
pfosfp 40 846 0 846 5 5 0 5 0
8 0
pfosfpen 112 1428 0 1428 21 21 0 21 0
8 0
pfstitem 24 206 0 189 1 0 1 1 0
8 0
pfstkey 112 206 0 189 1 0 1 1 0
8 0
pfstate 328 206 0 189 6 4 2 3 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 296 0 102 14 1 13 13 0
8 0
art_table 32 297 0 102 2 0 2 2 0
8 0
art_node 16 73 0 33 1 0 1 1 0
8 0
sysvmsgpl 40 31 0 4 1 0 1 1 0
8 0
semapl 112 730 0 720 1 0 1 1 0
8 0
shmpl 112 128 0 0 4 0 4 4 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 22223 0 20790 47 0 47 47 0
8 0
ffsino 272 22223 0 20790 96 0 96 96 0
8 0
nchpl 144 41905 0 40270 62 0 62 62 0
8 0
uvmvnodes 72 5926 0 0 108 0 108 108 0
8 0
vnodes 200 5926 0 0 312 0 312 312 0
8 0
namei 1024 128606 0 128606 5 4 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scsiplug 64 19 0 19 12 11 1 1 0
8 1
scxspl 192 126907 0 126907 47 44 3 6 0
8 3
plimitpl 152 1022 0 1014 1 0 1 1 0
8 0
sigapl 432 13530 0 13515 3 1 2 3 0
8 0
futexpl 56 166589 0 166588 2 1 1 1 0
8 0
knotepl 112 2288 0 2269 1 0 1 1 0
8 0
kqueuepl 104 4261 0 4259 1 0 1 1 0
8 0
pipepl 112 8194 0 8175 14 13 1 2 0
8 0
fdescpl 488 13531 0 13515 3 0 3 3 0
8 0
filepl 152 79597 0 79493 19 14 5 7 0
8 0
lockfpl 104 4312 0 4312 6 5 1 1 0
8 1
lockfspl 48 1479 0 1479 6 5 1 1 0
8 1
sessionpl 112 23 0 12 1 0 1 1 0
8 0
pgrppl 48 167 0 156 1 0 1 1 0
8 0
ucredpl 96 17030 0 17021 1 0 1 1 0
8 0
zombiepl 144 13515 0 13515 6 5 1 1 0
8 1
processpl 896 13547 0 13515 4 0 4 4 0
8 0
procpl 632 42806 0 42762 29 24 5 5 0
8 1
srpgc 64 13 0 11 5 4 1 1 0
8 0
sosppl 128 178 0 178 37 36 1 1 0
8 1
sockpl 384 10330 0 10309 14 11 3 4 0
8 0
mcl64k 65536 903 0 0 110 69 41 64 0
8 0
mcl16k 16384 20 0 0 3 1 2 3 0
8 0
mcl12k 12288 57 0 0 3 1 2 2 0
8 0
mcl9k 9216 25 0 0 2 0 2 2 0
8 0
mcl8k 8192 17 0 0 3 0 3 3 0
8 0
mcl4k 4096 33 0 0 3 0 3 3 0
8 0
mcl2k2 2112 17 0 0 2 0 2 2 0
8 0
mcl2k 2048 274 0 0 29 13 16 29 0
8 0
mtagpl 80 27 0 0 1 0 1 1 0
8 0
mbufpl 256 1037 0 0 36 0 36 36 0
8 0
bufpl 256 36858 0 29829 440 0 440 440 0
8 0
anonpl 16 1235406 0 1223876 347 284 63 65 0
125 8
amapchunkpl 152 80983 0 80863 138 129 9 19 0
158 3
amappl16 192 65931 0 65306 384 344 40 45 0
8 8
amappl15 184 4960 0 4959 1 0 1 1 0
8 0
amappl14 176 5024 0 5016 1 0 1 1 0
8 0
amappl13 168 7044 0 7041 2 1 1 1 0
8 0
amappl12 160 9 0 9 2 2 0 1 0
8 0
amappl11 152 1337 0 1322 1 0 1 1 0
8 0
amappl10 144 78 0 75 1 0 1 1 0
8 0
amappl9 136 632 0 629 1 0 1 1 0
8 0
amappl8 128 202 0 171 2 0 2 2 0
8 0
amappl7 120 44 0 40 1 0 1 1 0
8 0
amappl6 112 1339 0 1330 1 0 1 1 0
8 0
amappl5 104 237 0 221 1 0 1 1 0
8 0
amappl4 96 13866 0 13836 2 1 1 2 0
8 0
amappl3 88 800 0 789 1 0 1 1 0
8 0
amappl2 80 113856 0 113782 4 2 2 3 0
8 0
amappl1 72 298890 0 298450 25 15 10 20 0
8 0
amappl 80 43232 0 43190 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
dma64 64 259 0 259 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 129 0 0 3 0 3 3 0
8 0
uaddrrnd 24 13531 0 13515 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 13531 0 13515 1 0 1 1 0
8 0
vmmpekpl 168 102089 0 102052 2 0 2 2 0
8 0
vmmpepl 168 1630455 0 1628686 365 276 89 99 0
357 6
vmsppl 368 13530 0 13515 2 0 2 2 0
8 0
pdppl 4096 27070 0 27030 6 0 6 6 0
8 0
pvpl 32 3222341 0 3207547 611 454 157 164 0 265
28
pmappl 232 13530 0 13515 2 1 1 2 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 756 0 91 20 0 20 20 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,
Aug 19, 2019, 1:27:06 AM8/19/19
to syzkaller-o...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 682277b9 minor cleanup: * add the missing STANDARDS sectio..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=109f1e5a600000
kernel config: https://syzkaller.appspot.com/x/.config?x=26ca0a9c07f16a3a
dashboard link: https://syzkaller.appspot.com/bug?extid=8c1ab00701ceeccddc13
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11d6ac9c600000

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

uvm_fault(0xfffffd807f00c450, 0x9b, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at bpfioctl+0xc7: movzbl 0x9b(%r14),%ebx
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
kernel page fault
uvm_fault(0xfffffd807f00c450, 0x9b, 0, 1) -> e
bpfioctl(91700,40044273,ffff800020b89770,1,ffff800020ab1160) at
bpfioctl+0xc7 sys/net/bpf.c:674
end trace frame: 0xffff800020b89650, count: 0
ddb{0}> trace
bpfioctl(91700,40044273,ffff800020b89770,1,ffff800020ab1160) at
bpfioctl+0xc7 sys/net/bpf.c:674
VOP_IOCTL(fffffd807e3371b8,40044273,ffff800020b89770,1,fffffd807f7c6c60,ffff800020ab1160)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290
vn_ioctl(fffffd8077ffbda8,40044273,ffff800020b89770,ffff800020ab1160) at
vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524
sys_ioctl(ffff800020ab1160,ffff800020b89888,ffff800020b898f0) at
sys_ioctl+0x5b8
syscall(ffff800020b89960) at syscall+0x552 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b89960) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff0a,0,3,2fed7718010) at Xsyscall+0x128
end of kernel
end trace frame: 0x30116e79600, count: -6
ddb{0}> show registers
rdi 0x100
rsi 0x900
rbp 0xffff800020b895a0
rbx 0x900
rdx 0xffff800020b89770
rcx 0x1
rax 0
r8 0xffff800020ab1160
r9 0x5
r10 0xb2e7dff1b277d4a
r11 0x2e9f271648566519
r12 0x40044273
r13 0xffff800020ab1160
r14 0
r15 0xffff800020b89770
rip 0xffffffff81efb757 bpfioctl+0xc7
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800020b89530
ss 0x10
bpfioctl+0xc7: movzbl 0x9b(%r14),%ebx
ddb{0}> show proc
PROC (syz-executor.0) pid=395445 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=50, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffff800020ab0790
process=0xffff800020adc000 user=0xffff800020b84000,
vmspace=0xfffffd807f00c450
estcpu=0, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
13425 137049 34398 0 2 0 syz-executor.1
13425 39709 34398 0 3 0x4000080 fsleep syz-executor.1
13425 142970 34398 0 3 0x4000080 fsleep syz-executor.1
73587 304797 36761 0 2 0 syz-executor.0
*73587 395445 36761 0 7 0x4000000 syz-executor.0
73587 4147 36761 0 2 0x4000000 syz-executor.0
73587 106240 36761 0 3 0x4000000 tqbar syz-executor.0
34398 359627 78375 0 2 0x482 syz-executor.1
36761 278469 78375 0 2 0x482 syz-executor.0
78375 6035 56586 0 3 0x82 thrsleep syz-execprog
78375 204920 56586 0 3 0x4000082 thrsleep syz-execprog
78375 438392 56586 0 3 0x4000082 thrsleep syz-execprog
78375 274055 56586 0 3 0x4000082 thrsleep syz-execprog
78375 500624 56586 0 3 0x4000082 thrsleep syz-execprog
78375 42761 56586 0 3 0x4000082 kqread syz-execprog
78375 153798 56586 0 3 0x4000082 thrsleep syz-execprog
78375 127329 56586 0 3 0x4000082 thrsleep syz-execprog
78375 196000 56586 0 3 0x4000082 thrsleep syz-execprog
56586 76404 26858 0 3 0x10008a pause ksh
26858 43292 94718 0 3 0x92 select sshd
46852 426598 1 0 3 0x100083 ttyin getty
94718 301357 1 0 3 0x80 select sshd
512 167110 46116 74 3 0x100092 bpf pflogd
46116 166706 1 0 3 0x80 netio pflogd
7126 426635 86659 73 2 0x100090 syslogd
86659 283874 1 0 3 0x100082 netio syslogd
57725 133777 1 77 7 0x100090 dhclient
62047 412164 1 0 3 0x80 poll dhclient
47880 156343 0 0 2 0x14200 zerothread
11438 187531 0 0 3 0x14200 aiodoned aiodoned
11927 98455 0 0 3 0x14200 syncer update
90523 279759 0 0 3 0x14200 cleaner cleaner
10827 523901 0 0 3 0x14200 reaper reaper
14880 383712 0 0 3 0x14200 pgdaemon pagedaemon
5446 314181 0 0 3 0x14200 bored crynlk
56699 366763 0 0 3 0x14200 bored crypto
6278 212872 0 0 3 0x40014200 acpi0 acpi0
33937 311279 0 0 3 0x40014200 idle1
57247 160377 0 0 3 0x14200 bored softnet
27961 196949 0 0 3 0x14200 bored systqmp
75917 340137 0 0 2 0x14200 systq
66204 480569 0 0 3 0x40014200 bored softclock
5871 245135 0 0 3 0x40014200 idle0
83013 485566 0 0 3 0x14200 bored smr
1 43507 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 73587 (syz-executor.0) thread 0xffff800020ab1160 (395445)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff826648e0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 syscall+0x412 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1 syscall+0x412 sys/arch/amd64/amd64/trap.c:555
#2 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9482 6711K 6711K 78643K 10574 0 0
pcb 13 8K 8K 78643K 13 0 0
rtable 105 3K 3K 78643K 201 0 0
ifaddr 38 10K 10K 78643K 39 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1469 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1190 75K 75K 78643K 1197 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 1K 78643K 2 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 2 0K 0K 78643K 2 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 5 16K 24K 78643K 35 0 0
proc 52 50K 71K 78643K 414 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
in_multi 33 2K 2K 78643K 33 0 0
ether_multi 1 0K 0K 78643K 1 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 18 79K 79K 78643K 18 0 0
exec 0 0K 1K 78643K 212 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 83 20K 20K 78643K 1025 0 0
UVM aobj 2 2K 2K 78643K 2 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
NDP 10 0K 0K 78643K 10 0 0
temp 55 3526K 3590K 78643K 3273 0 0
SYN cache 2 16K 16K 78643K 2 0 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 23 1 0 1 1 0
8 0
syncache 264 5 0 5 1 0 1 1 0
8 1
tcpcb 544 8 0 5 1 0 1 1 0
8 0
inpcb 280 37 0 31 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 11 0 0 1 0 1 1 0
8 0
pfstkey 112 11 0 0 1 0 1 1 0
8 0
pfstate 328 11 0 0 1 0 1 1 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 189 0 0 12 0 12 12 0
8 0
art_table 32 190 0 0 2 0 2 2 0
8 0
art_node 16 44 0 4 1 0 1 1 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 1458 0 25 47 0 47 47 0
8 0
ffsino 272 1458 0 25 96 0 96 96 0
8 0
nchpl 144 1705 0 52 62 0 62 62 0
8 0
uvmvnodes 72 1475 0 0 27 0 27 27 0
8 0
vnodes 200 1475 0 0 78 0 78 78 0
8 0
namei 1024 4567 0 4567 1 0 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scxspl 192 3930 0 3930 2 1 1 2 0
8 1
plimitpl 152 16 0 8 1 0 1 1 0
8 0
sigapl 432 240 0 224 3 0 3 3 0
8 1
futexpl 56 75 0 73 1 0 1 1 0
8 0
knotepl 112 51 0 34 1 0 1 1 0
8 0
kqueuepl 104 2 0 0 1 0 1 1 0
8 0
pipepl 112 162 0 143 1 0 1 1 0
8 0
fdescpl 488 241 0 224 4 1 3 3 0
8 0
filepl 152 1154 0 1076 4 0 4 4 0
8 0
lockfpl 104 6 0 6 1 1 0 1 0
8 0
lockfspl 48 3 0 3 1 1 0 1 0
8 0
sessionpl 112 20 0 9 1 0 1 1 0
8 0
pgrppl 48 20 0 9 1 0 1 1 0
8 0
ucredpl 96 52 0 43 1 0 1 1 0
8 0
zombiepl 144 224 0 224 1 0 1 1 0
8 1
processpl 896 256 0 224 4 0 4 4 0
8 0
procpl 632 269 0 224 4 0 4 4 0
8 0
srpgc 64 2 0 2 1 0 1 1 0
8 1
sockpl 384 93 0 71 3 0 3 3 0
8 0
mcl4k 4096 3 0 0 1 0 1 1 0
8 0
mcl2k 2048 78 0 0 10 0 10 10 0
8 0
mtagpl 80 1 0 0 1 0 1 1 0
8 0
mbufpl 256 136 0 0 8 0 8 8 0
8 0
bufpl 256 5435 0 1166 267 0 267 267 0
8 0
anonpl 16 23962 0 22100 14 1 13 13 0
124 5
amapchunkpl 152 975 0 899 5 0 5 5 0
158 1
amappl16 192 162 0 116 3 0 3 3 0
8 0
amappl15 184 2 0 1 1 0 1 1 0
8 0
amappl14 176 63 0 56 1 0 1 1 0
8 0
amappl13 168 6 0 6 1 0 1 1 0
8 1
amappl12 160 7 0 6 1 0 1 1 0
8 0
amappl11 152 59 0 44 1 0 1 1 0
8 0
amappl10 144 76 0 73 1 0 1 1 0
8 0
amappl9 136 450 0 447 1 0 1 1 0
8 0
amappl8 128 135 0 123 1 0 1 1 0
8 0
amappl7 120 37 0 31 1 0 1 1 0
8 0
amappl6 112 70 0 61 1 0 1 1 0
8 0
amappl5 104 130 0 117 1 0 1 1 0
8 0
amappl4 96 521 0 492 2 0 2 2 0
8 1
amappl3 88 182 0 172 1 0 1 1 0
8 0
amappl2 80 999 0 919 3 0 3 3 0
8 1
amappl1 72 15918 0 15451 26 8 18 20 0
8 8
amappl 80 523 0 486 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
dma64 64 259 0 259 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 1 0 0 1 0 1 1 0
8 0
uaddrrnd 24 241 0 224 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 241 0 224 1 0 1 1 0
8 0
vmmpekpl 168 6510 0 6487 2 0 2 2 0
8 0
vmmpepl 168 33886 0 32767 84 5 79 79 0 357
30
vmsppl 368 240 0 224 2 0 2 2 0
8 0
pdppl 4096 489 0 448 6 0 6 6 0
8 0
pvpl 32 113737 0 109314 103 0 103 103 0 265
65
pmappl 232 240 0 224 2 0 2 2 0
8 1
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 412 0 3 12 0 12 12 0
8 0
ddb{0}>

syzbot

unread,
Oct 11, 2019, 1:16:08 AM10/11/19
to syzkaller-o...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 9db0ea45 Only set the IPv4 address in umb(4) if both MBIM_..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=12dd386f600000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16edc8e3600000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17c7a277600000

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

login: uvm_fault(0xfffffd807f00ba10, 0x9b, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at bpfioctl+0xc7: movzbl 0x9b(%r14),%ebx
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
kernel page fault
uvm_fault(0xfffffd807f00ba10, 0x9b, 0, 1) -> e
bpfioctl(31700,80104267,ffff800020b299d0,1,ffff800020a5ec60) at
bpfioctl+0xc7 sys/net/bpf.c:672
end trace frame: 0xffff800020b298b0, count: 0
ddb{1}> trace
bpfioctl(31700,80104267,ffff800020b299d0,1,ffff800020a5ec60) at
bpfioctl+0xc7 sys/net/bpf.c:672
VOP_IOCTL(fffffd807e84f768,80104267,ffff800020b299d0,1,fffffd807f7c69c0,ffff800020a5ec60)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd806d965c88,80104267,ffff800020b299d0,ffff800020a5ec60) at
vn_ioctl+0xb7 sys/kern/vfs_vnops.c:536
sys_ioctl(ffff800020a5ec60,ffff800020b29ae8,ffff800020b29b30) at
sys_ioctl+0x5b9
syscall(ffff800020b29bb0) at syscall+0x4a4 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b29bb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,67a1b40c0c8,0,67a1b40c0a8,67a1b40c0a0) at Xsyscall+0x128
end of kernel
end trace frame: 0x67c6c667c70, count: -6
ddb{1}> show registers
rdi 0x100
rsi 0x300
rbp 0xffff800020b29800
rbx 0x300
rdx 0xffff800020b299d0
rcx 0x1
rax 0
r8 0xffff800020a5ec60
r9 0x5
r10 0x9d09e084c90c9eb
r11 0x3a6dadfec3ac148
r12 0x80104267 __kernel_virt_to_phys+0x104267
r13 0xffff800020a5ec60
r14 0
r15 0xffff800020b299d0
rip 0xffffffff820fecf7 bpfioctl+0xc7
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800020b29790
ss 0x10
bpfioctl+0xc7: movzbl 0x9b(%r14),%ebx
ddb{1}> show proc
PROC (syz-executor2152) pid=489659 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=52, usrpri=52, nice=20
forw=0xffffffffffffffff, list=0xffff800020a5e280,0xffff800020ac13e0
process=0xffff800020addc00 user=0xffff800020b24000,
vmspace=0xfffffd807f00ba10
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
89171 210521 67741 0 7 0 syz-executor2152
*89171 489659 67741 0 7 0x4000000 syz-executor2152
89171 133080 67741 0 3 0x4000000 tqbar syz-executor2152
67741 433914 63926 0 3 0x80 nanosleep syz-executor2152
53423 168063 63926 0 3 0x80 nanosleep syz-executor2152
63926 127059 44334 0 3 0x82 nanosleep syz-executor2152
44334 3052 79917 0 3 0x10008a pause ksh
79917 420261 97534 0 3 0x92 select sshd
15460 454608 1 0 3 0x100083 ttyin getty
97534 396000 1 0 3 0x80 select sshd
43026 42652 15792 74 3 0x100092 bpf pflogd
15792 148394 1 0 3 0x80 netio pflogd
41606 165094 60385 73 3 0x100090 kqread syslogd
60385 41420 1 0 3 0x100082 netio syslogd
22753 313517 1 77 3 0x100090 poll dhclient
29715 24990 1 0 3 0x80 poll dhclient
3002 473659 0 0 2 0x14200 zerothread
40840 505303 0 0 3 0x14200 aiodoned aiodoned
51439 19642 0 0 3 0x14200 syncer update
22841 434352 0 0 3 0x14200 cleaner cleaner
24718 164826 0 0 3 0x14200 reaper reaper
28926 429306 0 0 3 0x14200 pgdaemon pagedaemon
41200 161171 0 0 3 0x14200 bored crynlk
44760 459780 0 0 3 0x14200 bored crypto
83927 99745 0 0 3 0x40014200 acpi0 acpi0
40212 351269 0 0 3 0x40014200 idle1
58977 209078 0 0 3 0x14200 bored softnet
68482 378981 0 0 3 0x14200 bored systqmp
41066 213933 0 0 2 0x14200 systq
42570 424732 0 0 3 0x40014200 bored softclock
34106 302700 0 0 3 0x40014200 idle0
1269 117803 0 0 3 0x14200 pause smr
1 263125 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 89171 (syz-executor2152) thread 0xffff800020a5ec60 (489659)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82628c50)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555
#2 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9481 6649K 7041K 78643K 11730 0 0
pcb 13 8K 8K 78643K 13 0 0
rtable 61 2K 2K 78643K 669 0 0
ifaddr 34 13K 15K 78643K 448 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1467 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1189 75K 75K 78643K 1518 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 1K 78643K 2 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 2 0K 0K 78643K 2 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 1 0K 0K 78643K 1 0 0
proc 59 63K 71K 78643K 344 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
in_multi 11 0K 0K 78643K 11 0 0
ether_multi 1 0K 0K 78643K 1 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 18 79K 79K 78643K 18 0 0
exec 0 0K 1K 78643K 179 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 69 19K 19K 78643K 1135 0 0
UVM aobj 2 2K 2K 78643K 2 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
NDP 6 0K 0K 78643K 141 0 0
temp 54 3544K 3608K 78643K 3242 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 2 0 0 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtpcb 80 15 0 13 1 0 1 1 0
8 0
rtentry 112 23 0 1 1 0 1 1 0
8 0
unpcb 120 141 0 129 1 0 1 1 0
8 0
syncache 264 5 0 5 2 1 1 1 0
8 1
tcpcb 544 8 0 5 1 0 1 1 0
8 0
inpcb 280 29 0 23 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 8 0 2 1 0 1 1 0
8 0
pfstkey 112 8 0 2 1 0 1 1 0
8 0
pfstate 328 8 0 2 1 0 1 1 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 97 0 0 7 0 7 7 0
8 0
art_table 32 98 0 0 1 0 1 1 0
8 0
art_node 16 22 0 2 1 0 1 1 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 1401 0 17 45 0 45 45 0
8 0
ffsino 272 1401 0 17 93 0 93 93 0
8 0
nchpl 144 1588 0 44 58 0 58 58 0
8 0
uvmvnodes 72 1687 0 0 31 0 31 31 0
8 0
vnodes 208 1687 0 0 89 0 89 89 0
8 0
namei 1024 4313 0 4313 2 1 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scxspl 192 2662 0 2662 8 5 3 7 0
8 3
plimitpl 152 16 0 8 1 0 1 1 0
8 0
sigapl 432 276 0 261 2 0 2 2 0
8 0
futexpl 56 1016 0 1016 1 0 1 1 0
8 1
knotepl 112 5 0 0 1 0 1 1 0
8 0
kqueuepl 104 1 0 0 1 0 1 1 0
8 0
pipepl 112 134 0 127 3 2 1 1 0
8 0
fdescpl 488 277 0 261 3 0 3 3 0
8 0
filepl 152 1396 0 1343 3 0 3 3 0
8 0
lockfpl 104 5 0 4 1 0 1 1 0
8 0
lockfspl 48 3 0 2 1 0 1 1 0
8 0
sessionpl 112 20 0 9 1 0 1 1 0
8 0
pgrppl 48 20 0 9 1 0 1 1 0
8 0
ucredpl 96 52 0 43 1 0 1 1 0
8 0
zombiepl 144 261 0 260 3 2 1 1 0
8 0
processpl 896 292 0 260 4 0 4 4 0
8 0
procpl 632 478 0 444 4 0 4 4 0
8 1
sockpl 384 185 0 165 3 0 3 3 0
8 0
mcl4k 4096 2 0 0 1 0 1 1 0
8 0
mcl2k 2048 75 0 0 9 0 9 9 0
8 0
mtagpl 80 1 0 0 1 0 1 1 0
8 0
mbufpl 256 97 0 0 6 0 6 6 0
8 0
bufpl 256 2185 0 278 120 0 120 120 0
8 0
anonpl 16 23588 0 22295 9 3 6 7 0
124 0
amapchunkpl 152 970 0 926 3 0 3 3 0
158 0
amappl16 192 160 0 154 1 0 1 1 0
8 0
amappl14 176 15 0 14 3 2 1 1 0
8 0
amappl12 160 1 0 1 1 1 0 1 0
8 0
amappl11 152 46 0 31 1 0 1 1 0
8 0
amappl10 144 6 0 4 1 0 1 1 0
8 0
amappl9 136 448 0 444 1 0 1 1 0
8 0
amappl8 128 171 0 163 1 0 1 1 0
8 0
amappl7 120 19 0 17 1 0 1 1 0
8 0
amappl6 112 60 0 54 1 0 1 1 0
8 0
amappl5 104 130 0 117 1 0 1 1 0
8 0
amappl4 96 469 0 443 1 0 1 1 0
8 0
amappl3 88 102 0 96 1 0 1 1 0
8 0
amappl2 80 1394 0 1329 2 0 2 2 0
8 0
amappl1 72 16405 0 15968 15 5 10 15 0
8 0
amappl 80 670 0 642 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 17 0 17 1 1 0 1 0
8 0
aobjpl 64 1 0 0 1 0 1 1 0
8 0
uaddrrnd 24 277 0 261 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 277 0 261 1 0 1 1 0
8 0
vmmpekpl 168 6061 0 6036 2 0 2 2 0
8 0
vmmpepl 168 35339 0 34417 56 11 45 47 0
357 1
vmsppl 368 276 0 261 2 0 2 2 0
8 0
pdppl 4096 561 0 522 6 0 6 6 0
8 0
pvpl 32 88225 0 85115 36 8 28 28 0
265 2
pmappl 232 276 0 261 1 0 1 1 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 255 0 4 8 0 8 8 0
8 0
ddb{1}>

syzbot

unread,
Oct 13, 2019, 10:36:02 AM10/13/19
to an...@basename.se, syzkaller-o...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer still triggered
crash:
kernel: protection fault trap, code=0

login: kernel: protection fault trap, code=0
Stopped at bpfdetach+0x78: movq 0(%r15),%r14
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
the kernel did not panic
ddb{1}> trace
bpfdetach(ffff800000a68800) at bpfdetach+0x78 sys/net/bpf.c:1678
if_detach(ffff800000a68800) at if_detach+0x69 sys/net/if.c:1084
tun_clone_destroy(ffff800000a68800) at tun_clone_destroy+0x1c7
sys/net/if_tun.c:278
ifioctl(fffffd8068167018,80206979,ffff800020b95b80,ffff800020ab0ef0) at
ifioctl+0x3f0 sys/net/if.c:1877
fifo_ioctl(ffff800020b959c8) at fifo_ioctl+0x9c
sys/miscfs/fifofs/fifo_vnops.c:276
VOP_IOCTL(fffffd807e1354e8,80206979,ffff800020b95b80,3,fffffd807f7c6780,ffff800020ab0ef0)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd80685b6a30,80206979,ffff800020b95b80,ffff800020ab0ef0) at
vn_ioctl+0xb7 sys/kern/vfs_vnops.c:536
sys_ioctl(ffff800020ab0ef0,ffff800020b95c98,ffff800020b95ce0) at
sys_ioctl+0x5b9
syscall(ffff800020b95d60) at syscall+0x4a4 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b95d60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff36,0,3,c4ef48e6010) at Xsyscall+0x128
end of kernel
end trace frame: 0xc5136d2b5c0, count: -10
ddb{1}> show registers
rdi 0
rsi 0
rbp 0xffff800020b95750
rbx 0xffff800000a48e00
rdx 0
rcx 0
rax 0
r8 0xffffffff819383a9 sounlock+0x89
r9 0x1
r10 0x96ee44ab12d32ce4
r11 0xba292db39049163b
r12 0xffff800000a68800
r13 0x62
r14 0xdead0002deadbeef
r15 0xdead0002deadbeef
rip 0xffffffff81bff078 bpfdetach+0x78
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800020b95700
ss 0x10
bpfdetach+0x78: movq 0(%r15),%r14
ddb{1}> show proc
PROC (syz-executor.1) pid=82676 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=32, usrpri=78, nice=20
forw=0xffffffffffffffff, list=0xffff800020ab0298,0xffff800020ab0798
process=0xffff800020addc00 user=0xffff800020b90000,
vmspace=0xfffffd806e7dc178
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
33160 125432 2853 0 2 0 syz-executor.1
*33160 82676 2853 0 7 0x4000000 syz-executor.1
33160 159030 2853 0 2 0x4000000 syz-executor.1
7335 277717 89823 0 3 0x3000 suspend syz-executor.0
7335 297282 89823 0 3 0x4081000 tqbar syz-executor.0
2853 130503 942 0 3 0x82 nanosleep syz-executor.1
89823 106919 942 0 3 0x82 nanosleep syz-executor.0
942 169275 82733 0 3 0x82 thrsleep syz-execprog
942 321731 82733 0 3 0x4000082 thrsleep syz-execprog
942 423590 82733 0 3 0x4000082 thrsleep syz-execprog
942 328396 82733 0 3 0x4000082 thrsleep syz-execprog
942 454729 82733 0 3 0x4000082 thrsleep syz-execprog
942 488260 82733 0 3 0x4000082 thrsleep syz-execprog
942 411974 82733 0 3 0x4000082 thrsleep syz-execprog
942 293008 82733 0 3 0x4000082 thrsleep syz-execprog
942 232537 82733 0 3 0x4000082 kqread syz-execprog
942 401102 82733 0 3 0x4000082 thrsleep syz-execprog
82733 107595 42894 0 3 0x10008a pause ksh
42894 334103 78075 0 3 0x92 select sshd
8176 394434 1 0 3 0x100083 ttyin getty
78075 239016 1 0 3 0x80 select sshd
11627 303208 85509 74 3 0x100092 bpf pflogd
85509 39363 1 0 3 0x80 netio pflogd
70319 511851 39622 73 3 0x100090 kqread syslogd
39622 289295 1 0 3 0x100082 netio syslogd
9470 314328 1 77 3 0x100090 poll dhclient
10795 106686 1 0 2 0x80 dhclient
71934 401580 0 0 2 0x14200 zerothread
91092 432796 0 0 3 0x14200 aiodoned aiodoned
1204 259181 0 0 3 0x14200 syncer update
92292 468470 0 0 3 0x14200 cleaner cleaner
54222 63281 0 0 7 0x14200 reaper
85692 340582 0 0 3 0x14200 pgdaemon pagedaemon
47107 42501 0 0 3 0x14200 bored crynlk
18905 226636 0 0 3 0x14200 bored crypto
53188 122327 0 0 3 0x40014200 acpi0 acpi0
58766 12266 0 0 3 0x40014200 idle1
37979 384675 0 0 2 0x14200 softnet
39161 166389 0 0 3 0x14200 bored systqmp
66803 341491 0 0 3 0x14200 bored systq
39627 156436 0 0 3 0x40014200 bored softclock
47247 76315 0 0 3 0x40014200 idle0
6719 279363 0 0 3 0x14200 bored smr
1 252798 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 33160 (syz-executor.1) thread 0xffff800020ab0ef0 (82676)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262f0d0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227
#2 mi_switch+0x392 sys/kern/sched_bsd.c:441
#3 sleep_finish+0x113 sys/kern/kern_synch.c:373
#4 cond_wait+0x76 sys/kern/kern_synch.c:793
#5 taskq_barrier+0x9e sys/kern/kern_task.c:233
#6 bpfclose+0x194 _atomic_sub_int_nv machine/atomic.h:234 [inline]
#6 bpfclose+0x194 bpf_put sys/net/bpf.c:1625 [inline]
#6 bpfclose+0x194 sys/net/bpf.c:412
#7 spec_close+0x295 spec_close_clone sys/kern/spec_vnops.c:769 [inline]
#7 spec_close+0x295 sys/kern/spec_vnops.c:503
#8 VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175
#9 vclean+0x11b sys/kern/vfs_subr.c:1025
#10 vgonel+0x6e sys/kern/vfs_subr.c:1118
#11 vop_generic_revoke+0x23c sys/kern/vfs_default.c:119
#12 VOP_REVOKE+0x4f sys/kern/vfs_vops.c:333
#13 vdevgone+0x122
#14 bpfdetach+0x14a bpfsdetach sys/net/bpf.c:1701 [inline]
#14 bpfdetach+0x14a sys/net/bpf.c:1682
#15 if_detach+0x69 sys/net/if.c:1084
#16 tun_clone_destroy+0x1c7 sys/net/if_tun.c:278
#17 ifioctl+0x3f0 sys/net/if.c:1877
#18 fifo_ioctl+0x9c sys/miscfs/fifofs/fifo_vnops.c:276
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9470 6520K 6650K 78643K 132564 0 0
pcb 13 8K 8K 78643K 13 0 0
rtable 65 2K 3K 78643K 90773 0 0
ifaddr 34 269K 401K 78643K 81686 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1469 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1206 76K 76K 78643K 60660 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 1K 78643K 2 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 2 0K 0K 78643K 2 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 5 16K 24K 78643K 11955 0 0
proc 59 63K 95K 78643K 424 0 0
subproc 0 0K 1K 78643K 17 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
in_multi 11 0K 2K 78643K 33 0 0
ether_multi 1 0K 0K 78643K 1 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 18 79K 79K 78643K 18 0 0
exec 0 0K 1K 78643K 230 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 85 20K 20K 78643K 40079 0 0
UVM aobj 2 2K 2K 78643K 2 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
NDP 6 0K 0K 78643K 22652 0 0
temp 55 3546K 3610K 78643K 204984 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 6 0 4 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 21 2 0 2 2 0
8 0
unpcb 120 23629 0 23615 1 0 1 1 0
8 0
syncache 264 8 0 8 1 1 0 1 0
8 0
tcpcb 544 14 0 11 1 0 1 1 0
8 0
inpcb 280 43 0 37 1 0 1 1 0
8 0
nd6 48 4 0 4 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 16 0 15 1 0 1 1 0
8 0
pfstkey 112 16 0 15 1 0 1 1 0
8 0
pfstate 328 16 0 15 2 1 1 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 212 0 90 14 5 9 14 0
8 0
art_table 32 213 0 90 2 0 2 2 0
8 0
art_node 16 44 0 22 1 0 1 1 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 37186 0 35776 46 0 46 46 0
8 0
ffsino 272 37186 0 35776 95 0 95 95 0
8 0
nchpl 144 49488 0 47867 62 1 61 61 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 171593 0 171593 1 0 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scxspl 192 112385 0 112385 8 7 1 7 0
8 1
plimitpl 152 20 0 12 1 0 1 1 0
8 0
sigapl 432 12177 0 12161 3 1 2 3 0
8 0
futexpl 56 208935 0 208935 2 1 1 1 0
8 1
knotepl 112 107 0 90 1 0 1 1 0
8 0
kqueuepl 104 3 0 1 1 0 1 1 0
8 0
pipepl 112 226 0 207 1 0 1 1 0
8 0
fdescpl 488 12178 0 12161 3 0 3 3 0
8 0
filepl 152 84853 0 84780 4 1 3 3 0
8 0
lockfpl 104 5 0 4 1 0 1 1 0
8 0
lockfspl 48 3 0 2 1 0 1 1 0
8 0
sessionpl 112 27 0 16 1 0 1 1 0
8 0
pgrppl 48 27 0 16 1 0 1 1 0
8 0
ucredpl 96 73 0 64 1 0 1 1 0
8 0
zombiepl 144 12162 0 12161 1 0 1 1 0
8 0
processpl 896 12193 0 12161 4 0 4 4 0
8 0
procpl 632 39199 0 39154 5 1 4 4 0
8 0
srpgc 64 4 0 4 1 1 0 1 0
8 0
sockpl 384 23691 0 23669 4 1 3 3 0
8 0
mcl4k 4096 3 0 0 1 0 1 1 0
8 0
mcl2k 2048 88 0 0 10 0 10 10 0
8 0
mtagpl 80 1 0 0 1 0 1 1 0
8 0
mbufpl 256 180 0 0 10 0 10 10 0
8 0
bufpl 256 18415 0 11367 441 0 441 441 0
8 0
anonpl 16 699921 0 697197 17 6 11 13 0
124 0
amapchunkpl 152 67075 0 66977 7 3 4 6 0
158 0
amappl16 192 50255 0 50152 7 1 6 6 0
8 0
amappl15 184 5970 0 5968 2 1 1 1 0
8 0
amappl14 176 37 0 33 1 0 1 1 0
8 0
amappl13 168 2 0 1 1 0 1 1 0
8 0
amappl12 160 26 0 25 2 1 1 1 0
8 0
amappl11 152 57 0 42 1 0 1 1 0
8 0
amappl10 144 5972 0 5968 1 0 1 1 0
8 0
amappl9 136 865 0 859 1 0 1 1 0
8 0
amappl8 128 188 0 174 1 0 1 1 0
8 0
amappl7 120 6014 0 6008 1 0 1 1 0
8 0
amappl6 112 124 0 114 1 0 1 1 0
8 0
amappl5 104 184 0 171 1 0 1 1 0
8 0
amappl4 96 12518 0 12490 1 0 1 1 0
8 0
amappl3 88 153 0 148 1 0 1 1 0
8 0
amappl2 80 102417 0 102337 4 2 2 3 0
8 0
amappl1 72 256723 0 256261 31 21 10 20 0
8 0
amappl 80 39473 0 39434 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 17 0 17 1 1 0 1 0
8 0
aobjpl 64 1 0 0 1 0 1 1 0
8 0
uaddrrnd 24 12178 0 12161 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 12178 0 12161 1 0 1 1 0
8 0
vmmpekpl 168 77177 0 77153 2 0 2 2 0
8 0
vmmpepl 168 1028624 0 1027431 89 36 53 80 0
357 1
vmsppl 368 12177 0 12161 2 0 2 2 0
8 0
pdppl 4096 24363 0 24322 7 1 6 6 0
8 0
pvpl 32 1985074 0 1979628 129 85 44 122 0
265 0
pmappl 232 12177 0 12161 2 1 1 2 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 590 0 9 17 0 17 17 0
8 0


Tested on:

commit: f224471f potential bpf fix
git tree: https://github.com/mptre/openbsd-src bpf
console output: https://syzkaller.appspot.com/x/log.txt?x=12f32dab600000
compiler:

syzbot

unread,
Oct 13, 2019, 11:18:01 AM10/13/19
to an...@basename.se, syzkaller-o...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer still triggered
crash:
kernel: protection fault trap, code=0

kernel: protection fault trap, code=0
Stopped at bpfdetach+0x78: movq 0(%r15),%r14
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
the kernel did not panic
ddb{0}> trace
bpfdetach(ffff800000a98800) at bpfdetach+0x78 sys/net/bpf.c:1679
if_detach(ffff800000a98800) at if_detach+0x69 sys/net/if.c:1084
tun_clone_destroy(ffff800000a98800) at tun_clone_destroy+0x1c7
sys/net/if_tun.c:278
ifioctl(fffffd8067a78018,80206979,ffff800020b95430,ffff800020ab18c8) at
ifioctl+0x3f0 sys/net/if.c:1877
fifo_ioctl(ffff800020b95278) at fifo_ioctl+0x9c
sys/miscfs/fifofs/fifo_vnops.c:276
VOP_IOCTL(fffffd8068e5db60,80206979,ffff800020b95430,3,fffffd807f7c6900,ffff800020ab18c8)
at
VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd8068d52bf8,80206979,ffff800020b95430,ffff800020ab18c8) at
vn_ioctl+0xb7 sys/kern/vfs_vnops.c:536
sys_ioctl(ffff800020ab18c8,ffff800020b95548,ffff800020b95590) at
sys_ioctl+0x5b9
syscall(ffff800020b95610) at syscall+0x4a4 mi_syscall
sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b95610) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff36,0,3,62807d6d010) at Xsyscall+0x128
end of kernel
end trace frame: 0x62a364e59d0, count: -10
ddb{0}> show registers
rdi 0
rsi 0
rbp 0xffff800020b95000
rbx 0xffff800000a48680
rdx 0
rcx 0
rax 0
r8 0xffffffff81a74d5a syscall+0x4ea
r9 0
r10 0xaf28855e5fb9fe00
r11 0x6399543d0f62086b
r12 0xffff800000a98800
r13 0x62
r14 0xdead0002deadbeef
r15 0xdead0002deadbeef
rip 0xffffffff81c728f8 bpfdetach+0x78
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800020b94fb0
ss 0x10
bpfdetach+0x78: movq 0(%r15),%r14
ddb{0}> show proc
PROC (syz-executor.0) pid=393844 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=32, usrpri=79, nice=20
forw=0xffffffffffffffff, list=0xffff800020ab0290,0xffffffff82629e38
process=0xffff800020adc380 user=0xffff800020b90000,
vmspace=0xfffffd807f00ba10
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
15273 52148 3831 0 2 0 syz-executor.0
*15273 393844 3831 0 7 0x4000000 syz-executor.0
46790 365222 21630 0 2 0 syz-executor.1
46790 213780 21630 0 7 0x4000000 syz-executor.1
21630 94718 47647 0 3 0x82 nanosleep syz-executor.1
3831 520856 47647 0 3 0x82 nanosleep syz-executor.0
47647 427936 5142 0 3 0x82 thrsleep syz-execprog
47647 273685 5142 0 3 0x4000082 thrsleep syz-execprog
47647 111993 5142 0 3 0x4000082 thrsleep syz-execprog
47647 426832 5142 0 3 0x4000082 thrsleep syz-execprog
47647 99275 5142 0 3 0x4000082 thrsleep syz-execprog
47647 233533 5142 0 3 0x4000082 thrsleep syz-execprog
47647 4802 5142 0 3 0x4000082 kqread syz-execprog
47647 100462 5142 0 3 0x4000082 thrsleep syz-execprog
47647 64706 5142 0 3 0x4000082 thrsleep syz-execprog
47647 421573 5142 0 3 0x4000082 thrsleep syz-execprog
5142 3420 95675 0 3 0x10008a pause ksh
95675 489977 63449 0 3 0x92 select sshd
78671 93765 1 0 3 0x100083 ttyin getty
63449 123099 1 0 3 0x80 select sshd
8592 520583 46153 74 3 0x100092 bpf pflogd
46153 123805 1 0 3 0x80 netio pflogd
21166 22303 35268 73 3 0x100090 kqread syslogd
35268 117063 1 0 3 0x100082 netio syslogd
86876 295410 1 77 2 0x100010 dhclient
21864 14738 1 0 3 0x80 poll dhclient
25908 154916 0 0 2 0x14200 zerothread
46804 312678 0 0 3 0x14200 aiodoned aiodoned
75670 115560 0 0 3 0x14200 syncer update
2465 465922 0 0 3 0x14200 cleaner cleaner
62209 434222 0 0 3 0x14200 reaper reaper
75277 318889 0 0 3 0x14200 pgdaemon pagedaemon
14341 374567 0 0 3 0x14200 bored crynlk
61224 147895 0 0 3 0x14200 bored crypto
66067 202215 0 0 3 0x40014200 acpi0 acpi0
72780 175938 0 0 3 0x40014200 idle1
18224 340048 0 0 3 0x14200 bored softnet
20211 357921 0 0 3 0x14200 bored systqmp
91601 488416 0 0 3 0x14200 bored systq
36404 93609 0 0 3 0x40014200 bored softclock
35704 196966 0 0 3 0x40014200 idle0
62139 489229 0 0 3 0x14200 bored smr
1 128748 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 15273 (syz-executor.0) thread 0xffff800020ab18c8 (393844)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82671bc0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227
#2 mi_switch+0x392 sys/kern/sched_bsd.c:441
#3 sleep_finish+0x113 sys/kern/kern_synch.c:373
#4 cond_wait+0x76 sys/kern/kern_synch.c:793
#5 taskq_barrier+0x9e sys/kern/kern_task.c:233
#6 bpfclose+0x194 _atomic_sub_int_nv machine/atomic.h:234 [inline]
#6 bpfclose+0x194 bpf_put sys/net/bpf.c:1626 [inline]
#6 bpfclose+0x194 sys/net/bpf.c:412
#7 spec_close+0x295 spec_close_clone sys/kern/spec_vnops.c:769 [inline]
#7 spec_close+0x295 sys/kern/spec_vnops.c:503
#8 VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175
#9 vclean+0x11b sys/kern/vfs_subr.c:1025
#10 vgonel+0x6e sys/kern/vfs_subr.c:1118
#11 vop_generic_revoke+0x23c sys/kern/vfs_default.c:119
#12 VOP_REVOKE+0x4f sys/kern/vfs_vops.c:333
#13 vdevgone+0x122
#14 bpfdetach+0x14a bpfsdetach sys/net/bpf.c:1702 [inline]
#14 bpfdetach+0x14a sys/net/bpf.c:1683
#15 if_detach+0x69 sys/net/if.c:1084
#16 tun_clone_destroy+0x1c7 sys/net/if_tun.c:278
#17 ifioctl+0x3f0 sys/net/if.c:1877
#18 fifo_ioctl+0x9c sys/miscfs/fifofs/fifo_vnops.c:276
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9465 6517K 6585K 78643K 60001 0 0
pcb 13 8K 8K 78643K 13 0 0
rtable 65 2K 3K 78643K 36767 0 0
ifaddr 31 140K 208K 78643K 33189 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1469 0 0
iov 0 0K 12K 78643K 5 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1206 76K 76K 78643K 25213 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 1K 78643K 2 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 2 0K 0K 78643K 2 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 5 16K 24K 78643K 4851 0 0
proc 59 63K 95K 78643K 424 0 0
subproc 0 0K 1K 78643K 17 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
in_multi 11 0K 2K 78643K 33 0 0
ether_multi 1 0K 0K 78643K 1 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 18 79K 79K 78643K 18 0 0
exec 0 0K 1K 78643K 230 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 85 20K 20K 78643K 17156 0 0
UVM aobj 2 2K 2K 78643K 2 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
NDP 5 0K 0K 78643K 9149 0 0
temp 48 3546K 3610K 78643K 85235 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 6 0 4 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 21 2 0 2 2 0
8 0
unpcb 120 9559 0 9545 1 0 1 1 0
8 0
syncache 264 8 0 8 1 1 0 1 0
8 0
tcpcb 544 14 0 11 1 0 1 1 0
8 0
inpcb 280 43 0 37 1 0 1 1 0
8 0
nd6 48 4 0 4 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 15 0 9 1 0 1 1 0
8 0
pfstkey 112 15 0 9 1 0 1 1 0
8 0
pfstate 328 15 0 9 2 1 1 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 213 0 90 14 4 10 14 0
8 0
art_table 32 214 0 90 2 0 2 2 0
8 0
art_node 16 44 0 22 1 0 1 1 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 15874 0 14464 46 0 46 46 0
8 0
ffsino 272 15874 0 14464 95 0 95 95 0
8 0
nchpl 144 21003 0 19382 62 1 61 61 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 72141 0 72141 1 0 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scxspl 192 48425 0 48425 5 4 1 4 0
8 1
plimitpl 152 20 0 12 1 0 1 1 0
8 0
sigapl 432 5073 0 5057 3 1 2 3 0
8 0
futexpl 56 83334 0 83334 2 1 1 1 0
8 1
knotepl 112 107 0 90 1 0 1 1 0
8 0
kqueuepl 104 3 0 1 1 0 1 1 0
8 0
pipepl 112 226 0 207 1 0 1 1 0
8 0
fdescpl 488 5074 0 5057 3 0 3 3 0
8 0
filepl 152 35129 0 35056 4 1 3 3 0
8 0
lockfpl 104 5 0 4 1 0 1 1 0
8 0
lockfspl 48 3 0 2 1 0 1 1 0
8 0
sessionpl 112 27 0 16 1 0 1 1 0
8 0
pgrppl 48 27 0 16 1 0 1 1 0
8 0
ucredpl 96 73 0 64 1 0 1 1 0
8 0
zombiepl 144 5057 0 5057 1 0 1 1 0
8 1
processpl 896 5089 0 5057 4 0 4 4 0
8 0
procpl 632 16268 0 16225 4 0 4 4 0
8 0
srpgc 64 4 0 4 1 1 0 1 0
8 0
sockpl 384 9621 0 9599 4 1 3 3 0
8 0
mcl4k 4096 6 0 0 1 0 1 1 0
8 0
mcl2k 2048 91 0 0 12 0 12 12 0
8 0
mtagpl 80 1 0 0 1 0 1 1 0
8 0
mbufpl 256 182 0 0 11 0 11 11 0
8 0
bufpl 256 11312 0 4264 441 0 441 441 0
8 0
anonpl 16 302936 0 300242 18 7 11 13 0
124 0
amapchunkpl 152 28292 0 28199 8 4 4 6 0
158 0
amappl16 192 20486 0 20384 7 1 6 6 0
8 0
amappl14 176 4844 0 4839 1 0 1 1 0
8 0
amappl13 168 4 0 4 1 1 0 1 0
8 0
amappl12 160 38 0 34 1 0 1 1 0
8 0
amappl11 152 60 0 45 1 0 1 1 0
8 0
amappl10 144 27 0 24 1 0 1 1 0
8 0
amappl9 136 872 0 865 1 0 1 1 0
8 0
amappl8 128 176 0 164 1 0 1 1 0
8 0
amappl7 120 55 0 50 1 0 1 1 0
8 0
amappl6 112 112 0 103 1 0 1 1 0
8 0
amappl5 104 186 0 171 1 0 1 1 0
8 0
amappl4 96 3008 0 2978 3 2 1 2 0
8 0
amappl3 88 4991 0 4982 1 0 1 1 0
8 0
amappl2 80 39665 0 39588 4 2 2 3 0
8 0
amappl1 72 117203 0 116747 32 22 10 20 0
8 0
amappl 80 16553 0 16517 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 17 0 17 1 1 0 1 0
8 0
aobjpl 64 1 0 0 1 0 1 1 0
8 0
uaddrrnd 24 5074 0 5057 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 5074 0 5057 1 0 1 1 0
8 0
vmmpekpl 168 45708 0 45684 2 0 2 2 0
8 0
vmmpepl 168 437980 0 436806 90 37 53 80 0
357 1
vmsppl 368 5073 0 5057 2 0 2 2 0
8 0
pdppl 4096 10155 0 10114 7 1 6 6 0
8 0
pvpl 32 901184 0 895779 126 67 59 122 0 265
15
pmappl 232 5073 0 5057 2 1 1 2 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 593 0 8 17 0 17 17 0
8 0


Tested on:

commit: a2296f36 potential bpf fix
console output: https://syzkaller.appspot.com/x/log.txt?x=15c0b16f600000

syzbot

unread,
Oct 22, 2019, 6:40:15 AM10/22/19
to Anton Lindqvist, an...@basename.se, syzkaller-o...@googlegroups.com
> #syz fix: put bpfdesc reference counting back, revert change introduced
> in 1.175 as: BPF: remove redundant reference counting of
> filedescriptors

Your 'fix:' command is accepted, but please keep
syzkaller-o...@googlegroups.com mailing list in CC next time. It
serves as a history of what happened with each bug report. Thank you.

Reply all
Reply to author
Forward
0 new messages