login: panic: pool_do_get: shmpl free list modified: page 0xfffffd806b23c000; item addr 0xfffffd806b23c460; offset 0x40=0xfc1ecc7f Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 233489 17922 0 0 0 1 syz-executor *291287 17922 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83366c20) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8389f238,2,ffff80003c45f138) at pool_do_get+0x5df pool_get(ffffffff8389f238,2) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c4674f8,ffff80003c45f390,80,ffff80003c45f2e0) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c4674f8,ffff80003c45f390,ffff80003c45f2e0) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c45f390) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c45f390) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x308695aa7e0, count: 7 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: pool_do_get: shmpl free list modified: page 0xfffffd806b23c000; item addr 0xfffffd806b23c460; offset 0x40=0xfc1ecc7f ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83366c20) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8389f238,2,ffff80003c45f138) at pool_do_get+0x5df pool_get(ffffffff8389f238,2) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c4674f8,ffff80003c45f390,80,ffff80003c45f2e0) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c4674f8,ffff80003c45f390,ffff80003c45f2e0) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c45f390) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c45f390) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x308695aa7e0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c45ef60 rbx 0xffffffff83846ddf cpu_info_full_primary+0x2ddf rdx 0 rcx 0xffff80003c4674f8 rax 0xffffffff83845ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x45a7f0c529635a7 r11 0x575405fe39db9785 r12 0xffffffff83846be0 cpu_info_full_primary+0x2be0 r13 0 r14 0 r15 0x1 rip 0xffffffff82ea0335 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c45ef50 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=291287 pid=17922 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=0xffff80003c466fc8,0xffff800036409788 process=0xffff80003b826b70 user=0xffff80003c45a000, vmspace=0xfffffd805e90dd80 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 17922 233489 34949 0 7 0 syz-executor *17922 291287 34949 0 7 0x4000000 syz-executor 17922 483241 34949 0 3 0x4000080 fsleep syz-executor 40543 518626 50969 0 2 0 syz-executor 40543 409516 50969 0 3 0x4000080 fifor syz-executor 55203 466258 29992 0 3 0x80 nanoslp syz-executor 55203 417463 29992 0 3 0x4000080 kqpoll syz-executor 55203 143464 29992 0 3 0x4000080 fsleep syz-executor 55203 44088 29992 0 3 0x4000080 fsleep syz-executor 55203 270449 29992 0 3 0x4000080 fsleep syz-executor 72650 272164 25963 0 3 0x80 fsleep syz-executor 72650 23220 25963 0 3 0x4000080 kqsel syz-executor 15313 350896 0 0 3 0x14200 acct acct 93433 204202 91777 0 3 0x80 fsleep syz-executor 93433 361757 91777 0 3 0x4000080 ttyout syz-executor 94673 517798 35768 0 3 0x80 fsleep syz-executor 94673 95968 35768 0 3 0x4000080 bell syz-executor 45518 395173 47217 0 3 0x80 fsleep syz-executor 45518 332849 47217 0 3 0x4000080 kqsel syz-executor 45518 404288 47217 0 3 0x4000080 fsleep syz-executor 45518 81868 47217 0 3 0x4000080 fsleep syz-executor 58356 385997 1 0 3 0x100083 ttyopn getty 99395 480235 0 0 3 0x14200 bored sosplice 25963 433712 63434 0 3 0x82 nanoslp syz-executor 91777 283521 63434 0 3 0x82 nanoslp syz-executor 35768 132087 63434 0 3 0x82 nanoslp syz-executor 34949 247280 63434 0 3 0x82 nanoslp syz-executor 47217 137020 63434 0 3 0x82 nanoslp syz-executor 29992 94236 63434 0 3 0x82 nanoslp syz-executor 59456 221400 63434 0 3 0x82 wait syz-executor 50969 233745 63434 0 3 0x82 nanoslp syz-executor 63434 274022 89834 0 3 0x82 kqread syz-executor 89834 324440 30774 0 3 0x10008a sigsusp ksh 30774 264676 51866 0 3 0x98 kqread sshd-session 51866 324947 17419 0 3 0x92 kqread sshd-session 17419 355711 1 0 3 0x88 kqread sshd 9606 518091 20857 74 3 0x1100092 bpf pflogd 20857 230658 1 0 3 0x80 sbwait pflogd 35108 508246 3021 73 3 0x1100090 kqread syslogd 3021 456371 1 0 3 0x100082 sbwait syslogd 85577 33728 1 0 3 0x100080 kqread resolvd 14747 31576 73949 77 3 0x100092 kqread dhcpleased 96707 33581 73949 77 3 0x100092 kqread dhcpleased 73949 491136 1 0 3 0x80 kqread dhcpleased 36119 524001 0 0 3 0x14200 bored smr 28566 39198 0 0 3 0x14200 pgzero zerothread 20437 408532 0 0 3 0x14200 aiodoned aiodoned 54556 484215 0 0 3 0x14200 syncer update 76621 40017 0 0 3 0x14200 cleaner cleaner 60741 460080 0 0 3 0x14200 reaper reaper 79514 54809 0 0 3 0x14200 pgdaemon pagedaemon 35390 58647 0 0 3 0x14200 bored viomb 39439 84146 0 0 3 0x40014200 acpi0 acpi0 88701 280278 0 0 3 0x40014200 idle1 72958 10401 0 0 3 0x14200 bored softnet7 93345 70546 0 0 3 0x14200 bored softnet6 29430 297917 0 0 3 0x14200 bored softnet5 90783 207910 0 0 3 0x14200 bored softnet4 91553 37076 0 0 3 0x14200 bored softnet3 94504 57570 0 0 3 0x14200 bored softnet2 24322 199408 0 0 3 0x14200 bored softnet1 3023 316972 0 0 3 0x14200 bored softnet0 27551 440480 0 0 3 0x14200 bored systqmp 63223 500250 0 0 3 0x14200 bored systq 76808 172296 0 0 3 0x14200 tmoslp softclockmp 36377 463960 0 0 3 0x40014200 tmoslp softclock 80980 87025 0 0 3 0x40014200 idle0 1 299465 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex shmpl r = 0 (0xffffffff8389f250) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:311 #2 mtx_enter+0x62 sys/kern/kern_lock.c:261 #3 pool_get+0x124 sys/kern/subr_pool.c:581 #4 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #5 sys_shmget+0x195 sys/kern/sysv_shm.c:482 #6 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 #7 Xsyscall+0x128 Process 17922 (syz-executor) thread 0xffff80003c4674f8 (291287) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10243 11039K 11245K 166960K 11853 0 pcb 21 14K 15K 166960K 143 0 rtable 194 9K 9K 166960K 404 0 pf 35 17K 131089K 166960K 117 0 ifaddr 39 6K 8K 166960K 84 0 ifgroup 55 2K 2K 166960K 135 0 sysctl 1 1K 9K 166960K 11 0 counters 68 36K 38K 166960K 146 0 ioctlops 0 0K 4K 166960K 1575 0 iov 0 0K 20K 166960K 29 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1339 84K 85K 166960K 1754 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 30 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 828 0 sigio 0 0K 0K 166960K 12 0 proc 74 115K 180K 166960K 598 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 120 0 in_multi 84 6K 7K 166960K 139 0 ether_multi 1 0K 0K 166960K 14 0 mrt 2 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 519 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 253 168K 181K 166960K 9251 0 UVM aobj 21 2K 2K 166960K 25 0 pinsyscall 43 86K 102K 166960K 1920 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 58 0 NDP 12 0K 2K 166960K 55 0 temp 65 8648K 19140K 166960K 43777 0 kqueue 13 20K 30K 166960K 152 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 81 0 77 1 0 1 1 0 8 0 rtentry 176 130 0 55 5 0 5 5 0 8 0 unpcb 144 499 0 479 5 3 2 4 0 8 1 syncache 336 6 0 6 2 2 0 1 0 8 0 tcpcb 736 203 0 198 2 1 1 2 0 8 0 arp 128 18 0 6 1 0 1 1 0 8 0 inpcb 328 893 0 876 12 10 2 7 0 8 0 nd6 144 24 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 3 3 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 30 0 30 2 1 1 1 0 8 1 pppxif 1504 1 0 1 1 1 0 1 0 8 0 pffrag 232 8 0 3 1 0 1 1 0 482 0 pffrnode 88 8 0 3 1 0 1 1 0 8 0 pffrent 40 11 0 6 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 1 0 1 1 0 1 1 0 8 1 pfstitem 24 56 0 24 1 0 1 1 0 8 0 pfstkey 128 56 0 24 2 0 2 2 0 8 0 pfstate 384 56 0 24 4 0 4 4 0 8 0 pfrule 1344 23 0 18 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 584 0 215 31 5 26 31 0 8 0 art_table 40 587 0 215 5 0 5 5 0 8 0 art_node 32 128 0 64 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 3 1 0 1 1 0 8 0 semapl 112 27 0 17 1 0 1 1 0 8 0 shmpl 112 22 0 4 1 0 1 1 0 8 0 pool(0xffffffff8389f238:shmpl): page inconsistency: page 0xfffffd806b23c000; 16 on list, 18 missing, 35 items per page dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2841 0 1333 95 0 95 95 0 8 0 ffsino 296 2841 0 1333 117 0 117 117 0 8 0 nchpl 144 4076 0 2384 64 0 64 64 0 8 0 rtmask 32 3 0 3 1 1 0 1 0 8 0 uvmvnodes 80 3106 0 0 64 0 64 64 0 8 0 vnodes 216 3106 0 0 173 0 173 173 0 8 0 namei 1024 12855 0 12855 2 1 1 1 0 8 1 percpumem 16 88 0 39 1 0 1 1 0 8 0 kstatmem 264 82 0 54 4 1 3 3 0 8 1 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 26428 0 26428 13 12 1 8 1 8 1 plimitpl 152 191 0 174 1 0 1 1 0 8 0 sigapl 424 1157 0 1101 9 1 8 9 0 8 0 knotepl 120 968 0 0 30 0 30 30 0 8 0 kqueuepl 224 314 0 300 5 4 1 5 0 8 0 pipepl 344 234 0 207 9 6 3 9 0 8 0 fdescpl 528 1111 0 1079 3 0 3 3 0 8 0 filepl 160 6284 0 6048 19 8 11 16 0 8 0 lockfpl 104 407 0 403 1 0 1 1 0 8 0 lockfspl 48 119 0 115 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 79 0 62 1 0 1 1 0 8 0 ucredpl 104 769 0 754 1 0 1 1 0 8 0 zombiepl 144 1255 0 1254 2 1 1 1 0 8 0 processpl 1232 1157 0 1101 6 1 5 6 0 8 0 procpl 664 2271 0 2202 8 1 7 8 0 8 0 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 752 1495 0 1454 16 11 5 11 0 8 0 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 110 0 0 14 0 14 14 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 31 0 0 4 0 4 4 0 8 0 mtagpl 96 8 0 0 1 0 1 1 0 8 0 mbufpl 256 198 0 0 13 0 13 13 0 8 0 bufpl 280 12254 0 6111 439 0 439 439 0 8 0 anonpl 32 9739 0 0 79 0 79 79 0 246 0 amapchunkpl 152 30576 0 30045 44 16 28 31 0 158 5 amappl16 200 4800 0 4755 37 22 15 17 0 8 7 amappl15 192 23 0 23 1 1 0 1 0 8 0 amappl14 184 115 0 103 1 0 1 1 0 8 0 amappl13 176 8 0 8 2 2 0 1 0 8 0 amappl12 168 1751 0 1719 3 1 2 2 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 1 0 1 0 8 0 amappl9 144 253 0 252 1 0 1 1 0 8 0 amappl8 136 24 0 21 1 0 1 1 0 8 0 amappl7 128 108 0 96 1 0 1 1 0 8 0 amappl6 120 185 0 181 1 0 1 1 0 8 0 amappl5 112 128 0 119 1 0 1 1 0 8 0 amappl4 104 309 0 289 1 0 1 1 0 8 0 amappl3 96 5958 0 5837 5 1 4 4 0 8 0 amappl2 88 645 0 582 2 0 2 2 0 8 0 amappl1 80 11330 0 10714 16 1 15 15 0 8 0 amappl 88 8443 0 8263 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 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 255 0 255 2 1 1 1 0 8 1 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 24 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1111 0 1079 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1111 0 1079 1 0 1 1 0 8 0 vmmpekpl 168 10390 0 10354 3 0 3 3 0 8 0 vmmpepl 168 75881 0 73794 111 9 102 105 0 357 0 vmsppl 488 1110 0 1079 6 2 4 5 0 8 0 rwobjpl 80 25825 0 21728 88 0 88 88 0 8 0 pdppl 4096 2229 0 2158 98 27 71 83 0 8 0 pvpl 32 18010 0 0 146 1 145 145 0 265 0 pmappl 256 1110 0 1079 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 276 0 38 7 0 7 7 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(ffffffff83366c20) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff8389f238,2,ffff80003c45f138) at pool_do_get+0x5df pool_get(ffffffff8389f238,2) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c4674f8,ffff80003c45f390,80,ffff80003c45f2e0) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c4674f8,ffff80003c45f390,ffff80003c45f2e0) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c45f390) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c45f390) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x308695aa7e0, count: -8 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 end of kernel end trace frame: 0x7db139d9a4b0, count: 12 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 end of kernel end trace frame: 0x7db139d9a4b0, count: -3