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 *470649 76466 0 0 0x4000000 1K syz-executor.0 93699 92691 0 0 0 0 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(ffffffff82207348,ffffffff821d52f7,350,ffffffff821ad3cb) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021163968,3,ffff800021163a08,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021163a78,fffffd806f6cd2b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cd2b0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cd2b0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021163b50,fffffd8062335b20,fffffd806f6cd230) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cd230,fffffd8062335b00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807dfae038,4,0,fffffd8062335b00,0,ffff800020acf400) at udp_usrreq+0x560 sys_connect(ffff800020acf400,ffff800021163cd8,ffff800021163d20) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021163da0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021163da0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,4202271c010) at Xsyscall+0x128 end of kernel end trace frame: 0x422da50a150, 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(ffffffff82207348,ffffffff821d52f7,350,ffffffff821ad3cb) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021163968,3,ffff800021163a08,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021163a78,fffffd806f6cd2b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cd2b0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cd2b0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021163b50,fffffd8062335b20,fffffd806f6cd230) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cd230,fffffd8062335b00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807dfae038,4,0,fffffd8062335b00,0,ffff800020acf400) at udp_usrreq+0x560 sys_connect(ffff800020acf400,ffff800021163cd8,ffff800021163d20) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021163da0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021163da0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,4202271c010) at Xsyscall+0x128 end of kernel end trace frame: 0x422da50a150, count: -12 ddb{1}> show registers rdi 0xffffffff81d97467 db_enter+0x17 rsi 0x3989 __ALIGN_SIZE+0x2989 rbp 0xffff800021163780 rbx 0xffff800021163830 rdx 0x398a __ALIGN_SIZE+0x298a rcx 0xffff800021170000 rax 0xffff800021170000 r8 0xffffffff815fe7df kprintf+0x16f r9 0x1 r10 0x25 r11 0xe6b0c6314990ff50 r12 0x3000000008 r13 0xffff800021163790 r14 0x100 r15 0x1 rip 0xffffffff81d97468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021163770 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=470649 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace7a8,0xffff800020ace050 process=0xffff800020a8b510 user=0xffff80002115e000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 76466 338248 15715 0 2 0 syz-executor.0 *76466 470649 15715 0 7 0x4000000 syz-executor.0 92691 93699 54346 0 7 0 syz-executor.1 92691 169406 54346 0 3 0x4000080 poll syz-executor.1 92691 223312 54346 0 2 0x4000000 syz-executor.1 15715 179871 72017 0 3 0x82 nanosleep syz-executor.0 54346 487551 72017 0 3 0x82 nanosleep syz-executor.1 10916 74646 1 0 3 0x100083 ttyopn getty 95527 104259 0 0 3 0x14200 acct acct 12444 44372 0 0 3 0x14200 bored sosplice 72017 271610 69783 0 3 0x82 thrsleep syz-fuzzer 72017 437497 69783 0 3 0x4000082 thrsleep syz-fuzzer 72017 42796 69783 0 3 0x4000082 thrsleep syz-fuzzer 72017 124029 69783 0 3 0x4000082 thrsleep syz-fuzzer 72017 372522 69783 0 3 0x4000082 thrsleep syz-fuzzer 72017 191494 69783 0 3 0x4000082 thrsleep syz-fuzzer 72017 349609 69783 0 3 0x4000082 thrsleep syz-fuzzer 72017 289054 69783 0 3 0x4000082 thrsleep syz-fuzzer 72017 320909 69783 0 3 0x4000082 thrsleep syz-fuzzer 72017 444275 69783 0 3 0x4000082 kqread syz-fuzzer 69783 363722 47089 0 3 0x10008a pause ksh 47089 373003 23412 0 3 0x92 select sshd 23412 68061 1 0 3 0x80 select sshd 71019 200596 95084 74 3 0x100092 bpf pflogd 95084 358391 1 0 3 0x80 netio pflogd 60538 386854 12031 73 3 0x100090 kqread syslogd 12031 314525 1 0 3 0x100082 netio syslogd 13135 244292 1 77 3 0x100090 poll dhclient 2056 431722 1 0 3 0x80 poll dhclient 94469 275350 0 0 2 0x14200 zerothread 78731 128738 0 0 3 0x14200 aiodoned aiodoned 36575 104524 0 0 3 0x14200 syncer update 73052 69355 0 0 3 0x14200 cleaner cleaner 45888 480280 0 0 3 0x14200 reaper reaper 29699 153571 0 0 3 0x14200 pgdaemon pagedaemon 82204 250887 0 0 3 0x14200 bored crynlk 87748 489381 0 0 3 0x14200 bored crypto 29061 246908 0 0 3 0x40014200 acpi0 acpi0 30431 500484 0 0 3 0x40014200 idle1 71856 425473 0 0 3 0x14200 bored softnet 1895 152526 0 0 3 0x14200 bored systqmp 47548 190705 0 0 3 0x14200 bored systq 48490 251897 0 0 3 0x40014200 bored softclock 51605 435092 0 0 3 0x40014200 idle0 69803 38591 0 0 3 0x14200 bored smr 1 391078 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 76466 (syz-executor.0) thread 0xffff800020acf400 (470649) exclusive rwlock netlock r = 0 (0xffffffff824ef928) #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 (0xffffffff82670948) #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 9614 6465K 10951K 78643K 46515 0 0 pcb 14 12K 14K 78643K 1026 0 0 rtable 122 14K 14K 78643K 3009 0 0 ifaddr 101 22K 23K 78643K 995 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1728 0 0 iov 0 0K 28K 78643K 3981 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1293 81K 82K 78643K 10809 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 59 0 0 VM map 42 21K 21K 78643K 60 0 0 sem 12 1K 1K 78643K 366 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 4672 0 0 sigio 0 0K 0K 78643K 67 0 0 proc 61 63K 95K 78643K 2238 0 0 subproc 32 2K 2K 78643K 575 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 431 0 0 in_multi 34 2K 2K 78643K 580 0 0 ether_multi 1 0K 0K 78643K 55 0 0 mrt 0 0K 0K 78643K 26 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 1032 0 0 pfkey data 0 0K 4K 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 204 314K 316K 78643K 17507 0 0 UVM aobj 130 8K 8K 78643K 135 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 2 0K 2K 78643K 1089 0 0 NDP 23 0K 1K 78643K 305 0 0 temp 252 3565K 4204K 78643K 158322 0 0 kqueue 0 0K 0K 78643K 25 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 78 0 72 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 432 0 430 1 0 1 1 0 8 0 rtentry 112 480 0 435 2 0 2 2 0 8 0 unpcb 120 4629 0 4611 16 14 2 2 0 8 1 syncache 264 24 0 24 13 13 0 1 0 8 0 tcpqe 32 62 0 62 4 4 0 1 0 8 0 tcpcb 544 2103 0 2099 20 19 1 12 0 8 0 inpcb 280 6515 0 6504 35 32 3 13 0 8 2 rttmr 72 6 0 6 6 6 0 1 0 8 0 ip6q 72 3 0 3 3 3 0 1 0 8 0 ip6af 40 7 0 7 3 3 0 1 0 8 0 nd6 48 81 0 79 4 3 1 1 0 8 0 pkpcb 40 42 0 42 10 10 0 1 0 8 0 ppxss 1128 126 0 126 15 14 1 1 0 8 1 pffrag 232 105 0 105 18 17 1 1 0 482 1 pffrnode 88 105 0 105 18 17 1 1 0 8 1 pffrent 40 3433 0 3433 18 17 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 366 0 311 1 0 1 1 0 8 0 pfstkey 112 366 0 311 3 0 3 3 0 8 0 pfstate 328 366 0 310 9 3 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 11 0 7 7 3 4 6 0 8 0 art_heap4 256 2213 0 2004 35 20 15 18 0 8 1 art_table 32 2224 0 2011 7 5 2 3 0 8 0 art_node 16 477 0 435 1 0 1 1 0 8 0 sysvmsgpl 40 185 0 150 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 362 0 352 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8362 0 6935 47 0 47 47 0 8 0 ffsino 272 8362 0 6935 96 0 96 96 0 8 0 nchpl 144 16994 0 16563 60 41 19 60 0 8 0 uvmvnodes 72 5986 0 0 109 0 109 109 0 8 0 vnodes 208 5986 0 0 316 0 316 316 0 8 0 namei 1024 62429 0 62429 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 40 0 0 5 0 5 5 0 8 0 vmpool 552 58 0 18 5 2 3 3 0 8 0 scsiplug 64 4 0 4 3 2 1 1 0 8 1 scxspl 192 57617 0 57617 41 38 3 7 0 8 3 plimitpl 152 396 0 388 1 0 1 1 0 8 0 sigapl 432 4778 0 4762 3 1 2 3 0 8 0 futexpl 56 126182 0 126182 2 1 1 1 0 8 1 knotepl 112 1005 0 986 3 2 1 3 0 8 0 kqueuepl 104 1354 0 1352 4 3 1 4 0 8 0 pipepl 112 4914 0 4895 18 16 2 2 0 8 1 fdescpl 488 4779 0 4762 3 0 3 3 0 8 0 filepl 152 49971 0 49867 64 55 9 14 0 8 5 lockfpl 104 1864 0 1863 1 0 1 1 0 8 0 lockfspl 48 646 0 645 1 0 1 1 0 8 0 sessionpl 112 50 0 39 1 0 1 1 0 8 0 pgrppl 48 1069 0 1058 1 0 1 1 0 8 0 ucredpl 96 4935 0 4926 1 0 1 1 0 8 0 zombiepl 144 4762 0 4762 3 2 1 1 0 8 1 processpl 896 4796 0 4762 4 0 4 4 0 8 0 procpl 632 15027 0 14981 9 4 5 5 0 8 0 srpgc 64 44 0 44 17 17 0 1 0 8 0 sosppl 128 104 0 104 19 18 1 1 0 8 1 sockpl 384 11709 0 11678 67 61 6 22 0 8 2 mcl64k 65536 528 0 0 55 27 28 34 0 8 1 mcl16k 16384 26 0 0 4 1 3 3 0 8 0 mcl12k 12288 17 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 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 191 0 0 21 3 18 21 0 8 0 mtagpl 80 47 0 0 1 0 1 1 0 8 0 mbufpl 256 682 0 0 31 0 31 31 0 8 0 bufpl 256 21966 0 14908 442 0 442 442 0 8 0 anonpl 16 655560 0 633966 224 123 101 104 0 124 3 amapchunkpl 152 36329 0 36151 75 60 15 15 0 158 6 amappl16 192 28953 0 27738 235 164 71 75 0 8 8 amappl15 184 398 0 398 2 1 1 1 0 8 1 amappl14 176 993 0 988 1 0 1 1 0 8 0 amappl13 168 589 0 587 4 3 1 1 0 8 0 amappl12 160 1163 0 1160 1 0 1 1 0 8 0 amappl11 152 861 0 842 1 0 1 1 0 8 0 amappl10 144 165 0 158 1 0 1 1 0 8 0 amappl9 136 1252 0 1248 1 0 1 1 0 8 0 amappl8 128 860 0 801 3 1 2 2 0 8 0 amappl7 120 289 0 282 1 0 1 1 0 8 0 amappl6 112 792 0 778 1 0 1 1 0 8 0 amappl5 104 1605 0 1592 1 0 1 1 0 8 0 amappl4 96 4049 0 4010 1 0 1 1 0 8 0 amappl3 88 1968 0 1960 1 0 1 1 0 8 0 amappl2 80 36415 0 36328 3 1 2 3 0 8 0 amappl1 72 118618 0 118155 25 15 10 20 0 8 0 amappl 80 15893 0 15825 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 4837 0 4762 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4837 0 4762 1 0 1 1 0 8 0 vmmpekpl 168 44469 0 44422 3 0 3 3 0 8 0 vmmpepl 168 632901 0 630243 334 178 156 156 0 357 37 vmsppl 368 4778 0 4762 2 0 2 2 0 8 0 pdppl 4096 9681 0 9600 14 3 11 11 0 8 0 pvpl 32 1722997 0 1699655 444 217 227 236 0 265 27 pmappl 232 4836 0 4780 5 1 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 745 0 83 20 0 20 20 0 8 0