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 *446979 49285 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(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009da280,0,ffff8000009d8290,38,fffffd80308922a8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000159c62e0,38,ffff8000159c6258,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009d8200,ffff8000159c6388,ffff8000159c62e0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8036b1b300,fffffd803840aa80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803840aa80,9,fffffd8036b1b300,0,0,ffff8000159f9c38) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803840aa80,0,ffff8000159c6580,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159f9c38,3,ffff8000159c6660,0,ffff8000159c6770) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159f9c38,ffff8000159c6708,ffff8000159c6770) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000159c67e0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,8231774d010) at Xsyscall+0x128 end of kernel end trace frame: 0x8259d886610, 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(ffffffff81f7c399,ffffffff81f3aad6,239,ffffffff81f16fee) at __assert+0x2e sys/kern/subr_prf.c:159 rtable_insert(0,ffff8000009da280,0,ffff8000009d8290,38,fffffd80308922a8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff8000159c62e0,38,ffff8000159c6258,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009d8200,ffff8000159c6388,ffff8000159c62e0,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8036b1b300,fffffd803840aa80,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd803840aa80,9,fffffd8036b1b300,0,0,ffff8000159f9c38) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd803840aa80,0,ffff8000159c6580,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff8000159f9c38,3,ffff8000159c6660,0,ffff8000159c6770) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000159f9c38,ffff8000159c6708,ffff8000159c6770) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff8000159c67e0) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,8231774d010) at Xsyscall+0x128 end of kernel end trace frame: 0x8259d886610, count: -13 ddb> show registers rdi 0xffffffff81db3e57 db_enter+0x17 rsi 0x5455 __ALIGN_SIZE+0x4455 rbp 0xffff8000159c5fa0 rbx 0xffff8000159c6050 rdx 0x5456 __ALIGN_SIZE+0x4456 rcx 0xffff800015a1c000 rax 0xffff800015a1c000 r8 0xffff8000159c5f60 r9 0x1 r10 0xffff80000099dd40 r11 0xca221483df8291cf r12 0x3000000008 r13 0xffff8000159c5fb0 r14 0x100 r15 0x1 rip 0xffffffff81db3e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159c5f90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=446979 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff8000159f9530,0xffffffff822b7b98 process=0xffff800014953080 user=0xffff8000159c1000, vmspace=0xfffffd803f014318 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 49285 292678 70418 0 2 0 syz-executor.0 *49285 446979 70418 0 7 0x4000000 syz-executor.0 34172 115269 16268 0 2 0 syz-executor.1 34172 454574 16268 0 3 0x4000080 bell syz-executor.1 49470 424749 1 0 3 0x100083 ttyopn getty 16268 361576 29435 0 3 0x82 nanosleep syz-executor.1 70418 281380 29435 0 2 0x482 syz-executor.0 23388 79337 0 0 3 0x14200 bored sosplice 29435 195797 76999 0 3 0x82 thrsleep syz-fuzzer 29435 499598 76999 0 2 0x4000482 syz-fuzzer 29435 117710 76999 0 3 0x4000082 thrsleep syz-fuzzer 29435 211220 76999 0 3 0x4000082 thrsleep syz-fuzzer 29435 263596 76999 0 3 0x4000082 thrsleep syz-fuzzer 29435 149188 76999 0 3 0x4000082 kqread syz-fuzzer 29435 56050 76999 0 3 0x4000082 thrsleep syz-fuzzer 76999 524222 26933 0 3 0x10008a pause ksh 26933 396019 21144 0 3 0x92 select sshd 21144 43665 1 0 3 0x80 select sshd 35884 198354 87296 73 3 0x100090 kqread syslogd 87296 387190 1 0 3 0x100082 netio syslogd 21911 359057 1 77 3 0x100090 poll dhclient 54985 503152 1 0 3 0x80 poll dhclient 7407 430544 0 0 2 0x14200 zerothread 93742 198508 0 0 3 0x14200 aiodoned aiodoned 33526 205359 0 0 3 0x14200 syncer update 69431 272184 0 0 3 0x14200 cleaner cleaner 88399 437980 0 0 3 0x14200 reaper reaper 47377 25168 0 0 3 0x14200 pgdaemon pagedaemon 89450 515279 0 0 3 0x14200 bored crynlk 24162 458024 0 0 3 0x14200 bored crypto 23115 68756 0 0 3 0x40014200 acpi0 acpi0 24311 445648 0 0 3 0x14200 bored softnet 51118 96535 0 0 2 0x14200 systqmp 79658 479326 0 0 3 0x14200 bored systq 72705 140398 0 0 3 0x40014200 bored softclock 49309 484096 0 0 3 0x40014200 idle0 28786 190782 0 0 3 0x14200 bored smr 1 153406 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 9512 6369K 6992K 78643K 16185 0 0 pcb 24 9K 10K 78643K 1391 0 0 rtable 125 5K 5K 78643K 907 0 0 ifaddr 58 14K 15K 78643K 355 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 122 0 0 iov 0 0K 28K 78643K 341 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1203 76K 76K 78643K 3523 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 35 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 154 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 2837 0 0 sigio 0 0K 0K 78643K 52 0 0 proc 42 30K 54K 78643K 785 0 0 subproc 32 2K 2K 78643K 85 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 265 0 0 in_multi 33 2K 2K 78643K 129 0 0 ether_multi 1 0K 0K 78643K 11 0 0 mrt 0 0K 0K 78643K 6 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 389 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 88 20K 29K 78643K 7550 0 0 UVM aobj 104 5K 5K 78643K 113 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 82 0 0 NDP 12 0K 0K 78643K 98 0 0 temp 172 2715K 2828K 78643K 11778 0 0 kqueue 0 0K 0K 78643K 25 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 12 0 6 1 0 1 1 0 8 0 inpcbpl 280 1133 0 1126 1 0 1 1 0 8 0 plimitpl 152 101 0 94 1 0 1 1 0 8 0 rtentry 112 103 0 57 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 422 0 418 1 0 1 1 0 8 0 nd6 48 15 0 9 1 0 1 1 0 8 0 ppxss 1128 62 0 62 9 8 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 334 0 136 13 0 13 13 0 8 0 art_table 32 335 0 136 2 0 2 2 0 8 0 art_node 16 79 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 5 1 0 1 1 0 8 0 semapl 112 152 0 142 1 0 1 1 0 8 0 shmpl 112 111 0 9 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6032 0 4589 48 1 47 47 0 8 0 ffsino 240 6032 0 4589 85 0 85 85 0 8 0 nchpl 144 10076 0 8466 61 0 61 61 0 8 0 uvmvnodes 72 6783 0 0 124 0 124 124 0 8 0 vnodes 200 6783 0 0 357 0 357 357 0 8 0 namei 1024 31161 0 31161 5 4 1 1 0 8 1 scsiplug 64 6 0 6 5 4 1 1 0 8 1 scxspl 192 33607 0 33607 27 24 3 6 0 8 3 sigapl 432 3004 0 2990 2 0 2 2 0 8 0 futexpl 56 41974 0 41974 3 2 1 1 0 8 1 knotepl 112 598 0 579 1 0 1 1 0 8 0 kqueuepl 104 564 0 562 1 0 1 1 0 8 0 pipepl 112 1796 0 1777 8 6 2 2 0 8 1 fdescpl 424 3005 0 2990 2 0 2 2 0 8 0 filepl 120 17490 0 17394 7 3 4 5 0 8 1 lockfpl 104 864 0 863 4 3 1 1 0 8 0 lockfspl 48 316 0 315 4 3 1 1 0 8 0 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 81 0 71 1 0 1 1 0 8 0 ucredpl 96 4091 0 4084 1 0 1 1 0 8 0 zombiepl 144 2990 0 2990 3 2 1 1 0 8 1 processpl 840 3020 0 2990 4 0 4 4 0 8 0 procpl 600 6614 0 6576 4 0 4 4 0 8 0 sosppl 128 43 0 43 8 7 1 1 0 8 1 sockpl 384 2360 0 2342 5 2 3 3 0 8 1 mcl64k 65536 583 0 583 70 69 1 33 0 8 1 mcl16k 16384 12 0 12 9 8 1 1 0 8 1 mcl12k 12288 33 0 33 11 11 0 1 0 8 0 mcl9k 9216 39 0 39 12 11 1 1 0 8 1 mcl8k 8192 39 0 39 13 12 1 1 0 8 1 mcl4k 4096 133 0 133 6 5 1 1 0 8 1 mcl2k2 2112 16 0 16 8 7 1 1 0 8 1 mcl2k 2048 55611 0 55569 15 9 6 10 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 104914 0 104841 41 34 7 22 0 8 0 bufpl 256 14454 0 7671 425 0 425 425 0 8 0 anonpl 16 257145 0 248102 151 112 39 54 0 62 0 amapchunkpl 152 13423 0 13339 45 41 4 14 0 158 0 amappl16 192 12760 0 12272 80 54 26 37 0 8 1 amappl15 184 2028 0 2024 2 1 1 1 0 8 0 amappl14 176 1380 0 1373 2 1 1 1 0 8 0 amappl13 168 671 0 671 1 1 0 1 0 8 0 amappl12 160 79 0 78 1 0 1 1 0 8 0 amappl11 152 62 0 48 1 0 1 1 0 8 0 amappl10 144 79 0 77 2 1 1 1 0 8 0 amappl9 136 579 0 576 1 0 1 1 0 8 0 amappl8 128 175 0 155 1 0 1 1 0 8 0 amappl7 120 47 0 42 1 0 1 1 0 8 0 amappl6 112 58 0 52 1 0 1 1 0 8 0 amappl5 104 259 0 246 1 0 1 1 0 8 0 amappl4 96 1843 0 1823 1 0 1 1 0 8 0 amappl3 88 2891 0 2872 1 0 1 1 0 8 0 amappl2 80 24757 0 24685 4 2 2 3 0 8 0 amappl1 72 60991 0 60563 25 15 10 19 0 8 0 amappl 80 6905 0 6871 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 112 0 9 2 0 2 2 0 8 0 uaddrrnd 24 3005 0 2990 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3005 0 2990 1 0 1 1 0 8 0 vmmpekpl 168 22199 0 22178 2 0 2 2 0 8 0 vmmpepl 168 302502 0 300947 177 108 69 93 0 357 1 vmsppl 264 3004 0 2990 3 2 1 2 0 8 0 pdppl 4096 6016 0 5980 7 2 5 6 0 8 0 pvpl 32 850099 0 837832 351 226 125 242 0 265 24 pmappl 200 3004 0 2990 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 696 0 145 18 0 18 18 0 8 0