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 *157653 35859 0 0 0x4000000 0 syz-executor.1 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(ffffffff821e4a9c,ffffffff821b7353,350,ffffffff8218b024) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800015973008,83,ffff8000159730a8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd8036ff8828,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd8036ff8828,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800015973180,fffffd80329ba420,fffffd8036ff87a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8036ff87a8,fffffd80329ba400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8036ff9c00,4,0,fffffd80329ba400,0,ffff8000ffff2ee8) at udp_usrreq+0x560 sys_connect(ffff8000ffff2ee8,ffff800015973308,ffff800015973350) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000159733d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,5d78b2f5010) at Xsyscall+0x128 end of kernel end trace frame: 0x5da0e4df5c0, 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(ffffffff821e4a9c,ffffffff821b7353,350,ffffffff8218b024) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800015973008,83,ffff8000159730a8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd8036ff8828,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd8036ff8828,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800015973180,fffffd80329ba420,fffffd8036ff87a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd8036ff87a8,fffffd80329ba400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8036ff9c00,4,0,fffffd80329ba400,0,ffff8000ffff2ee8) at udp_usrreq+0x560 sys_connect(ffff8000ffff2ee8,ffff800015973308,ffff800015973350) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000159733d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,5d78b2f5010) at Xsyscall+0x128 end of kernel end trace frame: 0x5da0e4df5c0, count: -11 ddb> show registers rdi 0xffffffff81890ba7 db_enter+0x17 rsi 0x4333 __ALIGN_SIZE+0x3333 rbp 0xffff800015972e20 rbx 0xffff800015972ed0 rdx 0x4334 __ALIGN_SIZE+0x3334 rcx 0xffff80001598b000 rax 0xffff80001598b000 r8 0xffff800015972de0 r9 0x1 r10 0xffff800000a6f240 r11 0xae2205c41551ecb7 r12 0x3000000008 r13 0xffff800015972e30 r14 0x100 r15 0x1 rip 0xffffffff81890ba8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015972e10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=157653 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3b40,0xffffffff825a65d0 process=0xffff8000148a2018 user=0xffff80001596e000, vmspace=0xfffffd803f013770 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 35859 202871 57481 0 2 0 syz-executor.1 *35859 157653 57481 0 7 0x4000000 syz-executor.1 57481 120732 25374 0 3 0x82 nanosleep syz-executor.1 27930 386370 25374 0 2 0x482 syz-executor.0 73126 351044 1 0 3 0x100083 ttyin getty 11971 363547 0 0 3 0x14200 bored sosplice 25374 494888 38304 0 3 0x82 thrsleep syz-fuzzer 25374 314027 38304 0 2 0x4000482 syz-fuzzer 25374 300478 38304 0 3 0x4000082 kqread syz-fuzzer 25374 290726 38304 0 3 0x4000082 thrsleep syz-fuzzer 25374 218754 38304 0 3 0x4000082 thrsleep syz-fuzzer 25374 69675 38304 0 3 0x4000082 thrsleep syz-fuzzer 25374 206881 38304 0 3 0x4000082 thrsleep syz-fuzzer 25374 118886 38304 0 3 0x4000082 thrsleep syz-fuzzer 25374 117739 38304 0 3 0x4000082 thrsleep syz-fuzzer 38304 331524 84422 0 3 0x10008a pause ksh 84422 116410 6818 0 3 0x92 select sshd 6818 124514 1 0 3 0x80 select sshd 48735 480858 30910 73 2 0x100010 syslogd 30910 469430 1 0 3 0x100082 netio syslogd 70573 147061 0 0 2 0x14200 zerothread 9996 348005 0 0 3 0x14200 aiodoned aiodoned 79858 441788 0 0 3 0x14200 syncer update 55048 135609 0 0 3 0x14200 cleaner cleaner 39525 325884 0 0 3 0x14200 reaper reaper 47925 213012 0 0 3 0x14200 pgdaemon pagedaemon 12672 153777 0 0 3 0x14200 bored crynlk 37554 352564 0 0 3 0x14200 bored crypto 28938 65709 0 0 3 0x40014200 acpi0 acpi0 95693 75893 0 0 3 0x14200 bored softnet 98066 516116 0 0 3 0x14200 bored systqmp 81002 357804 0 0 3 0x14200 bored systq 54843 292826 0 0 3 0x40014200 bored softclock 93253 406297 0 0 3 0x40014200 idle0 1022 263170 0 0 3 0x14200 bored smr 1 192025 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 9537 7180K 7687K 78643K 13417 0 0 pcb 13 10K 12K 78643K 314 0 0 rtable 114 12K 13K 78643K 638 0 0 ifaddr 68 14K 15K 78643K 196 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 110 0 0 iov 0 0K 24K 78643K 353 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 77K 78643K 2291 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 18 0 0 VM map 15 3K 4K 78643K 19 0 0 sem 12 0K 0K 78643K 614 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1239 0 0 sigio 0 0K 1K 78643K 1809 0 0 proc 44 30K 54K 78643K 773 0 0 subproc 32 2K 2K 78643K 153 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 139 0 0 in_multi 24 1K 2K 78643K 179 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 0 0K 0K 78643K 18 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 406 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 132 136K 140K 78643K 4031 0 0 UVM aobj 85 3K 3K 78643K 89 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 256 0 0 NDP 15 0K 0K 78643K 64 0 0 temp 190 3540K 4179K 78643K 63384 0 0 kqueue 0 0K 0K 78643K 23 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 30 0 25 1 0 1 1 0 8 0 rtpcb 80 183 0 183 3 2 1 1 0 8 1 rtentry 112 182 0 139 2 0 2 2 0 8 0 unpcb 120 721 0 715 1 0 1 1 0 8 0 syncache 264 17 0 17 5 5 0 1 0 8 0 tcpqe 32 157 0 157 4 4 0 1 0 8 0 tcpcb 544 766 0 761 17 16 1 15 0 8 0 ipq 40 23 0 23 4 4 0 1 0 8 0 ipqe 40 525 0 525 4 4 0 1 0 8 0 inpcb 280 1796 0 1789 13 12 1 9 0 8 0 rttmr 72 5 0 5 3 3 0 1 0 8 0 nd6 48 24 0 22 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 ppxss 1128 11 0 11 4 4 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 746 0 557 22 7 15 16 0 8 0 art_table 32 748 0 557 2 0 2 2 0 8 0 art_node 16 178 0 140 1 0 1 1 0 8 0 sysvmsgpl 40 45 0 22 1 0 1 1 0 8 0 semapl 112 612 0 602 1 0 1 1 0 8 0 shmpl 112 87 0 4 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3228 0 1827 46 0 46 46 0 8 0 ffsino 240 3228 0 1827 83 0 83 83 0 8 0 nchpl 144 5202 0 3591 60 0 60 60 0 8 0 uvmvnodes 72 4067 0 0 74 0 74 74 0 8 0 vnodes 208 4067 0 0 215 0 215 215 0 8 0 namei 1024 17079 0 17079 3 2 1 1 0 8 1 vcpupl 1984 13 0 0 2 0 2 2 0 8 0 vmpool 520 17 0 4 1 0 1 1 0 8 0 scxspl 192 23071 0 23071 12 10 2 7 0 8 2 plimitpl 152 111 0 105 1 0 1 1 0 8 0 sigapl 432 1389 0 1378 2 0 2 2 0 8 0 futexpl 56 45302 0 45302 4 3 1 1 0 8 1 knotepl 112 353 0 334 2 1 1 2 0 8 0 kqueuepl 104 562 0 559 4 3 1 4 0 8 0 pipepl 112 5258 0 5237 5 3 2 2 0 8 1 fdescpl 424 1390 0 1378 2 0 2 2 0 8 0 filepl 120 15028 0 14938 14 10 4 11 0 8 0 lockfpl 104 477 0 477 2 1 1 1 0 8 1 lockfspl 48 152 0 152 2 1 1 1 0 8 1 sessionpl 112 25 0 17 1 0 1 1 0 8 0 pgrppl 48 37 0 29 1 0 1 1 0 8 0 ucredpl 96 1353 0 1346 1 0 1 1 0 8 0 zombiepl 144 1378 0 1377 1 0 1 1 0 8 0 processpl 864 1405 0 1377 4 0 4 4 0 8 0 procpl 632 2923 0 2886 4 0 4 4 0 8 0 sosppl 128 19 0 19 5 4 1 1 0 8 1 sockpl 384 2740 0 2727 19 17 2 14 0 8 0 mcl64k 65536 421 0 421 35 29 6 33 0 8 6 mcl16k 16384 22 0 22 6 5 1 1 0 8 1 mcl12k 12288 44 0 44 6 5 1 1 0 8 1 mcl9k 9216 20 0 20 8 7 1 1 0 8 1 mcl8k 8192 73 0 73 5 4 1 1 0 8 1 mcl4k 4096 156 0 156 5 4 1 1 0 8 1 mcl2k2 2112 13 0 13 5 4 1 1 0 8 1 mcl2k 2048 71289 0 71249 17 11 6 14 0 8 0 mtagpl 80 66 0 46 2 1 1 1 0 8 0 mbufpl 256 125229 0 125105 57 43 14 24 0 8 4 bufpl 256 14939 0 7433 478 8 470 470 0 8 0 anonpl 16 208633 0 188394 133 31 102 102 0 62 18 amapchunkpl 152 7734 0 7586 33 16 17 20 0 158 10 amappl16 192 9705 0 8575 126 67 59 69 0 8 1 amappl15 184 87 0 86 1 0 1 1 0 8 0 amappl14 176 126 0 122 1 0 1 1 0 8 0 amappl13 168 8 0 8 1 1 0 1 0 8 0 amappl12 160 24 0 21 1 0 1 1 0 8 0 amappl11 152 301 0 294 1 0 1 1 0 8 0 amappl10 144 449 0 446 1 0 1 1 0 8 0 amappl9 136 843 0 840 1 0 1 1 0 8 0 amappl8 128 427 0 394 2 0 2 2 0 8 0 amappl7 120 505 0 496 1 0 1 1 0 8 0 amappl6 112 295 0 283 1 0 1 1 0 8 0 amappl5 104 204 0 197 1 0 1 1 0 8 0 amappl4 96 1648 0 1621 1 0 1 1 0 8 0 amappl3 88 209 0 203 1 0 1 1 0 8 0 amappl2 80 9987 0 9923 3 1 2 3 0 8 0 amappl1 72 35395 0 35014 26 17 9 20 0 8 0 amappl 80 3294 0 3248 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 88 0 4 2 0 2 2 0 8 0 uaddrrnd 24 1407 0 1378 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1407 0 1378 1 0 1 1 0 8 0 vmmpekpl 168 22082 0 22055 2 0 2 2 0 8 0 vmmpepl 168 178614 0 176448 202 97 105 170 0 357 3 vmsppl 272 1389 0 1378 4 3 1 2 0 8 0 pdppl 4096 2820 0 2777 8 2 6 7 0 8 0 pvpl 32 569572 0 546525 413 92 321 340 0 265 129 pmappl 200 1406 0 1382 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 747 0 136 19 0 19 19 0 8 0