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 231241 81129 0 0 0 0 syz-executor.1 *373416 81129 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(ffffffff822092b2,ffffffff821d5feb,350,ffffffff821ade45) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022d75648,83,ffff800022d756e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022d75758,fffffd806f6d0b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d0b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d0b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022d75830,fffffd807180da20,fffffd806f6d0af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d0af0,fffffd807180da00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80647c1918,4,0,fffffd807180da00,0,ffff800020b5c788) at udp_usrreq+0x560 sys_connect(ffff800020b5c788,ffff800022d759b8,ffff800022d75a00) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022d75a80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d75a80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,55d9ad22010) at Xsyscall+0x128 end of kernel end trace frame: 0x5603b0d5e80, 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(ffffffff822092b2,ffffffff821d5feb,350,ffffffff821ade45) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022d75648,83,ffff800022d756e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022d75758,fffffd806f6d0b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d0b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d0b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022d75830,fffffd807180da20,fffffd806f6d0af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d0af0,fffffd807180da00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80647c1918,4,0,fffffd807180da00,0,ffff800020b5c788) at udp_usrreq+0x560 sys_connect(ffff800020b5c788,ffff800022d759b8,ffff800022d75a00) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022d75a80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d75a80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,55d9ad22010) at Xsyscall+0x128 end of kernel end trace frame: 0x5603b0d5e80, count: -12 ddb{1}> show registers rdi 0xffffffff815a92f7 db_enter+0x17 rsi 0x398b __ALIGN_SIZE+0x298b rbp 0xffff800022d75460 rbx 0xffff800022d75510 rdx 0x398c __ALIGN_SIZE+0x298c rcx 0xffff800020f5e000 rax 0xffff800020f5e000 r8 0xffffffff821269af kprintf+0x16f r9 0x1 r10 0x25 r11 0xd0ba8f3717077ccc r12 0x3000000008 r13 0xffff800022d75470 r14 0x100 r15 0x1 rip 0xffffffff815a92f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d75450 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=373416 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020b5d8d0,0xffff800020b5d668 process=0xffff800020adc700 user=0xffff800022d70000, vmspace=0xfffffd807f00a000 estcpu=32, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 98456 59211 74498 0 2 0 syz-executor.0 81129 231241 63053 0 7 0 syz-executor.1 *81129 373416 63053 0 7 0x4000000 syz-executor.1 63053 329033 9024 0 3 0x82 nanosleep syz-executor.1 74498 443395 9024 0 3 0x82 nanosleep syz-executor.0 54441 401803 0 0 3 0x14200 acct acct 99405 514762 1 0 3 0x100083 ttyin getty 32240 459559 0 0 3 0x14200 bored sosplice 9024 494157 83955 0 3 0x82 thrsleep syz-fuzzer 9024 498558 83955 0 3 0x4000082 nanosleep syz-fuzzer 9024 524237 83955 0 3 0x4000082 kqread syz-fuzzer 9024 312389 83955 0 3 0x4000082 thrsleep syz-fuzzer 9024 397379 83955 0 3 0x4000082 thrsleep syz-fuzzer 9024 83446 83955 0 3 0x4000082 thrsleep syz-fuzzer 9024 88280 83955 0 3 0x4000082 thrsleep syz-fuzzer 9024 324525 83955 0 3 0x4000082 thrsleep syz-fuzzer 9024 393919 83955 0 3 0x4000082 thrsleep syz-fuzzer 9024 248980 83955 0 3 0x4000082 nanosleep syz-fuzzer 83955 508453 97973 0 3 0x10008a pause ksh 97973 376797 97287 0 3 0x92 select sshd 97287 332204 1 0 3 0x80 select sshd 81658 95299 93382 74 3 0x100092 bpf pflogd 93382 497173 1 0 3 0x80 netio pflogd 74484 82846 36527 73 3 0x100090 kqread syslogd 36527 221844 1 0 3 0x100082 netio syslogd 22523 256323 1 77 3 0x100090 poll dhclient 19767 315350 1 0 3 0x80 poll dhclient 89265 208731 0 0 2 0x14200 zerothread 33556 490853 0 0 3 0x14200 aiodoned aiodoned 32536 181061 0 0 3 0x14200 syncer update 84607 219361 0 0 3 0x14200 cleaner cleaner 25187 146568 0 0 3 0x14200 reaper reaper 32746 400111 0 0 3 0x14200 pgdaemon pagedaemon 3356 514360 0 0 3 0x14200 bored crynlk 56631 392969 0 0 3 0x14200 bored crypto 35632 451111 0 0 3 0x40014200 acpi0 acpi0 82011 279110 0 0 3 0x40014200 idle1 7566 450873 0 0 3 0x14200 bored softnet 62692 195886 0 0 3 0x14200 bored systqmp 9390 508364 0 0 3 0x14200 bored systq 98563 146515 0 0 3 0x40014200 bored softclock 61785 197669 0 0 3 0x40014200 idle0 55612 334289 0 0 3 0x14200 bored smr 1 336098 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 81129 (syz-executor.1) thread 0xffff800020b5c788 (373416) exclusive rwlock netlock r = 0 (0xffffffff824895c8) #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 (0xffffffff82663580) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9617 6469K 15690K 78643K 36480 0 0 pcb 13 12K 14K 78643K 2386 0 0 rtable 158 17K 18K 78643K 6138 0 0 ifaddr 112 29K 32K 78643K 1792 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2183 0 0 iov 0 0K 28K 78643K 2482 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 11748 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 132 0 0 VM map 96 48K 48K 78643K 139 0 0 sem 12 0K 1K 78643K 2505 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 10695 0 0 sigio 0 0K 0K 78643K 761 0 0 proc 61 63K 95K 78643K 4510 0 0 subproc 32 2K 2K 78643K 1279 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 1130 0 0 in_multi 33 2K 3K 78643K 1498 0 0 ether_multi 1 0K 0K 78643K 122 0 0 mrt 8 0K 0K 78643K 73 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 2581 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 301 754K 756K 78643K 39145 0 0 UVM aobj 130 9K 9K 78643K 133 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 2356 0 0 NDP 22 0K 1K 78643K 586 0 0 temp 242 3565K 4205K 78643K 388396 0 0 kqueue 0 0K 0K 78643K 128 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 158 0 153 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1142 0 1140 1 0 1 1 0 8 0 rtentry 112 1139 0 1078 6 3 3 3 0 8 0 unpcb 120 6414 0 6393 16 15 1 2 0 8 0 syncache 264 65 0 65 29 29 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 18 0 18 13 13 0 1 0 8 0 tcpcb 544 5278 0 5273 59 58 1 11 0 8 0 inpcb 280 24871 0 24862 70 67 3 13 0 8 2 rttmr 72 22 0 22 4 3 1 1 0 8 1 ip6q 72 17 0 17 9 9 0 1 0 8 0 ip6af 40 41 0 41 9 9 0 1 0 8 0 nd6 48 201 0 201 6 5 1 1 0 8 1 pkpcb 40 37 0 37 15 15 0 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 260 0 260 30 29 1 1 0 8 1 pffrag 232 295 0 295 28 27 1 1 0 482 1 pffrnode 88 295 0 295 28 27 1 1 0 8 1 pffrent 40 7644 0 7644 27 26 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 1009 0 932 1 0 1 1 0 8 0 pfstkey 112 1011 0 934 3 0 3 3 0 8 0 pfstate 328 1011 0 934 16 8 8 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 17 0 11 14 8 6 7 0 8 0 art_heap4 256 5266 0 5052 59 40 19 22 0 8 2 art_table 32 5283 0 5063 3 0 3 3 0 8 0 art_node 16 1134 0 1091 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 5 1 0 1 1 0 8 0 semapl 112 2501 0 2491 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18385 0 16915 49 1 48 48 0 8 0 ffsino 272 18385 0 16915 100 1 99 99 0 8 0 nchpl 144 36049 0 35586 61 41 20 61 0 8 0 uvmvnodes 72 7830 0 0 143 0 143 143 0 8 0 vnodes 208 7830 0 0 413 0 413 413 0 8 0 namei 1024 166872 0 166872 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 95 0 1 12 0 12 12 0 8 0 vmpool 552 137 0 43 7 0 7 7 0 8 0 scsiplug 64 12 0 12 9 9 0 1 0 8 0 scxspl 192 110280 0 110280 73 70 3 7 0 8 3 plimitpl 152 841 0 833 1 0 1 1 0 8 0 sigapl 432 10676 0 10660 4 2 2 3 0 8 0 futexpl 56 279322 0 279322 1 0 1 1 0 8 1 knotepl 112 2793 0 2774 16 15 1 3 0 8 0 kqueuepl 104 3798 0 3794 6 5 1 4 0 8 0 pipepl 112 8322 0 8303 23 22 1 2 0 8 0 fdescpl 488 10677 0 10660 3 0 3 3 0 8 0 filepl 152 132311 0 132208 74 68 6 14 0 8 2 lockfpl 104 4222 0 4221 1 0 1 1 0 8 0 lockfspl 48 1456 0 1455 1 0 1 1 0 8 0 sessionpl 112 93 0 82 1 0 1 1 0 8 0 pgrppl 48 357 0 346 1 0 1 1 0 8 0 ucredpl 96 38982 0 38971 1 0 1 1 0 8 0 zombiepl 144 10663 0 10663 4 3 1 1 0 8 1 processpl 896 10697 0 10663 5 1 4 5 0 8 0 procpl 632 34360 0 34316 6 1 5 6 0 8 0 srpgc 64 128 0 128 34 34 0 1 0 8 0 sosppl 128 341 0 341 33 32 1 1 0 8 1 sockpl 384 32692 0 32655 136 128 8 23 0 8 3 mcl64k 65536 701 0 0 79 27 52 65 0 8 0 mcl16k 16384 46 0 0 5 3 2 3 0 8 0 mcl12k 12288 49 0 0 3 1 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 41 0 0 5 2 3 3 0 8 0 mcl4k 4096 34 0 0 4 1 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 200 0 0 20 5 15 20 0 8 0 mtagpl 80 156 0 0 1 0 1 1 0 8 0 mbufpl 256 1308 0 0 40 0 40 40 0 8 0 bufpl 256 45466 0 37635 490 0 490 490 0 8 0 anonpl 16 1389183 0 1366460 344 236 108 109 0 124 10 amapchunkpl 152 83287 0 83079 143 131 12 22 0 158 1 amappl16 192 60246 0 58921 391 316 75 79 0 8 8 amappl15 184 1598 0 1598 7 7 0 1 0 8 0 amappl14 176 1860 0 1851 1 0 1 1 0 8 0 amappl13 168 879 0 878 1 0 1 1 0 8 0 amappl12 160 1381 0 1379 11 10 1 1 0 8 0 amappl11 152 1163 0 1148 1 0 1 1 0 8 0 amappl10 144 1793 0 1785 1 0 1 1 0 8 0 amappl9 136 2875 0 2871 1 0 1 1 0 8 0 amappl8 128 2588 0 2507 5 2 3 3 0 8 0 amappl7 120 2053 0 2045 1 0 1 1 0 8 0 amappl6 112 1048 0 1031 1 0 1 1 0 8 0 amappl5 104 2157 0 2141 1 0 1 1 0 8 0 amappl4 96 9954 0 9916 4 3 1 2 0 8 0 amappl3 88 2852 0 2841 1 0 1 1 0 8 0 amappl2 80 82109 0 82021 3 1 2 3 0 8 0 amappl1 72 252911 0 252467 25 15 10 20 0 8 0 amappl 80 36088 0 35988 3 0 3 3 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 10814 0 10660 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10814 0 10660 1 0 1 1 0 8 0 vmmpekpl 168 83146 0 83091 5 2 3 3 0 8 0 vmmpepl 168 1384328 0 1381489 465 318 147 175 0 357 17 vmsppl 368 10676 0 10660 2 0 2 2 0 8 0 pdppl 4096 21635 0 21500 21 4 17 18 0 8 0 pvpl 32 3435185 0 3411365 638 409 229 238 0 265 24 pmappl 232 10813 0 10703 7 0 7 7 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 910 0 156 22 0 22 22 0 8 0