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 *285709 26222 0 0 0x4000000 1K syz-executor.1 184362 25905 0 0x2 0x4000000 0 syz-fuzzer 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(ffffffff82208f7b,ffffffff821d48a2,350,ffffffff821acbc4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021b84df8,83,ffff800021b84e98,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021b84f08,fffffd806f6ca828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ca828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ca828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b84fe0,fffffd80701fcb20,fffffd806f6ca7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6ca7a8,fffffd80701fcb00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80700a2310,4,0,fffffd80701fcb00,0,ffff800020abe018) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020abe018,ffff800021b85188,ffff800021b851d0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b85250) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b85250) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,bed5f6e9010) at Xsyscall+0x128 end of kernel end trace frame: 0xbf013d1c720, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848 ddb{1}> 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(ffffffff82208f7b,ffffffff821d48a2,350,ffffffff821acbc4) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021b84df8,83,ffff800021b84e98,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021b84f08,fffffd806f6ca828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ca828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ca828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b84fe0,fffffd80701fcb20,fffffd806f6ca7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6ca7a8,fffffd80701fcb00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80700a2310,4,0,fffffd80701fcb00,0,ffff800020abe018) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020abe018,ffff800021b85188,ffff800021b851d0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b85250) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b85250) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,bed5f6e9010) at Xsyscall+0x128 end of kernel end trace frame: 0xbf013d1c720, count: -12 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x4c7a __ALIGN_SIZE+0x3c7a rbp 0xffff800021b84c10 rbx 0xffff800021b84cc0 rdx 0x4c7b __ALIGN_SIZE+0x3c7b rcx 0xffff800021574000 rax 0xffff800021574000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0xadb372bd4c6055dc r12 0x3000000008 r13 0xffff800021b84c20 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b84c00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=285709 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020abec70,0xffffffff8265b7c8 process=0xffff800020adce00 user=0xffff800021b80000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26222 8433 17257 0 2 0 syz-executor.1 *26222 285709 17257 0 7 0x4000000 syz-executor.1 17257 174081 25905 0 3 0x82 nanosleep syz-executor.1 51542 247266 25905 0 3 0x2 biowait syz-executor.0 56150 43870 0 0 3 0x14200 acct acct 25869 223634 1 0 3 0x100083 ttyin getty 30607 15349 0 0 3 0x14200 bored sosplice 25905 520104 52695 0 3 0x82 thrsleep syz-fuzzer 25905 141765 52695 0 3 0x4000082 nanosleep syz-fuzzer 25905 497947 52695 0 3 0x4000082 thrsleep syz-fuzzer 25905 484257 52695 0 3 0x4000082 thrsleep syz-fuzzer 25905 184362 52695 0 7 0x4000002 syz-fuzzer 25905 88881 52695 0 3 0x4000082 thrsleep syz-fuzzer 25905 76132 52695 0 3 0x4000082 thrsleep syz-fuzzer 25905 6757 52695 0 3 0x4000082 thrsleep syz-fuzzer 25905 340961 52695 0 3 0x4000082 nanosleep syz-fuzzer 25905 433412 52695 0 3 0x4000082 thrsleep syz-fuzzer 52695 506909 89317 0 3 0x10008a pause ksh 89317 299807 76291 0 3 0x92 select sshd 76291 324832 1 0 3 0x80 select sshd 29244 192883 14940 74 3 0x100092 bpf pflogd 14940 457647 1 0 3 0x80 netio pflogd 98320 109651 35521 73 3 0x100090 kqread syslogd 35521 248193 1 0 3 0x100082 netio syslogd 67088 172798 1 77 3 0x100090 poll dhclient 97843 120831 1 0 3 0x80 poll dhclient 20898 438932 0 0 2 0x14200 zerothread 98652 75749 0 0 3 0x14200 aiodoned aiodoned 68447 491719 0 0 3 0x14200 syncer update 9571 503435 0 0 3 0x14200 cleaner cleaner 32982 66337 0 0 3 0x14200 reaper reaper 17365 50756 0 0 3 0x14200 pgdaemon pagedaemon 90546 61578 0 0 3 0x14200 bored crynlk 69896 448884 0 0 3 0x14200 bored crypto 42226 309410 0 0 3 0x40014200 acpi0 acpi0 70547 15693 0 0 3 0x40014200 idle1 55983 59582 0 0 3 0x14200 bored softnet 94735 424816 0 0 3 0x14200 bored systqmp 76131 275403 0 0 3 0x14200 bored systq 34309 523846 0 0 3 0x40014200 bored softclock 87803 76473 0 0 3 0x40014200 idle0 47061 428454 0 0 3 0x14200 bored smr 1 367310 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 26222 (syz-executor.1) thread 0xffff800020abe018 (285709) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvn_io+0x3b2 sys/uvm/uvm_vnode.c:1206 #2 uvn_get+0x226 sys/uvm/uvm_vnode.c:1049 #3 uvm_fault+0x11cc sys/uvm/uvm_fault.c:1023 #4 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #5 kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 #6 alltraps_kern_meltdown+0x7b #7 copyin+0x4b #8 sys_connect+0x9c sys/kern/uipc_syscalls.c:367 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82648ec0) #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 Process 51542 (syz-executor.0) thread 0xffff800020abf8c8 (247266) exclusive rrwlock inode r = 0 (0xfffffd8066013d58) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80757af2c0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9633 7233K 16198K 78643K 57575 0 0 pcb 13 12K 14K 78643K 1871 0 0 rtable 211 19K 19K 78643K 6001 0 0 ifaddr 125 31K 33K 78643K 1572 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1938 0 0 iov 0 0K 28K 78643K 4410 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 79K 78643K 14840 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 484 0 0 VM map 59 29K 30K 78643K 96 0 0 sem 12 0K 0K 78643K 3791 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 8586 0 0 sigio 0 0K 0K 78643K 102 0 0 proc 62 63K 83K 78643K 3268 0 0 subproc 32 2K 2K 78643K 837 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 4800 0 0 in_multi 48 3K 3K 78643K 1978 0 0 ether_multi 1 0K 0K 78643K 104 0 0 mrt 0 0K 0K 78643K 54 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 1779 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 223 383K 385K 78643K 31277 0 0 UVM aobj 130 8K 8K 78643K 131 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 1879 0 0 NDP 25 0K 1K 78643K 617 0 0 temp 264 3562K 4203K 78643K 305445 0 0 kqueue 0 0K 0K 78643K 69 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 119 0 112 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 653 0 651 1 0 1 1 0 8 0 rtentry 112 1475 0 1388 3 0 3 3 0 8 0 unpcb 120 4984 0 4971 13 12 1 2 0 8 0 syncache 264 37 0 37 16 16 0 1 0 8 0 tcpqe 32 147 0 147 9 9 0 1 0 8 0 tcpcb 544 5177 0 5172 71 62 9 15 0 8 8 inpcb 280 16014 0 16006 54 45 9 13 0 8 8 rttmr 72 17 0 16 3 2 1 1 0 8 0 ip6q 72 5 0 5 3 3 0 1 0 8 0 ip6af 40 12 0 12 3 3 0 1 0 8 0 nd6 48 278 0 274 5 4 1 1 0 8 0 pkpcb 40 52 0 52 16 16 0 1 0 8 0 swfcl 56 5 0 0 1 0 1 1 0 8 0 ppxss 1128 222 0 221 21 20 1 1 0 8 0 pffrag 232 182 0 182 29 28 1 1 0 482 1 pffrnode 88 182 0 182 29 28 1 1 0 8 1 pffrent 40 5786 0 5786 29 28 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 638 0 577 1 0 1 1 0 8 0 pfstkey 112 638 0 577 3 0 3 3 0 8 0 pfstate 328 638 0 577 10 3 7 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 33 0 29 19 13 6 6 0 8 2 art_heap4 256 7876 0 7552 45 24 21 23 0 8 0 art_table 32 7909 0 7581 5 2 3 3 0 8 0 art_node 16 1458 0 1396 1 0 1 1 0 8 0 sysvmsgpl 40 29 0 14 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 3787 0 3777 1 0 1 1 0 8 0 shmpl 112 129 0 1 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 14996 0 13536 48 0 48 48 0 8 0 ffsino 272 14996 0 13536 98 0 98 98 0 8 0 nchpl 144 29048 0 27416 61 0 61 61 0 8 0 uvmvnodes 72 6971 0 0 127 0 127 127 0 8 0 vnodes 208 6971 0 0 367 0 367 367 0 8 0 namei 1024 107028 0 107028 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 58 0 1 8 0 8 8 0 8 0 vmpool 552 94 0 37 7 2 5 5 0 8 0 scsiplug 64 15 0 15 8 8 0 1 0 8 0 scxspl 192 92037 0 92036 66 63 3 7 0 8 2 plimitpl 152 673 0 665 1 0 1 1 0 8 0 sigapl 432 8645 0 8630 3 1 2 3 0 8 0 futexpl 56 234622 0 234622 3 2 1 1 0 8 1 knotepl 112 1793 0 1774 6 5 1 3 0 8 0 kqueuepl 104 4237 0 4235 13 9 4 4 0 8 3 pipepl 112 5390 0 5371 12 11 1 2 0 8 0 fdescpl 488 8646 0 8630 3 0 3 3 0 8 0 filepl 152 82952 0 82850 73 61 12 13 0 8 8 lockfpl 104 3187 0 3186 1 0 1 1 0 8 0 lockfspl 48 1113 0 1112 1 0 1 1 0 8 0 sessionpl 112 67 0 56 1 0 1 1 0 8 0 pgrppl 48 200 0 189 1 0 1 1 0 8 0 ucredpl 96 9140 0 9130 1 0 1 1 0 8 0 zombiepl 144 8631 0 8631 5 4 1 1 0 8 1 processpl 896 8664 0 8631 4 0 4 4 0 8 0 procpl 632 27829 0 27786 9 4 5 5 0 8 1 srpgc 64 126 0 126 23 23 0 1 0 8 0 sosppl 128 271 0 271 28 27 1 1 0 8 1 sockpl 384 21800 0 21777 101 90 11 22 0 8 8 mcl64k 65536 663 0 0 59 41 18 34 0 8 1 mcl16k 16384 18 0 0 3 0 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 26 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 331 0 0 33 18 15 33 0 8 2 mtagpl 80 791 0 0 9 1 8 8 0 8 0 mbufpl 256 1434 0 0 59 1 58 58 0 8 0 bufpl 256 32377 0 25319 442 0 442 442 0 8 0 anonpl 16 1052634 0 1032421 271 166 105 108 0 124 13 amapchunkpl 152 65466 0 65310 116 107 9 20 0 158 0 amappl16 192 46391 0 45092 259 185 74 78 0 8 5 amappl15 184 1392 0 1391 9 8 1 1 0 8 0 amappl14 176 1722 0 1714 1 0 1 1 0 8 0 amappl13 168 966 0 965 7 6 1 1 0 8 0 amappl12 160 762 0 760 1 0 1 1 0 8 0 amappl11 152 919 0 903 1 0 1 1 0 8 0 amappl10 144 1993 0 1985 1 0 1 1 0 8 0 amappl9 136 2335 0 2330 1 0 1 1 0 8 0 amappl8 128 1951 0 1877 3 0 3 3 0 8 0 amappl7 120 2181 0 2170 1 0 1 1 0 8 0 amappl6 112 814 0 794 1 0 1 1 0 8 0 amappl5 104 1343 0 1328 1 0 1 1 0 8 0 amappl4 96 8660 0 8621 6 4 2 2 0 8 1 amappl3 88 2008 0 2003 1 0 1 1 0 8 0 amappl2 80 66741 0 66658 3 1 2 3 0 8 0 amappl1 72 201873 0 201438 25 15 10 20 0 8 0 amappl 80 29035 0 28967 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 130 0 1 3 0 3 3 0 8 0 uaddrrnd 24 8740 0 8630 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8740 0 8630 1 0 1 1 0 8 0 vmmpekpl 168 71270 0 71227 3 0 3 3 0 8 0 vmmpepl 168 1107224 0 1104543 459 294 165 181 0 357 39 vmsppl 368 8645 0 8630 2 0 2 2 0 8 0 pdppl 4096 17487 0 17391 18 5 13 13 0 8 0 pvpl 32 2721620 0 2700679 521 296 225 232 0 265 33 pmappl 232 8739 0 8667 6 1 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 867 0 171 21 0 21 21 0 8 0