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 * 66080 38859 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(ffffffff821e533c,ffffffff821b51dc,350,ffffffff82189006) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff80001796a948,83,ffff80001796a9e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd803701a710,fffffd8037e7baf8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803701a710,fffffd8037e7baf8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd8037e7ba00,0,fffffd803701a700,20,0,fffffd803701a690) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd8037e7ba00,fffffd802a0aec08,ffff80001796abf8,ffff80001592c000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd802a0aec08,9,fffffd8037e7ba00,0,0,ffff8000ffff8280) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd802a0aec08,0,ffff80001796ae08,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff8280,8,ffff80001796ae08,0,ffff80001796aef0) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff8280,ffff80001796aea8,ffff80001796aef0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff80001796af70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,e9b45631010) at Xsyscall+0x128 end of kernel end trace frame: 0xe9dea099440, 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(ffffffff821e533c,ffffffff821b51dc,350,ffffffff82189006) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff80001796a948,83,ffff80001796a9e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd803701a710,fffffd8037e7baf8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803701a710,fffffd8037e7baf8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd8037e7ba00,0,fffffd803701a700,20,0,fffffd803701a690) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd8037e7ba00,fffffd802a0aec08,ffff80001796abf8,ffff80001592c000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd802a0aec08,9,fffffd8037e7ba00,0,0,ffff8000ffff8280) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd802a0aec08,0,ffff80001796ae08,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff8280,8,ffff80001796ae08,0,ffff80001796aef0) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff8280,ffff80001796aea8,ffff80001796aef0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff80001796af70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,e9b45631010) at Xsyscall+0x128 end of kernel end trace frame: 0xe9dea099440, count: -13 ddb> show registers rdi 0xffffffff816773b7 db_enter+0x17 rsi 0x460f __ALIGN_SIZE+0x360f rbp 0xffff80001796a760 rbx 0xffff80001796a810 rdx 0x4610 __ALIGN_SIZE+0x3610 rcx 0xffff80001592c000 rax 0xffff80001592c000 r8 0xffff80001796a720 r9 0x1 r10 0xffff800000ac6f80 r11 0x7364afef63bbd34b r12 0x3000000008 r13 0xffff80001796a770 r14 0x100 r15 0x1 rip 0xffffffff816773b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001796a750 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=66080 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8ed8,0xffffffff8258cd18 process=0xffff8000ffff70f0 user=0xffff800017966000, vmspace=0xfffffd803f014990 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 38859 270737 85146 0 2 0 syz-executor.0 *38859 66080 85146 0 7 0x4000000 syz-executor.0 491 427735 77200 0 2 0 syz-executor.1 491 481172 77200 0 3 0x4000080 fsleep syz-executor.1 85146 321771 29658 0 3 0x82 nanosleep syz-executor.0 77200 99568 29658 0 3 0x82 nanosleep syz-executor.1 19256 334696 1 0 3 0x100083 ttyopn getty 84956 146234 0 0 3 0x14200 acct acct 63656 9158 0 0 3 0x14200 bored sosplice 29658 498839 5981 0 3 0x82 kqread syz-fuzzer 29658 23305 5981 0 3 0x4000082 thrsleep syz-fuzzer 29658 169384 5981 0 3 0x4000082 thrsleep syz-fuzzer 29658 470551 5981 0 3 0x4000082 thrsleep syz-fuzzer 29658 76025 5981 0 3 0x4000082 thrsleep syz-fuzzer 29658 444317 5981 0 3 0x4000082 thrsleep syz-fuzzer 29658 243235 5981 0 3 0x4000082 thrsleep syz-fuzzer 29658 252816 5981 0 3 0x4000082 thrsleep syz-fuzzer 5981 378763 79333 0 3 0x10008a pause ksh 79333 162617 82167 0 3 0x92 select sshd 82167 512784 1 0 3 0x80 select sshd 41699 68038 78704 73 3 0x100090 kqread syslogd 78704 58501 1 0 3 0x100082 netio syslogd 8973 302220 0 0 2 0x14200 zerothread 69935 447991 0 0 3 0x14200 aiodoned aiodoned 76804 395868 0 0 3 0x14200 syncer update 80046 325982 0 0 3 0x14200 cleaner cleaner 85981 523604 0 0 3 0x14200 reaper reaper 5522 315431 0 0 3 0x14200 pgdaemon pagedaemon 42856 433633 0 0 3 0x14200 bored crynlk 58360 245564 0 0 3 0x14200 bored crypto 18433 119034 0 0 3 0x40014200 acpi0 acpi0 32208 270416 0 0 3 0x14200 bored softnet 40451 484889 0 0 3 0x14200 bored systqmp 42689 96504 0 0 3 0x14200 bored systq 4583 165885 0 0 3 0x40014200 bored softclock 44409 500122 0 0 3 0x40014200 idle0 3968 470166 0 0 3 0x14200 bored smr 1 34019 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 9586 6974K 8008K 78643K 29806 0 0 pcb 13 10K 12K 78643K 1481 0 0 rtable 139 14K 15K 78643K 1960 0 0 ifaddr 99 22K 23K 78643K 878 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 371 0 0 iov 0 0K 32K 78643K 2936 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 78K 78643K 8070 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 80 0 0 VM map 53 13K 13K 78643K 82 0 0 sem 12 0K 1K 78643K 2858 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 5919 0 0 sigio 0 0K 0K 78643K 143 0 0 proc 45 30K 63K 78643K 2512 0 0 subproc 32 2K 2K 78643K 684 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 731 0 0 in_multi 31 2K 2K 78643K 703 0 0 ether_multi 1 0K 0K 78643K 59 0 0 mrt 2 0K 0K 78643K 60 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 1318 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 237 466K 466K 78643K 16005 0 0 UVM aobj 130 7K 7K 78643K 140 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 1336 0 0 NDP 22 0K 1K 78643K 297 0 0 temp 241 3545K 4184K 78643K 216710 0 0 kqueue 0 0K 0K 78643K 76 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 131 0 126 1 0 1 1 0 8 0 rtpcb 80 1376 0 1375 7 6 1 1 0 8 0 rtentry 112 695 0 645 2 0 2 2 0 8 0 unpcb 120 9270 0 9240 23 22 1 3 0 8 0 syncache 264 51 0 51 23 22 1 1 0 8 1 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 259 0 259 16 16 0 1 0 8 0 tcpcb 544 4175 0 4169 32 31 1 11 0 8 0 ipq 40 82 0 82 15 15 0 1 0 8 0 ipqe 40 1520 0 1520 15 15 0 1 0 8 0 inpcb 280 9124 0 9114 33 32 1 8 0 8 0 rttmr 72 21 0 20 10 9 1 1 0 8 0 ip6q 72 4 0 4 2 2 0 1 0 8 0 ip6af 40 7 0 7 1 1 0 1 0 8 0 nd6 48 100 0 98 5 4 1 1 0 8 0 pkpcb 40 34 0 34 10 10 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 91 0 91 21 20 1 1 0 8 1 art_heap8 4096 12 0 10 11 9 2 4 0 8 0 art_heap4 256 2750 0 2529 47 33 14 17 0 8 0 art_table 32 2762 0 2539 5 3 2 3 0 8 0 art_node 16 692 0 652 1 0 1 1 0 8 0 sysvmsgpl 40 78 0 38 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 2856 0 2846 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10483 0 9074 46 0 46 46 0 8 0 ffsino 240 10483 0 9074 84 0 84 84 0 8 0 nchpl 144 21187 0 20729 60 40 20 60 0 8 0 uvmvnodes 72 8282 0 0 151 0 151 151 0 8 0 vnodes 208 8282 0 0 436 0 436 436 0 8 0 namei 1024 72640 0 72640 6 5 1 1 0 8 1 vcpupl 1984 53 0 2 7 0 7 7 0 8 0 vmpool 520 80 0 29 4 0 4 4 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 68208 0 68208 26 24 2 7 0 8 2 plimitpl 152 575 0 569 1 0 1 1 0 8 0 sigapl 432 5978 0 5966 2 0 2 2 0 8 0 futexpl 56 263690 0 263689 6 5 1 1 0 8 0 knotepl 112 1448 0 1429 3 2 1 3 0 8 0 kqueuepl 104 1790 0 1788 4 3 1 4 0 8 0 pipepl 112 3792 0 3773 10 9 1 2 0 8 0 fdescpl 424 5979 0 5966 2 0 2 2 0 8 0 filepl 120 61368 0 61249 35 31 4 10 0 8 0 lockfpl 104 2386 0 2386 7 6 1 1 0 8 1 lockfspl 48 743 0 743 7 6 1 1 0 8 1 sessionpl 112 58 0 50 1 0 1 1 0 8 0 pgrppl 48 138 0 130 1 0 1 1 0 8 0 ucredpl 96 6207 0 6201 1 0 1 1 0 8 0 zombiepl 144 5968 0 5968 1 0 1 1 0 8 1 processpl 864 5997 0 5968 4 0 4 4 0 8 0 procpl 632 13108 0 13070 6 2 4 5 0 8 0 sosppl 128 137 0 136 24 23 1 1 0 8 0 sockpl 384 19948 0 19906 78 73 5 13 0 8 0 mcl64k 65536 1501 0 1500 103 102 1 33 0 8 0 mcl16k 16384 147 0 147 18 17 1 1 0 8 1 mcl12k 12288 197 0 197 15 14 1 1 0 8 1 mcl9k 9216 98 0 98 21 20 1 1 0 8 1 mcl8k 8192 501 0 499 9 8 1 1 0 8 0 mcl4k 4096 849 0 847 8 7 1 1 0 8 0 mcl2k2 2112 85 0 85 24 23 1 1 0 8 1 mcl2k 2048 85673 0 85633 26 19 7 14 0 8 1 mtagpl 80 1109 0 1069 8 7 1 3 0 8 0 mbufpl 256 200341 0 200137 202 189 13 33 0 8 0 bufpl 256 30774 0 22492 518 0 518 518 0 8 0 anonpl 16 843843 0 822621 290 190 100 103 0 62 12 amapchunkpl 152 36149 0 35979 123 114 9 27 0 158 0 amappl16 192 38336 0 37106 315 245 70 74 0 8 8 amappl15 184 957 0 955 7 6 1 1 0 8 0 amappl14 176 1738 0 1731 1 0 1 1 0 8 0 amappl13 168 981 0 981 5 5 0 1 0 8 0 amappl12 160 528 0 525 2 1 1 1 0 8 0 amappl11 152 1136 0 1132 1 0 1 1 0 8 0 amappl10 144 416 0 412 1 0 1 1 0 8 0 amappl9 136 1641 0 1638 1 0 1 1 0 8 0 amappl8 128 1231 0 1150 3 0 3 3 0 8 0 amappl7 120 591 0 580 1 0 1 1 0 8 0 amappl6 112 1027 0 1014 1 0 1 1 0 8 0 amappl5 104 1148 0 1141 1 0 1 1 0 8 0 amappl4 96 7006 0 6973 1 0 1 1 0 8 0 amappl3 88 1514 0 1504 1 0 1 1 0 8 0 amappl2 80 45346 0 45271 3 1 2 3 0 8 0 amappl1 72 120011 0 119621 25 16 9 20 0 8 0 amappl 80 14071 0 13999 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 6059 0 5966 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6059 0 5966 1 0 1 1 0 8 0 vmmpekpl 168 40063 0 40025 2 0 2 2 0 8 0 vmmpepl 168 745798 0 743265 494 339 155 155 0 357 36 vmsppl 272 5978 0 5966 2 1 1 2 0 8 0 pdppl 4096 12124 0 12041 15 4 11 11 0 8 0 pvpl 32 2268783 0 2245327 657 435 222 323 0 265 23 pmappl 200 6058 0 5995 6 2 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1086 0 427 21 1 20 20 0 8 0