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 *267001 12098 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(ffffffff822068b1,ffffffff821d431e,350,ffffffff821ac2d6) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021176d68,83,ffff800021176e08,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021176e78,fffffd806f6dc940,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6dc940,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6dc940,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021176f50,fffffd80622f2f20,fffffd806f6dc8c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6dc8c0,fffffd80622f2f00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807c6a5aa0,4,0,fffffd80622f2f00,0,ffff800020b2c2a8) at udp_usrreq+0x560 sys_connect(ffff800020b2c2a8,ffff8000211770d8,ffff800021177120) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000211771a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000211771a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,71064914010) at Xsyscall+0x128 end of kernel end trace frame: 0x712e59201b0, 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(ffffffff822068b1,ffffffff821d431e,350,ffffffff821ac2d6) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021176d68,83,ffff800021176e08,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021176e78,fffffd806f6dc940,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6dc940,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6dc940,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021176f50,fffffd80622f2f20,fffffd806f6dc8c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6dc8c0,fffffd80622f2f00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807c6a5aa0,4,0,fffffd80622f2f00,0,ffff800020b2c2a8) at udp_usrreq+0x560 sys_connect(ffff800020b2c2a8,ffff8000211770d8,ffff800021177120) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000211771a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000211771a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,71064914010) at Xsyscall+0x128 end of kernel end trace frame: 0x712e59201b0, count: -12 ddb{1}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x425d __ALIGN_SIZE+0x325d rbp 0xffff800021176b80 rbx 0xffff800021176c30 rdx 0x425e __ALIGN_SIZE+0x325e rcx 0xffff800020b72000 rax 0xffff800020b72000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x38fba7de0f2ea904 r12 0x3000000008 r13 0xffff800021176b90 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021176b70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=267001 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b2cc88,0xffffffff8265a258 process=0xffff800020add180 user=0xffff800021172000, vmspace=0xfffffd807f00bcf0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12098 95668 45389 0 2 0 syz-executor.1 *12098 267001 45389 0 7 0x4000000 syz-executor.1 64433 321647 13437 0 3 0x2 biowait syz-executor.0 45389 77146 13437 0 3 0x82 nanosleep syz-executor.1 5088 216991 1 0 3 0x100083 ttyin getty 19051 231645 0 0 3 0x14200 acct acct 26083 74735 0 0 3 0x14200 bored sosplice 13437 356281 92645 0 3 0x82 kqread syz-fuzzer 13437 388003 92645 0 3 0x4000082 nanosleep syz-fuzzer 13437 429963 92645 0 3 0x4000082 thrsleep syz-fuzzer 13437 157014 92645 0 3 0x4000082 thrsleep syz-fuzzer 13437 19063 92645 0 3 0x4000082 thrsleep syz-fuzzer 13437 395967 92645 0 3 0x4000082 thrsleep syz-fuzzer 13437 434553 92645 0 3 0x4000082 thrsleep syz-fuzzer 13437 448946 92645 0 3 0x4000082 thrsleep syz-fuzzer 13437 257072 92645 0 3 0x4000082 thrsleep syz-fuzzer 13437 335011 92645 0 3 0x4000082 nanosleep syz-fuzzer 13437 393013 92645 0 3 0x4000082 thrsleep syz-fuzzer 92645 115378 24552 0 3 0x10008a pause ksh 24552 351147 5811 0 3 0x92 select sshd 5811 170070 1 0 3 0x80 select sshd 45296 426985 36654 74 3 0x100092 bpf pflogd 36654 275482 1 0 3 0x80 netio pflogd 9106 99895 95770 73 3 0x100090 kqread syslogd 95770 231487 1 0 3 0x100082 netio syslogd 80428 8377 1 77 3 0x100090 poll dhclient 87084 273950 1 0 3 0x80 poll dhclient 12424 379610 0 0 3 0x14200 pgzero zerothread 62528 40906 0 0 3 0x14200 aiodoned aiodoned 52831 240871 0 0 3 0x14200 syncer update 42850 117075 0 0 3 0x14200 cleaner cleaner 40708 431105 0 0 3 0x14200 reaper reaper 98681 765 0 0 3 0x14200 pgdaemon pagedaemon 67199 427401 0 0 3 0x14200 bored crynlk 93327 330388 0 0 3 0x14200 bored crypto 83863 95704 0 0 3 0x40014200 acpi0 acpi0 32403 10274 0 0 3 0x40014200 idle1 39849 353719 0 0 3 0x14200 bored softnet 66873 116621 0 0 3 0x14200 bored systqmp 82830 145829 0 0 3 0x14200 bored systq 24834 505490 0 0 3 0x40014200 bored softclock 73021 249671 0 0 7 0x40014200 idle0 36377 513538 0 0 3 0x14200 bored smr 1 22433 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 12098 (syz-executor.1) thread 0xffff800020b2c2a8 (267001) exclusive rwlock netlock r = 0 (0xffffffff824d1b18) #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 (0xffffffff8265b1d8) #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 64433 (syz-executor.0) thread 0xffff800020b2d8e0 (321647) exclusive rrwlock inode r = 0 (0xfffffd80691c63c8) #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 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #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 rrwlock inode r = 0 (0xfffffd80691c65e8) #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 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #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 9549 6427K 7232K 78643K 12542 0 0 pcb 13 10K 12K 78643K 335 0 0 rtable 133 13K 14K 78643K 912 0 0 ifaddr 76 16K 16K 78643K 250 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1508 0 0 iov 0 0K 28K 78643K 1692 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 2045 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 2 1K 1K 78643K 6 0 0 sem 12 1K 1K 78643K 13 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1107 0 0 sigio 0 0K 0K 78643K 20 0 0 proc 61 63K 95K 78643K 941 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 78 0 0 in_multi 36 2K 2K 78643K 187 0 0 ether_multi 1 0K 0K 78643K 10 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 426 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 119 22K 33K 78643K 5102 0 0 UVM aobj 115 5K 5K 78643K 118 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 118 0 0 NDP 16 0K 0K 78643K 79 0 0 temp 202 3560K 3651K 78643K 35134 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 30 0 23 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 124 0 122 1 0 1 1 0 8 0 rtentry 112 179 0 127 2 0 2 2 0 8 0 unpcb 120 673 0 663 2 1 1 2 0 8 0 syncache 264 7 0 7 2 2 0 1 0 8 0 tcpqe 32 166 0 166 1 1 0 1 0 8 0 tcpcb 544 844 0 839 15 12 3 12 0 8 2 inpcb 280 1984 0 1974 14 11 3 9 0 8 2 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 26 0 22 2 1 1 1 0 8 0 pkpcb 40 6 0 6 3 2 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 19 0 19 5 4 1 1 0 8 1 pffrag 232 20 0 20 6 6 0 1 0 482 0 pffrnode 88 20 0 20 6 6 0 1 0 8 0 pffrent 40 507 0 507 6 6 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 109 0 72 1 0 1 1 0 8 0 pfstkey 112 109 0 72 2 0 2 2 0 8 0 pfstate 328 109 0 72 6 1 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 757 0 513 21 5 16 16 0 8 0 art_table 32 761 0 513 2 0 2 2 0 8 0 art_node 16 176 0 128 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 35 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 116 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3276 0 1871 46 0 46 46 0 8 0 ffsino 272 3276 0 1871 94 0 94 94 0 8 0 nchpl 144 5249 0 4784 62 43 19 61 0 8 0 uvmvnodes 72 3920 0 0 72 0 72 72 0 8 0 vnodes 208 3920 0 0 207 0 207 207 0 8 0 namei 1024 18056 0 18055 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 4 0 4 2 2 0 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 14837 0 14836 15 14 1 7 0 8 0 plimitpl 152 80 0 72 1 0 1 1 0 8 0 sigapl 432 1279 0 1264 5 2 3 3 0 8 1 futexpl 56 28955 0 28955 3 2 1 1 0 8 1 knotepl 112 227 0 208 1 0 1 1 0 8 0 kqueuepl 104 520 0 517 4 3 1 4 0 8 0 pipepl 112 980 0 959 4 3 1 2 0 8 0 fdescpl 488 1280 0 1264 3 0 3 3 0 8 0 filepl 152 11296 0 11190 20 13 7 14 0 8 2 lockfpl 104 1215 0 1214 1 0 1 1 0 8 0 lockfspl 48 463 0 462 1 0 1 1 0 8 0 sessionpl 112 28 0 17 1 0 1 1 0 8 0 pgrppl 48 36 0 25 1 0 1 1 0 8 0 ucredpl 96 1115 0 1106 1 0 1 1 0 8 0 zombiepl 144 1264 0 1264 3 2 1 1 0 8 1 processpl 896 1297 0 1264 6 1 5 5 0 8 1 procpl 632 3537 0 3493 7 2 5 5 0 8 0 srpgc 64 10 0 10 5 4 1 1 0 8 1 sosppl 128 43 0 43 6 5 1 1 0 8 1 sockpl 384 2821 0 2799 26 19 7 14 0 8 4 mcl64k 65536 257 0 0 33 4 29 33 0 8 1 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 16 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 195 0 0 24 0 24 24 0 8 0 mtagpl 80 22 0 0 1 0 1 1 0 8 0 mbufpl 256 386 0 0 23 0 23 23 0 8 0 bufpl 256 8829 0 1771 442 0 442 442 0 8 0 anonpl 16 159712 0 142436 114 22 92 99 0 124 8 amapchunkpl 152 9248 0 9109 23 12 11 14 0 158 4 amappl16 192 6405 0 5286 85 25 60 69 0 8 3 amappl15 184 385 0 385 3 3 0 1 0 8 0 amappl14 176 286 0 281 1 0 1 1 0 8 0 amappl13 168 157 0 156 1 0 1 1 0 8 0 amappl12 160 58 0 54 1 0 1 1 0 8 0 amappl11 152 133 0 118 1 0 1 1 0 8 0 amappl10 144 22 0 16 1 0 1 1 0 8 0 amappl9 136 824 0 820 1 0 1 1 0 8 0 amappl8 128 447 0 410 2 0 2 2 0 8 0 amappl7 120 83 0 73 1 0 1 1 0 8 0 amappl6 112 116 0 106 1 0 1 1 0 8 0 amappl5 104 330 0 314 1 0 1 1 0 8 0 amappl4 96 1534 0 1500 1 0 1 1 0 8 0 amappl3 88 336 0 331 1 0 1 1 0 8 0 amappl2 80 8978 0 8904 3 1 2 3 0 8 0 amappl1 72 38705 0 38250 28 17 11 21 0 8 1 amappl 80 3969 0 3923 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 117 0 3 2 0 2 2 0 8 0 uaddrrnd 24 1284 0 1264 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1284 0 1264 1 0 1 1 0 8 0 vmmpekpl 168 14960 0 14925 3 0 3 3 0 8 0 vmmpepl 168 170911 0 168621 183 40 143 145 0 357 38 vmsppl 368 1279 0 1264 2 0 2 2 0 8 0 pdppl 4096 2575 0 2536 7 1 6 6 0 8 0 pvpl 32 445552 0 425021 250 29 221 228 0 265 26 pmappl 232 1283 0 1268 6 4 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 681 0 27 19 0 19 19 0 8 0