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 29300 62508 0 0 0 0 syz-executor.1 *255101 62508 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,ffff800021b9b808,83,ffff800021b9b8a8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021b9b918,fffffd806f6d2080,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d2080,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d2080,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b9b9f0,fffffd8060bf9520,fffffd806f6d2000) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d2000,fffffd8060bf9500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8078def950,4,0,fffffd8060bf9500,0,ffff800020ab0780) at udp_usrreq+0x560 sys_connect(ffff800020ab0780,ffff800021b9bb78,ffff800021b9bbc0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b9bc40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b9bc40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,5dff4202010) at Xsyscall+0x128 end of kernel end trace frame: 0x5e1f86650e0, 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,ffff800021b9b808,83,ffff800021b9b8a8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021b9b918,fffffd806f6d2080,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d2080,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d2080,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b9b9f0,fffffd8060bf9520,fffffd806f6d2000) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d2000,fffffd8060bf9500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8078def950,4,0,fffffd8060bf9500,0,ffff800020ab0780) at udp_usrreq+0x560 sys_connect(ffff800020ab0780,ffff800021b9bb78,ffff800021b9bbc0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b9bc40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b9bc40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,5dff4202010) at Xsyscall+0x128 end of kernel end trace frame: 0x5e1f86650e0, count: -12 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x43cf __ALIGN_SIZE+0x33cf rbp 0xffff800021b9b620 rbx 0xffff800021b9b6d0 rdx 0x43d0 __ALIGN_SIZE+0x33d0 rcx 0xffff800022964000 rax 0xffff800022964000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x8067a22221e649e9 r12 0x3000000008 r13 0xffff800021b9b630 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b9b610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=255101 stat=onproc flags process=0 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffffffff8265b7c8 process=0xffff800020adc000 user=0xffff800021b96000, vmspace=0xfffffd807f00a2e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62508 29300 49552 0 7 0 syz-executor.1 *62508 255101 49552 0 7 0x4000000 syz-executor.1 49552 261317 60700 0 3 0x82 nanosleep syz-executor.1 57929 378774 60700 0 3 0x82 nanosleep syz-executor.0 46942 331201 1 0 3 0x100083 ttyin getty 74155 128949 0 0 3 0x14200 acct acct 70736 143084 0 0 3 0x14200 bored sosplice 60700 254410 1856 0 3 0x82 thrsleep syz-fuzzer 60700 449049 1856 0 3 0x4000082 nanosleep syz-fuzzer 60700 495843 1856 0 3 0x4000082 thrsleep syz-fuzzer 60700 518154 1856 0 3 0x4000082 thrsleep syz-fuzzer 60700 462793 1856 0 3 0x4000082 thrsleep syz-fuzzer 60700 335063 1856 0 3 0x4000082 thrsleep syz-fuzzer 60700 28183 1856 0 3 0x4000082 thrsleep syz-fuzzer 60700 299886 1856 0 3 0x4000082 thrsleep syz-fuzzer 60700 203373 1856 0 3 0x4000082 kqread syz-fuzzer 60700 312629 1856 0 3 0x4000082 thrsleep syz-fuzzer 1856 494386 71866 0 3 0x10008a pause ksh 71866 151895 300 0 3 0x92 select sshd 300 291848 1 0 3 0x80 select sshd 43304 51776 69970 74 3 0x100092 bpf pflogd 69970 210567 1 0 3 0x80 netio pflogd 68903 517933 53749 73 3 0x100090 kqread syslogd 53749 88726 1 0 3 0x100082 netio syslogd 63201 483165 1 77 3 0x100090 poll dhclient 6222 97709 1 0 3 0x80 poll dhclient 84614 515016 0 0 3 0x14200 pgzero zerothread 90314 193957 0 0 3 0x14200 aiodoned aiodoned 53682 236660 0 0 3 0x14200 syncer update 41124 486812 0 0 3 0x14200 cleaner cleaner 36671 257686 0 0 3 0x14200 reaper reaper 99398 33150 0 0 3 0x14200 pgdaemon pagedaemon 88305 432059 0 0 3 0x14200 bored crynlk 98940 487780 0 0 3 0x14200 bored crypto 14287 417348 0 0 3 0x40014200 acpi0 acpi0 96257 39943 0 0 3 0x40014200 idle1 95548 446759 0 0 3 0x14200 bored softnet 40993 370945 0 0 3 0x14200 bored systqmp 22101 448846 0 0 3 0x14200 bored systq 62931 410517 0 0 3 0x40014200 bored softclock 30266 8518 0 0 3 0x40014200 idle0 53380 92625 0 0 3 0x14200 bored smr 1 124969 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 62508 (syz-executor.1) thread 0xffff800020ab0780 (255101) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #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 (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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9629 6643K 7838K 78643K 26496 0 0 pcb 13 8K 9K 78643K 716 0 0 rtable 149 15K 16K 78643K 1647 0 0 ifaddr 108 23K 23K 78643K 567 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1691 0 0 iov 0 0K 28K 78643K 628 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1237 78K 78K 78643K 5887 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 55 0 0 VM map 16 8K 8K 78643K 23 0 0 sem 12 1K 1K 78643K 129 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 3117 0 0 sigio 0 0K 0K 78643K 42 0 0 proc 61 63K 95K 78643K 1108 0 0 subproc 32 2K 2K 78643K 172 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 226 0 0 in_multi 30 2K 2K 78643K 277 0 0 ether_multi 1 0K 0K 78643K 40 0 0 mrt 0 0K 0K 78643K 17 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 694 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 153 105K 114K 78643K 11769 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 0K 78643K 696 0 0 NDP 24 0K 1K 78643K 163 0 0 temp 258 3561K 3641K 78643K 92982 0 0 kqueue 0 0K 0K 78643K 26 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 40 0 33 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 235 0 233 1 0 1 1 0 8 0 rtentry 112 265 0 207 2 0 2 2 0 8 0 unpcb 120 1767 0 1752 3 2 1 2 0 8 0 syncache 264 18 0 18 8 8 0 1 0 8 0 tcpqe 32 95 0 95 5 5 0 1 0 8 0 tcpcb 544 1359 0 1355 6 5 1 2 0 8 0 inpcb 280 4564 0 4555 13 11 2 3 0 8 1 rttmr 72 5 0 5 3 3 0 1 0 8 0 nd6 48 53 0 51 3 2 1 1 0 8 0 pkpcb 40 11 0 11 5 5 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 79 0 78 11 10 1 1 0 8 0 pffrag 232 79 0 79 11 11 0 1 0 482 0 pffrnode 88 79 0 79 11 11 0 1 0 8 0 pffrent 40 2434 0 2434 11 11 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 391 0 324 2 0 2 2 0 8 0 pfstkey 112 391 0 324 5 0 5 5 0 8 0 pfstate 328 391 0 324 16 3 13 15 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 1370 0 1141 39 23 16 33 0 8 0 art_table 32 1374 0 1141 5 1 4 5 0 8 0 art_node 16 258 0 213 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 5 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 125 0 115 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 6847 0 5415 47 0 47 47 0 8 0 ffsino 272 6847 0 5415 96 0 96 96 0 8 0 nchpl 144 12129 0 10497 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 42811 0 42811 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 14 0 0 2 0 2 2 0 8 0 vmpool 552 21 0 7 3 1 2 2 0 8 1 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 39682 0 39682 27 25 2 7 0 8 2 plimitpl 152 224 0 216 1 0 1 1 0 8 0 sigapl 432 3292 0 3277 3 1 2 3 0 8 0 futexpl 56 72531 0 72531 1 0 1 1 0 8 1 knotepl 112 649 0 630 4 3 1 3 0 8 0 kqueuepl 104 918 0 916 1 0 1 1 0 8 0 pipepl 112 2248 0 2229 4 3 1 2 0 8 0 fdescpl 488 3293 0 3277 3 0 3 3 0 8 0 filepl 152 29640 0 29537 17 11 6 6 0 8 1 lockfpl 104 1299 0 1298 1 0 1 1 0 8 0 lockfspl 48 438 0 437 1 0 1 1 0 8 0 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 72 0 61 1 0 1 1 0 8 0 ucredpl 96 3233 0 3224 1 0 1 1 0 8 0 zombiepl 144 3277 0 3276 2 1 1 1 0 8 0 processpl 896 3310 0 3276 4 0 4 4 0 8 0 procpl 632 10432 0 10388 6 1 5 5 0 8 1 srpgc 64 18 0 18 8 8 0 1 0 8 0 sosppl 128 75 0 75 11 11 0 1 0 8 0 sockpl 384 6619 0 6593 22 18 4 6 0 8 0 mcl64k 65536 526 0 0 66 15 51 66 0 8 1 mcl16k 16384 11 0 0 2 0 2 2 0 8 0 mcl12k 12288 20 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 23 0 0 3 1 2 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 4 16 20 0 8 0 mtagpl 80 422 0 0 7 0 7 7 0 8 0 mbufpl 256 987 0 0 56 0 56 56 0 8 0 bufpl 256 17259 0 10201 442 0 442 442 0 8 0 anonpl 16 376528 0 355792 192 100 92 101 0 124 3 amapchunkpl 152 23064 0 22912 61 50 11 14 0 158 4 amappl16 192 18586 0 17393 171 109 62 72 0 8 0 amappl15 184 949 0 948 1 0 1 1 0 8 0 amappl14 176 775 0 768 1 0 1 1 0 8 0 amappl13 168 411 0 411 2 2 0 1 0 8 0 amappl12 160 529 0 524 1 0 1 1 0 8 0 amappl11 152 420 0 404 1 0 1 1 0 8 0 amappl10 144 29 0 20 1 0 1 1 0 8 0 amappl9 136 789 0 786 1 0 1 1 0 8 0 amappl8 128 400 0 347 2 0 2 2 0 8 0 amappl7 120 101 0 92 1 0 1 1 0 8 0 amappl6 112 405 0 390 1 0 1 1 0 8 0 amappl5 104 742 0 728 1 0 1 1 0 8 0 amappl4 96 3615 0 3578 1 0 1 1 0 8 0 amappl3 88 317 0 311 1 0 1 1 0 8 0 amappl2 80 26479 0 26408 3 1 2 3 0 8 0 amappl1 72 80713 0 80275 25 15 10 20 0 8 0 amappl 80 10872 0 10822 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 3314 0 3277 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3314 0 3277 1 0 1 1 0 8 0 vmmpekpl 168 32154 0 32119 2 0 2 2 0 8 0 vmmpepl 168 416901 0 414472 319 175 144 153 0 357 30 vmsppl 368 3292 0 3277 2 0 2 2 0 8 0 pdppl 4096 6635 0 6582 11 3 8 8 0 8 1 pvpl 32 1007534 0 984037 352 137 215 237 0 265 19 pmappl 232 3313 0 3284 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 759 0 55 21 0 21 21 0 8 0