¹j¼õ¬|ÿ ž¨E1\…:panic: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 132 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 437734 44819 0 0 0 1 syz-executor *135702 94060 0 0 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337292b) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833aef41,ffffffff833abc86,84,ffffffff83406579) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(9,21) at rtmap_grow+0x24f rtable_add(8) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(8) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(8,ffff80000148e000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014225f0,8020699f,ffff80003c445610,ffff800035808550) at ifioctl+0x1c66 sys/net/if.c:2301 sys_ioctl(ffff800035808550,ffff80003c4457f0,ffff80003c445740) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c4457f0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4457f0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a62c98feb0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "map->limit == rtmap_limit" failed: file "/syzkaller/managers/multicore/kernel/sys/net/rtable.c", line 132 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337292b) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833aef41,ffffffff833abc86,84,ffffffff83406579) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(9,21) at rtmap_grow+0x24f rtable_add(8) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(8) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(8,ffff80000148e000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014225f0,8020699f,ffff80003c445610,ffff800035808550) at ifioctl+0x1c66 sys/net/if.c:2301 sys_ioctl(ffff800035808550,ffff80003c4457f0,ffff80003c445740) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c4457f0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4457f0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a62c98feb0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c445320 rbx 0xffffffff837f5ddf cpu_info_full_primary+0x2ddf rdx 0 rcx 0xffff800035808550 rax 0xffffffff837f4ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5dd752ec51d8ab39 r11 0x21830f2c608555c9 r12 0xffffffff837f5be0 cpu_info_full_primary+0x2be0 r13 0 r14 0 r15 0x1 rip 0xffffffff81031f25 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c445310 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=135702 pid=94060 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000358082b8,0xffff8000358087f8 process=0xffff80003a026720 user=0xffff80003c440000, vmspace=0xfffffd806b6c83f8 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44819 437734 74670 0 7 0 syz-executor 94060 131218 17144 0 3 0x80 fsleep syz-executor 94060 458415 17144 0 2 0x4000000 syz-executor *94060 135702 17144 0 7 0x4000000 syz-executor 69949 367359 77848 0 3 0x80 fsleep syz-executor 69949 496393 77848 0 3 0x4000080 fsleep syz-executor 69949 191695 77848 0 2 0x4000000 syz-executor 69949 352689 77848 0 2 0x4000000 syz-executor 21757 23051 99659 0 3 0x80 fsleep syz-executor 21757 203331 99659 0 3 0x4000080 sbwait syz-executor 54135 345186 40449 0 3 0x80 fsleep syz-executor 54135 282144 40449 0 3 0x4000080 kqread syz-executor 69350 423536 14594 0 3 0x80 fsleep syz-executor 69350 403159 14594 0 3 0x4000080 fifow syz-executor 13819 169335 84337 0 3 0x80 fsleep syz-executor 13819 133906 84337 0 3 0x4000080 ttyin syz-executor 73909 265680 0 0 3 0x14200 acct acct 17144 215304 87253 0 2 0xc82 syz-executor 40485 371162 0 0 3 0x14280 nfsidl nfsio 79223 274948 0 0 3 0x14280 nfsidl nfsio 15821 379359 0 0 3 0x14280 nfsidl nfsio 49685 313370 0 0 3 0x14280 nfsidl nfsio 66808 419115 0 0 3 0x14280 nfsidl nfsio 31268 503151 0 0 3 0x14280 nfsidl nfsio 97586 7966 0 0 3 0x14280 nfsidl nfsio 77584 101641 0 0 3 0x14280 nfsidl nfsio 21791 54733 0 0 3 0x14280 nfsidl nfsio 8126 498815 0 0 3 0x14280 nfsidl nfsio 84198 104991 0 0 3 0x14280 nfsidl nfsio 7695 131379 0 0 3 0x14280 nfsidl nfsio 92900 429613 0 0 3 0x14280 nfsidl nfsio 44211 352838 0 0 3 0x14280 nfsidl nfsio 35243 412622 0 0 3 0x14280 nfsidl nfsio 24329 173541 0 0 3 0x14280 nfsidl nfsio 48363 290448 0 0 3 0x14280 nfsidl nfsio 90051 370377 0 0 3 0x14280 nfsidl nfsio 90379 133977 0 0 3 0x14280 nfsidl nfsio 4 324938 0 0 3 0x14280 nfsidl nfsio 23374 496693 0 0 3 0x14200 bored sosplice 84337 521187 87253 0 2 0xc82 syz-executor 77848 86214 87253 0 3 0x82 nanoslp syz-executor 46141 475496 87253 0 3 0x82 wait syz-executor 40449 124520 87253 0 2 0xc82 syz-executor 14594 46912 87253 0 2 0xc82 syz-executor 99659 244603 87253 0 2 0xc82 syz-executor 74670 168005 87253 0 3 0x82 nanoslp syz-executor 87253 353284 43952 0 3 0x82 kqread syz-executor 43952 175644 36503 0 3 0x10008a sigsusp ksh 36503 425205 77018 0 3 0x98 kqread sshd-session 77018 380923 42908 0 3 0x92 kqread sshd-session 52267 112497 1 0 3 0x100083 ttyopn getty 42908 355783 1 0 3 0x88 kqread sshd 35538 299565 25171 74 3 0x1100092 bpf pflogd 25171 448496 1 0 3 0x80 sbwait pflogd 10477 117525 75266 73 3 0x1100090 kqread syslogd 75266 440969 1 0 3 0x100082 sbwait syslogd 49282 10159 1 0 3 0x100080 kqread resolvd 29491 332920 8550 77 3 0x100092 kqread dhcpleased 51739 457932 8550 77 3 0x100092 kqread dhcpleased 8550 94105 1 0 3 0x80 kqread dhcpleased 60179 153656 0 0 3 0x14200 bored smr 8547 367835 0 0 3 0x14200 pgzero zerothread 80873 177275 0 0 3 0x14200 aiodoned aiodoned 97764 61433 0 0 3 0x14200 syncer update 87041 246082 0 0 3 0x14200 cleaner cleaner 96565 185110 0 0 3 0x14200 reaper reaper 68547 482485 0 0 3 0x14200 pgdaemon pagedaemon 34537 109503 0 0 3 0x14200 bored viomb 63627 385698 0 0 3 0x40014200 acpi0 acpi0 68152 293651 0 0 3 0x40014200 idle1 72284 455173 0 0 3 0x14200 bored softnet7 95229 498126 0 0 3 0x14200 bored softnet6 79105 112001 0 0 3 0x14200 bored softnet5 48331 370578 0 0 3 0x14200 bored softnet4 35394 347014 0 0 3 0x14200 bored softnet3 72176 337791 0 0 3 0x14200 bored softnet2 26678 363674 0 0 3 0x14200 bored softnet1 27623 406078 0 0 3 0x14200 bored softnet0 85960 454822 0 0 3 0x14200 bored systqmp 23836 78792 0 0 3 0x14200 bored systq 71827 503471 0 0 3 0x14200 tmoslp softclockmp 40158 71302 0 0 2 0x40014200 softclock 99923 79431 0 0 3 0x40014200 idle0 1 454669 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 44819 (syz-executor) thread 0xffff8000358087e8 (437734) Process 94060 (syz-executor) thread 0xffff800035808550 (135702) Process 21757 (syz-executor) thread 0xffff800035802fb8 (203331) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10245 11136K 11418K 166960K 13422 0 pcb 17 16K 18K 166960K 378 0 rtable 204 9K 9K 166960K 476 0 pf 39 18K 25K 166960K 208 0 ifaddr 40 7K 8K 166960K 110 0 ifgroup 53 2K 3K 166960K 198 0 sysctl 4 1K 9K 166960K 90 0 counters 68 36K 38K 166960K 220 0 ioctlops 0 0K 4K 166960K 1774 0 iov 1 4K 28K 166960K 144 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1490 94K 94K 166960K 2982 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 158 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 110K 166960K 1665 0 sigio 0 0K 0K 166960K 32 0 proc 72 115K 164K 166960K 696 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 208 0 in_multi 87 6K 7K 166960K 159 0 ether_multi 1 0K 0K 166960K 13 0 mrt 0 0K 0K 166960K 13 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 0 0K 1K 166960K 665 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 242 167K 187K 166960K 17034 0 UVM aobj 77 6K 6K 166960K 80 0 pinsyscall 43 86K 102K 166960K 2827 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 131 0 NDP 12 0K 2K 166960K 81 0 temp 79 8652K 8729K 166960K 74046 0 kqueue 15 22K 29K 166960K 299 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 201 0 198 3 2 1 3 0 8 0 rtentry 176 155 0 74 5 0 5 5 0 8 0 unpcb 144 965 0 937 5 3 2 2 0 8 0 syncache 336 10 0 10 3 3 0 1 0 8 0 tcpcb 736 634 0 630 23 16 7 7 0 8 6 arp 128 21 0 11 1 0 1 1 0 8 0 inpcb 328 2171 0 2163 21 12 9 9 0 8 8 nd6 144 25 0 7 1 0 1 1 0 8 0 pkpcb 40 11 0 11 5 5 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 62 0 61 3 2 1 1 0 8 0 pppxif 1504 3 0 3 2 2 0 1 0 8 0 pfstscr 40 12 0 10 1 0 1 1 0 8 0 pffrag 232 34 0 26 1 0 1 1 0 482 0 pffrnode 88 13 0 5 1 0 1 1 0 8 0 pffrent 40 58 0 50 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 2 0 2 2 2 0 1 0 8 0 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 107 0 59 1 0 1 1 0 8 0 pfstkey 128 120 0 73 3 0 3 3 0 8 0 pfstate 384 112 0 66 7 0 7 7 0 8 0 pfrule 1344 28 0 23 2 1 1 2 0 8 0 rttmr 136 3 0 3 2 2 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 586 0 186 30 4 26 28 0 8 0 art_table 40 589 0 186 5 0 5 5 0 8 0 art_node 32 151 0 79 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 7 1 0 1 1 0 8 0 semapl 112 155 0 145 1 0 1 1 0 8 0 shmpl 112 77 0 3 3 0 3 3 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 4590 0 3084 95 0 95 95 0 8 0 ffsino 296 4590 0 3084 117 0 117 117 0 8 0 nchpl 144 6991 0 5294 64 0 64 64 0 8 0 rtmask 32 13 0 13 5 4 1 1 0 8 1 uvmvnodes 80 5585 0 0 114 0 114 114 0 8 0 vnodes 216 5585 0 0 311 0 311 311 0 8 0 namei 1024 24006 0 24006 2 1 1 2 0 8 1 percpumem 16 125 0 76 1 0 1 1 0 8 0 kstatmem 264 128 0 102 5 3 2 3 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 7 0 7 5 5 0 1 0 8 0 scxspl 216 41725 0 41725 10 9 1 8 1 8 1 plimitpl 152 415 0 398 1 0 1 1 0 8 0 sigapl 424 2001 0 1925 9 0 9 9 0 8 0 knotepl 120 599 0 0 17 0 17 17 0 8 0 kqueuepl 224 732 0 719 13 9 4 5 0 8 3 pipepl 344 317 0 289 6 3 3 6 0 8 0 fdescpl 528 1953 0 1921 3 0 3 3 0 8 0 filepl 160 13488 0 13251 28 14 14 19 0 8 3 lockfpl 104 783 0 781 2 1 1 2 0 8 0 lockfspl 48 335 0 333 1 0 1 1 0 8 0 sessionpl 144 28 0 19 1 0 1 1 0 8 0 pgrppl 48 54 0 37 1 0 1 1 0 8 0 ucredpl 104 2226 0 2213 1 0 1 1 0 8 0 zombiepl 144 2462 0 2461 1 0 1 1 0 8 0 processpl 1248 2001 0 1925 6 0 6 6 0 8 0 procpl 664 4561 0 4476 9 1 8 9 0 8 0 sosppl 168 14 0 14 5 4 1 1 0 8 1 sockpl 752 3388 0 3349 30 18 12 13 0 8 8 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 117 0 0 15 0 15 15 0 8 0 mcl2k 2048 83 0 0 11 0 11 11 0 8 0 mtagpl 96 32 0 0 1 0 1 1 0 8 0 mbufpl 256 1175 0 0 73 0 73 73 0 8 0 bufpl 280 16848 0 10705 440 1 439 440 0 8 0 anonpl 32 11450 0 0 94 2 92 92 0 246 0 amapchunkpl 152 58771 0 58226 50 22 28 36 0 158 5 amappl16 200 7295 0 7254 44 29 15 25 0 8 7 amappl15 192 7 0 7 3 3 0 1 0 8 0 amappl14 184 126 0 114 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 2636 0 2605 4 2 2 3 0 8 0 amappl11 160 52 0 38 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 256 0 255 1 0 1 1 0 8 0 amappl8 136 22 0 18 1 0 1 1 0 8 0 amappl7 128 121 0 108 1 0 1 1 0 8 0 amappl6 120 197 0 193 1 0 1 1 0 8 0 amappl5 112 143 0 133 1 0 1 1 0 8 0 amappl4 104 328 0 308 1 0 1 1 0 8 0 amappl3 96 11711 0 11598 5 1 4 4 0 8 0 amappl2 88 721 0 657 2 0 2 2 0 8 0 amappl1 80 15737 0 15131 17 3 14 15 0 8 0 amappl 88 16045 0 15875 5 0 5 5 0 92 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 255 0 255 3 3 0 1 0 8 0 dma64 64 8 0 8 3 3 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 79 0 3 2 0 2 2 0 8 0 uaddrrnd 24 1953 0 1921 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1953 0 1921 1 0 1 1 0 8 0 vmmpekpl 168 16781 0 16736 3 0 3 3 0 8 0 vmmpepl 168 128710 0 126644 129 20 109 110 0 357 6 vmsppl 488 1952 0 1921 7 2 5 5 0 8 0 rwobjpl 80 40916 0 34304 143 4 139 139 0 8 3 pdppl 4096 3914 0 3842 110 38 72 84 0 8 0 pvpl 32 19966 0 0 160 0 160 160 0 265 0 pmappl 256 1952 0 1921 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 380 0 66 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337292b) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833aef41,ffffffff833abc86,84,ffffffff83406579) at __assert+0x29 sys/kern/subr_prf.c:-1 rtmap_grow(9,21) at rtmap_grow+0x24f rtable_add(8) at rtable_add+0x2d9 rtable_alloc sys/net/rtable.c:370 [inline] rtable_add(8) at rtable_add+0x2d9 sys/net/rtable.c:223 if_createrdomain(8,ffff80000148e000) at if_createrdomain+0x40 sys/net/if.c:1952 ifioctl(ffff8000014225f0,8020699f,ffff80003c445610,ffff800035808550) at ifioctl+0x1c66 sys/net/if.c:2301 sys_ioctl(ffff800035808550,ffff80003c4457f0,ffff80003c445740) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c4457f0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4457f0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6a62c98feb0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff839041b0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839041b0) at __mp_lock+0x192 sys/kern/kern_lock.c:165 uvm_fault(fffffd806b6c8028,2552a653000,0,2) at uvm_fault+0x1ea sys/uvm/uvm_fault.c:700 upageflttrap(ffff80003c4c3840,2552a653000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c4c3840) at usertrap+0x3c6 sys/arch/amd64/amd64/trap.c:605 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7adda8f2f5b0, count: 7 ddb{1}> trace x86_ipi_db(ffff8000299edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff839041b0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839041b0) at __mp_lock+0x192 sys/kern/kern_lock.c:165 uvm_fault(fffffd806b6c8028,2552a653000,0,2) at uvm_fault+0x1ea sys/uvm/uvm_fault.c:700 upageflttrap(ffff80003c4c3840,2552a653000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c4c3840) at usertrap+0x3c6 sys/arch/amd64/amd64/trap.c:605 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7adda8f2f5b0, count: -8