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 *182841 79104 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(ffffffff821e788c,ffffffff821b8b05,350,ffffffff8218c84e) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800015964628,83,ffff8000159646c8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd803ae03940,fffffd8028eedbf8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803ae03940,fffffd8028eedbf8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd8028eedb00,0,fffffd803ae03930,20,0,fffffd803ae038c0) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd8028eedb00,fffffd802da4d610,ffff8000159648d8,ffff800014934000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd802da4d610,9,fffffd8028eedb00,0,0,ffff8000ffff3b40) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd802da4d610,0,ffff800015964ae8,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff3b40,3,ffff800015964ae8,0,ffff800015964bd0) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff3b40,ffff800015964b88,ffff800015964bd0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800015964c50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,45877fdc010) at Xsyscall+0x128 end of kernel end trace frame: 0x45ab59ec160, count: 2 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(ffffffff821e788c,ffffffff821b8b05,350,ffffffff8218c84e) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800015964628,83,ffff8000159646c8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd803ae03940,fffffd8028eedbf8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803ae03940,fffffd8028eedbf8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd8028eedb00,0,fffffd803ae03930,20,0,fffffd803ae038c0) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd8028eedb00,fffffd802da4d610,ffff8000159648d8,ffff800014934000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd802da4d610,9,fffffd8028eedb00,0,0,ffff8000ffff3b40) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd802da4d610,0,ffff800015964ae8,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff3b40,3,ffff800015964ae8,0,ffff800015964bd0) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff3b40,ffff800015964b88,ffff800015964bd0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800015964c50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,45877fdc010) at Xsyscall+0x128 end of kernel end trace frame: 0x45ab59ec160, count: -13 ddb> show registers rdi 0xffffffff81f649d7 db_enter+0x17 rsi 0x4367 __ALIGN_SIZE+0x3367 rbp 0xffff800015964440 rbx 0xffff8000159644f0 rdx 0x4368 __ALIGN_SIZE+0x3368 rcx 0xffff800014934000 rax 0xffff800014934000 r8 0xffff800015964400 r9 0x1 r10 0xffff800000b54280 r11 0xedcfd96fc45b43a1 r12 0x3000000008 r13 0xffff800015964450 r14 0x100 r15 0x1 rip 0xffffffff81f649d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015964430 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=182841 stat=onproc flags process=0 proc=4000000 pri=70, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3160,0xffffffff82592f90 process=0xffff8000148a30f8 user=0xffff80001595f000, vmspace=0xfffffd803f013440 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 79104 431879 83598 0 2 0 syz-executor.0 *79104 182841 83598 0 7 0x4000000 syz-executor.0 93786 240412 9163 0 2 0 syz-executor.1 93786 10995 9163 0 2 0x4000000 syz-executor.1 83598 199079 77902 0 2 0x482 syz-executor.0 9163 463393 77902 0 3 0x82 nanosleep syz-executor.1 70740 254357 0 0 3 0x14200 acct acct 16726 186019 0 0 3 0x14200 bored sosplice 77902 84440 76601 0 3 0x82 thrsleep syz-fuzzer 77902 312157 76601 0 3 0x4000082 thrsleep syz-fuzzer 77902 302 76601 0 3 0x4000082 kqread syz-fuzzer 77902 95602 76601 0 3 0x4000082 thrsleep syz-fuzzer 77902 300881 76601 0 3 0x4000082 thrsleep syz-fuzzer 77902 27014 76601 0 3 0x4000082 thrsleep syz-fuzzer 77902 70773 76601 0 3 0x4000082 thrsleep syz-fuzzer 77902 221040 76601 0 3 0x4000082 thrsleep syz-fuzzer 77902 210110 76601 0 3 0x4000082 thrsleep syz-fuzzer 76601 219731 46446 0 3 0x10008a pause ksh 46446 123589 35095 0 3 0x92 select sshd 72620 302711 1 0 3 0x100083 ttyin getty 35095 138202 1 0 3 0x80 select sshd 58775 523712 9197 73 3 0x100090 kqread syslogd 9197 377394 1 0 3 0x100082 netio syslogd 21383 64048 1 77 3 0x100090 poll dhclient 94563 399652 1 0 3 0x80 poll dhclient 41948 404110 0 0 2 0x14200 zerothread 5207 61982 0 0 3 0x14200 aiodoned aiodoned 66454 148815 0 0 3 0x14200 syncer update 55607 321056 0 0 3 0x14200 cleaner cleaner 71935 474272 0 0 3 0x14200 reaper reaper 99221 345822 0 0 3 0x14200 pgdaemon pagedaemon 59292 499451 0 0 3 0x14200 bored crynlk 9270 292041 0 0 3 0x14200 bored crypto 35675 311033 0 0 3 0x40014200 acpi0 acpi0 97818 358046 0 0 3 0x14200 bored softnet 65827 125997 0 0 3 0x14200 bored systqmp 5157 408440 0 0 3 0x14200 bored systq 30007 31958 0 0 3 0x40014200 bored softclock 86610 381685 0 0 3 0x40014200 idle0 69860 52978 0 0 3 0x14200 bored smr 1 287600 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 9613 6390K 8045K 78643K 23324 0 0 pcb 13 11K 13K 78643K 1297 0 0 rtable 159 16K 16K 78643K 2883 0 0 ifaddr 107 23K 26K 78643K 739 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 371 0 0 iov 0 0K 32K 78643K 1300 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 7067 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 97 0 0 VM map 61 15K 15K 78643K 87 0 0 sem 12 0K 0K 78643K 1316 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 4901 0 0 sigio 0 0K 0K 78643K 57 0 0 proc 50 38K 63K 78643K 2092 0 0 subproc 32 2K 2K 78643K 616 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 512 0 0 in_multi 26 1K 2K 78643K 611 0 0 ether_multi 1 0K 0K 78643K 29 0 0 mrt 0 0K 0K 78643K 24 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 180 795K 795K 78643K 180 0 0 exec 0 0K 1K 78643K 1178 0 0 pfkey data 0 0K 4K 78643K 2 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 228 448K 448K 78643K 15746 0 0 UVM aobj 130 6K 6K 78643K 138 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 1150 0 0 NDP 24 0K 1K 78643K 250 0 0 temp 254 3545K 4185K 78643K 261934 0 0 kqueue 0 0K 0K 78643K 58 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 85 0 81 1 0 1 1 0 8 0 rtpcb 80 505 0 503 1 0 1 1 0 8 0 rtentry 112 573 0 511 4 1 3 3 0 8 0 unpcb 120 2938 0 2920 6 4 2 2 0 8 1 syncache 264 48 0 48 21 21 0 1 0 8 0 tcpqe 32 228 0 228 14 14 0 1 0 8 0 tcpcb 544 3501 0 3496 40 39 1 15 0 8 0 ipq 40 82 0 82 32 31 1 1 0 8 1 ipqe 40 2678 0 2678 32 31 1 1 0 8 1 inpcb 280 7811 0 7802 66 64 2 9 0 8 1 rttmr 72 8 0 8 3 3 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 86 0 85 7 6 1 1 0 8 0 pkpcb 40 14 0 14 7 7 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 63 0 63 28 28 0 1 0 8 0 art_heap8 4096 12 0 6 12 6 6 8 0 8 0 art_heap4 256 2345 0 2131 44 27 17 18 0 8 0 art_table 32 2357 0 2137 4 1 3 3 0 8 0 art_node 16 570 0 528 1 0 1 1 0 8 0 sysvmsgpl 40 64 0 31 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1314 0 1304 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 11183 0 9786 46 0 46 46 0 8 0 ffsino 240 11183 0 9786 83 0 83 83 0 8 0 nchpl 144 19709 0 19230 60 40 20 60 0 8 0 uvmvnodes 72 7699 0 0 140 0 140 140 0 8 0 vnodes 208 7699 0 0 406 0 406 406 0 8 0 namei 1024 84231 0 84231 8 7 1 1 0 8 1 vcpupl 1984 59 0 0 8 0 8 8 0 8 0 vmpool 520 85 0 26 4 0 4 4 0 8 0 scsiplug 64 5 0 5 3 3 0 1 0 8 0 scxspl 192 76989 0 76989 47 45 2 7 0 8 2 plimitpl 152 459 0 452 1 0 1 1 0 8 0 sigapl 432 4969 0 4955 2 0 2 2 0 8 0 futexpl 56 156456 0 156456 10 9 1 1 0 8 1 knotepl 112 1297 0 1278 6 5 1 2 0 8 0 kqueuepl 104 1831 0 1829 7 6 1 4 0 8 0 pipepl 112 3474 0 3455 11 10 1 2 0 8 0 fdescpl 424 4970 0 4955 2 0 2 2 0 8 0 filepl 120 57185 0 57088 60 56 4 11 0 8 0 lockfpl 104 1929 0 1928 1 0 1 1 0 8 0 lockfspl 48 615 0 614 1 0 1 1 0 8 0 sessionpl 112 51 0 41 1 0 1 1 0 8 0 pgrppl 48 135 0 125 1 0 1 1 0 8 0 ucredpl 96 17245 0 17238 1 0 1 1 0 8 0 zombiepl 144 4955 0 4955 1 0 1 1 0 8 1 processpl 864 4986 0 4955 4 0 4 4 0 8 0 procpl 632 13221 0 13180 33 29 4 5 0 8 0 sosppl 128 80 0 80 27 27 0 1 0 8 0 sockpl 384 11342 0 11313 83 78 5 15 0 8 1 mcl64k 65536 1704 0 1704 175 155 20 33 0 8 20 mcl16k 16384 66 0 66 35 35 0 1 0 8 0 mcl12k 12288 156 0 156 41 41 0 1 0 8 0 mcl9k 9216 82 0 82 39 38 1 1 0 8 1 mcl8k 8192 231 0 231 36 36 0 1 0 8 0 mcl4k 4096 680 0 680 14 13 1 1 0 8 1 mcl2k2 2112 66 0 66 36 36 0 1 0 8 0 mcl2k 2048 78308 0 78261 22 15 7 16 0 8 0 mtagpl 80 229 0 217 11 10 1 1 0 8 0 mbufpl 256 180266 0 180145 305 284 21 35 0 8 8 bufpl 256 28899 0 21179 483 0 483 483 0 8 0 anonpl 16 807457 0 783706 358 247 111 123 0 62 10 amapchunkpl 152 33918 0 33739 133 120 13 21 0 158 4 amappl16 192 38110 0 36746 397 321 76 89 0 8 5 amappl15 184 584 0 584 5 5 0 1 0 8 0 amappl14 176 1542 0 1536 1 0 1 1 0 8 0 amappl13 168 1537 0 1533 7 6 1 1 0 8 0 amappl12 160 135 0 135 6 6 0 1 0 8 0 amappl11 152 710 0 699 1 0 1 1 0 8 0 amappl10 144 9 0 7 1 0 1 1 0 8 0 amappl9 136 1534 0 1530 1 0 1 1 0 8 0 amappl8 128 1098 0 1037 4 1 3 3 0 8 0 amappl7 120 201 0 193 1 0 1 1 0 8 0 amappl6 112 573 0 559 1 0 1 1 0 8 0 amappl5 104 591 0 581 1 0 1 1 0 8 0 amappl4 96 4920 0 4883 1 0 1 1 0 8 0 amappl3 88 1938 0 1928 1 0 1 1 0 8 0 amappl2 80 38483 0 38396 3 1 2 3 0 8 0 amappl1 72 108840 0 108414 27 18 9 20 0 8 0 amappl 80 14052 0 13978 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 5055 0 4955 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5055 0 4955 1 0 1 1 0 8 0 vmmpekpl 168 39244 0 39205 3 0 3 3 0 8 0 vmmpepl 168 642286 0 639371 813 679 134 172 0 357 1 vmsppl 272 4969 0 4955 17 16 1 2 0 8 0 pdppl 4096 10116 0 10021 22 10 12 12 0 8 0 pvpl 32 2053695 0 2030274 885 658 227 329 0 265 26 pmappl 200 5054 0 4981 4 0 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1301 0 645 20 0 20 20 0 8 0