Hello,
syzbot found the following issue on:
HEAD commit: ddde2be8d3c6 Increase peer->errcnt when sending out notifi..
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=15fdb8b9580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link:
https://syzkaller.appspot.com/bug?extid=465d761472d27f70d7a8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/c1783aef62f8/disk-ddde2be8.raw.xz
bsd.gdb:
https://storage.googleapis.com/syzbot-assets/0bc5e6c42f0b/bsd-ddde2be8.gdb.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/5bdc2d2c9ac4/kernel-ddde2be8.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+465d76...@syzkaller.appspotmail.com
uvm_fault(0xffffee006d1a7a20, 0xa0000008c, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at dtioctl+0x489: movl 0x28(%r12),%r13d
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*337655 50806 0 0 0x4000000 0 syz-executor
dtioctl(11e60,80184404,ffff80002a75db90,1,ffff80002f0b0548) at dtioctl+0x489 dt_ioctl_probe_enable sys/dev/dt/dt_dev.c:613 [inline]
dtioctl(11e60,80184404,ffff80002a75db90,1,ffff80002f0b0548) at dtioctl+0x489 sys/dev/dt/dt_dev.c:328
VOP_IOCTL(ffffee00712f27c8,80184404,ffff80002a75db90,1,ffffee0007ffd5b0,ffff80002f0b0548) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264
vn_ioctl(ffffee006d335010,80184404,ffff80002a75db90,ffff80002f0b0548) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537
sys_ioctl(ffff80002f0b0548,ffff80002a75dd60,ffff80002a75dcb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1
syscall(ffff80002a75dd60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a75dd60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5c564556f50, count: 9
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
*cpu0: uvm_fault(0xffffee006d1a7a20, 0xa0000008c, 0, 1) -> e
ddb> show kasan
No such command
ddb> trace
dtioctl(11e60,80184404,ffff80002a75db90,1,ffff80002f0b0548) at dtioctl+0x489 dt_ioctl_probe_enable sys/dev/dt/dt_dev.c:613 [inline]
dtioctl(11e60,80184404,ffff80002a75db90,1,ffff80002f0b0548) at dtioctl+0x489 sys/dev/dt/dt_dev.c:328
VOP_IOCTL(ffffee00712f27c8,80184404,ffff80002a75db90,1,ffffee0007ffd5b0,ffff80002f0b0548) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264
vn_ioctl(ffffee006d335010,80184404,ffff80002a75db90,ffff80002f0b0548) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537
sys_ioctl(ffff80002f0b0548,ffff80002a75dd60,ffff80002a75dcb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1
syscall(ffff80002a75dd60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a75dd60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5c564556f50, count: -6
ddb> show registers
rdi 0xffff80002a8a4000
rsi 0x1bd
rbp 0xffff80002a75d9c0
rbx 0x160
rdx 0xffff80002a8a4000
rcx 0x1bc
rax 0xffffffff82c2e0cc dtioctl+0x49c
r8 0xffff80002f0b0548
r9 0xffff80002f0b0548
r10 0x69d4f47bcc471b4
r11 0xb13a0ac78ca16a71
r12 0xa00000064
r13 0
r14 0xffff80002a75db90
r15 0xffff800001620e00
rip 0xffffffff82c2e0b9 dtioctl+0x489
cs 0x8
rflags 0x10202 __ALIGN_SIZE+0xf202
rsp 0xffff80002a75d940
ss 0x10
dtioctl+0x489: movl 0x28(%r12),%r13d
ddb> show proc
PROC (syz-executor) tid=337655 pid=50806 tcnt=2 stat=onproc
flags process=0 proc=4000000<THREAD>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80002f0b0d10,0xffff80002a766a80
process=0xffff800045ff8498 user=0xffff80002a758000, vmspace=0xffffee006d1a7a20
estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
89372 447304 82073 0 2 0 syz-executor
51729 106020 33173 0 2 0 syz-executor
51729 272326 33173 0 3 0x4000080 fsleep syz-executor
50806 465344 33416 0 2 0 syz-executor
*50806 337655 33416 0 7 0x4000000 syz-executor
99682 252160 86366 0 2 0 syz-executor
99682 286926 86366 0 3 0x4000080 msgwait syz-executor
99682 34013 86366 0 2 0x4000000 syz-executor
63689 36244 3118 0 2 0 syz-executor
63689 446215 3118 0 3 0x4000000 inode syz-executor
63689 250885 3118 0 3 0x4000080 sbwait syz-executor
46513 112132 64798 0 2 0 syz-executor
46513 22265 64798 0 3 0x4000080 nanoslp syz-executor
93998 36508 29451 0 2 0x10 syz-executor
93998 367843 29451 0 3 0x4000090 fsleep syz-executor
90119 15399 1 0 3 0x82 nanoslp getty
3118 30133 32977 0 3 0x82 nanoslp syz-executor
29451 304394 32977 0 3 0x82 nanoslp syz-executor
52141 118708 32977 0 2 0x2 syz-executor
82073 274829 32977 0 3 0x82 nanoslp syz-executor
33173 336591 32977 0 3 0x82 nanoslp syz-executor
64798 442295 32977 0 3 0x82 nanoslp syz-executor
86366 394258 32977 0 3 0x82 nanoslp syz-executor
33416 322553 32977 0 3 0x82 nanoslp syz-executor
32977 372428 1 0 2 0x2 syz-executor
10647 502582 0 0 3 0x14200 bored smr
19079 258429 0 0 2 0x14200 zerothread
65748 113609 0 0 3 0x14200 aiodoned aiodoned
68502 395836 0 0 3 0x14200 syncer update
94476 440107 0 0 3 0x14200 cleaner cleaner
75794 174256 0 0 3 0x14200 reaper reaper
56395 133576 0 0 3 0x14200 pgdaemon pagedaemon
94433 278750 0 0 3 0x14200 bored viomb
49352 88376 0 0 3 0x40014200 acpi0 acpi0
4449 262650 0 0 2 0x14200 softnet0
93909 310551 0 0 3 0x14200 bored systqmp
30139 20998 0 0 3 0x14200 bored systq
75548 440245 0 0 3 0x40014200 tmoslp softclock
39936 521113 0 0 3 0x40014200 idle0
1 147107 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 11037 12180K 12297K 166960K 12331 0
pcb 18 12K 12K 166960K 53 0
rtable 239 7K 8K 166960K 377 0
pf 30 12K 13K 166960K 36 0
ifaddr 41 7K 7K 166960K 45 0
ifgroup 50 2K 2K 166960K 52 0
sysctl 3 1K 9K 166960K 7 0
counters 33 17K 17K 166960K 34 0
ioctlops 0 0K 4K 166960K 44 0
iov 0 0K 16K 166960K 73 0
mount 1 1K 1K 166960K 1 0
log 1 0K 0K 166960K 5 0
vnodes 1329 84K 84K 166960K 1547 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 3 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 0K 166960K 70 0
dirhash 12 2K 2K 166960K 18 0
ACPI 1734 201K 291K 166960K 11964 0
file desc 16 61K 73K 166960K 243 0
proc 20 25K 91K 166960K 510 0
subproc 72 4K 4K 166960K 72 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 16 0
in_multi 98 7K 7K 166960K 101 0
ether_multi 1 0K 0K 166960K 1 0
mrt 0 0K 0K 166960K 6 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 61 281K 281K 166960K 61 0
exec 0 0K 1K 166960K 376 0
fusefs mount 1 32K 32K 166960K 1 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 127 82K 154K 166960K 3781 0
UVM aobj 6 2K 2K 166960K 7 0
pinsyscall 19 38K 84K 166960K 1347 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 3 0
NDP 11 0K 2K 166960K 28 0
temp 42 9112K 9116K 166960K 6000 0
kqueue 1 2K 25K 166960K 48 0
SYN cache 2 16K 16K 166960K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 47 0 47 1 0 1 1 0 8 1
rtentry 136 113 0 5 4 0 4 4 0 8 0
unpcb 144 84 0 80 1 0 1 1 0 8 0
syncache 336 6 0 6 2 1 1 1 0 8 1
tcpcb 736 148 0 147 7 0 7 7 0 8 6
arp 96 18 0 2 1 0 1 1 0 8 0
ipq 40 1 0 0 1 0 1 1 0 8 0
ipqe 40 1 0 0 1 0 1 1 0 8 0
inpcb 328 266 0 264 7 0 7 7 0 8 6
nd6 112 25 0 0 1 0 1 1 0 8 0
kcovpl 48 8 0 0 1 0 1 1 0 8 0
ppxss 1072 1 0 1 1 0 1 1 0 8 1
pfrule 1360 1 0 1 1 0 1 1 0 8 1
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 466 0 4 30 0 30 30 0 8 0
art_table 40 467 0 4 5 0 5 5 0 8 0
art_node 32 113 0 15 1 0 1 1 0 8 0
sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0
semapl 72 68 0 58 1 0 1 1 0 8 0
shmpl 112 4 0 1 1 0 1 1 0 8 0
dirhash 1024 21 0 4 3 0 3 3 0 8 0
dino2pl 256 1849 0 388 92 0 92 92 0 8 0
ffsino 256 1849 0 388 92 0 92 92 0 8 0
nchpl 144 2172 0 476 63 0 63 63 0 8 0
vnodes 216 1994 0 0 111 0 111 111 0 8 0
namei 1024 6969 0 6968 3 2 1 2 0 8 0
kstatmem 264 25 0 2 2 0 2 2 0 8 0
scxspl 216 7537 0 7537 8 7 1 8 1 8 1
plimitpl 152 44 0 34 1 0 1 1 0 8 0
sigapl 424 539 0 507 6 1 5 6 0 8 0
knotepl 120 6028 0 6011 9 0 9 9 0 8 7
kqueuepl 184 47 0 46 1 0 1 1 0 8 0
pipepl 304 128 0 101 3 0 3 3 0 8 0
fdescpl 448 526 0 507 4 0 4 4 0 8 0
filepl 120 2647 0 2489 11 0 11 11 0 8 4
lockfpl 104 44 0 43 1 0 1 1 0 8 0
lockfspl 48 21 0 20 1 0 1 1 0 8 0
sessionpl 144 27 0 25 1 0 1 1 0 8 0
pgrppl 48 36 0 26 1 0 1 1 0 8 0
ucredpl 104 467 0 462 1 0 1 1 0 8 0
zombiepl 144 507 0 507 2 1 1 1 0 8 1
processpl 1152 539 0 507 4 0 4 4 0 8 0
procpl 664 711 0 671 5 0 5 5 0 8 1
sockpl 552 409 0 403 8 0 8 8 0 8 7
mcl64k 65536 7 0 7 2 1 1 1 0 8 1
mcl16k 16384 3 0 3 2 1 1 1 0 8 1
mcl8k 8192 4 0 4 1 1 0 1 0 8 0
mcl4k 4096 2632 0 2576 14 6 8 14 0 8 0
mcl2k 2048 198 0 195 1 0 1 1 0 8 0
mextrefs 64 78 0 77 2 1 1 1 0 8 0
mtagpl 96 7 0 6 2 1 1 1 0 8 0
mbufpl 256 5473 0 5316 12 0 12 12 0 8 1
bufpl 272 2587 0 102 166 0 166 166 0 8 0
anonpl 24 107465 0 105993 57 24 33 44 0 187 14
amapchunkpl 152 11212 0 10876 32 1 31 31 0 158 13
amappl16 200 2047 0 2031 15 12 3 14 0 8 0
amappl15 192 3 0 3 1 1 0 1 0 8 0
amappl14 184 409 0 409 1 0 1 1 0 8 1
amappl13 176 172 0 171 1 0 1 1 0 8 0
amappl12 168 760 0 743 2 0 2 2 0 8 0
amappl11 160 7 0 7 1 1 0 1 0 8 0
amappl10 152 63 0 63 1 0 1 1 0 8 1
amappl9 144 274 0 274 1 1 0 1 0 8 0
amappl8 136 108 0 108 1 0 1 1 0 8 1
amappl7 128 149 0 147 1 0 1 1 0 8 0
amappl6 120 169 0 168 1 0 1 1 0 8 0
amappl5 112 106 0 105 1 0 1 1 0 8 0
amappl4 104 265 0 261 1 0 1 1 0 8 0
amappl3 96 2104 0 2031 3 0 3 3 0 8 0
amappl2 88 524 0 516 2 0 2 2 0 8 0
amappl1 80 10542 0 10427 12 0 12 12 0 8 6
amappl 88 3073 0 2960 4 0 4 4 0 92 0
uvmvnodes 80 101 0 0 3 0 3 3 0 8 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma1024 1024 1 0 0 1 0 1 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 72 6 0 1 1 0 1 1 0 8 0
uaddrrnd 24 526 0 507 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 526 0 507 1 0 1 1 0 8 0
vmmpekpl 168 6109 0 6076 2 0 2 2 0 8 0
vmmpepl 168 42674 0 41855 89 9 80 89 0 357 39
vmsppl 368 525 0 507 3 0 3 3 0 8 0
rwobjpl 40 15492 0 15085 12 0 12 12 0 8 2
pdppl 4096 1058 0 1014 84 38 46 70 0 8 2
pvpl 32 256239 0 252215 125 25 100 110 0 265 54
pmappl 216 525 0 507 2 0 2 2 0 8 0
extentpl 40 46 0 28 1 0 1 1 0 8 0
phpool 112 523 0 52 14 0 14 14 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
dtioctl(11e60,80184404,ffff80002a75db90,1,ffff80002f0b0548) at dtioctl+0x489 dt_ioctl_probe_enable sys/dev/dt/dt_dev.c:613 [inline]
dtioctl(11e60,80184404,ffff80002a75db90,1,ffff80002f0b0548) at dtioctl+0x489 sys/dev/dt/dt_dev.c:328
VOP_IOCTL(ffffee00712f27c8,80184404,ffff80002a75db90,1,ffffee0007ffd5b0,ffff80002f0b0548) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264
vn_ioctl(ffffee006d335010,80184404,ffff80002a75db90,ffff80002f0b0548) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537
sys_ioctl(ffff80002f0b0548,ffff80002a75dd60,ffff80002a75dcb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1
syscall(ffff80002a75dd60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a75dd60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5c564556f50, count: -6
ddb> machine ddbcpu 1
No such command
ddb> trace
dtioctl(11e60,80184404,ffff80002a75db90,1,ffff80002f0b0548) at dtioctl+0x489 dt_ioctl_probe_enable sys/dev/dt/dt_dev.c:613 [inline]
dtioctl(11e60,80184404,ffff80002a75db90,1,ffff80002f0b0548) at dtioctl+0x489 sys/dev/dt/dt_dev.c:328
VOP_IOCTL(ffffee00712f27c8,80184404,ffff80002a75db90,1,ffffee0007ffd5b0,ffff80002f0b0548) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264
vn_ioctl(ffffee006d335010,80184404,ffff80002a75db90,ffff80002f0b0548) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537
sys_ioctl(ffff80002f0b0548,ffff80002a75dd60,ffff80002a75dcb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1
syscall(ffff80002a75dd60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a75dd60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5c564556f50, count: -6
ddb>
---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup