panic: kernel diagnostic assertion "(rt->rt_flags & RTF_MPATH) || mrt->rt_priority != prio" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 569 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *408187 66688 0 0 0x4000000 1K syz-executor.0 244902 59606 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81fa03be,ffffffff81faef4e,239,ffffffff81f3b3e5) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009fb200,0,ffff8000009fec90,38,fffffd80651594d8) at rtable_insert+0x65f sys/net/rtable.c:569 rtrequest(1,ffff800021c415d0,38,ffff800021c41548,0) at rtrequest+0x876 sys/net/route.c:928 rtm_output(ffff8000009fec00,ffff800021c41680,ffff800021c415d0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8068309f00,fffffd806f709300,0,0) at route_output+0x7d2 sys/net/rtsock.c:814 route_usrreq(fffffd806f709300,9,fffffd8068309f00,0,0,ffff800020b38768) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd806f709300,0,ffff800021c41870,0,0,80) at sosend+0x668 sys/kern/uipc_socket.c:513 sendit(ffff800020b38768,3,ffff800021c41950,0,ffff800021c41a50) at sendit+0x52f sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020b38768,ffff800021c419e8,ffff800021c41a50) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800021c41ac0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:90 [inline] syscall(ffff800021c41ac0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:554 Xsyscall(6,0,ffffffffffffffd8,0,6,de111b95010) at Xsyscall+0x128 end of kernel end trace frame: 0xde3dd64ff00, count: 2 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_flags & RTF_MPATH) || mrt->rt_priority != prio" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 569 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:212 __assert(ffffffff81fa03be,ffffffff81faef4e,239,ffffffff81f3b3e5) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009fb200,0,ffff8000009fec90,38,fffffd80651594d8) at rtable_insert+0x65f sys/net/rtable.c:569 rtrequest(1,ffff800021c415d0,38,ffff800021c41548,0) at rtrequest+0x876 sys/net/route.c:928 rtm_output(ffff8000009fec00,ffff800021c41680,ffff800021c415d0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8068309f00,fffffd806f709300,0,0) at route_output+0x7d2 sys/net/rtsock.c:814 route_usrreq(fffffd806f709300,9,fffffd8068309f00,0,0,ffff800020b38768) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd806f709300,0,ffff800021c41870,0,0,80) at sosend+0x668 sys/kern/uipc_socket.c:513 sendit(ffff800020b38768,3,ffff800021c41950,0,ffff800021c41a50) at sendit+0x52f sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020b38768,ffff800021c419e8,ffff800021c41a50) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800021c41ac0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:90 [inline] syscall(ffff800021c41ac0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:554 Xsyscall(6,0,ffffffffffffffd8,0,6,de111b95010) at Xsyscall+0x128 end of kernel end trace frame: 0xde3dd64ff00, count: -13 ddb{1}> show registers rdi 0xffffffff81909a07 db_enter+0x17 rsi 0x4478 __ALIGN_SIZE+0x3478 rbp 0xffff800021c41290 rbx 0xffff800021c41340 rdx 0x4479 __ALIGN_SIZE+0x3479 rcx 0xffff800020c14000 rax 0xffff800020c14000 r8 0xffffffff8106d1c3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x8e01c980b2075509 r12 0x3000000008 r13 0xffff800021c412a0 r14 0x100 r15 0x1 rip 0xffffffff81909a08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021c41280 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=408187 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b384f8,0xffffffff8237c718 process=0xffff800020b8c9f0 user=0xffff800021c3c000, vmspace=0xfffffd807f00c2e0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 66688 487900 89633 0 2 0 syz-executor.0 *66688 408187 89633 0 7 0x4000000 syz-executor.0 21140 157412 0 0 3 0x14200 bored sosplice 86254 138934 45840 0 3 0x82 nanosleep syz-executor.1 89633 511688 45840 0 3 0x82 nanosleep syz-executor.0 45840 453395 80945 0 3 0x82 thrsleep syz-fuzzer 45840 517735 80945 0 3 0x4000082 thrsleep syz-fuzzer 45840 348306 80945 0 3 0x4000082 kqread syz-fuzzer 45840 310449 80945 0 3 0x4000082 thrsleep syz-fuzzer 45840 4425 80945 0 3 0x4000082 thrsleep syz-fuzzer 45840 474920 80945 0 3 0x4000082 thrsleep syz-fuzzer 45840 210023 80945 0 3 0x4000082 thrsleep syz-fuzzer 45840 492534 80945 0 3 0x4000082 thrsleep syz-fuzzer 45840 337223 80945 0 3 0x4000082 thrsleep syz-fuzzer 45840 382129 80945 0 3 0x4000082 thrsleep syz-fuzzer 80945 475108 88386 0 3 0x10008a pause ksh 88386 115222 68843 0 3 0x92 select sshd 84544 351044 1 0 3 0x100083 ttyin getty 68843 114034 1 0 3 0x80 select sshd 81735 358347 87034 74 3 0x100092 bpf pflogd 87034 275492 1 0 3 0x80 netio pflogd 30835 155809 90210 73 3 0x100090 kqread syslogd 90210 370348 1 0 3 0x100082 netio syslogd 59167 348963 1 77 3 0x100090 poll dhclient 43462 2378 1 0 3 0x80 poll dhclient 69839 58605 0 0 2 0x14200 zerothread 76524 260923 0 0 3 0x14200 aiodoned aiodoned 58339 42415 0 0 3 0x14200 syncer update 31167 203655 0 0 3 0x14200 cleaner cleaner 59606 244902 0 0 7 0x14200 reaper 42879 390994 0 0 3 0x14200 pgdaemon pagedaemon 70159 351178 0 0 3 0x14200 bored crynlk 90965 520631 0 0 3 0x14200 bored crypto 73932 79331 0 0 3 0x40014200 acpi0 acpi0 21143 475356 0 0 3 0x40014200 idle1 57468 154345 0 0 3 0x14200 bored softnet 93681 264044 0 0 2 0x14200 systqmp 66824 297145 0 0 3 0x14200 bored systq 64813 132594 0 0 3 0x40014200 bored softclock 94992 174346 0 0 3 0x40014200 idle0 71705 485283 0 0 3 0x14200 bored smr 1 428456 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd807f00be90) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pmap_do_remove+0x88 rcr3 sys/arch/amd64/compile/SYZKALLER/obj/machine/cpufunc.h:141 [inline] #3 pmap_do_remove+0x88 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:418 [inline] #3 pmap_do_remove+0x88 sys/arch/amd64/amd64/pmap.c:1689 #4 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:206 [inline] #4 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2714 #5 uvmspace_free+0x86 sys/uvm/uvm_map.c:3587 #6 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #7 reaper+0x18c sys/kern/kern_exit.c:433 #8 proc_trampoline+0x1c Process 66688 (syz-executor.0) thread 0xffff800020b38768 (408187) exclusive rwlock art r = 0 (0xffff800000650c98) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rtable_insert+0x142 sys/net/rtable.c:517 #2 rtrequest+0x876 sys/net/route.c:928 #3 rtm_output+0x6e5 sys/net/rtsock.c:896 #4 route_output+0x7d2 sys/net/rtsock.c:814 #5 route_usrreq+0x363 sys/net/rtsock.c:271 #6 sosend+0x668 sys/kern/uipc_socket.c:513 #7 sendit+0x52f sys/kern/uipc_syscalls.c:662 #8 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #9 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:90 [inline] #9 syscall+0x552 sys/arch/amd64/amd64/trap.c:554 #10 Xsyscall+0x128 exclusive rwlock netlock r = 0 (0xffffffff821abb18) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rtm_output+0x651 sys/net/rtsock.c:892 #2 route_output+0x7d2 sys/net/rtsock.c:814 #3 route_usrreq+0x363 sys/net/rtsock.c:271 #4 sosend+0x668 sys/kern/uipc_socket.c:513 #5 sendit+0x52f sys/kern/uipc_syscalls.c:662 #6 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #7 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:90 [inline] #7 syscall+0x552 sys/arch/amd64/amd64/trap.c:554 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8234cce8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 sosend+0x52c sys/kern/uipc_socket.c:501 #3 sendit+0x52f sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #5 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:90 [inline] #5 syscall+0x552 sys/arch/amd64/amd64/trap.c:554 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9503 6408K 6919K 78643K 11698 0 0 pcb 26 9K 10K 78643K 277 0 0 rtable 119 5K 5K 78643K 299 0 0 ifaddr 52 12K 13K 78643K 81 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1489 0 0 iov 0 0K 12K 78643K 47 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 76K 78643K 1673 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 8 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 52 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 25K 78643K 527 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 53 50K 83K 78643K 416 0 0 subproc 32 2K 2K 78643K 34 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 49 0 0 in_multi 33 2K 2K 78643K 40 0 0 ether_multi 1 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 241 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 91 20K 21K 78643K 2639 0 0 UVM aobj 29 2K 2K 78643K 32 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 37 0 0 NDP 10 0K 0K 78643K 21 0 0 temp 133 2728K 2796K 78643K 4779 0 0 kqueue 0 0K 0K 78643K 1 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 235 0 228 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 50 0 4 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 76 0 72 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 6 0 6 2 1 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 18 0 7 1 0 1 1 0 8 0 pfstkey 112 18 0 7 1 0 1 1 0 8 0 pfstate 328 18 0 7 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 195 0 0 13 0 13 13 0 8 0 art_table 32 196 0 0 2 0 2 2 0 8 0 art_node 16 46 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 46 0 36 1 0 1 1 0 8 0 shmpl 112 30 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2275 0 853 47 0 47 47 0 8 1 ffsino 272 2275 0 853 96 0 96 96 0 8 0 nchpl 144 3176 0 1535 61 0 61 61 0 8 0 uvmvnodes 72 2590 0 0 48 0 48 48 0 8 0 vnodes 200 2590 0 0 137 0 137 137 0 8 0 namei 1024 9428 0 9428 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 1 1 1 0 8 1 scxspl 192 8735 0 8735 9 8 1 6 0 8 1 plimitpl 152 35 0 26 1 0 1 1 0 8 0 sigapl 432 727 0 712 3 1 2 3 0 8 0 futexpl 56 6126 0 6126 1 0 1 1 0 8 1 knotepl 112 113 0 94 1 0 1 1 0 8 0 kqueuepl 104 91 0 89 1 0 1 1 0 8 0 pipepl 112 440 0 421 2 1 1 1 0 8 0 fdescpl 488 728 0 712 4 1 3 3 0 8 0 filepl 152 4124 0 4024 6 1 5 6 0 8 1 lockfpl 104 172 0 172 2 1 1 1 0 8 1 lockfspl 48 60 0 60 2 1 1 1 0 8 1 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 928 0 919 1 0 1 1 0 8 0 zombiepl 144 712 0 711 2 1 1 1 0 8 0 processpl 840 744 0 711 4 0 4 4 0 8 0 procpl 624 1883 0 1840 4 0 4 4 0 8 0 sosppl 128 8 0 8 2 2 0 1 0 8 0 sockpl 384 467 0 447 3 0 3 3 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 120 0 0 14 0 14 14 0 8 0 mtagpl 80 2 0 0 1 0 1 1 0 8 0 mbufpl 256 166 0 0 10 0 10 10 0 8 0 bufpl 256 6696 0 1190 345 0 345 345 0 8 0 anonpl 16 71446 0 61117 60 16 44 56 0 125 1 amapchunkpl 152 3756 0 3662 7 3 4 6 0 158 0 amappl16 192 3191 0 2624 41 11 30 39 0 8 1 amappl15 184 249 0 248 1 0 1 1 0 8 0 amappl14 176 36 0 34 2 1 1 1 0 8 0 amappl13 168 2 0 2 2 2 0 1 0 8 0 amappl12 160 13 0 10 1 0 1 1 0 8 0 amappl11 152 314 0 293 2 1 1 2 0 8 0 amappl10 144 73 0 71 1 0 1 1 0 8 0 amappl9 136 587 0 584 1 0 1 1 0 8 0 amappl8 128 141 0 127 1 0 1 1 0 8 0 amappl7 120 38 0 32 1 0 1 1 0 8 0 amappl6 112 306 0 298 1 0 1 1 0 8 0 amappl5 104 134 0 120 1 0 1 1 0 8 0 amappl4 96 886 0 858 1 0 1 1 0 8 0 amappl3 88 202 0 192 1 0 1 1 0 8 0 amappl2 80 5158 0 5080 4 2 2 3 0 8 0 amappl1 72 24807 0 24350 25 15 10 19 0 8 0 amappl 80 2126 0 2088 1 0 1 1 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 dma64 64 259 0 259 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 31 0 3 1 0 1 1 0 8 0 uaddrrnd 24 728 0 712 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 728 0 712 1 0 1 1 0 8 0 vmmpekpl 168 9850 0 9816 2 0 2 2 0 8 0 vmmpepl 168 84855 0 83175 109 33 76 89 0 357 1 vmsppl 368 727 0 711 2 0 2 2 0 8 0 pdppl 4096 1463 0 1422 6 0 6 6 0 8 0 pvpl 32 237404 0 223962 151 32 119 142 0 265 9 pmappl 232 727 0 711 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 505 0 4 15 0 15 15 0 8 0