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 456874 32824 0 0 0 0 syz-executor.1 *522639 32824 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(ffffffff8220646c,ffffffff821d017a,350,ffffffff821a7f78) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022d731e8,83,ffff800022d73288,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022d732f8,fffffd806f6d4c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4c88,fffffd806771cef4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4c88,fffffd806771cef4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806771ce00,0,fffffd806f6d4c78,20,0,fffffd806f6d4c08) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd807d7b4700,fffffd806f6d5600,ffff800022d73508,ffff800022b56000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd806f6d5600,9,fffffd807d7b4700,0,0,ffff800020ab0ee8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd806f6d5600,0,ffff800022d73728,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0ee8,3,ffff800022d73728,0,ffff800022d73810) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab0ee8,ffff800022d737c8,ffff800022d73810) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800022d73890) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d73890) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,1d98d4e0010) at Xsyscall+0x128 end of kernel end trace frame: 0x1dc299c9cb0, count: 1 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(ffffffff8220646c,ffffffff821d017a,350,ffffffff821a7f78) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022d731e8,83,ffff800022d73288,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022d732f8,fffffd806f6d4c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4c88,fffffd806771cef4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4c88,fffffd806771cef4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd806771ce00,0,fffffd806f6d4c78,20,0,fffffd806f6d4c08) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd807d7b4700,fffffd806f6d5600,ffff800022d73508,ffff800022b56000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd806f6d5600,9,fffffd807d7b4700,0,0,ffff800020ab0ee8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd806f6d5600,0,ffff800022d73728,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0ee8,3,ffff800022d73728,0,ffff800022d73810) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020ab0ee8,ffff800022d737c8,ffff800022d73810) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800022d73890) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d73890) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,1d98d4e0010) at Xsyscall+0x128 end of kernel end trace frame: 0x1dc299c9cb0, count: -14 ddb{1}> show registers rdi 0xffffffff819f8947 db_enter+0x17 rsi 0x4214 __ALIGN_SIZE+0x3214 rbp 0xffff800022d73000 rbx 0xffff800022d730b0 rdx 0x4215 __ALIGN_SIZE+0x3215 rcx 0xffff800022b56000 rax 0xffff800022b56000 r8 0xffffffff81b887df kprintf+0x16f r9 0x1 r10 0x25 r11 0x7552381fd0523914 r12 0x3000000008 r13 0xffff800022d73010 r14 0x100 r15 0x1 rip 0xffffffff819f8948 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d72ff0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=522639 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0018,0xffffffff826269b8 process=0xffff800020adca80 user=0xffff800022d6e000, vmspace=0xfffffd807f007730 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32824 456874 81101 0 7 0 syz-executor.1 *32824 522639 81101 0 7 0x4000000 syz-executor.1 2899 15597 30146 0 3 0x2 biowait syz-executor.0 81101 377841 30146 0 3 0x82 nanosleep syz-executor.1 25798 171042 1 0 3 0x100083 ttyopn getty 15698 347569 0 0 3 0x14200 bored sosplice 81526 472882 0 0 3 0x14200 acct acct 30146 215884 99038 0 3 0x82 thrsleep syz-fuzzer 30146 274375 99038 0 3 0x4000082 nanosleep syz-fuzzer 30146 249483 99038 0 3 0x4000082 thrsleep syz-fuzzer 30146 180531 99038 0 3 0x4000082 thrsleep syz-fuzzer 30146 192650 99038 0 3 0x4000082 nanosleep syz-fuzzer 30146 277734 99038 0 3 0x4000082 thrsleep syz-fuzzer 30146 55957 99038 0 3 0x4000082 thrsleep syz-fuzzer 30146 50012 99038 0 3 0x4000082 thrsleep syz-fuzzer 30146 510433 99038 0 3 0x4000082 thrsleep syz-fuzzer 30146 8350 99038 0 3 0x4000082 kqread syz-fuzzer 99038 448549 99485 0 3 0x10008a pause ksh 99485 368821 68999 0 3 0x92 select sshd 68999 55977 1 0 3 0x80 select sshd 88584 152957 88946 74 3 0x100092 bpf pflogd 88946 436479 1 0 3 0x80 netio pflogd 14190 140911 70502 73 3 0x100090 kqread syslogd 70502 318435 1 0 3 0x100082 netio syslogd 47268 40283 1 77 3 0x100090 poll dhclient 10443 125163 1 0 3 0x80 poll dhclient 5235 96526 0 0 3 0x14200 pgzero zerothread 99959 420057 0 0 3 0x14200 aiodoned aiodoned 54390 213911 0 0 3 0x14200 syncer update 77501 190336 0 0 3 0x14200 cleaner cleaner 35727 297542 0 0 3 0x14200 reaper reaper 11131 152571 0 0 3 0x14200 pgdaemon pagedaemon 83463 5650 0 0 3 0x14200 bored crynlk 5248 484482 0 0 3 0x14200 bored crypto 70322 179797 0 0 3 0x40014200 acpi0 acpi0 3382 226069 0 0 3 0x40014200 idle1 27140 120748 0 0 3 0x14200 bored softnet 79562 321550 0 0 3 0x14200 bored systqmp 38758 316773 0 0 3 0x14200 bored systq 32949 485710 0 0 3 0x40014200 bored softclock 58177 356744 0 0 3 0x40014200 idle0 72912 195077 0 0 3 0x14200 bored smr 1 109478 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 32824 (syz-executor.1) thread 0xffff800020ab0ee8 (522639) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82674a48) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rt_clone+0x5c sys/net/route.c:266 #2 rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] #2 rtalloc_mpath+0xba sys/net/route.c:359 #3 ip_output+0x4f2 sys/netinet/ip_output.c:204 #4 rip_output+0x252 sys/netinet/raw_ip.c:289 #5 rip_usrreq+0x46a sys/netinet/raw_ip.c:538 #6 sosend+0x645 sys/kern/uipc_socket.c:524 #7 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #8 sys_write+0x83 sys/kern/sys_generic.c:284 #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 rwlock netlock r = 0 (0xffffffff8246c3e8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x51b sys/kern/uipc_socket.c:512 #3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 Process 2899 (syz-executor.0) thread 0xffff800020ace298 (15597) exclusive rrwlock inode r = 0 (0xfffffd80643400a0) #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 (0xfffffd80691c6a28) #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 9621 7107K 8763K 78643K 26747 0 0 pcb 13 10K 12K 78643K 1014 0 0 rtable 151 16K 16K 78643K 1939 0 0 ifaddr 98 22K 24K 78643K 602 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1644 0 0 iov 0 0K 24K 78643K 812 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1226 77K 78K 78643K 5813 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 38 0 0 VM map 37 18K 19K 78643K 46 0 0 sem 12 0K 0K 78643K 734 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1809 196K 290K 78643K 12766 0 0 file desc 5 13K 25K 78643K 2919 0 0 sigio 0 0K 0K 78643K 26 0 0 proc 61 63K 95K 78643K 1538 0 0 subproc 32 2K 2K 78643K 340 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 244 0 0 in_multi 25 1K 2K 78643K 362 0 0 ether_multi 1 0K 0K 78643K 35 0 0 mrt 0 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 769 0 0 pfkey data 0 0K 0K 78643K 6 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 177 260K 264K 78643K 11485 0 0 UVM aobj 130 5K 6K 78643K 140 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 973 0 0 NDP 21 0K 1K 78643K 178 0 0 temp 235 3565K 4205K 78643K 72112 0 0 kqueue 0 0K 0K 78643K 32 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 73 0 67 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 306 0 304 1 0 1 1 0 8 0 rtentry 112 344 0 286 2 0 2 2 0 8 0 unpcb 120 2488 0 2477 6 5 1 2 0 8 0 syncache 264 20 0 20 9 8 1 1 0 8 1 tcpqe 32 22 0 22 5 5 0 1 0 8 0 tcpcb 544 1843 0 1839 15 13 2 11 0 8 1 inpcb 280 4783 0 4775 18 16 2 9 0 8 1 rttmr 72 3 0 3 3 3 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 48 0 46 2 1 1 1 0 8 0 pkpcb 40 43 0 43 6 6 0 1 0 8 0 ppxss 1128 83 0 83 9 8 1 1 0 8 1 pffrag 232 58 0 58 11 11 0 1 0 482 0 pffrnode 88 58 0 58 11 11 0 1 0 8 0 pffrent 40 2033 0 2033 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 217 0 178 1 0 1 1 0 8 0 pfstkey 112 218 0 179 2 0 2 2 0 8 0 pfstate 328 218 0 179 6 1 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 2 6 2 4 4 0 8 0 art_heap4 256 1518 0 1284 35 20 15 20 0 8 0 art_table 32 1524 0 1286 3 0 3 3 0 8 0 art_node 16 340 0 295 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 40 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 732 0 722 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5913 0 4507 46 0 46 46 0 8 0 ffsino 272 5913 0 4507 95 0 95 95 0 8 0 nchpl 144 10614 0 9020 61 1 60 61 0 8 0 uvmvnodes 72 6616 0 0 121 0 121 121 0 8 0 vnodes 208 6616 0 0 349 0 349 349 0 8 0 namei 1024 38705 0 38704 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 35 0 0 5 0 5 5 0 8 0 vmpool 552 44 0 9 4 1 3 3 0 8 0 scsiplug 64 10 0 10 4 4 0 1 0 8 0 scxspl 192 32102 0 32101 22 21 1 7 0 8 0 plimitpl 152 266 0 258 1 0 1 1 0 8 0 sigapl 432 3066 0 3051 3 1 2 3 0 8 0 futexpl 56 68523 0 68523 3 2 1 1 0 8 1 knotepl 112 698 0 679 2 1 1 2 0 8 0 kqueuepl 104 1012 0 1010 4 3 1 4 0 8 0 pipepl 112 2648 0 2629 3 2 1 2 0 8 0 fdescpl 488 3067 0 3051 3 0 3 3 0 8 0 filepl 152 28968 0 28867 26 21 5 14 0 8 1 lockfpl 104 1414 0 1413 1 0 1 1 0 8 0 lockfspl 48 467 0 466 1 0 1 1 0 8 0 sessionpl 112 39 0 28 1 0 1 1 0 8 0 pgrppl 48 76 0 65 1 0 1 1 0 8 0 ucredpl 96 2971 0 2962 1 0 1 1 0 8 0 zombiepl 144 3051 0 3051 3 2 1 1 0 8 1 processpl 896 3084 0 3051 4 0 4 4 0 8 0 procpl 632 9685 0 9642 5 0 5 5 0 8 0 srpgc 64 140 0 140 10 9 1 1 0 8 1 sosppl 128 48 0 48 9 8 1 1 0 8 1 sockpl 384 7693 0 7672 28 24 4 14 0 8 1 mcl64k 65536 430 0 0 47 13 34 34 0 8 0 mcl16k 16384 17 0 0 3 1 2 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 32 0 0 4 2 2 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 19 1 18 19 0 8 0 mtagpl 80 39 0 0 1 0 1 1 0 8 0 mbufpl 256 576 0 0 25 0 25 25 0 8 0 bufpl 256 16117 0 9059 442 0 442 442 0 8 0 anonpl 16 395492 0 377648 167 68 99 99 0 124 15 amapchunkpl 152 23036 0 22891 47 36 11 14 0 158 4 amappl16 192 17567 0 16433 139 73 66 69 0 8 6 amappl15 184 250 0 249 1 0 1 1 0 8 0 amappl14 176 343 0 339 1 0 1 1 0 8 0 amappl13 168 614 0 614 3 3 0 1 0 8 0 amappl12 160 525 0 523 1 0 1 1 0 8 0 amappl11 152 181 0 165 1 0 1 1 0 8 0 amappl10 144 397 0 389 1 0 1 1 0 8 0 amappl9 136 1160 0 1157 1 0 1 1 0 8 0 amappl8 128 749 0 694 2 0 2 2 0 8 0 amappl7 120 498 0 491 1 0 1 1 0 8 0 amappl6 112 150 0 140 1 0 1 1 0 8 0 amappl5 104 794 0 779 1 0 1 1 0 8 0 amappl4 96 3191 0 3156 1 0 1 1 0 8 0 amappl3 88 978 0 972 1 0 1 1 0 8 0 amappl2 80 22881 0 22805 3 0 3 3 0 8 0 amappl1 72 79088 0 78647 26 16 10 20 0 8 0 amappl 80 10297 0 10234 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 3111 0 3051 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3111 0 3051 1 0 1 1 0 8 0 vmmpekpl 168 30282 0 30234 4 1 3 3 0 8 0 vmmpepl 168 398166 0 395776 280 131 149 154 0 357 35 vmsppl 368 3066 0 3051 2 0 2 2 0 8 0 pdppl 4096 6229 0 6155 10 0 10 10 0 8 0 pvpl 32 1011178 0 990568 366 140 226 226 0 265 36 pmappl 232 3110 0 3060 7 3 4 4 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 715 0 56 20 0 20 20 0 8 0