login: panic: pool_do_get: shmpl free list modified: page 0xfffffd8068d84000; item addr 0xfffffd8068d84850; offset 0x40=0x67b6dc47 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 278710 92316 32767 0x10 0 1 syz-executor *174999 35310 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a9b43) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839eb308,1,ffff80003c50d5e8) at pool_do_get+0x5da pool_get(ffffffff839eb308,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff8020,ffff80003c50d840,1c,ffff80003c50d790) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff8020,ffff80003c50d840,ffff80003c50d790) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c50d840) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c50d840) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52eb132a7c0, 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 0xfffffd8068d84000; item addr 0xfffffd8068d84850; offset 0x40=0x67b6dc47 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a9b43) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839eb308,1,ffff80003c50d5e8) at pool_do_get+0x5da pool_get(ffffffff839eb308,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff8020,ffff80003c50d840,1c,ffff80003c50d790) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff8020,ffff80003c50d840,ffff80003c50d790) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c50d840) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c50d840) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52eb132a7c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c50d420 rbx 0xffffffff83852dc7 cpu_info_full_primary+0x2dc7 rdx 0 rcx 0xffff8000ffff8020 rax 0xffffffff83851ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5011129e54831f8f r11 0x6507723b602708a7 r12 0xffffffff83852bc8 cpu_info_full_primary+0x2bc8 r13 0 r14 0 r15 0x1 rip 0xffffffff81af0975 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c50d410 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=174999 pid=35310 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff9730,0xffff80003c4f2d08 process=0xffff8000ffff24e0 user=0xffff80003c508000, vmspace=0xfffffd806be65030 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92316 278710 89737 32767 7 0x10 syz-executor 92316 96462 89737 32767 2 0x4000010 syz-executor 98151 153670 18676 32767 2 0x10 syz-executor 98151 41788 18676 32767 3 0x4000090 fsleep syz-executor 88322 416415 42174 32767 2 0x10 syz-executor 88322 360198 42174 32767 3 0x4000090 kqread syz-executor 88322 62425 42174 32767 3 0x4000090 fsleep syz-executor 35310 485388 8761 32767 2 0x10 syz-executor *35310 174999 8761 32767 7 0x4000010 syz-executor 38639 334752 80129 32767 2 0x10 syz-executor 38639 151031 80129 32767 3 0x4000090 nanoslp syz-executor 38639 418227 80129 32767 3 0x4000090 fsleep syz-executor 73609 409264 0 0 3 0x14200 bored sosplice 23006 213638 48169 32767 3 0x90 nanoslp syz-executor 23006 306003 48169 32767 3 0x4000090 kqread syz-executor 23006 121978 48169 32767 3 0x4000090 fsleep syz-executor 23006 505072 48169 32767 3 0x4000090 fsleep syz-executor 89737 120397 44123 32767 3 0x90 nanoslp syz-executor 42174 129142 30334 32767 2 0x10 syz-executor 15781 197886 51153 32767 3 0x10 biowait syz-executor 80129 6532 35415 32767 3 0x90 nanoslp syz-executor 48169 318743 647 32767 3 0x90 nanoslp syz-executor 18676 499634 98718 32767 3 0x90 nanoslp syz-executor 82506 498372 7205 32767 2 0x10 syz-executor 8761 208263 72198 32767 3 0x90 nanoslp syz-executor 30334 433563 27531 0 3 0x82 wait syz-executor 44123 422805 27531 0 3 0x82 wait syz-executor 98718 275544 27531 0 3 0x82 wait syz-executor 35415 70742 27531 0 3 0x82 wait syz-executor 647 340748 27531 0 3 0x82 wait syz-executor 51153 436955 27531 0 3 0x82 wait syz-executor 7205 113486 27531 0 3 0x82 wait syz-executor 72198 29444 27531 0 3 0x82 wait syz-executor 27531 225574 13885 0 3 0x82 kqread syz-executor 13885 345564 32343 0 3 0x10008a sigsusp ksh 32343 346687 31635 0 3 0x98 kqread sshd-session 31635 425553 80597 0 3 0x92 kqread sshd-session 70867 46453 1 0 3 0x100083 ttyin getty 80597 373110 1 0 3 0x88 kqread sshd 5849 505808 59440 73 3 0x1100090 kqread syslogd 59440 350361 1 0 3 0x100082 sbwait syslogd 45928 354288 1 0 3 0x100080 kqread resolvd 74242 3435 76845 77 3 0x100092 kqread dhcpleased 9694 460532 76845 77 3 0x100092 kqread dhcpleased 76845 423376 1 0 3 0x80 kqread dhcpleased 41489 212388 0 0 3 0x14200 bored smr 48695 404544 0 0 2 0x14200 zerothread 79829 466747 0 0 3 0x14200 aiodoned aiodoned 84410 443565 0 0 3 0x14200 syncer update 32855 345450 0 0 3 0x14200 cleaner cleaner 64241 168619 0 0 3 0x14200 reaper reaper 19159 301796 0 0 3 0x14200 pgdaemon pagedaemon 24195 383178 0 0 3 0x14200 bored viomb 69540 516664 0 0 3 0x40014200 acpi0 acpi0 7384 408782 0 0 3 0x40014200 idle1 36565 497977 0 0 3 0x14200 bored softnet3 83282 169529 0 0 3 0x14200 bored softnet2 8601 103533 0 0 3 0x14200 bored softnet1 22948 310310 0 0 3 0x14200 bored softnet0 4274 461003 0 0 3 0x14200 bored systqmp 53751 64259 0 0 3 0x14200 bored systq 27344 244766 0 0 3 0x14200 tmoslp softclockmp 3228 185298 0 0 3 0x40014200 tmoslp softclock 5567 449952 0 0 3 0x40014200 idle0 1 219017 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex shmpl r = 0 (0xffffffff839eb320) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pool_get+0x10b sys/kern/subr_pool.c:583 #4 shmget_allocate_segment+0x1a7 #5 sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 35310 (syz-executor) thread 0xffff8000ffff8020 (174999) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8397dd28) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #1 syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff839eb320) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pool_get+0x10b sys/kern/subr_pool.c:583 #4 shmget_allocate_segment+0x1a7 #5 sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 15781 (syz-executor) thread 0xffff8000ffff8f80 (197886) exclusive rrwlock inode r = 0 (0xfffffd806bdeebd0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:616 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vget+0x2bd sys/kern/vfs_subr.c:694 #6 ufs_ihashget+0x185 sys/ufs/ufs/ufs_ihash.c:98 #7 ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x19f8 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 #11 namei+0x7aa sys/kern/vfs_lookup.c:250 #12 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1866 #13 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #13 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806c95b990) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:616 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1866 #8 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10185 10954K 10966K 166960K 11264 0 pcb 17 12K 12K 166960K 17 0 rtable 240 6K 7K 166960K 362 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 2 1K 1K 166960K 2 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 34 0 iov 0 0K 12K 166960K 47 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1332 84K 84K 166960K 1370 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 16 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 25 93K 117K 166960K 315 0 sigio 0 0K 0K 166960K 5 0 proc 58 79K 115K 166960K 481 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 30 0 in_multi 99 7K 7K 166960K 100 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 366 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 243 73K 83K 166960K 4247 0 UVM aobj 10 2K 2K 166960K 11 0 pinsyscall 46 92K 109K 166960K 1322 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 23 0 NDP 11 0K 2K 166960K 27 0 temp 41 8635K 8701K 166960K 4349 0 kqueue 14 22K 28K 166960K 44 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 53 0 49 1 0 1 1 0 8 0 rtentry 112 115 0 2 4 0 4 4 0 8 0 unpcb 144 219 0 202 2 0 2 2 0 8 1 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 3 0 3 1 0 1 1 0 8 1 tcpcb 808 87 0 75 2 0 2 2 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 376 359 0 343 8 0 8 8 0 8 6 nd6 136 28 0 1 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 463 0 1 29 0 29 29 0 8 0 art_table 32 464 0 1 4 0 4 4 0 8 0 art_node 16 114 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 8 0 1 1 0 1 1 0 8 0 pool(0xffffffff839eb308:shmpl): page inconsistency: page 0xfffffd8068d84000; 27 on list, 7 missing, 35 items per page dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1797 0 295 95 0 95 95 0 8 0 ffsino 280 1797 0 295 108 0 108 108 0 8 0 nchpl 144 2239 0 565 63 0 63 63 0 8 0 uvmvnodes 80 1878 0 0 39 0 39 39 0 8 0 vnodes 216 1878 0 0 105 0 105 105 0 8 0 namei 1024 6797 0 6797 1 0 1 1 0 8 1 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 7463 0 7462 9 1 8 8 1 8 7 plimitpl 152 186 0 162 2 0 2 2 0 8 1 sigapl 424 589 0 533 7 0 7 7 0 8 0 futexpl 64 2641 0 2636 1 0 1 1 0 8 0 knotepl 120 556 0 0 17 0 17 17 0 8 0 kqueuepl 216 61 0 49 1 0 1 1 0 8 0 pipepl 328 249 0 222 8 0 8 8 0 8 5 fdescpl 504 570 0 533 7 1 6 6 0 8 0 filepl 152 2772 0 2551 14 0 14 14 0 8 5 lockfpl 104 59 0 56 1 0 1 1 0 8 0 lockfspl 48 28 0 25 1 0 1 1 0 8 0 sessionpl 144 24 0 8 1 0 1 1 0 8 0 pgrppl 48 35 0 11 1 0 1 1 0 8 0 ucredpl 104 282 0 263 1 0 1 1 0 8 0 zombiepl 144 534 0 533 1 0 1 1 0 8 0 processpl 1176 589 0 533 5 0 5 5 0 8 0 procpl 656 897 0 831 7 0 7 7 0 8 0 sockpl 688 633 0 596 10 0 10 10 0 8 5 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 106 0 0 14 0 14 14 0 8 0 mcl2k 2048 16 0 0 2 0 2 2 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 209 0 0 14 0 14 14 0 8 0 bufpl 280 2578 0 124 176 0 176 176 0 8 0 anonpl 24 111169 0 107921 33 0 33 33 0 184 9 amapchunkpl 152 13574 0 13010 28 0 28 28 0 158 3 amappl16 200 1850 0 1828 5 2 3 5 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 106 0 96 1 0 1 1 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 1166 0 1129 2 0 2 2 0 8 0 amappl11 160 43 0 33 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 287 0 287 1 1 0 1 0 8 0 amappl8 136 33 0 32 1 0 1 1 0 8 0 amappl7 128 126 0 116 1 0 1 1 0 8 0 amappl6 120 201 0 197 1 0 1 1 0 8 0 amappl5 112 127 0 121 1 0 1 1 0 8 0 amappl4 104 293 0 278 1 0 1 1 0 8 0 amappl3 96 2361 0 2229 4 0 4 4 0 8 0 amappl2 88 626 0 571 2 0 2 2 0 8 0 amappl1 80 8712 0 8166 14 0 14 14 0 8 1 amappl 88 3893 0 3698 5 0 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 253 0 253 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 10 0 1 1 0 1 1 0 8 0 uaddrrnd 24 570 0 533 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 570 0 533 1 0 1 1 0 8 0 vmmpekpl 168 6731 0 6700 2 0 2 2 0 8 0 vmmpepl 168 41596 0 39599 97 0 97 97 0 357 4 vmsppl 456 569 0 533 7 1 6 6 0 8 0 rwobjpl 64 16300 0 13570 46 0 46 46 0 8 0 pdppl 4096 1148 0 1066 104 18 86 94 0 8 4 pvpl 32 12525 0 0 102 0 102 102 0 265 0 pmappl 248 569 0 533 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 278 0 21 8 0 8 8 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(ffffffff833a9b43) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839eb308,1,ffff80003c50d5e8) at pool_do_get+0x5da pool_get(ffffffff839eb308,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff8020,ffff80003c50d840,1c,ffff80003c50d790) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff8020,ffff80003c50d840,ffff80003c50d790) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c50d840) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c50d840) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x52eb132a7c0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029a9bff0) 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: 0x7344a8091290, count: 12 ddb{1}> trace x86_ipi_db(ffff800029a9bff0) 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: 0x7344a8091290, count: -3