login: 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 303019 85571 0 0 0 0 syz-executor.1 *483695 85571 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,ffff800023bdf408,83,ffff800023bdf4a8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023bdf518,fffffd806f6c6710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c6710,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c6710,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bdf5f0,fffffd807349ef20,fffffd806f6c6690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c6690,fffffd807349ef00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80785bec90,4,0,fffffd807349ef00,0,ffff800020abf3d8) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020abf3d8,ffff800023bdf798,ffff800023bdf7e0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bdf860) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bdf860) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,ffb257fa010) at Xsyscall+0x128 end of kernel end trace frame: 0xffd5c3d4db0, 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,ffff800023bdf408,83,ffff800023bdf4a8,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800023bdf518,fffffd806f6c6710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c6710,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c6710,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bdf5f0,fffffd807349ef20,fffffd806f6c6690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c6690,fffffd807349ef00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80785bec90,4,0,fffffd807349ef00,0,ffff800020abf3d8) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020abf3d8,ffff800023bdf798,ffff800023bdf7e0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bdf860) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bdf860) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,ffb257fa010) at Xsyscall+0x128 end of kernel end trace frame: 0xffd5c3d4db0, count: -12 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x490d __ALIGN_SIZE+0x390d rbp 0xffff800023bdf220 rbx 0xffff800023bdf2d0 rdx 0x490e __ALIGN_SIZE+0x390e rcx 0xffff8000237cc000 rax 0xffff8000237cc000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0xbaf185383e534f37 r12 0x3000000008 r13 0xffff800023bdf230 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bdf210 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=483695 stat=onproc flags process=0 proc=4000000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf160,0xffffffff8265b7c8 process=0xffff800020add180 user=0xffff800023bda000, vmspace=0xfffffd807f00a730 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 85571 303019 98612 0 7 0 syz-executor.1 *85571 483695 98612 0 7 0x4000000 syz-executor.1 98612 266905 56146 0 3 0x82 nanosleep syz-executor.1 22677 155995 56146 0 3 0x82 piperd syz-executor.0 1130 523468 1 0 3 0x100083 ttyin getty 61296 147921 0 0 3 0x14200 acct acct 20316 59626 0 0 3 0x14200 bored sosplice 56146 325522 85169 0 3 0x82 thrsleep syz-fuzzer 56146 121526 85169 0 3 0x4000082 nanosleep syz-fuzzer 56146 354822 85169 0 3 0x4000082 thrsleep syz-fuzzer 56146 437091 85169 0 3 0x4000082 kqread syz-fuzzer 56146 286651 85169 0 3 0x4000082 thrsleep syz-fuzzer 56146 228092 85169 0 3 0x4000082 thrsleep syz-fuzzer 56146 412131 85169 0 3 0x4000082 thrsleep syz-fuzzer 56146 456066 85169 0 3 0x4000082 thrsleep syz-fuzzer 56146 429237 85169 0 3 0x4000082 nanosleep syz-fuzzer 56146 350664 85169 0 3 0x4000082 thrsleep syz-fuzzer 85169 163920 75659 0 3 0x10008a pause ksh 75659 428329 98194 0 3 0x92 select sshd 98194 240237 1 0 3 0x80 select sshd 42596 183986 41879 74 3 0x100092 bpf pflogd 41879 341678 1 0 3 0x80 netio pflogd 18948 267264 95983 73 3 0x100090 kqread syslogd 95983 85649 1 0 3 0x100082 netio syslogd 90767 109328 1 77 3 0x100090 poll dhclient 5203 85181 1 0 3 0x80 poll dhclient 40755 45264 0 0 3 0x14200 pgzero zerothread 23437 108182 0 0 3 0x14200 aiodoned aiodoned 42281 328444 0 0 3 0x14200 syncer update 83941 41641 0 0 3 0x14200 cleaner cleaner 71388 388255 0 0 3 0x14200 reaper reaper 1333 404530 0 0 3 0x14200 pgdaemon pagedaemon 31671 380940 0 0 3 0x14200 bored crynlk 81104 301985 0 0 3 0x14200 bored crypto 58854 345871 0 0 3 0x40014200 acpi0 acpi0 30398 306378 0 0 3 0x40014200 idle1 38886 240536 0 0 3 0x14200 bored softnet 96127 156950 0 0 3 0x14200 bored systqmp 66827 330751 0 0 3 0x14200 bored systq 89155 142979 0 0 3 0x40014200 bored softclock 27639 249077 0 0 3 0x40014200 idle0 31387 195158 0 0 3 0x14200 bored smr 1 239569 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 85571 (syz-executor.1) thread 0xffff800020abf3d8 (483695) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #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 (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 9645 7123K 8720K 78643K 38134 0 0 pcb 13 12K 14K 78643K 2694 0 0 rtable 330 27K 27K 78643K 8472 0 0 ifaddr 161 44K 49K 78643K 2748 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2067 0 0 iov 0 0K 32K 78643K 2714 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 76K 78K 78643K 12055 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 141 0 0 VM map 83 41K 41K 78643K 127 0 0 sem 12 0K 0K 78643K 5505 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 12211 0 0 sigio 0 0K 0K 78643K 142 0 0 proc 62 63K 95K 78643K 4737 0 0 subproc 32 2K 2K 78643K 1245 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 1104 0 0 in_multi 54 3K 3K 78643K 1636 0 0 ether_multi 1 0K 0K 78643K 160 0 0 mrt 1 0K 0K 78643K 72 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 2441 0 0 pfkey data 0 0K 4K 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 254 531K 531K 78643K 43668 0 0 UVM aobj 130 7K 7K 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 2779 0 0 NDP 28 1K 1K 78643K 730 0 0 temp 270 3562K 4201K 78643K 397931 0 0 kqueue 0 0K 0K 78643K 99 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 228 0 220 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1005 0 1003 1 0 1 1 0 8 0 rtentry 112 1736 0 1589 6 1 5 5 0 8 0 unpcb 120 7351 0 7329 22 21 1 2 0 8 0 syncache 264 78 0 78 29 28 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 67 0 67 19 19 0 1 0 8 0 tcpcb 544 7727 0 7722 137 135 2 14 0 8 1 inpcb 280 19649 0 19641 115 113 2 13 0 8 1 rttmr 72 26 0 25 1 0 1 1 0 8 0 ip6q 72 12 0 12 7 7 0 1 0 8 0 ip6af 40 29 0 29 6 6 0 1 0 8 0 nd6 48 201 0 197 6 5 1 1 0 8 0 pkpcb 40 70 0 70 19 19 0 1 0 8 0 swfcl 56 7 0 0 1 0 1 1 0 8 0 ppxss 1128 344 0 344 27 26 1 1 0 8 1 pffrag 232 279 0 279 29 28 1 1 0 482 1 pffrnode 88 279 0 279 29 28 1 1 0 8 1 pffrent 40 9182 0 9182 29 28 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 867 0 815 1 0 1 1 0 8 0 pfstkey 112 867 0 815 3 0 3 3 0 8 1 pfstate 328 867 0 815 12 5 7 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 10 0 4 10 4 6 8 0 8 0 art_heap4 256 5692 0 5327 62 39 23 25 0 8 0 art_table 32 5702 0 5331 8 4 4 4 0 8 0 art_node 16 1395 0 1326 1 0 1 1 0 8 0 sysvmsgpl 40 55 0 46 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 5503 0 5493 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 20151 0 18680 49 1 48 48 0 8 0 ffsino 272 20151 0 18680 100 1 99 99 0 8 0 nchpl 144 43956 0 43463 62 42 20 61 0 8 0 uvmvnodes 72 7543 0 0 138 0 138 138 0 8 0 vnodes 208 7543 0 0 397 0 397 397 0 8 0 namei 1024 153999 0 153999 9 8 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 83 0 2 11 0 11 11 0 8 0 vmpool 552 125 0 44 7 1 6 6 0 8 0 scsiplug 64 13 0 13 11 11 0 1 0 8 0 scxspl 192 126145 0 126145 70 67 3 7 0 8 3 plimitpl 152 1012 0 1004 1 0 1 1 0 8 0 sigapl 432 12206 0 12191 4 2 2 3 0 8 0 futexpl 56 279870 0 279870 7 6 1 1 0 8 1 knotepl 112 2449 0 2430 9 7 2 3 0 8 1 kqueuepl 104 4585 0 4583 35 34 1 4 0 8 0 pipepl 112 6990 0 6971 12 11 1 2 0 8 0 fdescpl 488 12207 0 12191 3 0 3 3 0 8 0 filepl 152 116409 0 116307 138 132 6 14 0 8 1 lockfpl 104 4406 0 4405 1 0 1 1 0 8 0 lockfspl 48 1473 0 1472 1 0 1 1 0 8 0 sessionpl 112 99 0 88 1 0 1 1 0 8 0 pgrppl 48 245 0 234 1 0 1 1 0 8 0 ucredpl 96 12913 0 12904 1 0 1 1 0 8 0 zombiepl 144 12191 0 12191 3 2 1 1 0 8 1 processpl 896 12224 0 12191 5 1 4 5 0 8 0 procpl 632 38917 0 38874 6 1 5 5 0 8 0 srpgc 64 163 0 163 38 37 1 1 0 8 1 sosppl 128 383 0 383 42 41 1 1 0 8 1 sockpl 384 28242 0 28210 180 175 5 22 0 8 0 mcl64k 65536 942 0 0 98 67 31 65 0 8 1 mcl16k 16384 45 0 0 5 2 3 3 0 8 0 mcl12k 12288 49 0 0 2 0 2 2 0 8 0 mcl9k 9216 41 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 4 1 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 206 0 0 19 6 13 19 0 8 0 mtagpl 80 164 0 0 2 1 1 2 0 8 0 mbufpl 256 1153 0 0 46 0 46 46 0 8 0 bufpl 256 44695 0 37146 472 0 472 472 0 8 0 anonpl 16 1426733 0 1411289 285 198 87 100 0 124 0 amapchunkpl 152 89497 0 89350 155 147 8 21 0 158 0 amappl16 192 63706 0 62542 354 294 60 70 0 8 0 amappl15 184 1693 0 1693 8 7 1 1 0 8 1 amappl14 176 3876 0 3863 1 0 1 1 0 8 0 amappl13 168 597 0 597 7 7 0 1 0 8 0 amappl12 160 938 0 936 1 0 1 1 0 8 0 amappl11 152 1968 0 1953 1 0 1 1 0 8 0 amappl10 144 2304 0 2299 1 0 1 1 0 8 0 amappl9 136 2249 0 2244 1 0 1 1 0 8 0 amappl8 128 1854 0 1774 4 1 3 3 0 8 0 amappl7 120 2679 0 2671 1 0 1 1 0 8 0 amappl6 112 1873 0 1850 1 0 1 1 0 8 0 amappl5 104 1670 0 1656 1 0 1 1 0 8 0 amappl4 96 11044 0 11014 1 0 1 1 0 8 0 amappl3 88 4804 0 4795 1 0 1 1 0 8 0 amappl2 80 93732 0 93653 3 1 2 3 0 8 0 amappl1 72 281459 0 281021 26 16 10 20 0 8 0 amappl 80 40602 0 40519 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 12332 0 12191 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12332 0 12191 1 0 1 1 0 8 0 vmmpekpl 168 84649 0 84596 3 0 3 3 0 8 0 vmmpepl 168 1553901 0 1551406 500 342 158 167 0 357 38 vmsppl 368 12206 0 12191 2 0 2 2 0 8 0 pdppl 4096 24671 0 24551 19 3 16 16 0 8 0 pvpl 32 3682984 0 3664282 616 417 199 235 0 265 0 pmappl 232 12331 0 12235 7 1 6 6 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 993 0 269 21 0 21 21 0 8 0