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 * 35534 23742 0 0 0x4000000 0 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:212 __assert(ffffffff81f7aa47,ffffffff81f39f83,239,ffffffff81f1656f) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000a53ec0,0,ffff8000009f3e90,38,fffffd80303b72a8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a46550,38,ffff800015a464c8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009f3e00,ffff800015a465f8,ffff800015a46550,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8035145600,fffffd8038220c00,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8038220c00,9,fffffd8035145600,0,0,ffff8000149512d8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8038220c00,0,ffff800015a467f0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149512d8,3,ffff800015a468d0,0,ffff800015a469e0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149512d8,ffff800015a46978,ffff800015a469e0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a46a50) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,81c745c4010) at Xsyscall+0x128 end of kernel end trace frame: 0x81f4539f620, 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(ffffffff81f7aa47,ffffffff81f39f83,239,ffffffff81f1656f) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff800000a53ec0,0,ffff8000009f3e90,38,fffffd80303b72a8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff800015a46550,38,ffff800015a464c8,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009f3e00,ffff800015a465f8,ffff800015a46550,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8035145600,fffffd8038220c00,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8038220c00,9,fffffd8035145600,0,0,ffff8000149512d8) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8038220c00,0,ffff800015a467f0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000149512d8,3,ffff800015a468d0,0,ffff800015a469e0) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149512d8,ffff800015a46978,ffff800015a469e0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800015a46a50) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,81c745c4010) at Xsyscall+0x128 end of kernel end trace frame: 0x81f4539f620, count: -13 ddb> show registers rdi 0xffffffff81e3dd87 db_enter+0x17 rsi 0x4fe0 __ALIGN_SIZE+0x3fe0 rbp 0xffff800015a46210 rbx 0xffff800015a462c0 rdx 0x4fe1 __ALIGN_SIZE+0x3fe1 rcx 0xffff800016bf9000 rax 0xffff800016bf9000 r8 0xffff800015a461d0 r9 0x1 r10 0xffff800000994840 r11 0xbd935a2708844693 r12 0x3000000008 r13 0xffff800015a46220 r14 0x100 r15 0x1 rip 0xffffffff81e3dd88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a46200 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=35534 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800014951788,0xffffffff822b6920 process=0xffff8000ffff6d30 user=0xffff800015a41000, vmspace=0xfffffd803f00cd68 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23742 245665 99888 0 2 0 syz-executor.1 *23742 35534 99888 0 7 0x4000000 syz-executor.1 76459 133578 1 0 3 0x100083 ttyin getty 37921 279130 0 0 3 0x14200 bored sosplice 18504 238348 37974 0 2 0x482 syz-executor.0 99888 23820 37974 0 2 0x482 syz-executor.1 37974 466768 21849 0 3 0x82 thrsleep syz-fuzzer 37974 89636 21849 0 3 0x4000082 thrsleep syz-fuzzer 37974 391992 21849 0 3 0x4000082 thrsleep syz-fuzzer 37974 158139 21849 0 3 0x4000082 thrsleep syz-fuzzer 37974 426014 21849 0 3 0x4000082 kqread syz-fuzzer 37974 405869 21849 0 3 0x4000082 thrsleep syz-fuzzer 37974 482701 21849 0 3 0x4000082 thrsleep syz-fuzzer 37974 477783 21849 0 3 0x4000082 thrsleep syz-fuzzer 21849 247659 63086 0 3 0x10008a pause ksh 63086 393463 51366 0 3 0x92 select sshd 51366 15402 1 0 3 0x80 select sshd 78342 77117 36624 73 3 0x100090 kqread syslogd 36624 67946 1 0 3 0x100082 netio syslogd 44104 95087 1 77 3 0x100090 poll dhclient 83453 415391 1 0 3 0x80 poll dhclient 38456 465498 0 0 2 0x14200 zerothread 39942 73386 0 0 3 0x14200 aiodoned aiodoned 61777 167648 0 0 3 0x14200 syncer update 15817 83863 0 0 3 0x14200 cleaner cleaner 84916 20042 0 0 3 0x14200 reaper reaper 83142 329126 0 0 3 0x14200 pgdaemon pagedaemon 25270 87372 0 0 3 0x14200 bored crynlk 23658 363080 0 0 3 0x14200 bored crypto 7582 517242 0 0 3 0x40014200 acpi0 acpi0 25021 116749 0 0 3 0x14200 bored softnet 64632 138187 0 0 2 0x14200 systqmp 9875 340313 0 0 3 0x14200 bored systq 61279 473401 0 0 3 0x40014200 bored softclock 3731 225910 0 0 3 0x40014200 idle0 53578 93128 0 0 3 0x14200 bored smr 1 431802 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 9521 6488K 15160K 78643K 23962 0 0 pcb 24 9K 11K 78643K 3264 0 0 rtable 140 6K 6K 78643K 1322 0 0 ifaddr 57 16K 19K 78643K 577 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 242 0 0 iov 0 0K 32K 78643K 773 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 76K 78643K 6811 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 72 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 330 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 7121 0 0 sigio 1 0K 0K 78643K 106 0 0 proc 42 30K 54K 78643K 1113 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 701 0 0 in_multi 33 2K 2K 78643K 242 0 0 ether_multi 1 0K 0K 78643K 32 0 0 mrt 0 0K 0K 78643K 18 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 634 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 82 20K 38K 78643K 17283 0 0 UVM aobj 130 8K 8K 78643K 146 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 241 0 0 NDP 11 0K 0K 78643K 150 0 0 temp 169 2715K 3355K 78643K 23714 0 0 kqueue 0 0K 0K 78643K 87 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 2773 0 2765 3 2 1 2 0 8 0 plimitpl 152 170 0 163 1 0 1 1 0 8 0 rtentry 112 82 0 31 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1039 0 1035 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 123 0 123 22 21 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 225 0 0 15 0 15 15 0 8 0 art_table 32 226 0 0 2 0 2 2 0 8 0 art_node 16 51 0 8 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 328 0 318 1 0 1 1 0 8 0 shmpl 112 144 0 16 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13213 0 11715 49 0 49 49 0 8 0 ffsino 240 13213 0 11715 90 1 89 89 0 8 0 nchpl 144 23308 0 21680 61 0 61 61 0 8 0 uvmvnodes 72 5940 0 0 108 0 108 108 0 8 0 vnodes 200 5940 0 0 313 0 313 313 0 8 0 namei 1024 72164 0 72164 3 2 1 1 0 8 1 scsiplug 64 6 0 6 5 5 0 1 0 8 0 scxspl 192 75659 0 75659 35 34 1 6 0 8 1 sigapl 432 7299 0 7286 2 0 2 2 0 8 0 futexpl 56 105346 0 105346 2 1 1 1 0 8 1 knotepl 112 1405 0 1386 2 1 1 2 0 8 0 kqueuepl 104 1720 0 1718 1 0 1 1 0 8 0 pipepl 112 3922 0 3903 12 11 1 2 0 8 0 fdescpl 424 7300 0 7286 2 0 2 2 0 8 0 filepl 120 41513 0 41417 6 2 4 5 0 8 1 lockfpl 104 2281 0 2281 3 2 1 1 0 8 1 lockfspl 48 773 0 773 3 2 1 1 0 8 1 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 120 0 110 1 0 1 1 0 8 0 ucredpl 96 9861 0 9854 1 0 1 1 0 8 0 zombiepl 144 7286 0 7285 2 1 1 1 0 8 0 processpl 840 7315 0 7285 4 0 4 4 0 8 0 procpl 600 16268 0 16230 4 0 4 4 0 8 0 sosppl 128 69 0 69 18 17 1 1 0 8 1 sockpl 384 5682 0 5664 6 3 3 4 0 8 1 mcl64k 65536 702 0 702 85 85 0 65 0 8 0 mcl16k 16384 15 0 15 13 12 1 1 0 8 1 mcl12k 12288 119 0 119 20 19 1 1 0 8 1 mcl9k 9216 98 0 98 23 22 1 1 0 8 1 mcl8k 8192 91 0 91 21 20 1 1 0 8 1 mcl4k 4096 266 0 266 7 6 1 1 0 8 1 mcl2k2 2112 31 0 31 13 13 0 1 0 8 0 mcl2k 2048 63525 0 63485 11 5 6 9 0 8 0 mtagpl 80 8 0 8 4 4 0 1 0 8 0 mbufpl 256 136699 0 136631 42 36 6 37 0 8 0 bufpl 256 25173 0 19233 372 0 372 372 0 8 0 anonpl 16 634779 0 625111 238 190 48 57 0 62 7 amapchunkpl 152 30305 0 30220 106 97 9 18 0 158 4 amappl16 192 38520 0 37995 238 210 28 39 0 8 1 amappl15 184 9 0 8 1 0 1 1 0 8 0 amappl14 176 39 0 37 2 1 1 1 0 8 0 amappl12 160 3532 0 3530 2 1 1 1 0 8 0 amappl11 152 52 0 38 1 0 1 1 0 8 0 amappl10 144 3637 0 3633 2 1 1 1 0 8 0 amappl9 136 552 0 549 1 0 1 1 0 8 0 amappl8 128 147 0 129 1 0 1 1 0 8 0 amappl7 120 3595 0 3590 1 0 1 1 0 8 0 amappl6 112 56 0 50 1 0 1 1 0 8 0 amappl5 104 3610 0 3599 1 0 1 1 0 8 0 amappl4 96 7359 0 7335 1 0 1 1 0 8 0 amappl3 88 398 0 388 1 0 1 1 0 8 0 amappl2 80 56943 0 56878 4 2 2 3 0 8 0 amappl1 72 131681 0 131272 24 15 9 19 0 8 0 amappl 80 16578 0 16545 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 145 0 16 3 0 3 3 0 8 0 uaddrrnd 24 7300 0 7286 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7300 0 7286 1 0 1 1 0 8 0 vmmpekpl 168 45492 0 45469 2 0 2 2 0 8 0 vmmpepl 168 730282 0 728787 228 157 71 95 0 357 1 vmsppl 264 7299 0 7286 2 1 1 2 0 8 0 pdppl 4096 14607 0 14572 6 1 5 6 0 8 0 pvpl 32 1889642 0 1876870 579 367 212 243 0 265 106 pmappl 200 7299 0 7286 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 672 0 170 17 2 15 15 0 8 0