login: panic: kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *450435 87463 0 0 0x4000000 0K syz-executor.1 120554 16902 0 0x14000 0x200 1 reaper 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(ffffffff822092d0,ffffffff821d433f,350,ffffffff821ac772) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023b65138,83,ffff800023b651d8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023b65248,fffffd806f6d8710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d8710,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d8710,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023b65320,fffffd8061f0b220,fffffd806f6d8690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d8690,fffffd8061f0b200) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8074c70dc0,4,0,fffffd8061f0b200,0,ffff800020ab1160) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab1160,ffff800023b654c8,ffff800023b65510) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023b65590) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b65590) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,681ab17b010) at Xsyscall+0x128 end of kernel end trace frame: 0x6846a59ed20, count: 3 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848 ddb{0}> 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(ffffffff822092d0,ffffffff821d433f,350,ffffffff821ac772) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023b65138,83,ffff800023b651d8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023b65248,fffffd806f6d8710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d8710,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d8710,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023b65320,fffffd8061f0b220,fffffd806f6d8690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d8690,fffffd8061f0b200) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8074c70dc0,4,0,fffffd8061f0b200,0,ffff800020ab1160) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab1160,ffff800023b654c8,ffff800023b65510) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023b65590) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b65590) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,681ab17b010) at Xsyscall+0x128 end of kernel end trace frame: 0x6846a59ed20, count: -12 ddb{0}> show registers rdi 0xffffffff8163efc7 db_enter+0x17 rsi 0x4353 __ALIGN_SIZE+0x3353 rbp 0xffff800023b64f50 rbx 0xffff800023b65000 rdx 0x4354 __ALIGN_SIZE+0x3354 rcx 0xffff800021760000 rax 0xffff800021760000 r8 0xffffffff8178440f kprintf+0x16f r9 0x1 r10 0x25 r11 0x736a28fe2df60910 r12 0x3000000008 r13 0xffff800023b64f60 r14 0x100 r15 0x1 rip 0xffffffff8163efc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b64f40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=450435 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b40,0xffffffff82646fa0 process=0xffff800020addc00 user=0xffff800023b60000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 87463 516697 32510 0 2 0 syz-executor.1 *87463 450435 32510 0 7 0x4000000 syz-executor.1 89233 45164 11562 0 2 0x482 syz-executor.0 32510 104444 11562 0 2 0x482 syz-executor.1 13353 88959 1 0 3 0x100083 ttyin getty 33173 154558 0 0 3 0x14200 acct acct 36369 471556 0 0 3 0x14200 bored sosplice 11562 255036 9134 0 3 0x82 thrsleep syz-fuzzer 11562 441172 9134 0 3 0x4000082 thrsleep syz-fuzzer 11562 169899 9134 0 3 0x4000082 kqread syz-fuzzer 11562 48271 9134 0 3 0x4000082 thrsleep syz-fuzzer 11562 165566 9134 0 3 0x4000082 thrsleep syz-fuzzer 11562 452982 9134 0 3 0x4000082 thrsleep syz-fuzzer 11562 271035 9134 0 3 0x4000082 thrsleep syz-fuzzer 11562 437206 9134 0 3 0x4000082 thrsleep syz-fuzzer 11562 176686 9134 0 3 0x4000082 thrsleep syz-fuzzer 11562 185204 9134 0 3 0x4000082 thrsleep syz-fuzzer 9134 58094 89462 0 3 0x10008a pause ksh 89462 376128 19170 0 3 0x92 select sshd 19170 147711 1 0 3 0x80 select sshd 34415 264622 87315 74 3 0x100092 bpf pflogd 87315 426290 1 0 3 0x80 netio pflogd 43215 235945 81768 73 3 0x100090 kqread syslogd 81768 158949 1 0 3 0x100082 netio syslogd 89217 92825 1 77 3 0x100090 poll dhclient 44350 482127 1 0 3 0x80 poll dhclient 39780 508165 0 0 2 0x14200 zerothread 21066 332853 0 0 3 0x14200 aiodoned aiodoned 74794 459649 0 0 3 0x14200 syncer update 55612 119167 0 0 3 0x14200 cleaner cleaner 16902 120554 0 0 7 0x14200 reaper 7523 319277 0 0 3 0x14200 pgdaemon pagedaemon 48681 193325 0 0 3 0x14200 bored crynlk 63197 294496 0 0 3 0x14200 bored crypto 43331 139057 0 0 3 0x40014200 acpi0 acpi0 78849 213918 0 0 3 0x40014200 idle1 68015 415906 0 0 3 0x14200 bored softnet 44674 498010 0 0 3 0x14200 bored systqmp 75556 346682 0 0 3 0x14200 bored systq 70499 60560 0 0 2 0x40014200 softclock 62404 445728 0 0 3 0x40014200 idle0 61737 243911 0 0 3 0x14200 bored smr 1 77500 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd8074e734b8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pmap_do_remove+0x88 rcr3 machine/cpufunc.h:141 [inline] #3 pmap_do_remove+0x88 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:414 [inline] #3 pmap_do_remove+0x88 sys/arch/amd64/amd64/pmap.c:1684 #4 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:206 [inline] #4 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2719 #5 uvmspace_free+0x86 sys/uvm/uvm_map.c:3592 #6 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #7 reaper+0x189 sys/kern/kern_exit.c:442 #8 proc_trampoline+0x1c Process 87463 (syz-executor.1) thread 0xffff800020ab1160 (450435) exclusive rwlock netlock r = 0 (0xffffffff824d4548) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sys_connect+0x6b sys/kern/uipc_syscalls.c:362 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82677638) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9608 6461K 8706K 78643K 20391 0 0 pcb 13 12K 14K 78643K 1002 0 0 rtable 152 15K 16K 78643K 3109 0 0 ifaddr 102 22K 23K 78643K 981 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1738 0 0 iov 0 0K 24K 78643K 944 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 78K 78643K 4878 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 58 0 0 VM map 43 21K 21K 78643K 58 0 0 sem 12 1K 1K 78643K 693 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4255 0 0 sigio 0 0K 0K 78643K 60 0 0 proc 61 63K 95K 78643K 2013 0 0 subproc 32 2K 2K 78643K 505 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 382 0 0 in_multi 30 1K 2K 78643K 612 0 0 ether_multi 1 0K 0K 78643K 56 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 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 1020 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 202 297K 301K 78643K 16291 0 0 UVM aobj 130 8K 8K 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 2K 78643K 1096 0 0 NDP 23 0K 1K 78643K 301 0 0 temp 227 3561K 4197K 78643K 178719 0 0 kqueue 0 0K 0K 78643K 30 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 92 0 85 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 507 0 505 1 0 1 1 0 8 0 rtentry 112 531 0 471 2 0 2 2 0 8 0 unpcb 120 10403 0 10393 15 13 2 2 0 8 1 syncache 264 24 0 24 12 12 0 1 0 8 0 tcpqe 32 94 0 94 5 5 0 1 0 8 0 tcpcb 544 2349 0 2341 31 21 10 14 0 8 9 inpcb 280 6943 0 6934 45 36 9 13 0 8 8 rttmr 72 6 0 5 4 3 1 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 79 0 76 5 4 1 1 0 8 0 pkpcb 40 47 0 47 10 9 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 132 0 132 13 12 1 1 0 8 1 pffrag 232 121 0 121 10 9 1 1 0 482 1 pffrnode 88 120 0 120 10 9 1 1 0 8 1 pffrent 40 3656 0 3656 10 9 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 414 0 358 1 0 1 1 0 8 0 pfstkey 112 414 0 358 3 0 3 3 0 8 0 pfstate 328 414 0 358 9 2 7 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 11 0 7 10 6 4 4 0 8 0 art_heap4 256 2254 0 1988 45 28 17 20 0 8 0 art_table 32 2265 0 1995 4 1 3 3 0 8 0 art_node 16 523 0 472 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 689 0 679 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 7874 0 6433 47 0 47 47 0 8 0 ffsino 272 7874 0 6433 97 0 97 97 0 8 0 nchpl 144 14311 0 13863 61 41 20 61 0 8 0 uvmvnodes 72 6089 0 0 111 0 111 111 0 8 0 vnodes 208 6089 0 0 321 0 321 321 0 8 0 namei 1024 50564 0 50564 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 41 0 0 6 0 6 6 0 8 0 vmpool 552 56 0 15 4 1 3 3 0 8 0 scsiplug 64 7 0 7 6 5 1 1 0 8 1 scxspl 192 49285 0 49285 36 33 3 7 0 8 3 plimitpl 152 344 0 336 1 0 1 1 0 8 0 sigapl 432 4376 0 4361 4 2 2 3 0 8 0 futexpl 56 107753 0 107753 2 1 1 1 0 8 1 knotepl 112 988 0 969 7 5 2 3 0 8 1 kqueuepl 104 1399 0 1397 7 3 4 4 0 8 3 pipepl 112 2486 0 2467 4 2 2 2 0 8 1 fdescpl 488 4377 0 4361 3 0 3 3 0 8 0 filepl 152 43376 0 43274 45 31 14 14 0 8 10 lockfpl 104 1849 0 1848 1 0 1 1 0 8 0 lockfspl 48 587 0 586 1 0 1 1 0 8 0 sessionpl 112 49 0 38 1 0 1 1 0 8 0 pgrppl 48 496 0 485 1 0 1 1 0 8 0 ucredpl 96 4364 0 4354 1 0 1 1 0 8 0 zombiepl 144 4362 0 4361 1 0 1 1 0 8 0 processpl 896 4395 0 4361 5 1 4 5 0 8 0 procpl 632 13995 0 13951 7 2 5 5 0 8 1 srpgc 64 49 0 49 15 15 0 1 0 8 0 sosppl 128 121 0 121 15 14 1 1 0 8 1 sockpl 384 17996 0 17975 66 52 14 21 0 8 11 mcl64k 65536 257 0 0 32 28 4 32 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 18 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 31 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 178 0 0 21 1 20 21 0 8 0 mtagpl 80 70 0 0 1 0 1 1 0 8 0 mbufpl 256 789 0 0 44 0 44 44 0 8 0 bufpl 256 20605 0 13547 442 0 442 442 0 8 0 anonpl 16 552922 0 522840 247 112 135 142 0 124 13 amapchunkpl 152 33685 0 32996 81 53 28 32 0 158 0 amappl16 192 22977 0 21708 193 128 65 79 0 8 1 amappl15 184 683 0 683 3 3 0 1 0 8 0 amappl14 176 713 0 706 1 0 1 1 0 8 0 amappl13 168 903 0 902 5 4 1 1 0 8 0 amappl12 160 529 0 527 4 3 1 1 0 8 0 amappl11 152 442 0 427 1 0 1 1 0 8 0 amappl10 144 494 0 487 1 0 1 1 0 8 0 amappl9 136 1671 0 1666 1 0 1 1 0 8 0 amappl8 128 1244 0 1189 2 0 2 2 0 8 0 amappl7 120 612 0 602 1 0 1 1 0 8 0 amappl6 112 388 0 376 1 0 1 1 0 8 0 amappl5 104 895 0 878 1 0 1 1 0 8 0 amappl4 96 4424 0 4391 1 0 1 1 0 8 0 amappl3 88 1732 0 1725 1 0 1 1 0 8 0 amappl2 80 33266 0 33185 3 1 2 3 0 8 0 amappl1 72 109588 0 109116 25 15 10 20 0 8 0 amappl 80 14794 0 14718 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 4433 0 4361 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4433 0 4361 1 0 1 1 0 8 0 vmmpekpl 168 39251 0 39203 4 1 3 3 0 8 0 vmmpepl 168 572335 0 569697 328 172 156 159 0 357 39 vmsppl 368 4376 0 4360 2 0 2 2 0 8 0 pdppl 4096 8873 0 8791 14 3 11 11 0 8 0 pvpl 32 1446893 0 1423071 424 184 240 247 0 265 40 pmappl 232 4432 0 4375 5 1 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 757 0 92 20 0 20 20 0 8 0