panic: pool_do_get: shmpl free list modified: page 0xfffffd8060881000; item addr 0xfffffd8060881c40; offset 0x40=0x69e2a7a2 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 136372 14316 32767 0x10 0 1 syz-executor *168302 14316 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83446e3c) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83979440,1,ffff80003c3f0f88) at pool_do_get+0x5df pool_get(ffffffff83979440,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffeb248,ffff80003c3f11e0,2,ffff80003c3f1130) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffeb248,ffff80003c3f11e0,ffff80003c3f1130) at sys_shmget+0x195 sys/kern/sysv_shm.c:484 syscall(ffff80003c3f11e0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3f11e0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe293aa4ce00, 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 0xfffffd8060881000; item addr 0xfffffd8060881c40; offset 0x40=0x69e2a7a2 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83446e3c) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83979440,1,ffff80003c3f0f88) at pool_do_get+0x5df pool_get(ffffffff83979440,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffeb248,ffff80003c3f11e0,2,ffff80003c3f1130) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffeb248,ffff80003c3f11e0,ffff80003c3f1130) at sys_shmget+0x195 sys/kern/sysv_shm.c:484 syscall(ffff80003c3f11e0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3f11e0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe293aa4ce00, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c3f0db0 rbx 0xffffffff83871e07 cpu_info_full_primary+0x2e07 rdx 0xffff8000015d1d40 rcx 0xffff8000fffeb248 rax 0xffffffff83870ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xdf4910382a15313f r11 0xfd3fb4b7029175dd r12 0xffffffff83871c08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff81bc1f85 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c3f0da0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=168302 pid=14316 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffeafb0,0xffff8000fffeb4f0 process=0xffff80003c3e1830 user=0xffff80003c3ec000, vmspace=0xfffffd807e60db90 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 25832 151683 2403 32767 2 0x10 syz-executor 25832 429298 2403 32767 3 0x4000090 fsleep syz-executor 14316 136372 4639 32767 7 0x10 syz-executor *14316 168302 4639 32767 7 0x4000010 syz-executor 57939 397152 14431 32767 2 0x10 syz-executor 57939 119542 14431 32767 3 0x4000090 fsleep syz-executor 46927 420712 63343 0 2 0 syz-executor 15895 138291 88404 32767 2 0x10 syz-executor 15895 251359 88404 32767 3 0x4000090 ttyretype syz-executor 93134 166942 60453 32767 2 0x10 syz-executor 93134 326984 60453 32767 3 0x4000090 fsleep syz-executor 8311 278493 4348 32767 2 0x10 syz-executor 8311 497074 4348 32767 3 0x4000090 fsleep syz-executor 94398 292287 12450 32767 2 0x10 syz-executor 94398 221007 12450 32767 3 0x4000090 fsleep syz-executor 63343 447254 82538 0 3 0x82 wait syz-executor 88404 271249 38208 32767 3 0x90 nanoslp syz-executor 2403 507145 4249 32767 3 0x90 nanoslp syz-executor 12450 102696 24835 32767 3 0x90 nanoslp syz-executor 60453 387166 47520 32767 3 0x90 nanoslp syz-executor 4639 85356 21536 32767 3 0x90 nanoslp syz-executor 4348 278946 82356 32767 3 0x90 nanoslp syz-executor 14431 214046 53611 32767 3 0x90 nanoslp syz-executor 24835 131147 82538 0 3 0x82 wait syz-executor 21536 13399 82538 0 3 0x82 wait syz-executor 38208 375410 82538 0 3 0x82 wait syz-executor 47520 240624 82538 0 3 0x82 wait syz-executor 82356 462664 82538 0 3 0x82 wait syz-executor 4249 337793 82538 0 3 0x82 wait syz-executor 53611 427656 82538 0 3 0x82 wait syz-executor 82538 242367 10297 0 3 0x82 kqread syz-executor 10297 407485 5687 0 3 0x10008a sigsusp ksh 5687 417806 74891 0 3 0x98 kqread sshd-session 74891 369370 27076 0 3 0x92 kqread sshd-session 23944 174649 1 0 3 0x100083 ttyin getty 27076 59527 1 0 3 0x88 kqread sshd 48230 69270 29684 73 3 0x1100090 kqread syslogd 29684 214364 1 0 3 0x100082 sbwait syslogd 28348 490108 1 0 3 0x100080 kqread resolvd 30493 16096 76690 77 3 0x100092 kqread dhcpleased 25713 177975 76690 77 3 0x100092 kqread dhcpleased 76690 24399 1 0 3 0x80 kqread dhcpleased 5588 284463 0 0 3 0x14200 bored smr 79474 503065 0 0 2 0x14200 zerothread 80513 389563 0 0 3 0x14200 aiodoned aiodoned 19038 143746 0 0 3 0x14200 syncer update 62551 476584 0 0 3 0x14200 cleaner cleaner 26570 338614 0 0 3 0x14200 reaper reaper 55245 299453 0 0 3 0x14200 pgdaemon pagedaemon 95249 32203 0 0 3 0x14200 bored viomb 40279 286328 0 0 3 0x40014200 acpi0 acpi0 3328 498257 0 0 3 0x40014200 idle1 60788 158767 0 0 3 0x14200 bored softnet1 91096 135906 0 0 3 0x14200 bored softnet0 15446 404674 0 0 3 0x14200 bored systqmp 22608 460031 0 0 3 0x14200 bored systq 58833 413374 0 0 3 0x14200 tmoslp softclockmp 50459 517008 0 0 3 0x40014200 tmoslp softclock 92597 180649 0 0 3 0x40014200 idle0 1 8972 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 (0xffffffff83979458) #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+0x4b4 sys/kern/kern_lock.c:487 #2 pool_get+0x124 sys/kern/subr_pool.c:585 #3 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #4 sys_shmget+0x195 sys/kern/sysv_shm.c:484 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #6 Xsyscall+0x128 Process 14316 (syz-executor) thread 0xffff8000fffeb248 (168302) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839d8000) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] #1 syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff83979458) #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+0x4b4 sys/kern/kern_lock.c:487 #2 pool_get+0x124 sys/kern/subr_pool.c:585 #3 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #4 sys_shmget+0x195 sys/kern/sysv_shm.c:484 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11051 12016K 12034K 166960K 12145 0 pcb 17 12K 12K 166960K 17 0 rtable 217 6K 7K 166960K 358 0 pf 29 16K 16K 166960K 31 0 ifaddr 38 6K 7K 166960K 44 0 ifgroup 46 2K 2K 166960K 50 0 sysctl 3 1K 9K 166960K 7 0 counters 68 36K 37K 166960K 70 0 ioctlops 0 0K 2K 166960K 29 0 iov 0 0K 2K 166960K 3 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1296 82K 82K 166960K 1448 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 12 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 25 93K 125K 166960K 294 0 sigio 0 0K 0K 166960K 9 0 proc 59 115K 180K 166960K 516 0 subproc 72 4K 5K 166960K 135 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 24 0 in_multi 88 6K 7K 166960K 106 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 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 234 143K 166K 166960K 4082 0 UVM aobj 6 2K 2K 166960K 7 0 pinsyscall 46 92K 113K 166960K 1345 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 7 0 NDP 10 0K 2K 166960K 27 0 temp 41 9079K 9147K 166960K 4402 0 kqueue 13 20K 26K 166960K 49 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 47 0 43 1 0 1 1 0 8 0 rtentry 176 114 0 14 6 0 6 6 0 8 0 unpcb 144 115 0 97 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 73 0 68 1 0 1 1 0 8 0 arp 136 19 0 2 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 232 0 221 4 0 4 4 0 8 2 nd6 152 26 0 5 1 0 1 1 0 8 0 kcovpl 48 15 0 7 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 458 0 48 29 0 29 29 0 8 2 art_table 40 459 0 48 5 0 5 5 0 8 0 art_node 32 114 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 4 0 1 1 0 1 1 0 8 0 pool(0xffffffff83979440:shmpl): page inconsistency: page 0xfffffd8060881000; 31 on list, 3 missing, 35 items per page dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 1773 0 305 93 0 93 93 0 8 1 ffsino 296 1773 0 305 114 0 114 114 0 8 0 nchpl 144 2159 0 463 63 0 63 63 0 8 0 vnodes 216 1917 0 0 107 0 107 107 0 8 0 namei 1024 6509 0 6509 2 0 2 2 0 8 2 percpumem 16 50 0 1 1 0 1 1 0 8 0 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 7198 0 7198 3 2 1 3 1 8 1 plimitpl 152 68 0 43 2 0 2 2 0 8 1 sigapl 424 564 0 511 7 0 7 7 0 8 1 knotepl 120 492 0 0 15 0 15 15 0 8 0 kqueuepl 224 53 0 44 1 0 1 1 0 8 0 pipepl 344 141 0 114 3 0 3 3 0 8 0 fdescpl 528 548 0 511 4 0 4 4 0 8 0 filepl 160 2228 0 2014 11 0 11 11 0 8 2 lockfpl 104 40 0 38 1 0 1 1 0 8 0 lockfspl 48 14 0 12 1 0 1 1 0 8 0 sessionpl 144 30 0 14 1 0 1 1 0 8 0 pgrppl 48 47 0 23 1 0 1 1 0 8 0 ucredpl 104 291 0 273 1 0 1 1 0 8 0 zombiepl 144 511 0 511 1 0 1 1 0 8 1 processpl 1232 564 0 511 5 0 5 5 0 8 0 procpl 664 775 0 715 6 0 6 6 0 8 0 sockpl 752 396 0 363 7 0 7 7 0 8 2 mcl64k 65536 5 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 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 15 0 15 15 0 8 0 mcl2k 2048 19 0 0 3 0 3 3 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 197 0 0 13 0 13 13 0 8 0 bufpl 280 2569 0 102 177 0 177 177 0 8 0 anonpl 32 7684 0 0 63 1 62 62 0 246 0 amapchunkpl 152 12587 0 12060 30 0 30 30 0 158 9 amappl16 200 2151 0 2130 14 3 11 14 0 8 8 amappl15 192 9 0 8 1 0 1 1 0 8 0 amappl14 184 404 0 403 1 0 1 1 0 8 0 amappl13 176 108 0 98 1 0 1 1 0 8 0 amappl12 168 779 0 744 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 80 0 70 1 0 1 1 0 8 0 amappl9 144 266 0 266 1 1 0 1 0 8 0 amappl8 136 130 0 129 1 0 1 1 0 8 0 amappl7 128 137 0 126 1 0 1 1 0 8 0 amappl6 120 152 0 150 1 0 1 1 0 8 0 amappl5 112 86 0 78 1 0 1 1 0 8 0 amappl4 104 245 0 229 1 0 1 1 0 8 0 amappl3 96 2236 0 2110 5 1 4 4 0 8 0 amappl2 88 484 0 430 2 0 2 2 0 8 0 amappl1 80 9447 0 8861 14 0 14 14 0 8 0 amappl 88 3402 0 3229 5 0 5 5 0 92 0 uvmvnodes 80 100 0 0 3 0 3 3 0 8 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 6 0 1 1 0 1 1 0 8 0 uaddrrnd 24 548 0 511 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 548 0 511 1 0 1 1 0 8 0 vmmpekpl 168 6069 0 6029 3 0 3 3 0 8 0 vmmpepl 168 42325 0 40273 101 0 101 101 0 357 11 vmsppl 488 547 0 511 7 1 6 6 0 8 1 rwobjpl 80 14695 0 13749 25 0 25 25 0 8 3 pdppl 4096 1103 0 1022 109 28 81 97 0 8 0 pvpl 32 15279 0 0 124 0 124 124 0 265 0 pmappl 256 547 0 511 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 280 0 31 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(ffffffff83446e3c) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83979440,1,ffff80003c3f0f88) at pool_do_get+0x5df pool_get(ffffffff83979440,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffeb248,ffff80003c3f11e0,2,ffff80003c3f1130) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffeb248,ffff80003c3f11e0,ffff80003c3f1130) at sys_shmget+0x195 sys/kern/sysv_shm.c:484 syscall(ffff80003c3f11e0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3f11e0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe293aa4ce00, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299adff0) 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: 0x7dfa864a0690, count: 12 ddb{1}> trace x86_ipi_db(ffff8000299adff0) 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: 0x7dfa864a0690, count: -3