QàmYh fxuϸTRGJG?l5t2iش ]֢":No%fn;3c(Gx{|0`6PƷ PW>,-߽2QàmYh fxuϸTRGJG?l5t2iش ]֢":No%fn;3c(Gx{|0`6PƷ PW>,-߽2panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/rtsock.c", line 939 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *495510 82030 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c20ed) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8242d39c,ffffffff823dae3b,3ab,ffffffff8239a6b1) at __assert+0x2b sys/kern/subr_prf.c:154 rtm_output(ffff800000ae8600,ffff80001e7b1140,ffff80001e7b1098,40,0) at rtm_output+0xba9 sys/net/rtsock.c:1120 route_output(fffffd8053ba9200,fffffd8053b864c0,0,0) at route_output+0x678 sys/net/rtsock.c:832 route_usrreq(fffffd8053b864c0,9,fffffd8053ba9200,0,0,ffff80001d6aa868) at route_usrreq+0x36f sys/net/rtsock.c:275 sosend(fffffd8053b864c0,0,ffff80001e7b1330,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 sendit(ffff80001d6aa868,5,ffff80001e7b1410,0,ffff80001e7b14f0) at sendit+0x52b sys/kern/uipc_syscalls.c:652 sys_sendto(ffff80001d6aa868,ffff80001e7b14a8,ffff80001e7b14f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:517 syscall(ffff80001e7b1570) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5f2a87c2df0, count: 4 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 kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/rtsock.c", line 939 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c20ed) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8242d39c,ffffffff823dae3b,3ab,ffffffff8239a6b1) at __assert+0x2b sys/kern/subr_prf.c:154 rtm_output(ffff800000ae8600,ffff80001e7b1140,ffff80001e7b1098,40,0) at rtm_output+0xba9 sys/net/rtsock.c:1120 route_output(fffffd8053ba9200,fffffd8053b864c0,0,0) at route_output+0x678 sys/net/rtsock.c:832 route_usrreq(fffffd8053b864c0,9,fffffd8053ba9200,0,0,ffff80001d6aa868) at route_usrreq+0x36f sys/net/rtsock.c:275 sosend(fffffd8053b864c0,0,ffff80001e7b1330,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 sendit(ffff80001d6aa868,5,ffff80001e7b1410,0,ffff80001e7b14f0) at sendit+0x52b sys/kern/uipc_syscalls.c:652 sys_sendto(ffff80001d6aa868,ffff80001e7b14a8,ffff80001e7b14f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:517 syscall(ffff80001e7b1570) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5f2a87c2df0, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001e7b0f10 rbx 0xffff80001e7b0fc0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8120980f kprintf+0x15f r9 0x1 r10 0x2 r11 0x936d82b89b27656f r12 0x3000000008 r13 0xffff80001e7b0f20 r14 0x100 r15 0x1 rip 0xffffffff81fbc738 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e7b0f00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=495510 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6a9008,0xffffffff8283fb58 process=0xffff8000ffff8018 user=0xffff80001e7ac000, vmspace=0xfffffd80535f9890 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 82030 150638 19587 0 2 0 syz-executor.0 *82030 495510 19587 0 7 0x4000000 syz-executor.0 28263 234226 67430 0 2 0 syz-executor.1 28263 286958 67430 0 3 0x4000080 fsleep syz-executor.1 21396 518728 0 0 3 0x14200 bored sosplice 67430 271609 10186 0 3 0x82 nanosleep syz-executor.1 19587 109930 10186 0 2 0x482 syz-executor.0 10186 28889 99434 0 3 0x82 thrsleep syz-fuzzer 10186 164788 99434 0 3 0x4000082 thrsleep syz-fuzzer 10186 356491 99434 0 3 0x4000082 kqread syz-fuzzer 10186 261549 99434 0 3 0x4000082 thrsleep syz-fuzzer 10186 513535 99434 0 3 0x4000082 thrsleep syz-fuzzer 10186 205163 99434 0 3 0x4000082 thrsleep syz-fuzzer 10186 264580 99434 0 3 0x4000082 thrsleep syz-fuzzer 10186 512751 99434 0 3 0x4000082 thrsleep syz-fuzzer 99434 523800 34649 0 3 0x10008a pause ksh 34649 323290 34183 0 3 0x92 select sshd 38451 67992 1 0 3 0x100083 ttyin getty 34183 51225 1 0 3 0x80 select sshd 26223 7056 79140 73 3 0x100090 kqread syslogd 79140 268167 1 0 3 0x100082 netio syslogd 86440 258143 1 77 3 0x100090 poll dhclient 23360 339082 1 0 3 0x80 poll dhclient 7874 23297 0 0 3 0x14200 bored smr 52303 55384 0 0 2 0x14200 zerothread 4489 215234 0 0 3 0x14200 aiodoned aiodoned 60825 277113 0 0 3 0x14200 syncer update 52723 327177 0 0 3 0x14200 cleaner cleaner 38396 281948 0 0 3 0x14200 reaper reaper 39202 377904 0 0 3 0x14200 pgdaemon pagedaemon 90322 385362 0 0 3 0x14200 bored crynlk 46044 199906 0 0 3 0x14200 bored crypto 71463 11418 0 0 3 0x40014200 acpi0 acpi0 39811 431571 0 0 3 0x14200 bored softnet 75562 51665 0 0 3 0x14200 bored systqmp 14282 364433 0 0 3 0x14200 bored systq 46023 363105 0 0 2 0x40014200 softclock 33346 127995 0 0 3 0x40014200 idle0 1 69576 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 9484 6336K 6590K 78643K 10924 0 pcb 13 8K 8K 78643K 43 0 rtable 78 3K 5K 78643K 271 0 ifaddr 53 11K 12K 78643K 84 0 counters 20 16K 16K 78643K 24 0 ioctlops 0 0K 4K 78643K 45 0 iov 0 0K 12K 78643K 36 0 mount 1 1K 1K 78643K 1 0 vnodes 1230 77K 77K 78643K 1416 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 38 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 6 17K 25K 78643K 189 0 sigio 0 0K 0K 78643K 2 0 proc 49 38K 63K 78643K 374 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 20 0 in_multi 27 1K 2K 78643K 66 0 ether_multi 1 0K 0K 78643K 9 0 mrt 0 0K 0K 78643K 2 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 194 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 126 39K 39K 78643K 1280 0 UVM aobj 4 2K 2K 78643K 7 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 36 0 NDP 9 0K 0K 78643K 17 0 temp 88 3842K 3907K 78643K 11234 0 kqueue 4 6K 20K 78643K 21 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 6 0 2 1 0 1 1 0 8 0 rtpcb 80 40 0 37 1 0 1 1 0 8 0 rtentry 112 46 0 19 2 0 2 2 0 8 0 unpcb 120 73 0 61 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpcb 544 79 0 75 1 0 1 1 0 8 0 inpcb 280 344 0 336 2 0 2 2 0 8 1 nd6 48 6 0 6 1 0 1 1 0 8 1 ppxss 1128 1 0 1 1 0 1 1 0 8 1 pfstscr 40 4 0 2 1 0 1 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 8 0 8 1 1 0 1 0 8 0 pftag 88 4 0 4 1 1 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 4 0 2 1 0 1 1 0 8 0 pfstate 328 2 0 1 1 0 1 1 0 8 0 pfrule 1360 6 0 4 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 194 0 84 13 0 13 13 0 8 4 art_table 32 196 0 84 2 0 2 2 0 8 0 art_node 16 45 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 6 1 0 1 1 0 8 0 semapl 112 36 0 26 1 0 1 1 0 8 0 shmpl 112 5 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1647 0 251 88 0 88 88 0 8 0 ffsino 240 1647 0 251 83 0 83 83 0 8 0 nchpl 144 2076 0 472 60 0 60 60 0 8 0 uvmvnodes 72 1853 0 0 34 0 34 34 0 8 0 vnodes 208 1853 0 0 98 0 98 98 0 8 0 namei 1024 5401 0 5401 1 0 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 2 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 1 0 1 0 8 0 scxspl 192 6332 0 6332 1 0 1 1 0 8 1 plimitpl 152 22 0 15 1 0 1 1 0 8 0 sigapl 424 376 0 346 4 0 4 4 0 8 0 futexpl 56 3785 0 3784 1 0 1 1 0 8 0 knotepl 112 116 0 97 2 0 2 2 0 8 1 kqueuepl 144 48 0 40 1 0 1 1 0 8 0 pipelkpl 16 100 0 90 1 0 1 1 0 8 0 pipepl 120 200 0 181 1 0 1 1 0 8 0 fdescpl 432 361 0 346 2 0 2 2 0 8 0 filepl 120 2179 0 2075 4 0 4 4 0 8 0 lockfpl 104 42 0 41 1 0 1 1 0 8 0 lockfspl 48 16 0 15 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 159 0 152 1 0 1 1 0 8 0 zombiepl 144 346 0 346 1 0 1 1 0 8 1 processpl 920 376 0 346 4 0 4 4 0 8 0 procpl 624 587 0 548 4 0 4 4 0 8 1 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 461 0 438 3 0 3 3 0 8 0 mcl64k 65536 11 0 11 2 1 1 1 0 8 1 mcl12k 12288 3 0 3 1 0 1 1 0 8 1 mcl9k 9216 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 3 0 3 1 0 1 1 0 8 1 mcl4k 4096 23 0 23 1 0 1 1 0 8 1 mcl2k2 2112 3 0 3 2 1 1 1 0 8 1 mcl2k 2048 76733 0 76698 13 8 5 11 0 8 0 mtagpl 80 18 0 18 2 1 1 1 0 8 1 mbufpl 256 122188 0 122125 10 2 8 9 0 8 1 bufpl 280 3897 0 125 270 0 270 270 0 8 0 anonpl 16 47434 0 31175 69 2 67 67 0 107 1 amapchunkpl 152 1593 0 1447 8 1 7 8 0 158 0 amappl16 192 1595 0 716 45 0 45 45 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 23 0 18 1 0 1 1 0 8 0 amappl13 168 193 0 186 1 0 1 1 0 8 0 amappl12 160 7 0 5 1 0 1 1 0 8 0 amappl11 152 49 0 39 1 0 1 1 0 8 0 amappl10 144 89 0 80 1 0 1 1 0 8 0 amappl9 136 340 0 338 1 0 1 1 0 8 0 amappl8 128 318 0 278 2 0 2 2 0 8 0 amappl7 120 182 0 167 1 0 1 1 0 8 0 amappl6 112 22 0 18 1 0 1 1 0 8 0 amappl5 104 282 0 271 1 0 1 1 0 8 0 amappl4 96 507 0 476 1 0 1 1 0 8 0 amappl3 88 192 0 185 1 0 1 1 0 8 0 amappl2 80 2062 0 1988 2 0 2 2 0 8 0 amappl1 72 16086 0 15666 23 14 9 17 0 8 0 amappl 80 808 0 762 2 0 2 2 0 84 1 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 6 0 3 1 0 1 1 0 8 0 uaddrrnd 24 363 0 346 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 363 0 346 1 0 1 1 0 8 0 vmmpekpl 168 6361 0 6330 2 0 2 2 0 8 0 vmmpepl 168 49666 0 47597 121 14 107 115 0 357 17 vmsppl 272 362 0 346 3 1 2 2 0 8 0 pdppl 4096 732 0 694 6 1 5 6 0 8 0 pvpl 32 157714 0 138374 161 1 160 160 0 265 4 pmappl 200 362 0 346 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 237 0 15 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c20ed) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8242d39c,ffffffff823dae3b,3ab,ffffffff8239a6b1) at __assert+0x2b sys/kern/subr_prf.c:154 rtm_output(ffff800000ae8600,ffff80001e7b1140,ffff80001e7b1098,40,0) at rtm_output+0xba9 sys/net/rtsock.c:1120 route_output(fffffd8053ba9200,fffffd8053b864c0,0,0) at route_output+0x678 sys/net/rtsock.c:832 route_usrreq(fffffd8053b864c0,9,fffffd8053ba9200,0,0,ffff80001d6aa868) at route_usrreq+0x36f sys/net/rtsock.c:275 sosend(fffffd8053b864c0,0,ffff80001e7b1330,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 sendit(ffff80001d6aa868,5,ffff80001e7b1410,0,ffff80001e7b14f0) at sendit+0x52b sys/kern/uipc_syscalls.c:652 sys_sendto(ffff80001d6aa868,ffff80001e7b14a8,ffff80001e7b14f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:517 syscall(ffff80001e7b1570) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5f2a87c2df0, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c20ed) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8242d39c,ffffffff823dae3b,3ab,ffffffff8239a6b1) at __assert+0x2b sys/kern/subr_prf.c:154 rtm_output(ffff800000ae8600,ffff80001e7b1140,ffff80001e7b1098,40,0) at rtm_output+0xba9 sys/net/rtsock.c:1120 route_output(fffffd8053ba9200,fffffd8053b864c0,0,0) at route_output+0x678 sys/net/rtsock.c:832 route_usrreq(fffffd8053b864c0,9,fffffd8053ba9200,0,0,ffff80001d6aa868) at route_usrreq+0x36f sys/net/rtsock.c:275 sosend(fffffd8053b864c0,0,ffff80001e7b1330,0,0,0) at sosend+0x669 sys/kern/uipc_socket.c:549 sendit(ffff80001d6aa868,5,ffff80001e7b1410,0,ffff80001e7b14f0) at sendit+0x52b sys/kern/uipc_syscalls.c:652 sys_sendto(ffff80001d6aa868,ffff80001e7b14a8,ffff80001e7b14f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:517 syscall(ffff80001e7b1570) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5f2a87c2df0, count: -11