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 470981 17711 0 0 0 0 syz-executor.1 *280751 17711 0 0 0x4000000 1K syz-executor.1 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,ffff800020f5d338,83,ffff800020f5d3d8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800020f5d448,fffffd806f6d6c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d6c88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d6c88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020f5d520,fffffd807ac8d420,fffffd806f6d6c08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d6c08,fffffd807ac8d400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6d7480,4,0,fffffd807ac8d400,0,ffff800020ab18c8) at udp_usrreq+0x560 sys_connect(ffff800020ab18c8,ffff800020f5d6a8,ffff800020f5d6f0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020f5d770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020f5d770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,6946f0d8010) at Xsyscall+0x128 end of kernel end trace frame: 0x697089e10f0, 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,ffff800020f5d338,83,ffff800020f5d3d8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800020f5d448,fffffd806f6d6c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d6c88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d6c88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020f5d520,fffffd807ac8d420,fffffd806f6d6c08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d6c08,fffffd807ac8d400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6d7480,4,0,fffffd807ac8d400,0,ffff800020ab18c8) at udp_usrreq+0x560 sys_connect(ffff800020ab18c8,ffff800020f5d6a8,ffff800020f5d6f0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020f5d770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020f5d770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,6946f0d8010) at Xsyscall+0x128 end of kernel end trace frame: 0x697089e10f0, count: -12 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x4ab5 __ALIGN_SIZE+0x3ab5 rbp 0xffff800020f5d150 rbx 0xffff800020f5d200 rdx 0x4ab6 __ALIGN_SIZE+0x3ab6 rcx 0xffff800021358000 rax 0xffff800021358000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x70cda72780f3f9fd r12 0x3000000008 r13 0xffff800020f5d160 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020f5d140 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=280751 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffffffff8265b7c8 process=0xffff800020a8a390 user=0xffff800020f58000, vmspace=0xfffffd807f0088a0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 17711 470981 26996 0 7 0 syz-executor.1 *17711 280751 26996 0 7 0x4000000 syz-executor.1 66239 227772 42471 0 3 0x2 biowait syz-executor.0 26996 356607 42471 0 3 0x82 nanosleep syz-executor.1 49906 502793 0 0 3 0x14200 bored sosplice 74146 348566 0 0 3 0x14200 acct acct 42471 238916 4299 0 3 0x82 thrsleep syz-fuzzer 42471 69365 4299 0 3 0x4000082 nanosleep syz-fuzzer 42471 351510 4299 0 3 0x4000082 thrsleep syz-fuzzer 42471 319271 4299 0 3 0x4000082 thrsleep syz-fuzzer 42471 124908 4299 0 3 0x4000082 thrsleep syz-fuzzer 42471 272605 4299 0 3 0x4000082 kqread syz-fuzzer 42471 446997 4299 0 3 0x4000082 thrsleep syz-fuzzer 42471 366156 4299 0 3 0x4000082 thrsleep syz-fuzzer 42471 515826 4299 0 3 0x4000082 thrsleep syz-fuzzer 42471 57450 4299 0 3 0x4000082 nanosleep syz-fuzzer 4299 171625 77749 0 3 0x10008a pause ksh 77749 159433 8714 0 3 0x92 select sshd 16089 345859 1 0 3 0x100083 ttyin getty 8714 367855 1 0 3 0x80 select sshd 41887 95905 5509 74 3 0x100092 bpf pflogd 5509 103459 1 0 3 0x80 netio pflogd 85082 276689 12025 73 3 0x100090 kqread syslogd 12025 124200 1 0 3 0x100082 netio syslogd 87219 466022 0 0 3 0x14200 pgzero zerothread 79735 76700 0 0 3 0x14200 aiodoned aiodoned 54765 322782 0 0 3 0x14200 syncer update 77177 155745 0 0 3 0x14200 cleaner cleaner 46194 216542 0 0 3 0x14200 reaper reaper 88863 380911 0 0 3 0x14200 pgdaemon pagedaemon 98813 384579 0 0 3 0x14200 bored crynlk 92768 131883 0 0 3 0x14200 bored crypto 25359 243533 0 0 3 0x40014200 acpi0 acpi0 52556 88926 0 0 3 0x40014200 idle1 8253 452285 0 0 3 0x14200 bored softnet 13746 344706 0 0 3 0x14200 bored systqmp 3274 256264 0 0 3 0x14200 bored systq 47019 473880 0 0 3 0x40014200 bored softclock 79037 522497 0 0 3 0x40014200 idle0 76132 8670 0 0 3 0x14200 bored smr 1 478797 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 17711 (syz-executor.1) thread 0xffff800020ab18c8 (280751) 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 66239 (syz-executor.0) thread 0xffff800020ab13d8 (227772) exclusive rrwlock inode r = 0 (0xfffffd806e1b1d60) #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 (0xfffffd807a10d2b8) #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 9609 6645K 8284K 78643K 32242 0 0 pcb 13 8K 8K 78643K 790 0 0 rtable 139 6K 6K 78643K 1003 0 0 ifaddr 90 29K 34K 78643K 1992 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1614 0 0 iov 0 0K 16K 78643K 452 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 78K 78643K 7308 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 83 0 0 VM map 9 4K 5K 78643K 13 0 0 sem 12 0K 1K 78643K 1287 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1809 196K 290K 78643K 12766 0 0 file desc 5 13K 25K 78643K 6606 0 0 sigio 0 0K 0K 78643K 21 0 0 proc 57 51K 95K 78643K 1189 0 0 subproc 32 2K 2K 78643K 255 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 227 0 0 in_multi 33 2K 2K 78643K 271 0 0 ether_multi 1 0K 0K 78643K 16 0 0 mrt 0 0K 0K 78643K 11 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 562 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 151 89K 105K 78643K 19969 0 0 UVM aobj 130 6K 6K 78643K 137 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 1014 0 0 NDP 20 0K 0K 78643K 601 0 0 temp 229 3561K 4200K 78643K 557529 0 0 kqueue 0 0K 0K 78643K 16 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 34 0 27 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1315 0 1315 7 6 1 1 0 8 1 rtentry 112 237 0 179 2 0 2 2 0 8 0 unpcb 120 3259 0 3251 3 2 1 2 0 8 0 syncache 264 10 0 10 5 5 0 1 0 8 0 tcpqe 32 4 0 4 3 3 0 1 0 8 0 tcpcb 544 1475 0 1469 3 2 1 2 0 8 0 inpcb 280 8803 0 8796 12 10 2 4 0 8 1 rttmr 72 6 0 5 2 1 1 1 0 8 0 nd6 48 40 0 37 1 0 1 1 0 8 0 pkpcb 40 16 0 16 4 3 1 1 0 8 1 ppxss 1128 275 0 274 4 3 1 1 0 8 0 pffrag 232 256 0 256 5 5 0 1 0 482 0 pffrnode 88 256 0 256 5 5 0 1 0 8 0 pffrent 40 10505 0 10505 4 4 0 1 0 8 0 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 140 0 101 1 0 1 1 0 8 0 pfstkey 112 140 0 101 2 0 2 2 0 8 0 pfstate 328 140 0 101 6 1 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1150 0 842 27 6 21 21 0 8 0 art_table 32 1152 0 842 3 0 3 3 0 8 0 art_node 16 232 0 181 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 21 1 0 1 1 0 8 0 semapl 112 1285 0 1275 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12814 0 11304 49 0 49 49 0 8 0 ffsino 272 12814 0 11304 102 0 102 102 0 8 0 nchpl 144 23943 0 22338 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 77528 0 77528 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 552 11 0 4 2 1 1 1 0 8 0 scsiplug 64 8 0 8 2 2 0 1 0 8 0 scxspl 192 68311 0 68310 30 27 3 7 0 8 2 plimitpl 152 137 0 130 1 0 1 1 0 8 0 sigapl 432 6765 0 6752 3 1 2 3 0 8 0 futexpl 56 107764 0 107764 1 0 1 1 0 8 1 knotepl 112 384 0 365 1 0 1 1 0 8 0 kqueuepl 104 524 0 522 1 0 1 1 0 8 0 pipepl 112 1696 0 1677 3 2 1 2 0 8 0 fdescpl 488 6766 0 6752 3 0 3 3 0 8 0 filepl 152 45329 0 45238 17 11 6 7 0 8 2 lockfpl 104 1043 0 1043 1 0 1 1 0 8 1 lockfspl 48 404 0 404 1 0 1 1 0 8 1 sessionpl 112 31 0 22 1 0 1 1 0 8 0 pgrppl 48 68 0 59 1 0 1 1 0 8 0 ucredpl 96 3685 0 3677 1 0 1 1 0 8 0 zombiepl 144 6752 0 6752 1 0 1 1 0 8 1 processpl 896 6783 0 6752 4 0 4 4 0 8 0 procpl 632 18504 0 18463 11 6 5 5 0 8 1 srpgc 64 18 0 18 8 7 1 1 0 8 1 sosppl 128 60 0 60 5 5 0 1 0 8 0 sockpl 384 13476 0 13461 21 18 3 7 0 8 1 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 228 0 0 21 5 16 21 0 8 0 mtagpl 80 29 0 0 1 0 1 1 0 8 0 mbufpl 256 516 0 0 22 0 22 22 0 8 0 bufpl 256 21987 0 14929 442 0 442 442 0 8 0 anonpl 16 528969 0 512792 119 31 88 94 0 124 6 amapchunkpl 152 35523 0 35380 42 32 10 14 0 158 3 amappl16 192 28565 0 27463 93 36 57 67 0 8 1 amappl15 184 1930 0 1930 3 3 0 1 0 8 0 amappl14 176 2872 0 2864 1 0 1 1 0 8 0 amappl13 168 913 0 912 1 0 1 1 0 8 0 amappl12 160 17 0 13 1 0 1 1 0 8 0 amappl11 152 470 0 462 1 0 1 1 0 8 0 amappl10 144 354 0 349 1 0 1 1 0 8 0 amappl9 136 1415 0 1410 1 0 1 1 0 8 0 amappl8 128 1026 0 969 2 0 2 2 0 8 0 amappl7 120 434 0 426 1 0 1 1 0 8 0 amappl6 112 455 0 439 1 0 1 1 0 8 0 amappl5 104 272 0 261 1 0 1 1 0 8 0 amappl4 96 6792 0 6763 1 0 1 1 0 8 0 amappl3 88 2483 0 2475 1 0 1 1 0 8 0 amappl2 80 54328 0 54262 3 1 2 3 0 8 0 amappl1 72 147104 0 146693 24 13 11 20 0 8 0 amappl 80 19006 0 18957 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 6777 0 6752 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6777 0 6752 1 0 1 1 0 8 0 vmmpekpl 168 45844 0 45800 3 0 3 3 0 8 0 vmmpepl 168 811368 0 809135 332 190 142 142 0 357 37 vmsppl 368 6765 0 6752 2 0 2 2 0 8 0 pdppl 4096 13561 0 13519 7 1 6 6 0 8 0 pvpl 32 1523186 0 1504046 279 74 205 223 0 265 18 pmappl 232 6776 0 6756 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 649 0 18 19 0 19 19 0 8 0