Hello,
syzbot found the following crash on:
HEAD commit: 737f2a163501 anton@: Do not trace before kcovopen() has be..
git tree:
https://github.com/blackgnezdo/src.git anton-kcov-dec8
console output:
https://syzkaller.appspot.com/x/log.txt?x=139a9a43400000
kernel config:
https://syzkaller.appspot.com/x/.config?x=f2ee3db928411249
dashboard link:
https://syzkaller.appspot.com/bug?extid=613db18acc3d2149ab94
compiler:
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+613db1...@syzkaller.appspotmail.com
panic: receive 3: so 0xffffff007b7b3968, so_type 1, m 0xffffff006d8f0a00,
m_type 6
Stopped at db_enter+0xa: popq %rbp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
521684 11222 65534 0x10 0 0 syz-executor0
* 48731 11222 65534 0x10 0x4000000 1K syz-executor0
db_enter() at db_enter+0xa sys/arch/amd64/amd64/db_interface.c:399
panic() at panic+0x147 sys/kern/subr_prf.c:208
soreceive(0,ffffff007b7b3968,ffff800021178ee0,120d,ffff800021178f70,ffffff007b7b3968)
at
soreceive+0x12d8 sys/kern/uipc_socket.c:933
recvit(ffff800021178fa0,ffff8000211790a8,ffff800021179090,ffff8000210a24c8,0)
at
recvit+0x28d sys/kern/uipc_syscalls.c:822
sys_recvmsg(1b0,ffff8000210a24c8,1) at sys_recvmsg+0x120
sys/kern/uipc_syscalls.c:758
syscall(0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:99 [inline]
syscall(0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:583
Xsyscall(6,0,ffffffffffffffc1,0,3,3782db2a010) at Xsyscall+0x128
end of kernel
end trace frame: 0x37a755a1e90, count: 8
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{1}>
ddb{1}> set $lines = 0
ddb{1}> show panic
receive 3: so 0xffffff007b7b3968, so_type 1, m 0xffffff006d8f0a00, m_type 6
ddb{1}> trace
db_enter() at db_enter+0xa sys/arch/amd64/amd64/db_interface.c:399
panic() at panic+0x147 sys/kern/subr_prf.c:208
soreceive(0,ffffff007b7b3968,ffff800021178ee0,120d,ffff800021178f70,ffffff007b7b3968)
at
soreceive+0x12d8 sys/kern/uipc_socket.c:933
recvit(ffff800021178fa0,ffff8000211790a8,ffff800021179090,ffff8000210a24c8,0)
at
recvit+0x28d sys/kern/uipc_syscalls.c:822
sys_recvmsg(1b0,ffff8000210a24c8,1) at sys_recvmsg+0x120
sys/kern/uipc_syscalls.c:758
syscall(0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:99 [inline]
syscall(0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:583
Xsyscall(6,0,ffffffffffffffc1,0,3,3782db2a010) at Xsyscall+0x128
end of kernel
end trace frame: 0x37a755a1e90, count: -7
ddb{1}> show registers
rdi 0xffffffff81e337f8 kprintf_mutex
rsi 0xffffffff81696879 db_enter+0x9
rbp 0xffff800021178d30
rbx 0xffff800021178dd0
rdx 0xffff800001ed7000
rcx 0x24cf __ALIGN_SIZE+0x14cf
rax 0xffff800001ed7000
r8 0xffff800021178d00
r9 0x1
r10 0
r11 0xffffffff8181f470 x86_bus_space_io_read_1
r12 0x3000000008
r13 0xffff800021178d40
r14 0x100
r15 0xffffffff81bdc2ec cmd0646_9_tim_udma+0x65fa
rip 0xffffffff8169687a db_enter+0xa
cs 0x8
rflags 0x206
rsp 0xffff800021178d30
ss 0x10
db_enter+0xa: popq %rbp
ddb{1}> show proc
PROC (syz-executor0) pid=48731 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
pri=24, usrpri=78, nice=20
forw=0xffffffffffffffff, list=0xffff8000210a3080,0xffff8000210a2028
process=0xffff8000210b7630 user=0xffff800021174000,
vmspace=0xffffff0065b61008
estcpu=28, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
11222 521684 14076 65534 7 0x10 syz-executor0
*11222 48731 14076 65534 7 0x4000010 syz-executor0
11222 179203 14076 65534 3 0x4000090 fsleep syz-executor0
11222 323481 14076 65534 2 0x4000010 syz-executor0
89894 280444 75090 65534 3 0x90 piperd syz-executor1
75090 282662 13149 0 3 0x82 wait syz-executor1
14076 80091 40599 65534 3 0x90 nanosleep syz-executor0
40599 355716 13149 0 3 0x82 wait syz-executor0
50526 324449 0 0 3 0x14200 bored sosplice
13149 200260 4649 0 3 0x82 thrsleep syz-fuzzer
13149 125819 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 230151 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 227809 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 283688 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 200955 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 139105 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 70928 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 170519 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 482957 4649 0 3 0x4000082 kqread syz-fuzzer
13149 221521 4649 0 3 0x4000082 thrsleep syz-fuzzer
13149 277828 4649 0 3 0x4000082 thrsleep syz-fuzzer
4649 147926 30184 0 3 0x10008a pause ksh
30184 422934 36983 0 3 0x92 select sshd
85412 449362 1 0 3 0x100083 ttyin getty
36983 478379 1 0 3 0x80 select sshd
67414 349143 87318 73 3 0x100090 kqread syslogd
87318 25464 1 0 3 0x100082 netio syslogd
51967 234058 1 77 3 0x100090 poll dhclient
39487 400526 1 0 3 0x80 poll dhclient
77144 445327 0 0 3 0x14200 pgzero zerothread
97175 381311 0 0 3 0x14200 aiodoned aiodoned
66378 523883 0 0 3 0x14200 syncer update
52407 461900 0 0 3 0x14200 cleaner cleaner
59060 278313 0 0 3 0x14200 reaper reaper
8244 346818 0 0 3 0x14200 pgdaemon pagedaemon
26440 235016 0 0 3 0x14200 bored crynlk
18806 427711 0 0 3 0x14200 bored crypto
7534 192303 0 0 3 0x40014200 acpi0 acpi0
80756 294424 0 0 3 0x40014200 idle1
45839 326789 0 0 3 0x14200 bored softnet
35077 187174 0 0 3 0x14200 bored systqmp
72790 274068 0 0 3 0x14200 bored systq
82868 405744 0 0 3 0x40014200 bored softclock
45095 23796 0 0 3 0x40014200 idle0
1 194659 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
---
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#bug-status-tracking for how to communicate with
syzbot.