g Ã˾g Ã˾panic: kernel diagnostic assertion "(rt->rt_flags & RTF_MPATH) || mrt->rt_priority != prio" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 569 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 65463 18421 0 0 0x4000000 0 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:212 __assert(ffffffff81f82a32,ffffffff81f41859,239,ffffffff81f1e22b) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000989fc0,0,ffff800000a16490,38,fffffd8034697bd8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000159dc880,38,ffff8000159dc7f8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a16400,ffff8000159dc928,ffff8000159dc880,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8033114e00,fffffd80363eac08,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363eac08,9,fffffd8033114e00,0,0,ffff800015a04270) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363eac08,0,ffff8000159dcb20,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a04270,3,ffff8000159dcc00,0,ffff8000159dcd10) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a04270,ffff8000159dcca8,ffff8000159dcd10) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000159dcd80) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,5a68a503010) at Xsyscall+0x128 end of kernel end trace frame: 0x5a8eb0be2a0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "(rt->rt_flags & RTF_MPATH) || mrt->rt_priority != prio" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 569 ddb> 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(ffffffff81f82a32,ffffffff81f41859,239,ffffffff81f1e22b) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000989fc0,0,ffff800000a16490,38,fffffd8034697bd8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000159dc880,38,ffff8000159dc7f8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff800000a16400,ffff8000159dc928,ffff8000159dc880,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8033114e00,fffffd80363eac08,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd80363eac08,9,fffffd8033114e00,0,0,ffff800015a04270) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd80363eac08,0,ffff8000159dcb20,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800015a04270,3,ffff8000159dcc00,0,ffff8000159dcd10) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800015a04270,ffff8000159dcca8,ffff8000159dcd10) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000159dcd80) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,5a68a503010) at Xsyscall+0x128 end of kernel end trace frame: 0x5a8eb0be2a0, count: -13 ddb> show registers rdi 0xffffffff8152b5b7 db_enter+0x17 rsi 0x4a9b __ALIGN_SIZE+0x3a9b rbp 0xffff8000159dc540 rbx 0xffff8000159dc5f0 rdx 0x4a9c __ALIGN_SIZE+0x3a9c rcx 0xffff8000149c9000 rax 0xffff8000149c9000 r8 0xffff8000159dc500 r9 0x1 r10 0xffff80000099d600 r11 0x5f34d60aadccf555 r12 0x3000000008 r13 0xffff8000159dc550 r14 0x100 r15 0x1 rip 0xffffffff8152b5b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159dc530 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=65463 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800015a05c38,0xffffffff8227f910 process=0xffff8000149529f0 user=0xffff8000159d7000, vmspace=0xfffffd803f013210 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 18421 14249 88511 0 2 0 syz-executor.0 *18421 65463 88511 0 7 0x4000000 syz-executor.0 7344 380397 1 0 3 0x100083 ttyin getty 34563 176812 58605 0 2 0x2 syz-executor.1 88511 135610 58605 0 2 0x482 syz-executor.0 73107 70777 0 0 3 0x14200 bored sosplice 58605 446252 23931 0 3 0x82 thrsleep syz-fuzzer 58605 251832 23931 0 3 0x4000082 nanosleep syz-fuzzer 58605 218578 23931 0 3 0x4000082 kqread syz-fuzzer 58605 202458 23931 0 3 0x4000082 thrsleep syz-fuzzer 58605 233759 23931 0 3 0x4000082 thrsleep syz-fuzzer 58605 151007 23931 0 3 0x4000082 thrsleep syz-fuzzer 58605 522894 23931 0 3 0x4000082 thrsleep syz-fuzzer 23931 166834 40083 0 3 0x10008a pause ksh 40083 205326 10259 0 3 0x92 select sshd 10259 249178 1 0 3 0x80 select sshd 53697 376127 72654 73 3 0x100090 kqread syslogd 72654 445113 1 0 3 0x100082 netio syslogd 31203 146253 1 77 3 0x100090 poll dhclient 38902 230339 1 0 3 0x80 poll dhclient 39059 69102 0 0 2 0x14200 zerothread 57494 509810 0 0 3 0x14200 aiodoned aiodoned 92838 103604 0 0 3 0x14200 syncer update 27615 492554 0 0 3 0x14200 cleaner cleaner 22775 146897 0 0 3 0x14200 reaper reaper 75749 415800 0 0 3 0x14200 pgdaemon pagedaemon 55499 313914 0 0 3 0x14200 bored crynlk 51593 102420 0 0 3 0x14200 bored crypto 64916 412181 0 0 3 0x40014200 acpi0 acpi0 80220 209778 0 0 3 0x14200 bored softnet 43354 396179 0 0 2 0x14200 systqmp 58306 339720 0 0 3 0x14200 bored systq 66717 294955 0 0 3 0x40014200 bored softclock 35929 378700 0 0 3 0x40014200 idle0 24590 146432 0 0 3 0x14200 bored smr 1 498842 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9546 6623K 14720K 78643K 19859 0 0 pcb 24 9K 11K 78643K 2227 0 0 rtable 142 6K 6K 78643K 1053 0 0 ifaddr 61 14K 15K 78643K 436 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 211 0 0 iov 0 0K 24K 78643K 505 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 76K 78643K 5193 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 65 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 296 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 4904 0 0 sigio 0 0K 0K 78643K 75 0 0 proc 42 30K 46K 78643K 940 0 0 subproc 32 2K 2K 78643K 72 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 530 0 0 in_multi 33 2K 2K 78643K 227 0 0 ether_multi 1 0K 0K 78643K 23 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 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 546 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 78 20K 29K 78643K 12187 0 0 UVM aobj 130 4K 5K 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 206 0 0 NDP 13 0K 0K 78643K 116 0 0 temp 179 2715K 3351K 78643K 17515 0 0 kqueue 0 0K 0K 78643K 42 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 4 1 0 1 1 0 8 0 inpcbpl 280 1936 0 1929 1 0 1 1 0 8 0 plimitpl 152 134 0 127 1 0 1 1 0 8 0 rtentry 112 95 0 42 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 730 0 726 1 0 1 1 0 8 0 nd6 48 12 0 6 1 0 1 1 0 8 0 ppxss 1128 84 0 84 11 10 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 295 0 92 13 0 13 13 0 8 0 art_table 32 297 0 92 2 0 2 2 0 8 0 art_node 16 75 0 32 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 8 1 0 1 1 0 8 0 semapl 112 294 0 284 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 9468 0 7990 48 0 48 48 0 8 0 ffsino 240 9468 0 7990 88 0 88 88 0 8 0 nchpl 144 16358 0 14729 61 0 61 61 0 8 0 uvmvnodes 72 6774 0 0 124 0 124 124 0 8 0 vnodes 200 6774 0 0 357 0 357 357 0 8 0 namei 1024 51154 0 51154 3 2 1 1 0 8 1 scsiplug 64 10 0 10 5 5 0 1 0 8 0 scxspl 192 50578 0 50578 20 19 1 6 0 8 1 sigapl 432 5076 0 5063 2 0 2 2 0 8 0 futexpl 56 72453 0 72453 1 0 1 1 0 8 1 knotepl 112 834 0 815 1 0 1 1 0 8 0 kqueuepl 104 1078 0 1076 1 0 1 1 0 8 0 pipepl 112 2766 0 2747 10 9 1 2 0 8 0 fdescpl 424 5077 0 5063 2 0 2 2 0 8 0 filepl 120 29099 0 29004 8 4 4 6 0 8 1 lockfpl 104 1607 0 1607 4 3 1 1 0 8 1 lockfspl 48 545 0 545 4 3 1 1 0 8 1 sessionpl 112 26 0 16 1 0 1 1 0 8 0 pgrppl 48 74 0 64 1 0 1 1 0 8 0 ucredpl 96 6920 0 6913 1 0 1 1 0 8 0 zombiepl 144 5063 0 5063 3 2 1 1 0 8 1 processpl 840 5092 0 5063 4 0 4 4 0 8 0 procpl 600 11206 0 11170 4 0 4 4 0 8 0 sosppl 128 50 0 50 16 15 1 1 0 8 1 sockpl 384 3869 0 3851 7 4 3 4 0 8 1 mcl64k 65536 590 0 590 75 75 0 33 0 8 0 mcl16k 16384 13 0 13 10 10 0 1 0 8 0 mcl12k 12288 60 0 60 18 17 1 1 0 8 1 mcl9k 9216 64 0 64 20 19 1 1 0 8 1 mcl8k 8192 71 0 71 16 15 1 1 0 8 1 mcl4k 4096 172 0 172 10 9 1 1 0 8 1 mcl2k2 2112 22 0 22 11 11 0 1 0 8 0 mcl2k 2048 59751 0 59711 14 8 6 10 0 8 0 mtagpl 80 6 0 6 3 3 0 1 0 8 0 mbufpl 256 120210 0 120144 35 27 8 21 0 8 0 bufpl 256 18756 0 11917 428 0 428 428 0 8 0 anonpl 16 414677 0 405144 149 104 45 57 0 62 3 amapchunkpl 152 21460 0 21375 64 59 5 14 0 158 0 amappl16 192 26428 0 25906 135 108 27 40 0 8 0 amappl14 176 54 0 53 2 1 1 1 0 8 0 amappl13 168 1052 0 1048 1 0 1 1 0 8 0 amappl12 160 15 0 12 1 0 1 1 0 8 0 amappl11 152 59 0 45 1 0 1 1 0 8 0 amappl10 144 74 0 72 2 1 1 1 0 8 0 amappl9 136 3010 0 3005 1 0 1 1 0 8 0 amappl8 128 2562 0 2546 1 0 1 1 0 8 0 amappl7 120 42 0 37 1 0 1 1 0 8 0 amappl6 112 58 0 51 1 0 1 1 0 8 0 amappl5 104 167 0 157 1 0 1 1 0 8 0 amappl4 96 6195 0 6166 1 0 1 1 0 8 0 amappl3 88 313 0 303 1 0 1 1 0 8 0 amappl2 80 39080 0 39012 4 2 2 3 0 8 0 amappl1 72 95935 0 95516 24 15 9 19 0 8 0 amappl 80 11524 0 11491 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 5077 0 5063 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5077 0 5063 1 0 1 1 0 8 0 vmmpekpl 168 34059 0 34036 2 0 2 2 0 8 0 vmmpepl 168 504176 0 502667 184 113 71 96 0 357 0 vmsppl 264 5076 0 5063 3 2 1 2 0 8 0 pdppl 4096 10160 0 10126 6 1 5 6 0 8 0 pvpl 32 1273759 0 1261120 369 239 130 195 0 265 24 pmappl 200 5076 0 5063 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 706 0 149 18 2 16 16 0 8 0