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 *285860 3866 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,ffff8000009d3f40,0,ffff8000009cf890,38,fffffd80302007e8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff80001495b000,38,ffff80001495af78,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009cf800,ffff80001495b0a8,ffff80001495b000,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8030203b00,fffffd8036fe8900,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8036fe8900,9,fffffd8030203b00,0,0,ffff800014951080) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8036fe8900,0,ffff80001495b2a0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800014951080,3,ffff80001495b380,0,ffff80001495b490) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800014951080,ffff80001495b428,ffff80001495b490) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff80001495b500) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,af74634f010) at Xsyscall+0x128 end of kernel end trace frame: 0xaf9a9359820, 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,ffff8000009d3f40,0,ffff8000009cf890,38,fffffd80302007e8) at rtable_insert+0x66b sys/net/rtable.c:569 rtrequest(1,ffff80001495b000,38,ffff80001495af78,0) at rtrequest+0x875 sys/net/route.c:928 rtm_output(ffff8000009cf800,ffff80001495b0a8,ffff80001495b000,38,0) at rtm_output+0x6e5 sys/net/rtsock.c:896 route_output(fffffd8030203b00,fffffd8036fe8900,0,0) at route_output+0x7d7 sys/net/rtsock.c:814 route_usrreq(fffffd8036fe8900,9,fffffd8030203b00,0,0,ffff800014951080) at route_usrreq+0x363 sys/net/rtsock.c:271 sosend(fffffd8036fe8900,0,ffff80001495b2a0,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513 sendit(ffff800014951080,3,ffff80001495b380,0,ffff80001495b490) at sendit+0x53c sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800014951080,ffff80001495b428,ffff80001495b490) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff80001495b500) at syscall+0x511 Xsyscall(6,0,ffffffffffffffd8,0,6,af74634f010) at Xsyscall+0x128 end of kernel end trace frame: 0xaf9a9359820, count: -13 ddb> show registers rdi 0xffffffff81e3dd87 db_enter+0x17 rsi 0x4d4f __ALIGN_SIZE+0x3d4f rbp 0xffff80001495acc0 rbx 0xffff80001495ad70 rdx 0x4d50 __ALIGN_SIZE+0x3d50 rcx 0xffff8000149f1000 rax 0xffff8000149f1000 r8 0xffff80001495ac80 r9 0x1 r10 0xffff80000098fdc0 r11 0x18ad105c9358669b r12 0x3000000008 r13 0xffff80001495acd0 r14 0x100 r15 0x1 rip 0xffffffff81e3dd88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001495acb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=285860 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800014951c38,0xffffffff822b6920 process=0xffff8000ffff73c0 user=0xffff800014956000, vmspace=0xfffffd803f00c210 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 3866 442355 2592 0 2 0 syz-executor.1 * 3866 285860 2592 0 7 0x4000000 syz-executor.1 56508 293392 1 0 3 0x100083 ttyin getty 21424 452255 0 0 3 0x14200 bored sosplice 1729 266723 47397 0 2 0x482 syz-executor.0 2592 252663 47397 0 2 0x482 syz-executor.1 47397 337744 56053 0 3 0x82 thrsleep syz-fuzzer 47397 235481 56053 0 3 0x4000082 thrsleep syz-fuzzer 47397 494034 56053 0 3 0x4000082 thrsleep syz-fuzzer 47397 162870 56053 0 3 0x4000082 thrsleep syz-fuzzer 47397 457947 56053 0 3 0x4000082 thrsleep syz-fuzzer 47397 404814 56053 0 3 0x4000082 kqread syz-fuzzer 47397 284951 56053 0 3 0x4000082 thrsleep syz-fuzzer 47397 366129 56053 0 3 0x4000082 thrsleep syz-fuzzer 56053 258280 39508 0 3 0x10008a pause ksh 39508 161944 43291 0 3 0x92 select sshd 43291 352257 1 0 3 0x80 select sshd 24369 404583 37010 73 3 0x100090 kqread syslogd 37010 479856 1 0 3 0x100082 netio syslogd 84273 357075 1 77 3 0x100090 poll dhclient 81895 126824 1 0 3 0x80 poll dhclient 35246 53225 0 0 2 0x14200 zerothread 21499 467184 0 0 3 0x14200 aiodoned aiodoned 58539 263234 0 0 3 0x14200 syncer update 36779 60198 0 0 3 0x14200 cleaner cleaner 99284 309652 0 0 3 0x14200 reaper reaper 52391 109990 0 0 3 0x14200 pgdaemon pagedaemon 93074 32801 0 0 3 0x14200 bored crynlk 63516 206847 0 0 3 0x14200 bored crypto 98351 486831 0 0 3 0x40014200 acpi0 acpi0 39874 374038 0 0 3 0x14200 bored softnet 36980 178489 0 0 2 0x14200 systqmp 46174 69728 0 0 3 0x14200 bored systq 19041 357616 0 0 3 0x40014200 bored softclock 89616 495353 0 0 3 0x40014200 idle0 83372 352950 0 0 3 0x14200 bored smr 1 242266 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 9505 6524K 6784K 78643K 14062 0 0 pcb 24 9K 10K 78643K 996 0 0 rtable 119 5K 5K 78643K 581 0 0 ifaddr 53 13K 14K 78643K 242 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 92 0 0 iov 0 0K 32K 78643K 276 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 76K 78643K 2817 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 23 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 104 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 2304 0 0 sigio 0 0K 0K 78643K 32 0 0 proc 42 30K 46K 78643K 534 0 0 subproc 32 2K 2K 78643K 36 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 207 0 0 in_multi 33 2K 2K 78643K 96 0 0 ether_multi 1 0K 0K 78643K 10 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 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 298 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 83 20K 29K 78643K 6184 0 0 UVM aobj 71 3K 3K 78643K 79 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 76 0 0 NDP 10 0K 0K 78643K 63 0 0 temp 160 2711K 2807K 78643K 9536 0 0 kqueue 0 0K 0K 78643K 13 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 816 0 809 1 0 1 1 0 8 0 plimitpl 152 59 0 52 1 0 1 1 0 8 0 rtentry 112 56 0 10 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 309 0 305 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 40 0 40 7 6 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 42 0 4 1 0 1 1 0 8 0 semapl 112 98 0 88 1 0 1 1 0 8 0 shmpl 112 77 0 8 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5121 0 3688 47 0 47 47 0 8 0 ffsino 240 5121 0 3688 85 0 85 85 0 8 0 nchpl 144 8460 0 6833 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 25623 0 25623 2 1 1 1 0 8 1 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 25637 0 25637 12 11 1 6 0 8 1 sigapl 432 2477 0 2464 2 0 2 2 0 8 0 futexpl 56 33628 0 33628 1 0 1 1 0 8 1 knotepl 112 358 0 339 1 0 1 1 0 8 0 kqueuepl 104 461 0 459 1 0 1 1 0 8 0 pipepl 112 1278 0 1259 4 3 1 2 0 8 0 fdescpl 424 2478 0 2464 2 0 2 2 0 8 0 filepl 120 13476 0 13380 5 1 4 5 0 8 1 lockfpl 104 595 0 595 3 2 1 1 0 8 1 lockfspl 48 207 0 207 3 2 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 43 0 33 1 0 1 1 0 8 0 ucredpl 96 3390 0 3383 1 0 1 1 0 8 0 zombiepl 144 2464 0 2463 2 1 1 1 0 8 0 processpl 840 2493 0 2463 4 0 4 4 0 8 0 procpl 600 5396 0 5358 4 0 4 4 0 8 0 sosppl 128 17 0 17 5 4 1 1 0 8 1 sockpl 384 1705 0 1687 4 1 3 3 0 8 1 mcl64k 65536 283 0 283 35 34 1 29 0 8 1 mcl16k 16384 3 0 3 3 3 0 1 0 8 0 mcl12k 12288 32 0 32 11 10 1 1 0 8 1 mcl9k 9216 26 0 26 8 7 1 1 0 8 1 mcl8k 8192 22 0 22 9 8 1 1 0 8 1 mcl4k 4096 79 0 79 6 5 1 1 0 8 1 mcl2k2 2112 13 0 13 5 5 0 1 0 8 0 mcl2k 2048 54127 0 54083 16 10 6 10 0 8 0 mtagpl 80 6 0 6 2 2 0 1 0 8 0 mbufpl 256 98206 0 98113 30 22 8 21 0 8 0 bufpl 256 11425 0 5733 356 0 356 356 0 8 0 anonpl 16 236277 0 227276 131 78 53 54 0 62 15 amapchunkpl 152 10031 0 9950 22 18 4 14 0 158 0 amappl16 192 13593 0 13107 118 85 33 37 0 8 8 amappl14 176 35 0 33 2 1 1 1 0 8 0 amappl13 168 1106 0 1104 1 0 1 1 0 8 0 amappl12 160 1178 0 1176 1 0 1 1 0 8 0 amappl11 152 53 0 39 1 0 1 1 0 8 0 amappl10 144 66 0 64 2 1 1 1 0 8 0 amappl9 136 541 0 537 1 0 1 1 0 8 0 amappl8 128 129 0 113 1 0 1 1 0 8 0 amappl7 120 29 0 26 1 0 1 1 0 8 0 amappl6 112 55 0 47 1 0 1 1 0 8 0 amappl5 104 1327 0 1314 1 0 1 1 0 8 0 amappl4 96 1481 0 1458 1 0 1 1 0 8 0 amappl3 88 1403 0 1393 1 0 1 1 0 8 0 amappl2 80 19107 0 19041 4 2 2 3 0 8 0 amappl1 72 54475 0 54057 24 15 9 19 0 8 0 amappl 80 5667 0 5635 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 78 0 8 2 0 2 2 0 8 0 uaddrrnd 24 2478 0 2464 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2478 0 2464 1 0 1 1 0 8 0 vmmpekpl 168 16339 0 16316 2 0 2 2 0 8 0 vmmpepl 168 255624 0 254164 140 61 79 80 0 357 11 vmsppl 264 2477 0 2464 2 1 1 2 0 8 0 pdppl 4096 4963 0 4928 6 1 5 6 0 8 0 pvpl 32 700409 0 688341 266 131 135 232 0 265 33 pmappl 200 2477 0 2464 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 568 0 86 15 0 15 15 0 8 0