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 *295330 55974 0 0 0x4000000 0 syz-executor.1 341772 50787 0 0x2 0x4000000 1 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(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023baf8d8,83,ffff800023baf978,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023baf9e8,fffffd806f6cfc88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cfc88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cfc88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bafac0,fffffd8064c4a420,fffffd806f6cfc08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cfc08,fffffd8064c4a400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806573f318,4,0,fffffd8064c4a400,0,ffff800020ab0ee8) at udp_usrreq+0x560 sys_connect(ffff800020ab0ee8,ffff800023bafc48,ffff800023bafc90) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bafd10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bafd10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,3587fa7c010) at Xsyscall+0x128 end of kernel end trace frame: 0x35acaa49730, 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(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800023baf8d8,83,ffff800023baf978,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023baf9e8,fffffd806f6cfc88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cfc88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cfc88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bafac0,fffffd8064c4a420,fffffd806f6cfc08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cfc08,fffffd8064c4a400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806573f318,4,0,fffffd8064c4a400,0,ffff800020ab0ee8) at udp_usrreq+0x560 sys_connect(ffff800020ab0ee8,ffff800023bafc48,ffff800023bafc90) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bafd10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bafd10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,3587fa7c010) at Xsyscall+0x128 end of kernel end trace frame: 0x35acaa49730, count: -12 ddb{0}> show registers rdi 0xffffffff81800b47 db_enter+0x17 rsi 0x3c54 __ALIGN_SIZE+0x2c54 rbp 0xffff800023baf6f0 rbx 0xffff800023baf7a0 rdx 0x3c55 __ALIGN_SIZE+0x2c55 rcx 0xffff800021b78000 rax 0xffff800021b78000 r8 0xffffffff8149825f kprintf+0x16f r9 0x1 r10 0x25 r11 0x2cbe8cc5755fdfbb r12 0x3000000008 r13 0xffff800023baf700 r14 0x100 r15 0x1 rip 0xffffffff81800b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023baf6e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=295330 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0018,0xffff800020ab13e8 process=0xffff800020adce00 user=0xffff800023baa000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55184 114768 71221 0 2 0 syz-executor.0 55974 497334 29408 0 2 0 syz-executor.1 *55974 295330 29408 0 7 0x4000000 syz-executor.1 29408 294518 50787 0 2 0x482 syz-executor.1 25183 332209 0 0 3 0x14200 acct acct 71221 212008 50787 0 3 0x82 nanosleep syz-executor.0 44764 422191 1 0 3 0x100083 ttyin getty 20591 73947 0 0 3 0x14200 bored sosplice 50787 445941 59964 0 3 0x82 thrsleep syz-fuzzer 50787 266554 59964 0 2 0x4000482 syz-fuzzer 50787 511390 59964 0 3 0x4000082 thrsleep syz-fuzzer 50787 341772 59964 0 7 0x4000002 syz-fuzzer 50787 449692 59964 0 3 0x4000082 thrsleep syz-fuzzer 50787 194430 59964 0 3 0x4000082 thrsleep syz-fuzzer 50787 155719 59964 0 3 0x4000082 thrsleep syz-fuzzer 50787 486974 59964 0 3 0x4000082 thrsleep syz-fuzzer 50787 331091 59964 0 3 0x4000082 kqread syz-fuzzer 50787 203376 59964 0 3 0x4000082 thrsleep syz-fuzzer 59964 25433 79861 0 3 0x10008a pause ksh 79861 153958 37301 0 3 0x92 select sshd 37301 204786 1 0 3 0x80 select sshd 33847 299750 66414 74 3 0x100092 bpf pflogd 66414 387438 1 0 3 0x80 netio pflogd 7331 512139 84434 73 3 0x100090 kqread syslogd 84434 193758 1 0 3 0x100082 netio syslogd 49334 203363 1 77 3 0x100090 poll dhclient 30054 143043 1 0 3 0x80 poll dhclient 7993 179434 0 0 2 0x14200 zerothread 35893 283656 0 0 3 0x14200 aiodoned aiodoned 56802 266706 0 0 3 0x14200 syncer update 67465 312847 0 0 3 0x14200 cleaner cleaner 99375 206965 0 0 3 0x14200 reaper reaper 72857 327564 0 0 3 0x14200 pgdaemon pagedaemon 34137 943 0 0 3 0x14200 bored crynlk 85572 108150 0 0 3 0x14200 bored crypto 10557 498247 0 0 3 0x40014200 acpi0 acpi0 34539 305504 0 0 3 0x40014200 idle1 25479 215210 0 0 3 0x14200 bored softnet 82479 237492 0 0 3 0x14200 bored systqmp 79770 422038 0 0 3 0x14200 bored systq 98674 251586 0 0 2 0x40014200 softclock 13617 394022 0 0 3 0x40014200 idle0 92194 266946 0 0 3 0x14200 bored smr 1 44176 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 55974 (syz-executor.1) thread 0xffff800020ab0ee8 (295330) exclusive rwlock netlock r = 0 (0xffffffff8250cdb8) #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 (0xffffffff82624c28) #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 9573 6497K 7138K 78643K 13857 0 0 pcb 13 9K 9K 78643K 260 0 0 rtable 123 13K 14K 78643K 928 0 0 ifaddr 85 17K 18K 78643K 264 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1505 0 0 iov 0 0K 28K 78643K 261 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1214 76K 77K 78643K 2432 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 16 0 0 VM map 6 3K 3K 78643K 8 0 0 sem 12 0K 1K 78643K 507 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1112 0 0 sigio 0 0K 0K 78643K 21 0 0 proc 61 63K 95K 78643K 940 0 0 subproc 32 2K 2K 78643K 187 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 80 0 0 in_multi 32 2K 2K 78643K 175 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 1 0K 0K 78643K 15 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 432 0 0 pfkey data 0 0K 0K 78643K 2 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 120 55K 64K 78643K 4859 0 0 UVM aobj 130 4K 4K 78643K 132 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 230 0 0 NDP 19 0K 0K 78643K 78 0 0 temp 201 3560K 3640K 78643K 38850 0 0 kqueue 0 0K 0K 78643K 16 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 27 0 21 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 92 0 90 1 0 1 1 0 8 0 rtentry 112 178 0 131 2 0 2 2 0 8 0 unpcb 120 663 0 651 1 0 1 1 0 8 0 syncache 264 8 0 8 3 2 1 1 0 8 1 tcpqe 32 62 0 62 1 1 0 1 0 8 0 tcpcb 544 418 0 413 5 4 1 2 0 8 0 inpcb 280 2390 0 2382 11 8 3 4 0 8 2 rttmr 72 5 0 5 3 3 0 1 0 8 0 nd6 48 26 0 23 2 1 1 1 0 8 0 pkpcb 40 3 0 3 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 25 0 25 4 3 1 1 0 8 1 pffrag 232 609 0 609 1 0 1 1 0 482 1 pffrnode 88 609 0 609 1 0 1 1 0 8 1 pffrent 40 1693 0 1693 1 0 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 101 0 49 1 0 1 1 0 8 0 pfstkey 112 101 0 49 2 0 2 2 0 8 0 pfstate 328 101 0 49 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 1 3 1 2 3 0 8 0 art_heap4 256 743 0 521 21 5 16 16 0 8 1 art_table 32 746 0 522 3 1 2 3 0 8 0 art_node 16 171 0 129 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 505 0 495 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3094 0 1687 46 0 46 46 0 8 0 ffsino 272 3094 0 1687 95 0 95 95 0 8 0 nchpl 144 4994 0 4565 61 11 50 61 0 8 30 uvmvnodes 72 4056 0 0 74 0 74 74 0 8 0 vnodes 208 4056 0 0 214 0 214 214 0 8 0 namei 1024 16716 0 16716 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 2 1 0 1 1 0 8 0 scxspl 192 15927 0 15927 15 13 2 7 0 8 2 plimitpl 152 110 0 102 1 0 1 1 0 8 0 sigapl 432 1284 0 1268 3 1 2 3 0 8 0 futexpl 56 26505 0 26505 1 0 1 1 0 8 1 knotepl 112 335 0 316 3 2 1 2 0 8 0 kqueuepl 104 296 0 294 1 0 1 1 0 8 0 pipepl 112 732 0 713 2 1 1 2 0 8 0 fdescpl 488 1285 0 1268 3 0 3 3 0 8 0 filepl 152 11007 0 10905 16 10 6 8 0 8 2 lockfpl 104 431 0 430 1 0 1 1 0 8 0 lockfspl 48 157 0 156 1 0 1 1 0 8 0 sessionpl 112 28 0 17 1 0 1 1 0 8 0 pgrppl 48 28 0 17 1 0 1 1 0 8 0 ucredpl 96 1408 0 1399 1 0 1 1 0 8 0 zombiepl 144 1268 0 1268 1 0 1 1 0 8 1 processpl 896 1302 0 1268 4 0 4 4 0 8 0 procpl 632 3627 0 3583 5 0 5 5 0 8 0 srpgc 64 24 0 24 6 6 0 1 0 8 0 sosppl 128 47 0 47 6 5 1 1 0 8 1 sockpl 384 3193 0 3171 18 12 6 8 0 8 3 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 13 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 175 0 0 21 0 21 21 0 8 0 mtagpl 80 22 0 0 1 0 1 1 0 8 0 mbufpl 256 407 0 0 22 0 22 22 0 8 0 bufpl 256 9807 0 2749 442 0 442 442 0 8 0 anonpl 16 172709 0 152769 118 23 95 98 0 124 10 amapchunkpl 152 9175 0 9017 21 11 10 14 0 158 2 amappl16 192 6394 0 5260 85 20 65 69 0 8 8 amappl15 184 336 0 335 1 0 1 1 0 8 0 amappl14 176 458 0 452 1 0 1 1 0 8 0 amappl13 168 66 0 64 2 1 1 1 0 8 0 amappl12 160 136 0 133 1 0 1 1 0 8 0 amappl11 152 90 0 75 1 0 1 1 0 8 0 amappl10 144 76 0 69 1 0 1 1 0 8 0 amappl9 136 746 0 743 1 0 1 1 0 8 0 amappl8 128 317 0 279 2 0 2 2 0 8 0 amappl7 120 150 0 139 1 0 1 1 0 8 0 amappl6 112 66 0 57 1 0 1 1 0 8 0 amappl5 104 402 0 387 1 0 1 1 0 8 0 amappl4 96 1391 0 1357 1 0 1 1 0 8 0 amappl3 88 618 0 612 1 0 1 1 0 8 0 amappl2 80 9292 0 9219 3 1 2 3 0 8 0 amappl1 72 39144 0 38696 25 15 10 20 0 8 0 amappl 80 4044 0 3994 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 1291 0 1268 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1291 0 1268 1 0 1 1 0 8 0 vmmpekpl 168 14697 0 14655 3 0 3 3 0 8 0 vmmpepl 168 174346 0 171970 186 42 144 146 0 357 37 vmsppl 368 1284 0 1268 2 0 2 2 0 8 0 pdppl 4096 2589 0 2544 6 0 6 6 0 8 0 pvpl 32 485827 0 462527 272 47 225 226 0 265 27 pmappl 232 1290 0 1270 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 636 0 13 18 0 18 18 0 8 0