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 *491500 96463 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,ffff80000097f5c0,0,ffff8000009df290,38,fffffd80302017e8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017bf3ff0,38,ffff800017bf3f68,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009df200,ffff800017bf4098,ffff800017bf3ff0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80354bac00,fffffd8036fde600,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8036fde600,9,fffffd80354bac00,0,0,ffff8000ffff8710) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8036fde600,0,ffff800017bf4290,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff8710,3,ffff800017bf4370,0,ffff800017bf4480) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff8710,ffff800017bf4418,ffff800017bf4480) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017bf44f0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,36afa270010) at Xsyscall+0x128 end of kernel end trace frame: 0x36d3cdf27b0, 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,ffff80000097f5c0,0,ffff8000009df290,38,fffffd80302017e8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800017bf3ff0,38,ffff800017bf3f68,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009df200,ffff800017bf4098,ffff800017bf3ff0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd80354bac00,fffffd8036fde600,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8036fde600,9,fffffd80354bac00,0,0,ffff8000ffff8710) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8036fde600,0,ffff800017bf4290,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000ffff8710,3,ffff800017bf4370,0,ffff800017bf4480) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff8710,ffff800017bf4418,ffff800017bf4480) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800017bf44f0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,36afa270010) at Xsyscall+0x128 end of kernel end trace frame: 0x36d3cdf27b0, count: -13 ddb> show registers rdi 0xffffffff8152b5b7 db_enter+0x17 rsi 0x4ec6 __ALIGN_SIZE+0x3ec6 rbp 0xffff800017bf3cb0 rbx 0xffff800017bf3d60 rdx 0x4ec7 __ALIGN_SIZE+0x3ec7 rcx 0xffff800016bef000 rax 0xffff800016bef000 r8 0xffff800017bf3c70 r9 0x1 r10 0xffff8000009967c0 r11 0xfacd434144ac4248 r12 0x3000000008 r13 0xffff800017bf3cc0 r14 0x100 r15 0x1 rip 0xffffffff8152b5b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017bf3ca0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=491500 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff99d0,0xffff8000ffff52e0 process=0xffff8000ffff6d30 user=0xffff800017bef000, vmspace=0xfffffd803f013e70 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 18362 443809 16785 0 2 0 syz-executor.1 18362 129247 16785 0 3 0x4000080 fsleep syz-executor.1 96463 190770 83180 0 2 0 syz-executor.0 *96463 491500 83180 0 7 0x4000000 syz-executor.0 42355 116258 1 0 3 0x100083 ttyin getty 94041 361926 0 0 3 0x14200 bored sosplice 83180 30933 35923 0 3 0x82 nanosleep syz-executor.0 16785 374472 35923 0 2 0x482 syz-executor.1 35923 410435 71159 0 3 0x82 thrsleep syz-fuzzer 35923 210630 71159 0 3 0x4000082 thrsleep syz-fuzzer 35923 294779 71159 0 3 0x4000082 thrsleep syz-fuzzer 35923 426964 71159 0 3 0x4000082 kqread syz-fuzzer 35923 415494 71159 0 3 0x4000082 thrsleep syz-fuzzer 35923 226733 71159 0 3 0x4000082 thrsleep syz-fuzzer 35923 508494 71159 0 3 0x4000082 thrsleep syz-fuzzer 71159 161287 23539 0 3 0x10008a pause ksh 23539 449658 10153 0 3 0x92 select sshd 10153 329885 1 0 3 0x80 select sshd 37490 141104 78009 73 3 0x100090 kqread syslogd 78009 152551 1 0 3 0x100082 netio syslogd 40905 220294 1 77 3 0x100090 poll dhclient 71885 161348 1 0 3 0x80 poll dhclient 22638 82743 0 0 2 0x14200 zerothread 95899 377253 0 0 3 0x14200 aiodoned aiodoned 51822 246935 0 0 3 0x14200 syncer update 81641 322511 0 0 3 0x14200 cleaner cleaner 15173 497407 0 0 3 0x14200 reaper reaper 41803 520213 0 0 3 0x14200 pgdaemon pagedaemon 24803 21091 0 0 3 0x14200 bored crynlk 13668 68608 0 0 3 0x14200 bored crypto 80794 304197 0 0 3 0x40014200 acpi0 acpi0 42605 496817 0 0 3 0x14200 bored softnet 99951 200121 0 0 2 0x14200 systqmp 23417 319149 0 0 3 0x14200 bored systq 1002 436853 0 0 3 0x40014200 bored softclock 74891 295303 0 0 3 0x40014200 idle0 96337 344528 0 0 3 0x14200 bored smr 1 103680 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 9498 6478K 6977K 78643K 13379 0 0 pcb 24 9K 11K 78643K 851 0 0 rtable 116 4K 4K 78643K 470 0 0 ifaddr 51 13K 14K 78643K 184 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 65 0 0 iov 0 0K 16K 78643K 161 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 76K 78643K 2463 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 24 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 91 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 1651 0 0 sigio 0 0K 0K 78643K 24 0 0 proc 42 30K 54K 78643K 432 0 0 subproc 32 2K 2K 78643K 42 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 164 0 0 in_multi 33 2K 2K 78643K 101 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 319 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 80 20K 24K 78643K 4695 0 0 UVM aobj 77 6K 6K 78643K 94 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 77 0 0 NDP 9 0K 0K 78643K 48 0 0 temp 150 2715K 2831K 78643K 7771 0 0 kqueue 0 0K 0K 78643K 17 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 723 0 716 1 0 1 1 0 8 0 plimitpl 152 48 0 41 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 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpcb 544 274 0 270 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 28 0 28 5 4 1 1 0 8 1 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 29 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 89 0 79 1 0 1 1 0 8 0 shmpl 112 92 0 17 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4218 0 2799 46 0 46 46 0 8 0 ffsino 240 4218 0 2799 84 0 84 84 0 8 0 nchpl 144 6694 0 5060 61 0 61 61 0 8 0 uvmvnodes 72 4895 0 0 89 0 89 89 0 8 0 vnodes 200 4895 0 0 258 0 258 258 0 8 0 namei 1024 20054 0 20054 3 2 1 1 0 8 1 scsiplug 64 8 0 8 5 5 0 1 0 8 0 scxspl 192 19661 0 19661 14 13 1 6 0 8 1 sigapl 432 1823 0 1809 2 0 2 2 0 8 0 futexpl 56 24485 0 24484 2 1 1 1 0 8 0 knotepl 112 364 0 345 1 0 1 1 0 8 0 kqueuepl 104 421 0 419 1 0 1 1 0 8 0 pipepl 112 1020 0 1001 6 5 1 2 0 8 0 fdescpl 424 1824 0 1809 2 0 2 2 0 8 0 filepl 120 10683 0 10588 7 3 4 6 0 8 1 lockfpl 104 440 0 440 3 2 1 1 0 8 1 lockfspl 48 151 0 151 3 2 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 44 0 34 1 0 1 1 0 8 0 ucredpl 96 2529 0 2522 1 0 1 1 0 8 0 zombiepl 144 1809 0 1809 2 1 1 1 0 8 1 processpl 840 1839 0 1809 4 0 4 4 0 8 0 procpl 600 3917 0 3879 5 1 4 4 0 8 1 sosppl 128 14 0 14 6 6 0 1 0 8 0 sockpl 384 1476 0 1458 5 2 3 4 0 8 1 mcl64k 65536 304 0 304 35 28 7 32 0 8 7 mcl16k 16384 5 0 5 3 3 0 1 0 8 0 mcl12k 12288 16 0 16 5 5 0 1 0 8 0 mcl9k 9216 23 0 23 8 7 1 1 0 8 1 mcl8k 8192 25 0 25 3 2 1 1 0 8 1 mcl4k 4096 65 0 65 5 4 1 1 0 8 1 mcl2k2 2112 7 0 7 3 2 1 1 0 8 1 mcl2k 2048 53859 0 53817 14 8 6 10 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 95871 0 95734 30 21 9 22 0 8 0 bufpl 256 10583 0 4956 352 0 352 352 0 8 0 anonpl 16 155585 0 146293 96 57 39 54 0 62 1 amapchunkpl 152 7650 0 7566 22 17 5 14 0 158 0 amappl16 192 9366 0 8862 59 33 26 38 0 8 0 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 35 0 33 2 1 1 1 0 8 0 amappl13 168 820 0 818 1 0 1 1 0 8 0 amappl12 160 11 0 9 1 0 1 1 0 8 0 amappl11 152 51 0 37 1 0 1 1 0 8 0 amappl10 144 67 0 63 1 0 1 1 0 8 0 amappl9 136 548 0 545 1 0 1 1 0 8 0 amappl8 128 121 0 110 1 0 1 1 0 8 0 amappl7 120 28 0 25 1 0 1 1 0 8 0 amappl6 112 56 0 48 1 0 1 1 0 8 0 amappl5 104 138 0 128 1 0 1 1 0 8 0 amappl4 96 1965 0 1942 1 0 1 1 0 8 0 amappl3 88 213 0 203 1 0 1 1 0 8 0 amappl2 80 14753 0 14677 4 2 2 3 0 8 0 amappl1 72 41309 0 40898 26 17 9 19 0 8 0 amappl 80 4199 0 4165 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 93 0 17 2 0 2 2 0 8 0 uaddrrnd 24 1824 0 1809 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1824 0 1809 1 0 1 1 0 8 0 vmmpekpl 168 13749 0 13725 2 0 2 2 0 8 0 vmmpepl 168 184864 0 183333 106 37 69 78 0 357 2 vmsppl 264 1823 0 1809 2 1 1 2 0 8 0 pdppl 4096 3654 0 3618 6 1 5 6 0 8 0 pvpl 32 515427 0 502992 237 101 136 206 0 265 35 pmappl 200 1823 0 1809 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 555 0 71 15 0 15 15 0 8 0