panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 131 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *435242 26666 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2d1d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067c21,ffffffff8303803c,83,ffffffff830a8800) at __assert+0x29 rtmap_grow(2c,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(2b) at rtable_add+0x279 if_createrdomain(2b,ffff800001596800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806cd13600,8020699f,ffff8000374cf470,ffff80002a506cd8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a506cd8,ffff8000374cf650,ffff8000374cf5a0) at sys_ioctl+0x678 syscall(ffff8000374cf650) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9f6f757140, count: 5 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 *cpu0: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/main/kernel/sys/net/rtable.c", line 131 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2d1d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067c21,ffffffff8303803c,83,ffffffff830a8800) at __assert+0x29 rtmap_grow(2c,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(2b) at rtable_add+0x279 if_createrdomain(2b,ffff800001596800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806cd13600,8020699f,ffff8000374cf470,ffff80002a506cd8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a506cd8,ffff8000374cf650,ffff8000374cf5a0) at sys_ioctl+0x678 syscall(ffff8000374cf650) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9f6f757140, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000374cf1a0 rbx 0x21 rdx 0 rcx 0 rax 0xffff80002a506cd8 r8 0 r9 0x8080808080808080 r10 0x1e0f4aaa0c24f1fa r11 0x435efeb5b6eb98bd r12 0 r13 0x25 r14 0 r15 0x1 rip 0xffffffff823b2875 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000374cf190 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=435242 pid=26666 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=84, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a550f70,0xffff80002a506040 process=0xffff800037429148 user=0xffff8000374ca000, vmspace=0xfffffd807e892d70 estcpu=36, cpticks=20, pctcpu=0.0, user=0, sys=20, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 61925 228459 37107 0 2 0x101004 sh 23680 360330 11401 0 2 0x101004 sh 26666 324113 91436 0 2 0 syz-executor 26666 156514 91436 0 2 0x4000000 syz-executor *26666 435242 91436 0 7 0x4000000 syz-executor 37107 107633 39274 0 3 0x10008a sigsusp sh 11401 127662 53530 0 3 0x10008a sigsusp sh 53530 400515 56031 0 3 0x82 wait syz-executor 39274 181693 56031 0 3 0x82 wait syz-executor 99085 370218 56031 0 3 0x82 piperd syz-executor 91436 205532 56031 0 2 0x482 syz-executor 87860 99251 56031 0 3 0x82 piperd syz-executor 8131 48901 56031 0 2 0x2 syz-executor 18144 17332 56031 0 3 0x82 piperd syz-executor 15685 23651 56031 0 3 0x82 piperd syz-executor 38235 372870 0 0 3 0x14200 acct acct 95462 123732 0 0 3 0x14280 nfsidl nfsio 71448 35828 0 0 3 0x14280 nfsidl nfsio 69477 156419 0 0 3 0x14280 nfsidl nfsio 46536 71404 0 0 3 0x14280 nfsidl nfsio 82788 334249 0 0 3 0x14280 nfsidl nfsio 12866 270796 0 0 3 0x14280 nfsidl nfsio 11005 226417 0 0 3 0x14280 nfsidl nfsio 62626 435673 0 0 3 0x14280 nfsidl nfsio 63090 209148 0 0 3 0x14280 nfsidl nfsio 94521 452910 0 0 3 0x14280 nfsidl nfsio 12567 17148 0 0 3 0x14280 nfsidl nfsio 39369 390214 0 0 3 0x14280 nfsidl nfsio 39240 219266 0 0 3 0x14280 nfsidl nfsio 22887 353244 0 0 3 0x14280 nfsidl nfsio 84025 354285 0 0 3 0x14280 nfsidl nfsio 31717 9149 0 0 3 0x14280 nfsidl nfsio 91210 133969 0 0 3 0x14280 nfsidl nfsio 79396 24226 0 0 3 0x14280 nfsidl nfsio 61589 216336 0 0 3 0x14280 nfsidl nfsio 43047 23955 0 0 3 0x14280 nfsidl nfsio 20333 130218 0 0 3 0x14200 bored sosplice 56031 486047 80012 0 2 0x482 syz-executor 80012 402224 2914 0 3 0x10008a sigsusp ksh 2914 9886 9004 0 3 0x98 kqread sshd-session 9004 439667 41170 0 3 0x92 kqread sshd-session 55652 270257 1 0 3 0x100083 ttyin getty 41170 306678 1 0 3 0x88 kqread sshd 49181 450289 63263 73 2 0x1100010 syslogd 63263 335342 1 0 3 0x100082 sbwait syslogd 42914 57348 1 0 3 0x100080 kqread resolvd 38511 348560 54025 77 3 0x100092 kqread dhcpleased 93074 104374 54025 77 3 0x100092 kqread dhcpleased 54025 79256 1 0 3 0x80 kqread dhcpleased 94634 286444 0 0 2 0x14200 smr 93236 200559 0 0 2 0x14200 zerothread 15425 43415 0 0 3 0x14200 aiodoned aiodoned 20794 286594 0 0 3 0x14200 syncer update 77404 508275 0 0 3 0x14200 cleaner cleaner 82682 81225 0 0 3 0x14200 reaper reaper 41135 388840 0 0 3 0x14200 pgdaemon pagedaemon 51370 146638 0 0 3 0x14200 bored viomb 5364 227284 0 0 3 0x40014200 acpi0 acpi0 13701 369987 0 0 3 0x14200 bored softnet3 28900 67914 0 0 3 0x14200 bored softnet2 93936 122221 0 0 3 0x14200 bored softnet1 79642 176838 0 0 2 0x14200 softnet0 25976 130553 0 0 3 0x14200 bored systqmp 53515 65006 0 0 3 0x14200 bored systq 66566 74708 0 0 2 0x40014200 softclock 97288 217441 0 0 3 0x40014200 idle0 1 177503 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 devbuf 10215 14122K 14443K 166960K 12340 0 pcb 17 12K 12K 166960K 132 0 rtable 189 9K 9K 166960K 2605 0 pf 37 14K 14K 166960K 184 0 ifaddr 40 7K 8K 166960K 319 0 ifgroup 62 2K 2K 166960K 338 0 sysctl 4 1K 1K 166960K 6 0 counters 33 17K 18K 166960K 104 0 ioctlops 0 0K 4K 166960K 205 0 iov 0 0K 17K 166960K 117 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1408 88K 89K 166960K 2856 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 34 0 dirhash 15 2K 2K 166960K 27 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 15 53K 97K 166960K 1802 0 sigio 0 0K 0K 166960K 17 0 proc 60 59K 124K 166960K 2323 0 subproc 104 6K 7K 166960K 937 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 97 0 in_multi 78 5K 7K 166960K 809 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 2 0K 1K 166960K 1252 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 175 70K 90K 166960K 14357 0 UVM aobj 89 5K 5K 166960K 91 0 pinsyscall 37 74K 96K 166960K 4458 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 30 0 NDP 14 0K 2K 166960K 226 0 temp 64 6813K 6949K 166960K 62125 0 kqueue 14 22K 30K 166960K 154 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 235 0 231 1 0 1 1 0 8 0 rtentry 112 922 0 842 4 1 3 4 0 8 0 unpcb 144 1028 0 1013 11 5 6 6 0 8 5 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 808 293 0 288 8 7 1 8 0 8 0 arp 88 181 0 165 1 0 1 1 0 8 0 ipq 40 7 0 7 1 0 1 1 0 8 1 ipqe 40 203 0 203 1 0 1 1 0 8 1 inpcb 336 1328 0 1317 8 6 2 7 0 8 1 nd6 104 216 0 198 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 1 1 1 0 8 1 kcovpl 48 72 0 64 1 0 1 1 0 8 0 ppxss 1072 6 0 6 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 3334 0 2977 32 6 26 30 0 8 2 art_table 32 3336 0 2977 4 0 4 4 0 8 0 art_node 16 919 0 848 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 32 0 22 1 0 1 1 0 8 0 shmpl 112 88 0 2 3 0 3 3 0 8 0 dirhash 1024 27 0 8 3 0 3 3 0 8 0 dino2pl 256 3124 0 1511 102 0 102 102 0 8 0 ffsino 240 3124 0 1511 96 0 96 96 0 8 0 nchpl 144 4400 0 2651 66 0 66 66 0 8 0 uvmvnodes 80 4368 0 0 90 0 90 90 0 8 0 vnodes 216 4368 0 0 243 0 243 243 0 8 0 namei 1024 20435 0 20431 5 2 3 3 0 8 2 kstatmem 264 170 0 142 3 0 3 3 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 41787 0 41787 9 7 2 8 1 8 2 plimitpl 152 283 0 267 1 0 1 1 0 8 0 sigapl 424 1975 0 1910 8 0 8 8 0 8 0 futexpl 64 11880 0 11880 1 0 1 1 0 8 1 knotepl 120 28285 0 28237 17 13 4 15 0 8 2 kqueuepl 184 256 0 246 1 0 1 1 0 8 0 pipepl 288 464 0 437 9 6 3 9 0 8 0 fdescpl 432 1936 0 1909 5 1 4 5 0 8 0 filepl 120 9711 0 9471 19 7 12 15 0 8 4 lockfpl 104 274 0 271 1 0 1 1 0 8 0 lockfspl 48 114 0 111 1 0 1 1 0 8 0 sessionpl 144 86 0 78 1 0 1 1 0 8 0 pgrppl 48 164 0 148 1 0 1 1 0 8 0 ucredpl 104 1401 0 1389 1 0 1 1 0 8 0 zombiepl 144 2083 0 2083 2 1 1 1 0 8 1 processpl 1096 1975 0 1910 6 0 6 6 0 8 0 procpl 648 3167 0 3100 9 1 8 8 0 8 0 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 504 2678 0 2648 49 37 12 29 0 8 8 mcl64k 65536 39 0 38 2 1 1 1 0 8 0 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl12k 12288 4 0 3 2 1 1 1 0 8 0 mcl9k 9216 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 24 0 24 2 1 1 1 0 8 1 mcl4k 4096 23 0 23 2 1 1 1 0 8 1 mcl2k 2048 8247 0 8144 25 11 14 25 0 8 1 mtagpl 96 25 0 25 2 1 1 1 0 8 1 mbufpl 256 21122 0 20940 61 45 16 60 0 8 4 bufpl 280 8731 0 2040 479 0 479 479 0 8 0 anonpl 24 324860 0 321898 95 45 50 74 0 187 19 amapchunkpl 152 45949 0 45619 48 16 32 34 0 158 16 amappl16 200 6398 0 6388 44 36 8 14 0 8 7 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 318 0 308 1 0 1 1 0 8 0 amappl13 176 8 0 7 1 0 1 1 0 8 0 amappl12 168 3545 0 3518 2 0 2 2 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 14 0 14 1 1 0 1 0 8 0 amappl9 144 104 0 104 1 1 0 1 0 8 0 amappl8 136 50 0 49 1 0 1 1 0 8 0 amappl7 128 238 0 228 1 0 1 1 0 8 0 amappl6 120 799 0 795 1 0 1 1 0 8 0 amappl5 112 383 0 374 1 0 1 1 0 8 0 amappl4 104 479 0 465 1 0 1 1 0 8 0 amappl3 96 8788 0 8712 5 1 4 4 0 8 1 amappl2 88 1533 0 1470 2 0 2 2 0 8 0 amappl1 80 16261 0 15750 13 1 12 13 0 8 0 amappl 88 13500 0 13378 6 1 5 5 0 92 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 90 0 2 2 0 2 2 0 8 0 uaddrrnd 24 1936 0 1909 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1936 0 1909 1 0 1 1 0 8 0 vmmpekpl 168 16473 0 16415 4 0 4 4 0 8 0 vmmpepl 168 126040 0 124596 101 12 89 89 0 357 18 vmsppl 344 1935 0 1909 4 1 3 4 0 8 0 rwobjpl 24 42252 0 36993 32 0 32 32 0 8 0 pdppl 4096 3879 0 3818 187 118 69 83 0 8 8 pvpl 32 967571 0 959381 385 169 216 260 0 265 120 pmappl 216 1935 0 1909 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 599 0 245 13 1 12 13 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2d1d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067c21,ffffffff8303803c,83,ffffffff830a8800) at __assert+0x29 rtmap_grow(2c,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(2b) at rtable_add+0x279 if_createrdomain(2b,ffff800001596800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806cd13600,8020699f,ffff8000374cf470,ffff80002a506cd8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a506cd8,ffff8000374cf650,ffff8000374cf5a0) at sys_ioctl+0x678 syscall(ffff8000374cf650) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9f6f757140, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b2d1d) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067c21,ffffffff8303803c,83,ffffffff830a8800) at __assert+0x29 rtmap_grow(2c,21) at rtmap_grow+0x1f3 sys/net/rtable.c:131 rtable_add(2b) at rtable_add+0x279 if_createrdomain(2b,ffff800001596800) at if_createrdomain+0x40 sys/net/if.c:1947 ifioctl(fffffd806cd13600,8020699f,ffff8000374cf470,ffff80002a506cd8) at ifioctl+0x19be sys/net/if.c:2296 sys_ioctl(ffff80002a506cd8,ffff8000374cf650,ffff8000374cf5a0) at sys_ioctl+0x678 syscall(ffff8000374cf650) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9f6f757140, count: -10