panic: kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 848 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 2811 24424 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821e3e52,ffffffff821b5f70,350,ffffffff82189fb4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800017b944d8,83,ffff800017b94578,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd8038143da0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd8038143da0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800017b94650,fffffd803e165420,fffffd8038143d20) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8038143d20,fffffd803e165400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd803d0ab4c0,4,0,fffffd803e165400,0,ffff8000ffff3160) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff8000ffff3160,ffff800017b947f8,ffff800017b94840) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800017b948c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,29b25ad7010) at Xsyscall+0x128 end of kernel end trace frame: 0x29e242fb0b0, 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 "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 848 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821e3e52,ffffffff821b5f70,350,ffffffff82189fb4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800017b944d8,83,ffff800017b94578,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd8038143da0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd8038143da0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800017b94650,fffffd803e165420,fffffd8038143d20) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8038143d20,fffffd803e165400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd803d0ab4c0,4,0,fffffd803e165400,0,ffff8000ffff3160) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff8000ffff3160,ffff800017b947f8,ffff800017b94840) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800017b948c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,29b25ad7010) at Xsyscall+0x128 end of kernel end trace frame: 0x29e242fb0b0, count: -11 ddb> show registers rdi 0xffffffff81b439f7 db_enter+0x17 rsi 0x466d __ALIGN_SIZE+0x366d rbp 0xffff800017b942f0 rbx 0xffff800017b943a0 rdx 0x466e __ALIGN_SIZE+0x366e rcx 0xffff800015538000 rax 0xffff800015538000 r8 0xffff800017b942b0 r9 0x1 r10 0xffff800000a65cc0 r11 0x8f7b68e8e84417d1 r12 0x3000000008 r13 0xffff800017b94300 r14 0x100 r15 0x1 rip 0xffffffff81b439f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017b942e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=2811 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2508,0xffffffff825a0a68 process=0xffff8000ffff7450 user=0xffff800017b8f000, vmspace=0xfffffd803f014cc0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 24424 269318 93955 0 2 0 syz-executor.0 *24424 2811 93955 0 7 0x4000000 syz-executor.0 49175 208507 29175 0 2 0 syz-executor.1 49175 333508 29175 0 3 0x4000080 fsleep syz-executor.1 29175 493804 76900 0 3 0x82 nanosleep syz-executor.1 93955 456935 76900 0 3 0x82 nanosleep syz-executor.0 90094 43085 1 0 3 0x100083 ttyin getty 55983 517022 0 0 3 0x14200 bored sosplice 76900 201521 67223 0 3 0x82 thrsleep syz-fuzzer 76900 408271 67223 0 3 0x4000082 thrsleep syz-fuzzer 76900 346008 67223 0 3 0x4000082 thrsleep syz-fuzzer 76900 123909 67223 0 3 0x4000082 thrsleep syz-fuzzer 76900 324755 67223 0 3 0x4000082 thrsleep syz-fuzzer 76900 317955 67223 0 3 0x4000082 thrsleep syz-fuzzer 76900 176961 67223 0 3 0x4000082 thrsleep syz-fuzzer 76900 76436 67223 0 3 0x4000082 kqread syz-fuzzer 76900 108848 67223 0 3 0x4000082 thrsleep syz-fuzzer 67223 264651 51556 0 3 0x10008a pause ksh 51556 467376 5325 0 3 0x92 select sshd 5325 130937 1 0 3 0x80 select sshd 21686 397065 56064 73 3 0x100090 kqread syslogd 56064 292247 1 0 3 0x100082 netio syslogd 66079 213978 1 77 3 0x100090 poll dhclient 13706 426470 1 0 3 0x80 poll dhclient 24476 94144 0 0 2 0x14200 zerothread 62712 242810 0 0 3 0x14200 aiodoned aiodoned 42657 254763 0 0 3 0x14200 syncer update 74106 366122 0 0 3 0x14200 cleaner cleaner 96550 259872 0 0 3 0x14200 reaper reaper 54580 186294 0 0 3 0x14200 pgdaemon pagedaemon 34101 213492 0 0 3 0x14200 bored crynlk 16644 255804 0 0 3 0x14200 bored crypto 29324 481694 0 0 3 0x40014200 acpi0 acpi0 11720 287165 0 0 3 0x14200 bored softnet 41581 129038 0 0 3 0x14200 bored systqmp 26699 24890 0 0 3 0x14200 bored systq 35188 321246 0 0 3 0x40014200 bored softclock 11848 462429 0 0 3 0x40014200 idle0 62977 382508 0 0 3 0x14200 bored smr 1 106380 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 Kern Lim devbuf 9604 6578K 7863K 78643K 19475 0 0 pcb 13 8K 9K 78643K 887 0 0 rtable 160 8K 9K 78643K 2556 0 0 ifaddr 105 23K 24K 78643K 689 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 205 0 0 iov 0 0K 32K 78643K 904 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 4654 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 51 0 0 VM map 32 8K 8K 78643K 47 0 0 sem 12 0K 0K 78643K 2459 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 3925 0 0 sigio 0 0K 0K 78643K 82 0 0 proc 49 38K 63K 78643K 1980 0 0 subproc 32 2K 2K 78643K 510 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 372 0 0 in_multi 33 2K 3K 78643K 493 0 0 ether_multi 1 0K 0K 78643K 33 0 0 mrt 0 0K 0K 78643K 26 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 1010 0 0 pfkey data 0 0K 4K 78643K 4 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 180 268K 268K 78643K 10719 0 0 UVM aobj 130 4K 4K 78643K 145 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 902 0 0 NDP 24 0K 0K 78643K 226 0 0 temp 240 3545K 4184K 78643K 127499 0 0 kqueue 0 0K 0K 78643K 26 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 86 0 80 1 0 1 1 0 8 0 rtpcb 80 452 0 450 1 0 1 1 0 8 0 rtentry 112 501 0 436 3 1 2 3 0 8 0 unpcb 120 4297 0 4285 8 6 2 2 0 8 1 syncache 264 25 0 25 11 11 0 1 0 8 0 tcpqe 32 124 0 124 9 9 0 1 0 8 0 tcpcb 544 1510 0 1505 4 3 1 2 0 8 0 ipq 40 58 0 58 15 14 1 1 0 8 1 ipqe 40 1407 0 1407 15 14 1 1 0 8 1 inpcb 280 5134 0 5126 14 12 2 4 0 8 1 rttmr 72 11 0 11 7 7 0 1 0 8 0 ip6q 72 3 0 3 2 2 0 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 71 0 69 3 2 1 1 0 8 0 pkpcb 40 6 0 6 3 3 0 1 0 8 0 ppxss 1128 70 0 70 11 11 0 1 0 8 0 art_heap8 4096 5 0 1 5 1 4 4 0 8 0 art_heap4 256 2091 0 1882 37 19 18 19 0 8 3 art_table 32 2096 0 1883 5 2 3 3 0 8 1 art_node 16 499 0 455 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 16 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 2457 0 2447 1 0 1 1 0 8 0 shmpl 112 143 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7215 0 5817 46 0 46 46 0 8 0 ffsino 240 7215 0 5817 83 0 83 83 0 8 0 nchpl 144 15104 0 14656 61 41 20 61 0 8 0 uvmvnodes 72 8418 0 0 154 0 154 154 0 8 0 vnodes 208 8418 0 0 444 0 444 444 0 8 0 namei 1024 54349 0 54349 3 2 1 1 0 8 1 vcpupl 1984 32 0 2 4 0 4 4 0 8 0 vmpool 520 45 0 15 3 1 2 2 0 8 0 scsiplug 64 7 0 7 4 4 0 1 0 8 0 scxspl 192 47661 0 47661 24 22 2 6 0 8 2 plimitpl 152 375 0 368 1 0 1 1 0 8 0 sigapl 432 4012 0 3998 2 0 2 2 0 8 0 futexpl 56 133744 0 133743 3 2 1 1 0 8 0 knotepl 112 937 0 918 2 1 1 2 0 8 0 kqueuepl 104 1136 0 1134 1 0 1 1 0 8 0 pipepl 112 4958 0 4939 20 18 2 3 0 8 1 fdescpl 424 4013 0 3998 2 0 2 2 0 8 0 filepl 120 43475 0 43378 28 22 6 7 0 8 2 lockfpl 104 1329 0 1328 1 0 1 1 0 8 0 lockfspl 48 442 0 441 1 0 1 1 0 8 0 sessionpl 112 46 0 36 1 0 1 1 0 8 0 pgrppl 48 92 0 82 1 0 1 1 0 8 0 ucredpl 96 4322 0 4315 1 0 1 1 0 8 0 zombiepl 144 4003 0 4003 1 0 1 1 0 8 1 processpl 864 4033 0 4003 4 0 4 4 0 8 0 procpl 632 8555 0 8515 4 0 4 4 0 8 0 sosppl 128 58 0 58 14 13 1 1 0 8 1 sockpl 384 9958 0 9936 40 34 6 8 0 8 2 mcl64k 65536 1314 0 1314 110 109 1 64 0 8 1 mcl16k 16384 74 0 74 10 9 1 1 0 8 1 mcl12k 12288 141 0 141 7 6 1 1 0 8 1 mcl9k 9216 99 0 99 8 7 1 1 0 8 1 mcl8k 8192 222 0 222 6 5 1 1 0 8 1 mcl4k 4096 417 0 417 6 5 1 1 0 8 1 mcl2k2 2112 34 0 34 12 11 1 1 0 8 1 mcl2k 2048 75381 0 75332 19 12 7 14 0 8 0 mtagpl 80 165 0 156 5 4 1 1 0 8 0 mbufpl 256 160083 0 159951 191 171 20 37 0 8 8 bufpl 256 23737 0 15320 527 0 527 527 0 8 0 anonpl 16 534408 0 517820 203 112 91 100 0 62 4 amapchunkpl 152 22980 0 22830 73 62 11 17 0 158 4 amappl16 192 23961 0 22783 218 158 60 71 0 8 1 amappl15 184 480 0 479 1 0 1 1 0 8 0 amappl14 176 980 0 975 1 0 1 1 0 8 0 amappl13 168 396 0 395 2 1 1 1 0 8 0 amappl12 160 751 0 750 2 1 1 1 0 8 0 amappl11 152 665 0 654 1 0 1 1 0 8 0 amappl10 144 474 0 471 1 0 1 1 0 8 0 amappl9 136 1252 0 1247 1 0 1 1 0 8 0 amappl8 128 846 0 793 2 0 2 2 0 8 0 amappl7 120 592 0 584 1 0 1 1 0 8 0 amappl6 112 619 0 604 1 0 1 1 0 8 0 amappl5 104 1155 0 1145 1 0 1 1 0 8 0 amappl4 96 4224 0 4191 1 0 1 1 0 8 0 amappl3 88 1376 0 1370 1 0 1 1 0 8 0 amappl2 80 30087 0 30005 3 1 2 3 0 8 0 amappl1 72 83510 0 83088 27 18 9 20 0 8 0 amappl 80 9281 0 9218 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 144 0 15 3 0 3 3 0 8 0 uaddrrnd 24 4058 0 3998 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4058 0 3998 1 0 1 1 0 8 0 vmmpekpl 168 32761 0 32730 2 0 2 2 0 8 0 vmmpepl 168 503437 0 500963 345 191 154 170 0 357 44 vmsppl 272 4012 0 3998 5 3 2 2 0 8 1 pdppl 4096 8122 0 8056 11 2 9 9 0 8 0 pvpl 32 1454260 0 1435414 495 224 271 309 0 265 80 pmappl 200 4057 0 4013 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1022 0 343 20 0 20 20 0 8 0