g à ‘ÒÐÿÿÿÿÿ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 *477036 77186 0 0 0x4000000 0 syz-executor.1 81555 3795 0 0x2 0x1 1 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(ffffffff822092d0,ffffffff821d433f,350,ffffffff821ac772) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000227b9028,83,ffff8000227b90c8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000227b9138,fffffd806f6cc2b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cc2b0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cc2b0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000227b9210,fffffd80665f8120,fffffd806f6cc230) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc230,fffffd80665f8100) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806b13fd90,4,0,fffffd80665f8100,0,ffff800020ab0780) at udp_usrreq+0x560 sys_connect(ffff800020ab0780,ffff8000227b9398,ffff8000227b93e0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000227b9460) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000227b9460) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,22d2f02010) at Xsyscall+0x128 end of kernel end trace frame: 0x2500bb79e0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848 ddb{0}> 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(ffffffff822092d0,ffffffff821d433f,350,ffffffff821ac772) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff8000227b9028,83,ffff8000227b90c8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff8000227b9138,fffffd806f6cc2b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cc2b0,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cc2b0,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000227b9210,fffffd80665f8120,fffffd806f6cc230) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc230,fffffd80665f8100) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806b13fd90,4,0,fffffd80665f8100,0,ffff800020ab0780) at udp_usrreq+0x560 sys_connect(ffff800020ab0780,ffff8000227b9398,ffff8000227b93e0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000227b9460) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000227b9460) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,22d2f02010) at Xsyscall+0x128 end of kernel end trace frame: 0x2500bb79e0, count: -12 ddb{0}> show registers rdi 0xffffffff8163efc7 db_enter+0x17 rsi 0x3c37 __ALIGN_SIZE+0x2c37 rbp 0xffff8000227b8e40 rbx 0xffff8000227b8ef0 rdx 0x3c38 __ALIGN_SIZE+0x2c38 rcx 0xffff800020b52000 rax 0xffff800020b52000 r8 0xffffffff8178440f kprintf+0x16f r9 0x1 r10 0x25 r11 0x2af27f172ff85819 r12 0x3000000008 r13 0xffff8000227b8e50 r14 0x100 r15 0x1 rip 0xffffffff8163efc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000227b8e30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=477036 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab18c8,0xffffffff82646fa0 process=0xffff800020addc00 user=0xffff8000227b4000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 77186 71441 64813 0 2 0 syz-executor.1 *77186 477036 64813 0 7 0x4000000 syz-executor.1 82829 297054 3795 0 2 0 syz-executor.0 82829 359470 3795 0 2 0x4000000 syz-executor.0 64813 304824 39038 0 2 0x2 syz-executor.1 3795 81555 39038 0 7 0x3 syz-executor.0 52206 444890 0 0 3 0x14200 acct acct 69458 322831 1 0 3 0x100083 ttyin getty 89427 145698 0 0 3 0x14200 bored sosplice 39038 488666 92806 0 3 0x82 thrsleep syz-fuzzer 39038 409438 92806 0 3 0x4000082 thrsleep syz-fuzzer 39038 41354 92806 0 3 0x4000082 thrsleep syz-fuzzer 39038 91554 92806 0 3 0x4000082 thrsleep syz-fuzzer 39038 270334 92806 0 3 0x4000082 thrsleep syz-fuzzer 39038 345534 92806 0 3 0x4000082 kqread syz-fuzzer 39038 366320 92806 0 3 0x4000082 thrsleep syz-fuzzer 39038 7206 92806 0 3 0x4000082 thrsleep syz-fuzzer 39038 182782 92806 0 3 0x4000082 thrsleep syz-fuzzer 39038 29213 92806 0 3 0x4000082 thrsleep syz-fuzzer 92806 68164 97012 0 3 0x10008a pause ksh 97012 380982 99471 0 3 0x92 select sshd 99471 264140 1 0 3 0x80 select sshd 19765 312137 24887 74 3 0x100092 bpf pflogd 24887 411483 1 0 3 0x80 netio pflogd 21561 196554 85308 73 3 0x100090 kqread syslogd 85308 224271 1 0 3 0x100082 netio syslogd 81201 77276 1 77 3 0x100090 poll dhclient 27493 231195 1 0 3 0x80 poll dhclient 54923 261733 0 0 2 0x14200 zerothread 8253 23731 0 0 3 0x14200 aiodoned aiodoned 22020 392355 0 0 3 0x14200 syncer update 89889 249850 0 0 3 0x14200 cleaner cleaner 69529 121287 0 0 3 0x14200 reaper reaper 48579 318067 0 0 3 0x14200 pgdaemon pagedaemon 7158 327578 0 0 3 0x14200 bored crynlk 18327 354820 0 0 3 0x14200 bored crypto 79646 386693 0 0 3 0x40014200 acpi0 acpi0 34155 31702 0 0 3 0x40014200 idle1 19510 408756 0 0 3 0x14200 bored softnet 21088 521787 0 0 3 0x14200 bored systqmp 30686 456342 0 0 3 0x14200 bored systq 24807 152800 0 0 2 0x40014200 softclock 17488 430201 0 0 3 0x40014200 idle0 3014 456813 0 0 3 0x14200 bored smr 1 387950 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 77186 (syz-executor.1) thread 0xffff800020ab0780 (477036) exclusive rwlock netlock r = 0 (0xffffffff824d4548) #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 (0xffffffff82677638) #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 82829 (syz-executor.0) thread 0xffff800020ab18c8 (359470) exclusive rrwlock inode r = 0 (0xfffffd806ec163d0) #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 vn_write+0x11b sys/kern/vfs_vnops.c:414 #6 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #7 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3269 #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9627 7306K 9441K 78643K 40069 0 0 pcb 14 10K 12K 78643K 2153 0 0 rtable 137 15K 17K 78643K 3534 0 0 ifaddr 99 22K 23K 78643K 1084 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1728 0 0 iov 0 0K 24K 78643K 1210 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1230 77K 78K 78643K 9509 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 78 0 0 VM map 42 21K 21K 78643K 56 0 0 sem 12 1K 1K 78643K 22 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5106 0 0 sigio 0 0K 0K 78643K 69 0 0 proc 61 63K 95K 78643K 2206 0 0 subproc 32 2K 2K 78643K 544 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 564 0 0 in_multi 22 1K 3K 78643K 718 0 0 ether_multi 1 0K 0K 78643K 48 0 0 mrt 0 0K 0K 78643K 16 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 1145 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 201 281K 281K 78643K 19213 0 0 UVM aobj 130 4K 4K 78643K 132 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 1229 0 0 NDP 22 0K 1K 78643K 342 0 0 temp 220 3561K 4201K 78643K 201610 0 0 kqueue 0 0K 0K 78643K 47 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 91 0 86 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 502 0 500 1 0 1 1 0 8 0 rtentry 112 604 0 554 2 0 2 2 0 8 0 unpcb 120 2704 0 2691 3 2 1 2 0 8 0 syncache 264 27 0 27 10 10 0 1 0 8 0 tcpqe 32 157 0 157 6 6 0 1 0 8 0 tcpcb 544 2165 0 2159 15 13 2 2 0 8 1 inpcb 280 8362 0 8352 29 26 3 13 0 8 2 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 4 0 4 2 2 0 1 0 8 0 ip6af 40 10 0 10 2 2 0 1 0 8 0 nd6 48 105 0 105 4 4 0 1 0 8 0 pkpcb 40 31 0 31 11 10 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 156 0 156 11 10 1 1 0 8 1 pffrag 232 135 0 135 10 9 1 1 0 482 1 pffrnode 88 135 0 135 10 9 1 1 0 8 1 pffrent 40 3999 0 3999 10 9 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 465 0 404 1 0 1 1 0 8 0 pfstkey 112 467 0 406 3 0 3 3 0 8 0 pfstate 328 467 0 405 10 4 6 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 15 0 8 12 4 8 8 0 8 1 art_heap4 256 2882 0 2688 39 25 14 25 0 8 0 art_table 32 2897 0 2696 4 1 3 4 0 8 0 art_node 16 598 0 554 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9959 0 8517 47 0 47 47 0 8 0 ffsino 272 9959 0 8517 97 0 97 97 0 8 0 nchpl 144 18118 0 17679 60 41 19 60 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 68322 0 68322 6 5 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 54 0 14 3 0 3 3 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 63076 0 63075 39 38 1 7 0 8 0 plimitpl 152 475 0 467 1 0 1 1 0 8 0 sigapl 432 5215 0 5199 4 2 2 3 0 8 0 futexpl 56 133702 0 133702 3 2 1 1 0 8 1 knotepl 112 1215 0 1196 4 3 1 2 0 8 0 kqueuepl 104 1536 0 1534 1 0 1 1 0 8 0 pipepl 112 3056 0 3037 9 7 2 2 0 8 0 fdescpl 488 5216 0 5199 3 0 3 3 0 8 0 filepl 152 49582 0 49472 31 25 6 14 0 8 1 lockfpl 104 4981 0 4978 1 0 1 1 0 8 0 lockfspl 48 1557 0 1554 1 0 1 1 0 8 0 sessionpl 112 49 0 38 1 0 1 1 0 8 0 pgrppl 48 139 0 128 1 0 1 1 0 8 0 ucredpl 96 6880 0 6871 1 0 1 1 0 8 0 zombiepl 144 5200 0 5200 6 5 1 1 0 8 1 processpl 896 5234 0 5200 5 1 4 5 0 8 0 procpl 632 16757 0 16712 9 4 5 5 0 8 0 srpgc 64 48 0 48 16 16 0 1 0 8 0 sosppl 128 140 0 140 20 19 1 1 0 8 1 sockpl 384 11717 0 11692 42 37 5 22 0 8 2 mcl64k 65536 488 0 0 52 20 32 34 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 5 2 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 220 0 0 24 6 18 24 0 8 0 mtagpl 80 100 0 0 2 0 2 2 0 8 0 mbufpl 256 663 0 0 25 0 25 25 0 8 0 bufpl 256 23326 0 16268 442 0 442 442 0 8 0 anonpl 16 652894 0 623308 255 135 120 121 0 124 1 amapchunkpl 152 39562 0 38888 101 74 27 30 0 158 0 amappl16 192 29350 0 28121 202 138 64 74 0 8 1 amappl15 184 1054 0 1054 5 5 0 1 0 8 0 amappl14 176 862 0 854 1 0 1 1 0 8 0 amappl13 168 1046 0 1046 6 6 0 1 0 8 0 amappl12 160 1146 0 1144 4 3 1 1 0 8 0 amappl11 152 428 0 413 1 0 1 1 0 8 0 amappl10 144 629 0 622 1 0 1 1 0 8 0 amappl9 136 1108 0 1105 1 0 1 1 0 8 0 amappl8 128 696 0 633 3 0 3 3 0 8 0 amappl7 120 765 0 757 1 0 1 1 0 8 0 amappl6 112 362 0 350 1 0 1 1 0 8 0 amappl5 104 1543 0 1528 1 0 1 1 0 8 0 amappl4 96 5711 0 5675 1 0 1 1 0 8 0 amappl3 88 1156 0 1144 1 0 1 1 0 8 0 amappl2 80 40570 0 40485 3 1 2 3 0 8 0 amappl1 72 126727 0 126279 26 16 10 20 0 8 0 amappl 80 17610 0 17540 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 5270 0 5199 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5270 0 5199 1 0 1 1 0 8 0 vmmpekpl 168 46681 0 46641 4 1 3 3 0 8 0 vmmpepl 168 677257 0 674662 345 203 142 161 0 357 22 vmsppl 368 5215 0 5199 2 0 2 2 0 8 0 pdppl 4096 10547 0 10466 14 3 11 11 0 8 0 pvpl 32 1670622 0 1646611 412 177 235 235 0 265 36 pmappl 232 5269 0 5213 7 3 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 747 0 82 20 0 20 20 0 8 0