Hello,
syzbot found the following crash on:
HEAD commit: 957dfd9f Add powerdown code.
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=168e7832100000
kernel config:
https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link:
https://syzkaller.appspot.com/bug?extid=9c309db201f06e39a8ba
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+9c309d...@syzkaller.appspotmail.com
kernel: integer divide fault trap, code=0
Stopped at pf_get_transaddr+0x298: idivl %r13d,%eax
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
the kernel did not panic
ddb{1}> trace
pf_get_transaddr(ffff800000a6d550,ffff800020e91180,ffff800020e91038,ffff800020e91060) at pf_get_transaddr+0x298 sys/net/pf_lb.c:689
pf_test_rule(ffff800020e91180,ffff800020e91270,ffff800020e91280,ffff800020e91260,ffff800020e91248,3) at pf_test_rule+0x495 sys/net/pf.c:3822
pf_test(2,2,ffff80000017b2a8,ffff800020e91378) at pf_test+0x1909 sys/net/pf.c:7101
ip_output(fffffd806f67b600,0,fffffd806f6de4d0,800,0,fffffd806f6de460) at ip_output+0xc5e sys/netinet/ip_output.c:421
tcp_output(ffff800000a0b320) at tcp_output+0x2664 sys/netinet/tcp_output.c:1040
tcp_usrreq(fffffd806eb477d8,9,fffffd806f67bb00,0,0,ffff800020edeeb0) at tcp_usrreq+0xa55
sosend(fffffd806eb477d8,0,ffff800020e917e8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549
dofilewritev(ffff800020edeeb0,4,ffff800020e917e8,0,ffff800020e918d0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365
sys_write(ffff800020edeeb0,ffff800020e91880,ffff800020e918d0) at sys_write+0x83 sys/kern/sys_generic.c:285
syscall(ffff800020e91950) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020e91950) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffeb9a0, count: -11
ddb{1}> show registers
rdi 0
rsi 0xfffe __ALIGN_SIZE+0xeffe
rbp 0xffff800020e90fd0
rbx 0
rdx 0
rcx 0xffff __ALIGN_SIZE+0xefff
rax 0x7497 __ALIGN_SIZE+0x6497
r8 0xffffffff81877f46 pf_insert_src_node+0x2d6
r9 0x1
r10 0x2
r11 0x20dcae043e6e93cb
r12 0x7497 __ALIGN_SIZE+0x6497
r13 0
r14 0xffff800020e91180
r15 0xffff800000a6d550
rip 0xffffffff817d89d8 pf_get_transaddr+0x298
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800020e90f60
ss 0x10
pf_get_transaddr+0x298: idivl %r13d,%eax
ddb{1}> show proc
PROC (sshd) pid=50190 stat=onproc
flags process=12<EXEC,SUGID,8ORPHAN> proc=0
pri=24, usrpri=51, nice=20
forw=0xffffffffffffffff, list=0xffff800020ede760,0xffff800020edf610
process=0xffff800020ec8f78 user=0xffff800020e8c000, vmspace=0xfffffd806e95b2e8
estcpu=1, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
92029 71536 1548 0 7 0 syz-executor.1
78715 66311 0 0 3 0x14200 bored sosplice
1548 376128 38635 0 3 0x82 nanosleep syz-executor.1
22103 180700 38635 0 2 0x2 syz-executor.0
38635 416577 73341 0 3 0x82 thrsleep syz-fuzzer
38635 192886 73341 0 3 0x4000082 nanosleep syz-fuzzer
38635 371088 73341 0 3 0x4000082 thrsleep syz-fuzzer
38635 268051 73341 0 3 0x4000082 nanosleep syz-fuzzer
38635 78726 73341 0 3 0x4000082 thrsleep syz-fuzzer
38635 493359 73341 0 3 0x4000082 thrsleep syz-fuzzer
38635 299597 73341 0 3 0x4000082 thrsleep syz-fuzzer
38635 322000 73341 0 3 0x4000082 thrsleep syz-fuzzer
38635 296389 73341 0 3 0x4000082 kqread syz-fuzzer
38635 457278 73341 0 3 0x4000082 thrsleep syz-fuzzer
73341 144279 53208 0 3 0x10008a pause ksh
*53208 50190 45403 0 7 0x12 sshd
34173 392399 1 0 3 0x100083 ttyin getty
45403 226214 1 0 3 0x80 select sshd
50996 260358 53999 74 3 0x100092 bpf pflogd
53999 478863 1 0 3 0x80 netio pflogd
5515 414330 11554 73 3 0x100090 kqread syslogd
11554 413915 1 0 3 0x100082 netio syslogd
18358 46125 1 77 3 0x100090 poll dhclient
14700 181812 1 0 3 0x80 poll dhclient
79570 477512 0 0 3 0x14200 bored smr
56666 440103 0 0 2 0x14200 zerothread
4058 456126 0 0 3 0x14200 aiodoned aiodoned
55961 107892 0 0 3 0x14200 syncer update
83836 411997 0 0 3 0x14200 cleaner cleaner
83265 412703 0 0 3 0x14200 reaper reaper
39908 282705 0 0 3 0x14200 pgdaemon pagedaemon
60747 401987 0 0 3 0x14200 bored crynlk
82465 244750 0 0 3 0x14200 bored crypto
49605 372855 0 0 3 0x40014200 acpi0 acpi0
96310 343783 0 0 3 0x40014200 idle1
86029 502881 0 0 3 0x14200 bored softnet
70424 388375 0 0 3 0x14200 bored systqmp
78876 97298 0 0 3 0x14200 bored systq
99905 201944 0 0 3 0x40014200 bored softclock
59999 282093 0 0 3 0x40014200 idle0
1 208523 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 53208 (sshd) thread 0xffff800020edeeb0 (50190)
exclusive rwlock netlock r = 0 (0xffffffff82509548)
#0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1 solock+0x5a sys/kern/uipc_socket2.c:282
#2 sosend+0x559 sys/kern/uipc_socket.c:537
#3 dofilewritev+0x1b6 sys/kern/sys_generic.c:365
#4 sys_write+0x83 sys/kern/sys_generic.c:285
#5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#6 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9504 6410K 6666K 78643K 10811 0
pcb 13 8K 8K 78643K 45 0
rtable 128 8K 8K 78643K 312 0
ifaddr 62 12K 13K 78643K 84 0
counters 43 33K 34K 78643K 51 0
ioctlops 0 0K 4K 78643K 1509 0
iov 0 0K 16K 78643K 20 0
mount 1 1K 1K 78643K 1 0
vnodes 1219 77K 77K 78643K 1289 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 5 0
VM map 2 1K 1K 78643K 2 0
sem 11 1K 1K 78643K 25 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1824 197K 290K 78643K 13058 0
file desc 5 13K 25K 78643K 191 0
proc 62 63K 95K 78643K 461 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 10 0
in_multi 33 2K 2K 78643K 46 0
ether_multi 1 0K 0K 78643K 5 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 37 175K 175K 78643K 37 0
exec 0 0K 1K 78643K 226 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 116 55K 55K 78643K 1561 0
UVM aobj 15 2K 2K 78643K 17 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 18 0
NDP 10 0K 0K 78643K 18 0
temp 87 3038K 3103K 78643K 6068 0
kqueue 3 4K 8K 78643K 8 0
SYN cache 2 16K 16K 78643K 2 0
ddb{1}> 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 25 0 23 1 0 1 1 0 8 0
rtentry 112 46 0 1 2 0 2 2 0 8 0
unpcb 120 84 0 74 1 0 1 1 0 8 0
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpqe 32 428 0 428 1 1 0 1 0 8 0
tcpcb 544 66 0 62 1 0 1 1 0 8 0
inpcb 280 186 0 178 3 1 2 2 0 8 1
nd6 48 7 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
pfrktable 1344 23 0 15 1 0 1 1 0 8 0
pfstitem 24 17 0 17 1 0 1 1 0 8 1
pfstkey 112 17 0 17 1 0 1 1 0 8 1
pfstate 328 17 0 13 2 0 2 2 0 8 0
pfsrctr 152 1 0 0 1 0 1 1 0 8 0
pfrule 1360 33 0 18 3 1 2 2 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 203 0 0 13 0 13 13 0 8 0
art_table 32 204 0 0 2 0 2 2 0 8 0
art_node 16 45 0 4 1 0 1 1 0 8 0
semupl 112 6 0 6 1 1 0 1 0 8 0
semapl 112 9 0 0 1 0 1 1 0 8 0
shmpl 112 15 0 2 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1630 0 223 89 0 89 89 0 8 0
ffsino 272 1630 0 223 95 1 94 94 0 8 0
nchpl 144 2171 0 560 60 0 60 60 0 8 0
uvmvnodes 72 1724 0 0 32 0 32 32 0 8 0
vnodes 208 1724 0 0 91 0 91 91 0 8 0
namei 1024 5780 0 5780 2 1 1 1 0 8 1
percpumem 16 36 0 4 1 0 1 1 0 8 0
vcpupl 1984 4 0 0 1 0 1 1 0 8 0
vmpool 560 6 0 2 2 1 1 1 0 8 0
pfiaddrpl 120 10 0 2 1 0 1 1 0 8 0
scxspl 192 5496 0 5496 7 5 2 6 0 8 2
plimitpl 152 23 0 15 1 0 1 1 0 8 0
sigapl 424 407 0 375 4 0 4 4 0 8 0
futexpl 56 2394 0 2394 1 0 1 1 0 8 1
knotepl 112 68 0 49 1 0 1 1 0 8 0
kqueuepl 144 33 0 31 1 0 1 1 0 8 0
pipelkpl 48 103 0 93 1 0 1 1 0 8 0
pipepl 120 206 0 187 1 0 1 1 0 8 0
fdescpl 496 391 0 375 3 0 3 3 0 8 0
filepl 152 2178 0 2078 6 1 5 5 0 8 1
lockfpl 104 37 0 36 1 0 1 1 0 8 0
lockfspl 48 15 0 14 1 0 1 1 0 8 0
sessionpl 112 18 0 7 1 0 1 1 0 8 0
pgrppl 48 18 0 7 1 0 1 1 0 8 0
ucredpl 96 166 0 155 1 0 1 1 0 8 0
zombiepl 144 375 0 375 2 1 1 1 0 8 1
processpl 984 407 0 375 6 1 5 5 0 8 0
procpl 624 794 0 753 4 0 4 4 0 8 0
sockpl 400 295 0 276 4 1 3 3 0 8 1
mcl64k 65536 5 0 0 1 0 1 1 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 1 0 0 1 0 1 1 0 8 0
mcl9k 9216 2 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 4 0 0 1 0 1 1 0 8 0
mcl2k2 2112 1 0 0 1 0 1 1 0 8 0
mcl2k 2048 195 0 0 24 0 24 24 0 8 0
mtagpl 80 13 0 0 1 0 1 1 0 8 0
mbufpl 256 207 0 0 13 0 13 13 0 8 0
bufpl 280 3528 0 134 243 0 243 243 0 8 0
anonpl 16 50813 0 35280 69 6 63 68 0 124 0
amapchunkpl 152 2207 0 2058 12 4 8 12 0 158 0
amappl16 192 1648 0 822 42 0 42 42 0 8 0
amappl15 184 1 0 1 1 1 0 1 0 8 0
amappl14 176 28 0 21 1 0 1 1 0 8 0
amappl13 168 112 0 108 1 0 1 1 0 8 0
amappl12 160 7 0 5 2 1 1 1 0 8 0
amappl11 152 60 0 45 1 0 1 1 0 8 0
amappl10 144 105 0 98 1 0 1 1 0 8 0
amappl9 136 384 0 382 1 0 1 1 0 8 0
amappl8 128 338 0 310 1 0 1 1 0 8 0
amappl7 120 194 0 181 1 0 1 1 0 8 0
amappl6 112 24 0 22 1 0 1 1 0 8 0
amappl5 104 302 0 285 1 0 1 1 0 8 0
amappl4 96 576 0 545 1 0 1 1 0 8 0
amappl3 88 105 0 99 1 0 1 1 0 8 0
amappl2 80 2177 0 2113 2 0 2 2 0 8 0
amappl1 72 18434 0 17999 23 13 10 18 0 8 0
amappl 80 1049 0 1004 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 16 0 2 1 0 1 1 0 8 0
uaddrrnd 24 397 0 377 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 397 0 377 1 0 1 1 0 8 0
vmmpekpl 168 7079 0 7045 2 0 2 2 0 8 0
vmmpepl 168 54258 0 52308 117 15 102 112 0 357 12
vmsppl 368 396 0 377 2 0 2 2 0 8 0
pdppl 4096 802 0 758 6 0 6 6 0 8 0
pvpl 32 169388 0 150736 166 5 161 166 0 265 9
pmappl 232 396 0 377 3 1 2 2 0 8 0
extentpl 40 53 0 36 1 0 1 1 0 8 0
phpool 112 266 0 6 8 0 8 8 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
ddb{0}> trace
x86_ipi_db(ffffffff824f2ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352
x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
alltraps() at alltraps+0x138
end of kernel
end trace frame: 0x7f7ffffef660, count: -4
ddb{0}> machine ddbcpu 1
Stopped at pf_get_transaddr+0x298: idivl %r13d,%eax
ddb{1}> trace
pf_get_transaddr(ffff800000a6d550,ffff800020e91180,ffff800020e91038,ffff800020e91060) at pf_get_transaddr+0x298 sys/net/pf_lb.c:689
pf_test_rule(ffff800020e91180,ffff800020e91270,ffff800020e91280,ffff800020e91260,ffff800020e91248,3) at pf_test_rule+0x495 sys/net/pf.c:3822
pf_test(2,2,ffff80000017b2a8,ffff800020e91378) at pf_test+0x1909 sys/net/pf.c:7101
ip_output(fffffd806f67b600,0,fffffd806f6de4d0,800,0,fffffd806f6de460) at ip_output+0xc5e sys/netinet/ip_output.c:421
tcp_output(ffff800000a0b320) at tcp_output+0x2664 sys/netinet/tcp_output.c:1040
tcp_usrreq(fffffd806eb477d8,9,fffffd806f67bb00,0,0,ffff800020edeeb0) at tcp_usrreq+0xa55
sosend(fffffd806eb477d8,0,ffff800020e917e8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549
dofilewritev(ffff800020edeeb0,4,ffff800020e917e8,0,ffff800020e918d0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365
sys_write(ffff800020edeeb0,ffff800020e91880,ffff800020e918d0) at sys_write+0x83 sys/kern/sys_generic.c:285
syscall(ffff800020e91950) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020e91950) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffeb9a0, count: -11
---
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.