login: 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 310620 2704 0 0 0 0 syz-executor.0 * 58720 2704 0 0 0x4000000 1K syz-executor.0 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(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021bc7048,83,ffff800021bc70e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021bc7158,fffffd806f6cc5f8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cc5f8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cc5f8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021bc7230,fffffd80683c8720,fffffd806f6cc578) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc578,fffffd80683c8700) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807cd29930,4,0,fffffd80683c8700,0,ffff800020ace2a8) at udp_usrreq+0x560 sys_connect(ffff800020ace2a8,ffff800021bc73b8,ffff800021bc7400) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021bc7480) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021bc7480) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,fffffffffffffed2,0,3,f6dd53e8010) at Xsyscall+0x128 end of kernel end trace frame: 0xf709e676c90, 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(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800021bc7048,83,ffff800021bc70e8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800021bc7158,fffffd806f6cc5f8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cc5f8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cc5f8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021bc7230,fffffd80683c8720,fffffd806f6cc578) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc578,fffffd80683c8700) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807cd29930,4,0,fffffd80683c8700,0,ffff800020ace2a8) at udp_usrreq+0x560 sys_connect(ffff800020ace2a8,ffff800021bc73b8,ffff800021bc7400) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021bc7480) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021bc7480) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,fffffffffffffed2,0,3,f6dd53e8010) at Xsyscall+0x128 end of kernel end trace frame: 0xf709e676c90, count: -12 ddb{1}> show registers rdi 0xffffffff81800b47 db_enter+0x17 rsi 0x49e2 __ALIGN_SIZE+0x39e2 rbp 0xffff800021bc6e60 rbx 0xffff800021bc6f10 rdx 0x49e3 __ALIGN_SIZE+0x39e3 rcx 0xffff800021156000 rax 0xffff800021156000 r8 0xffffffff8149825f kprintf+0x16f r9 0x1 r10 0x25 r11 0xb46db1a7d77dd5dc r12 0x3000000008 r13 0xffff800021bc6e70 r14 0x100 r15 0x1 rip 0xffffffff81800b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021bc6e50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=58720 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace520,0xffffffff82662210 process=0xffff800020a8b190 user=0xffff800021bc2000, vmspace=0xfffffd807f00a170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2704 310620 56693 0 7 0 syz-executor.0 * 2704 58720 56693 0 7 0x4000000 syz-executor.0 89567 102538 1 0 3 0x100083 ttyin getty 19956 130753 79298 0 3 0x2 biowait syz-executor.1 56693 196840 79298 0 3 0x82 nanosleep syz-executor.0 46055 172015 0 0 3 0x14200 acct acct 87920 239262 0 0 3 0x14200 bored sosplice 79298 483629 36978 0 3 0x82 kqread syz-fuzzer 79298 92557 36978 0 3 0x4000082 nanosleep syz-fuzzer 79298 108794 36978 0 3 0x4000082 thrsleep syz-fuzzer 79298 341575 36978 0 3 0x4000082 thrsleep syz-fuzzer 79298 98090 36978 0 3 0x4000082 thrsleep syz-fuzzer 79298 110356 36978 0 3 0x4000082 thrsleep syz-fuzzer 79298 344859 36978 0 3 0x4000082 thrsleep syz-fuzzer 79298 49817 36978 0 3 0x4000082 thrsleep syz-fuzzer 79298 70190 36978 0 3 0x4000082 thrsleep syz-fuzzer 79298 337474 36978 0 3 0x4000082 thrsleep syz-fuzzer 36978 287903 92843 0 3 0x10008a pause ksh 92843 289334 92453 0 3 0x92 select sshd 92453 290062 1 0 3 0x80 select sshd 91341 81726 75341 74 3 0x100092 bpf pflogd 75341 396487 1 0 3 0x80 netio pflogd 82922 143941 83672 73 3 0x100090 kqread syslogd 83672 73851 1 0 3 0x100082 netio syslogd 39126 23338 1 77 3 0x100090 poll dhclient 54229 289548 1 0 3 0x80 poll dhclient 83900 167584 0 0 3 0x14200 pgzero zerothread 78725 11757 0 0 3 0x14200 aiodoned aiodoned 48197 382648 0 0 3 0x14200 syncer update 75424 193720 0 0 3 0x14200 cleaner cleaner 12588 128364 0 0 3 0x14200 reaper reaper 37437 515589 0 0 3 0x14200 pgdaemon pagedaemon 80576 444722 0 0 3 0x14200 bored crynlk 82175 424468 0 0 3 0x14200 bored crypto 94153 405913 0 0 3 0x40014200 acpi0 acpi0 95336 319201 0 0 3 0x40014200 idle1 11407 453765 0 0 3 0x14200 bored softnet 26915 427576 0 0 3 0x14200 bored systqmp 5214 330491 0 0 3 0x14200 bored systq 86809 21372 0 0 3 0x40014200 bored softclock 87763 251556 0 0 3 0x40014200 idle0 33671 511904 0 0 3 0x14200 bored smr 1 348619 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 2704 (syz-executor.0) thread 0xffff800020ace2a8 (58720) exclusive rwlock netlock r = 0 (0xffffffff8250cdb8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvn_io+0x3b2 sys/uvm/uvm_vnode.c:1206 #2 uvn_get+0x226 sys/uvm/uvm_vnode.c:1049 #3 uvm_fault+0x11cc sys/uvm/uvm_fault.c:1023 #4 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #5 kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 #6 alltraps_kern_meltdown+0x7b #7 copyin+0x4b #8 sys_connect+0x9c sys/kern/uipc_syscalls.c:367 #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 kernel_lock &kernel_lock r = 1 (0xffffffff82624c28) #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 19956 (syz-executor.1) thread 0xffff800020acf3f0 (130753) exclusive rrwlock inode r = 0 (0xfffffd80691af2b8) #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 (0xfffffd80643f5818) #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 9666 7373K 8070K 78643K 21599 0 0 pcb 13 11K 13K 78643K 1424 0 0 rtable 132 14K 15K 78643K 2589 0 0 ifaddr 112 23K 24K 78643K 793 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1656 0 0 iov 0 0K 28K 78643K 893 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 5282 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 46 0 0 VM map 32 16K 17K 78643K 52 0 0 sem 12 0K 1K 78643K 893 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4289 0 0 sigio 0 0K 0K 78643K 52 0 0 proc 62 63K 95K 78643K 2026 0 0 subproc 32 2K 2K 78643K 502 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 378 0 0 in_multi 36 2K 2K 78643K 543 0 0 ether_multi 1 0K 0K 78643K 54 0 0 mrt 1 0K 0K 78643K 30 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 168 742K 742K 78643K 168 0 0 exec 0 0K 1K 78643K 988 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 185 236K 246K 78643K 16431 0 0 UVM aobj 130 4K 4K 78643K 141 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 1032 0 0 NDP 26 0K 1K 78643K 247 0 0 temp 245 3565K 4205K 78643K 105406 0 0 kqueue 0 0K 0K 78643K 28 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 68 0 62 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 252 0 250 1 0 1 1 0 8 0 rtentry 112 456 0 409 2 0 2 2 0 8 0 unpcb 120 2790 0 2776 3 2 1 2 0 8 0 syncache 264 32 0 32 13 13 0 1 0 8 0 tcpqe 32 73 0 73 8 8 0 1 0 8 0 tcpcb 544 1993 0 1989 18 17 1 11 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 280 8239 0 8231 19 17 2 9 0 8 1 rttmr 72 10 0 10 8 7 1 1 0 8 1 ip6q 72 4 0 4 2 2 0 1 0 8 0 ip6af 40 8 0 8 2 2 0 1 0 8 0 nd6 48 68 0 64 4 3 1 1 0 8 0 pkpcb 40 23 0 23 7 7 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 107 0 107 12 11 1 1 0 8 1 pffrag 232 106 0 106 12 11 1 1 0 482 1 pffrnode 88 106 0 106 12 11 1 1 0 8 1 pffrent 40 3453 0 3453 12 11 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 341 0 292 1 0 1 1 0 8 0 pfstkey 112 341 0 292 3 0 3 3 0 8 0 pfstate 328 341 0 292 8 2 6 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 17 0 15 11 9 2 4 0 8 0 art_heap4 256 1841 0 1606 35 19 16 17 0 8 0 art_table 32 1858 0 1621 3 1 2 3 0 8 0 art_node 16 451 0 410 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 13 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 891 0 881 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8307 0 6894 47 1 46 47 0 8 0 ffsino 272 8307 0 6894 96 0 96 96 0 8 0 nchpl 144 16650 0 15011 63 2 61 62 0 8 0 uvmvnodes 72 6385 0 0 117 0 117 117 0 8 0 vnodes 208 6385 0 0 337 0 337 337 0 8 0 namei 1024 58938 0 58937 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 31 0 1 4 0 4 4 0 8 0 vmpool 552 50 0 20 3 0 3 3 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 50643 0 50642 31 30 1 7 0 8 0 plimitpl 152 400 0 392 1 0 1 1 0 8 0 sigapl 432 4410 0 4395 3 1 2 3 0 8 0 futexpl 56 116913 0 116913 3 2 1 1 0 8 1 knotepl 112 1384 0 1365 1 0 1 1 0 8 0 kqueuepl 104 6476 0 6474 4 3 1 4 0 8 0 pipepl 112 2744 0 2725 5 4 1 2 0 8 0 fdescpl 488 4411 0 4395 3 0 3 3 0 8 0 filepl 152 47754 0 47652 31 26 5 13 0 8 1 lockfpl 104 1406 0 1405 1 0 1 1 0 8 0 lockfspl 48 488 0 487 1 0 1 1 0 8 0 sessionpl 112 49 0 38 1 0 1 1 0 8 0 pgrppl 48 100 0 89 1 0 1 1 0 8 0 ucredpl 96 4487 0 4478 1 0 1 1 0 8 0 zombiepl 144 4395 0 4395 1 0 1 1 0 8 1 processpl 896 4428 0 4395 4 0 4 4 0 8 0 procpl 632 14133 0 14090 7 2 5 5 0 8 0 srpgc 64 54 0 54 12 12 0 1 0 8 0 sosppl 128 1404 0 1404 3 2 1 1 0 8 1 sockpl 384 11393 0 11365 41 36 5 14 0 8 2 mcl64k 65536 260 0 0 33 27 6 33 0 8 2 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 22 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 24 0 0 3 1 2 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 199 0 0 23 3 20 23 0 8 0 mtagpl 80 76 0 0 2 0 2 2 0 8 0 mbufpl 256 583 0 0 25 0 25 25 0 8 0 bufpl 256 23052 0 15994 442 0 442 442 0 8 0 anonpl 16 579777 0 556817 194 85 109 109 0 124 11 amapchunkpl 152 34869 0 34703 68 60 8 18 0 158 0 amappl16 192 25137 0 23809 167 88 79 79 0 8 7 amappl15 184 239 0 239 2 2 0 1 0 8 0 amappl14 176 746 0 739 1 0 1 1 0 8 0 amappl13 168 168 0 168 5 5 0 1 0 8 0 amappl12 160 519 0 517 2 1 1 1 0 8 0 amappl11 152 1144 0 1125 1 0 1 1 0 8 0 amappl10 144 674 0 667 1 0 1 1 0 8 0 amappl9 136 1634 0 1628 1 0 1 1 0 8 0 amappl8 128 1247 0 1185 5 2 3 3 0 8 0 amappl7 120 793 0 783 1 0 1 1 0 8 0 amappl6 112 1106 0 1090 1 0 1 1 0 8 0 amappl5 104 1042 0 1029 1 0 1 1 0 8 0 amappl4 96 4585 0 4548 1 0 1 1 0 8 0 amappl3 88 1088 0 1082 1 0 1 1 0 8 0 amappl2 80 33090 0 33013 3 1 2 3 0 8 0 amappl1 72 110125 0 109684 25 14 11 20 0 8 0 amappl 80 14963 0 14902 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 4461 0 4395 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4461 0 4395 1 0 1 1 0 8 0 vmmpekpl 168 40593 0 40554 4 1 3 3 0 8 0 vmmpepl 168 582384 0 579724 340 189 151 175 0 357 23 vmsppl 368 4410 0 4395 2 0 2 2 0 8 0 pdppl 4096 8929 0 8860 12 2 10 10 0 8 1 pvpl 32 1503665 0 1479754 407 176 231 237 0 265 26 pmappl 232 4460 0 4415 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 716 0 83 19 0 19 19 0 8 0