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 *422621 82674 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(ffffffff821e514f,ffffffff821b7c3b,350,ffffffff8218b943) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000167e3148,83,ffff8000167e31e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd803701c2b0,fffffd802eb94ef8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803701c2b0,fffffd802eb94ef8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd802eb94e00,0,fffffd803701c2a0,20,0,fffffd803701c230) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd802eb94e00,fffffd803701d780,ffff8000167e33f8,ffff800014944000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd803701d780,9,fffffd802eb94e00,0,0,ffff8000ffff84f8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd803701d780,0,ffff8000167e3608,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff84f8,3,ffff8000167e3608,0,ffff8000167e36f0) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff84f8,ffff8000167e36a8,ffff8000167e36f0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff8000167e3770) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,d7c95c2b010) at Xsyscall+0x128 end of kernel end trace frame: 0xd7f3658a060, 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(ffffffff821e514f,ffffffff821b7c3b,350,ffffffff8218b943) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000167e3148,83,ffff8000167e31e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_match(fffffd803701c2b0,fffffd802eb94ef8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803701c2b0,fffffd802eb94ef8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd802eb94e00,0,fffffd803701c2a0,20,0,fffffd803701c230) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd802eb94e00,fffffd803701d780,ffff8000167e33f8,ffff800014944000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd803701d780,9,fffffd802eb94e00,0,0,ffff8000ffff84f8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd803701d780,0,ffff8000167e3608,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff84f8,3,ffff8000167e3608,0,ffff8000167e36f0) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff84f8,ffff8000167e36a8,ffff8000167e36f0) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff8000167e3770) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,d7c95c2b010) at Xsyscall+0x128 end of kernel end trace frame: 0xd7f3658a060, count: -13 ddb> show registers rdi 0xffffffff81a00537 db_enter+0x17 rsi 0x50ff __ALIGN_SIZE+0x40ff rbp 0xffff8000167e2f60 rbx 0xffff8000167e3010 rdx 0x5100 __ALIGN_SIZE+0x4100 rcx 0xffff800014944000 rax 0xffff800014944000 r8 0xffff8000167e2f20 r9 0x1 r10 0xffff800000b36340 r11 0xa79dc44585d6c41a r12 0x3000000008 r13 0xffff8000167e2f70 r14 0x100 r15 0x1 rip 0xffffffff81a00538 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000167e2f50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=422621 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff9b30,0xffffffff82565848 process=0xffff8000ffff70f0 user=0xffff8000167de000, vmspace=0xfffffd803f013aa0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 82674 382435 62907 0 2 0 syz-executor.0 *82674 422621 62907 0 7 0x4000000 syz-executor.0 62907 20207 1084 0 2 0x482 syz-executor.0 98466 271538 1084 0 2 0x482 syz-executor.1 19054 364928 0 0 3 0x14200 acct acct 43923 229331 1 0 3 0x100083 ttyin getty 97008 110471 0 0 3 0x14200 bored sosplice 1084 386446 87008 0 3 0x82 thrsleep syz-fuzzer 1084 75466 87008 0 3 0x4000082 thrsleep syz-fuzzer 1084 112533 87008 0 3 0x4000082 thrsleep syz-fuzzer 1084 380253 87008 0 3 0x4000082 thrsleep syz-fuzzer 1084 463670 87008 0 3 0x4000082 kqread syz-fuzzer 1084 494768 87008 0 3 0x4000082 thrsleep syz-fuzzer 1084 309310 87008 0 3 0x4000082 thrsleep syz-fuzzer 1084 261911 87008 0 3 0x4000082 thrsleep syz-fuzzer 1084 373935 87008 0 3 0x4000082 thrsleep syz-fuzzer 87008 83431 811 0 3 0x10008a pause ksh 811 387515 75061 0 3 0x92 select sshd 75061 96357 1 0 3 0x80 select sshd 5860 348824 50972 73 3 0x100090 kqread syslogd 50972 392359 1 0 3 0x100082 netio syslogd 25141 500939 0 0 2 0x14200 zerothread 80087 41703 0 0 3 0x14200 aiodoned aiodoned 28580 461289 0 0 3 0x14200 syncer update 90146 284279 0 0 3 0x14200 cleaner cleaner 1529 101220 0 0 3 0x14200 reaper reaper 93100 82215 0 0 3 0x14200 pgdaemon pagedaemon 76567 352445 0 0 3 0x14200 bored crynlk 45620 297088 0 0 3 0x14200 bored crypto 24340 474059 0 0 3 0x40014200 acpi0 acpi0 59200 87229 0 0 3 0x14200 bored softnet 81946 27290 0 0 3 0x14200 bored systqmp 96083 411234 0 0 3 0x14200 bored systq 65518 363825 0 0 3 0x40014200 bored softclock 71243 116958 0 0 3 0x40014200 idle0 13074 271307 0 0 3 0x14200 bored smr 1 210697 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 9593 6968K 7518K 78643K 26335 0 0 pcb 13 11K 13K 78643K 1437 0 0 rtable 166 16K 16K 78643K 6122 0 0 ifaddr 108 24K 24K 78643K 920 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 435 0 0 iov 0 0K 32K 78643K 1568 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 7777 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 105 0 0 VM map 69 17K 17K 78643K 92 0 0 sem 12 0K 1K 78643K 1518 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 5933 0 0 sigio 0 0K 0K 78643K 139 0 0 proc 45 30K 63K 78643K 2227 0 0 subproc 32 2K 2K 78643K 569 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 581 0 0 in_multi 35 2K 2K 78643K 837 0 0 ether_multi 1 0K 0K 78643K 60 0 0 mrt 0 0K 0K 78643K 46 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1280 0 0 pfkey data 0 0K 4K 78643K 6 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 215 480K 489K 78643K 15774 0 0 UVM aobj 130 4K 4K 78643K 184 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 1472 0 0 NDP 23 0K 1K 78643K 315 0 0 temp 247 3545K 4185K 78643K 209661 0 0 kqueue 0 0K 0K 78643K 64 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 91 0 87 1 0 1 1 0 8 0 rtpcb 80 656 0 656 5 4 1 1 0 8 1 rtentry 112 703 0 640 3 0 3 3 0 8 0 unpcb 120 3423 0 3416 1 0 1 1 0 8 0 syncache 264 41 0 41 13 13 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 36 0 36 8 8 0 1 0 8 0 tcpcb 544 2736 0 2731 36 34 2 14 0 8 1 ipq 40 89 0 88 18 17 1 1 0 8 0 ipqe 40 2523 0 2522 18 17 1 1 0 8 0 inpcb 280 14055 0 14049 34 33 1 9 0 8 0 rttmr 72 13 0 13 11 11 0 1 0 8 0 ip6q 72 7 0 7 5 4 1 1 0 8 1 ip6af 40 17 0 17 4 4 0 1 0 8 0 nd6 48 110 0 108 7 6 1 1 0 8 0 pkpcb 40 30 0 30 8 8 0 1 0 8 0 ppxss 1128 92 0 92 17 17 0 1 0 8 0 art_heap8 4096 8 0 2 7 1 6 6 0 8 0 art_heap4 256 2989 0 2766 37 21 16 17 0 8 0 art_table 32 2997 0 2768 6 3 3 3 0 8 0 art_node 16 693 0 649 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 22 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1516 0 1506 1 0 1 1 0 8 0 shmpl 112 182 0 54 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10537 0 9122 46 0 46 46 0 8 0 ffsino 240 10537 0 9122 84 0 84 84 0 8 0 nchpl 144 20826 0 20377 60 39 21 60 0 8 0 uvmvnodes 72 8088 0 0 148 0 148 148 0 8 0 vnodes 208 8088 0 0 426 0 426 426 0 8 0 namei 1024 71217 0 71217 4 3 1 1 0 8 1 vcpupl 1984 67 0 0 9 0 9 9 0 8 0 vmpool 520 90 0 23 5 0 5 5 0 8 0 scsiplug 64 5 0 5 5 5 0 1 0 8 0 scxspl 192 70580 0 70580 38 36 2 7 0 8 2 plimitpl 152 532 0 526 1 0 1 1 0 8 0 sigapl 432 6011 0 6000 2 0 2 2 0 8 0 futexpl 56 179430 0 179430 4 3 1 1 0 8 1 knotepl 112 1408 0 1389 4 3 1 2 0 8 0 kqueuepl 104 2076 0 2074 7 6 1 4 0 8 0 pipepl 112 3944 0 3925 16 15 1 2 0 8 0 fdescpl 424 6012 0 6000 2 0 2 2 0 8 0 filepl 120 58769 0 58684 34 30 4 11 0 8 1 lockfpl 104 3106 0 3106 3 2 1 1 0 8 1 lockfspl 48 1081 0 1081 3 2 1 1 0 8 1 sessionpl 112 49 0 41 1 0 1 1 0 8 0 pgrppl 48 111 0 103 1 0 1 1 0 8 0 ucredpl 96 6810 0 6803 1 0 1 1 0 8 0 zombiepl 144 6000 0 5999 1 0 1 1 0 8 0 processpl 864 6028 0 5999 4 0 4 4 0 8 0 procpl 632 13247 0 13209 5 1 4 5 0 8 0 sosppl 128 114 0 114 21 21 0 1 0 8 0 sockpl 384 18443 0 18430 51 47 4 14 0 8 2 mcl64k 65536 1970 0 1970 156 130 26 33 0 8 26 mcl16k 16384 142 0 142 15 14 1 1 0 8 1 mcl12k 12288 203 0 203 9 8 1 1 0 8 1 mcl9k 9216 122 0 122 16 15 1 1 0 8 1 mcl8k 8192 297 0 297 7 6 1 1 0 8 1 mcl4k 4096 679 0 679 5 4 1 1 0 8 1 mcl2k2 2112 70 0 70 22 22 0 1 0 8 0 mcl2k 2048 76446 0 76403 30 23 7 11 0 8 1 mtagpl 80 293 0 274 6 5 1 1 0 8 0 mbufpl 256 189399 0 189193 260 237 23 34 0 8 8 bufpl 256 35655 0 26671 562 0 562 562 0 8 0 anonpl 16 822431 0 799987 271 164 107 118 0 62 10 amapchunkpl 152 34499 0 34339 122 109 13 20 0 158 4 amappl16 192 39551 0 38256 312 237 75 85 0 8 8 amappl15 184 526 0 526 5 5 0 1 0 8 0 amappl14 176 816 0 811 1 0 1 1 0 8 0 amappl13 168 359 0 358 1 0 1 1 0 8 0 amappl12 160 1478 0 1473 1 0 1 1 0 8 0 amappl11 152 733 0 726 1 0 1 1 0 8 0 amappl10 144 757 0 757 7 7 0 1 0 8 0 amappl9 136 1967 0 1964 1 0 1 1 0 8 0 amappl8 128 1549 0 1487 3 0 3 3 0 8 0 amappl7 120 911 0 904 1 0 1 1 0 8 0 amappl6 112 668 0 653 1 0 1 1 0 8 0 amappl5 104 1998 0 1988 1 0 1 1 0 8 0 amappl4 96 5531 0 5497 1 0 1 1 0 8 0 amappl3 88 2157 0 2149 1 0 1 1 0 8 0 amappl2 80 45858 0 45782 3 1 2 3 0 8 0 amappl1 72 119298 0 118908 24 15 9 20 0 8 0 amappl 80 14075 0 14005 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 183 0 54 3 0 3 3 0 8 0 uaddrrnd 24 6102 0 6000 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6102 0 6000 1 0 1 1 0 8 0 vmmpekpl 168 39658 0 39618 2 0 2 2 0 8 0 vmmpepl 168 742482 0 739842 407 254 153 163 0 357 27 vmsppl 272 6011 0 6000 3 2 1 2 0 8 0 pdppl 4096 12210 0 12113 17 4 13 13 0 8 0 pvpl 32 2142674 0 2119982 612 364 248 328 0 265 54 pmappl 200 6101 0 6023 5 0 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1228 0 481 22 0 22 22 0 8 0