panic: pool_do_get: shmpl free list modified: page 0xfffffd806c9fc000; item addr 0xfffffd806c9fcb60; offset 0x40=0x696be074 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 33944 84830 32767 0x10 0x4000000 0K syz-executor 5771 36500 32767 0x10 0 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8339e885) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839c8790,1,ffff80003c426c58) at pool_do_get+0x5df pool_get(ffffffff839c8790,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000333e1cc0,ffff80003c426eb0,10,ffff80003c426e00) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000333e1cc0,ffff80003c426eb0,ffff80003c426e00) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c426eb0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c426eb0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95dbe646a10, 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 0xfffffd806c9fc000; item addr 0xfffffd806c9fcb60; offset 0x40=0x696be074 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8339e885) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839c8790,1,ffff80003c426c58) at pool_do_get+0x5df pool_get(ffffffff839c8790,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000333e1cc0,ffff80003c426eb0,10,ffff80003c426e00) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000333e1cc0,ffff80003c426eb0,ffff80003c426e00) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c426eb0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c426eb0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95dbe646a10, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c426a80 rbx 0xffffffff8382ee07 cpu_info_full_primary+0x2e07 rdx 0 rcx 0xffff8000333e1cc0 rax 0xffffffff8382dff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9f7f8a2ebc010905 r11 0x3b1ae600276b52b4 r12 0xffffffff8382ec08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff82963685 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c426a70 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=33944 pid=84830 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=50, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a287a08,0xffffffff83954d30 process=0xffff8000fffeb510 user=0xffff80003c421000, vmspace=0xfffffd806c9045e8 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84830 381431 95577 32767 2 0x10 syz-executor *84830 33944 95577 32767 7 0x4000010 syz-executor 2493 111422 11245 32767 2 0x10 syz-executor 2493 490398 11245 32767 2 0x4000010 syz-executor 36500 5771 3230 32767 7 0x10 syz-executor 99780 314067 63190 32767 2 0x10 syz-executor 99780 57028 63190 32767 3 0x4000090 fsleep syz-executor 99780 333578 63190 32767 3 0x4000090 fsleep syz-executor 16102 82223 80610 32767 2 0x10 syz-executor 25772 174398 32386 32767 2 0x10 syz-executor 25772 392120 32386 32767 3 0x4000090 fsleep syz-executor 25772 3382 32386 32767 3 0x4000090 fsleep syz-executor 36411 315787 44081 32767 2 0x10 syz-executor 36411 405907 44081 32767 3 0x4000090 fsleep syz-executor 36411 455256 44081 32767 3 0x4000090 fsleep syz-executor 35290 426934 43436 32767 2 0x10 syz-executor 35290 309561 43436 32767 3 0x4000090 fsleep syz-executor 35290 422484 43436 32767 3 0x4000090 fsleep syz-executor 35290 502657 43436 32767 3 0x4000090 fsleep syz-executor 89362 502364 10905 0 3 0x82 sbwait sshd-session 32386 139878 59108 32767 3 0x90 nanoslp syz-executor 95577 328093 36279 32767 3 0x90 nanoslp syz-executor 63190 297652 25296 32767 3 0x90 nanoslp syz-executor 43436 346080 18701 32767 3 0x90 nanoslp syz-executor 11245 390033 21133 32767 2 0x10 syz-executor 80610 417498 46028 32767 3 0x90 nanoslp syz-executor 3230 322844 11633 32767 3 0x90 nanoslp syz-executor 44081 286002 90674 32767 3 0x90 nanoslp syz-executor 59108 356984 20067 0 3 0x82 wait syz-executor 36279 208509 20067 0 3 0x82 wait syz-executor 25296 42824 20067 0 3 0x82 wait syz-executor 18701 344737 20067 0 3 0x82 wait syz-executor 21133 257588 20067 0 3 0x82 wait syz-executor 11633 395444 20067 0 3 0x82 wait syz-executor 46028 369908 20067 0 3 0x82 wait syz-executor 90674 291012 20067 0 3 0x82 wait syz-executor 20067 435807 65270 0 3 0x82 kqread syz-executor 65270 412434 81776 0 3 0x10008a sigsusp ksh 81776 429731 66500 0 3 0x98 kqread sshd-session 66500 423329 10905 0 3 0x92 kqread sshd-session 72794 270115 1 0 3 0x100083 ttyin getty 10905 369787 1 0 3 0x88 kqread sshd 13213 288480 99531 73 3 0x1100090 kqread syslogd 99531 493367 1 0 3 0x100082 sbwait syslogd 45945 447638 1 0 3 0x100080 kqread resolvd 80623 172274 93490 77 3 0x100092 kqread dhcpleased 14981 264268 93490 77 3 0x100092 kqread dhcpleased 93490 169858 1 0 3 0x80 kqread dhcpleased 13301 180962 0 0 3 0x14200 bored smr 33073 127935 0 0 2 0x14200 zerothread 43856 278351 0 0 3 0x14200 aiodoned aiodoned 60289 34558 0 0 3 0x14200 syncer update 31179 423358 0 0 3 0x14200 cleaner cleaner 49748 335348 0 0 3 0x14200 reaper reaper 75339 28946 0 0 3 0x14200 pgdaemon pagedaemon 15790 215692 0 0 3 0x14200 bored viomb 94768 99940 0 0 3 0x40014200 acpi0 acpi0 86706 510729 0 0 3 0x40014200 idle1 30570 184959 0 0 3 0x14200 bored softnet1 50390 438928 0 0 3 0x14200 bored softnet0 98196 193692 0 0 3 0x14200 bored systqmp 49663 146848 0 0 3 0x14200 bored systq 24871 156698 0 0 3 0x14200 tmoslp softclockmp 89042 124433 0 0 3 0x40014200 tmoslp softclock 10343 91014 0 0 3 0x40014200 idle0 1 106975 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 (0xffffffff839c87a8) #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:581 #3 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #4 sys_shmget+0x195 sys/kern/sysv_shm.c:482 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 #6 Xsyscall+0x128 Process 84830 (syz-executor) thread 0xffff8000333e1cc0 (33944) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839bd880) #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:775 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff839c87a8) #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:581 #3 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #4 sys_shmget+0x195 sys/kern/sysv_shm.c:482 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11052 12018K 12034K 166960K 12143 0 pcb 17 12K 12K 166960K 17 0 rtable 239 6K 7K 166960K 351 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 3 1K 9K 166960K 7 0 counters 70 37K 37K 166960K 70 0 ioctlops 0 0K 2K 166960K 30 0 iov 0 0K 16K 166960K 88 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1336 84K 84K 166960K 1398 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 25 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 26 97K 121K 166960K 423 0 sigio 0 0K 0K 166960K 8 0 proc 58 99K 147K 166960K 499 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 1 0K 0K 166960K 45 0 in_multi 99 7K 7K 166960K 107 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 379 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 275 170K 186K 166960K 5509 0 UVM aobj 5 2K 3K 166960K 6 0 pinsyscall 49 98K 113K 166960K 1494 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 15 0 NDP 11 0K 2K 166960K 27 0 temp 46 8669K 8735K 166960K 5245 0 kqueue 13 20K 26K 166960K 63 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 39 0 36 1 0 1 1 0 8 0 rtentry 176 112 0 1 6 0 6 6 0 8 0 unpcb 144 163 0 146 2 0 2 2 0 8 1 syncache 336 10 0 10 1 0 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 736 123 0 112 2 0 2 2 0 8 0 arp 136 19 0 0 1 0 1 1 0 8 0 inpcb 328 348 0 331 4 0 4 4 0 8 2 nd6 152 24 0 0 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 453 0 0 29 0 29 29 0 8 0 art_table 40 454 0 0 5 0 5 5 0 8 0 art_node 32 112 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 18 0 8 1 0 1 1 0 8 0 shmpl 112 3 0 1 1 0 1 1 0 8 0 pool(0xffffffff839c8790:shmpl): page inconsistency: page 0xfffffd806c9fc000; 32 on list, 2 missing, 35 items per page dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1941 0 435 95 0 95 95 0 8 0 ffsino 296 1941 0 435 117 0 117 117 0 8 0 nchpl 144 2489 0 805 63 0 63 63 0 8 0 vnodes 216 2022 0 0 113 0 113 113 0 8 0 namei 1024 7128 0 7128 2 1 1 2 0 8 1 percpumem 16 50 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 9755 0 9755 9 7 2 8 1 8 2 plimitpl 152 54 0 29 3 1 2 2 0 8 1 sigapl 424 710 0 655 7 0 7 7 0 8 0 knotepl 120 479 0 0 15 0 15 15 0 8 0 kqueuepl 224 120 0 111 3 2 1 3 0 8 0 pipepl 344 135 0 107 3 0 3 3 0 8 0 fdescpl 528 694 0 655 3 0 3 3 0 8 0 filepl 160 2746 0 2529 13 0 13 13 0 8 3 lockfpl 104 66 0 64 1 0 1 1 0 8 0 lockfspl 48 22 0 20 1 0 1 1 0 8 0 sessionpl 144 27 0 10 1 0 1 1 0 8 0 pgrppl 48 40 0 15 1 0 1 1 0 8 0 ucredpl 104 423 0 404 1 0 1 1 0 8 0 zombiepl 144 655 0 655 1 0 1 1 0 8 1 processpl 1232 710 0 655 5 0 5 5 0 8 0 procpl 664 1122 0 1056 8 1 7 7 0 8 0 sosppl 176 2 0 2 2 1 1 1 0 8 1 sockpl 752 555 0 518 8 0 8 8 0 8 4 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 124 0 0 16 0 16 16 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 19 0 0 3 0 3 3 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1194 0 0 75 0 75 75 0 8 0 bufpl 280 2582 0 115 177 0 177 177 0 8 0 anonpl 32 7564 0 0 61 0 61 61 0 246 0 amapchunkpl 152 16865 0 16150 38 3 35 35 0 158 6 amappl16 200 1886 0 1866 14 9 5 13 0 8 3 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 4 0 4 1 1 0 1 0 8 0 amappl13 176 408 0 407 1 0 1 1 0 8 0 amappl12 168 1038 0 990 3 0 3 3 0 8 0 amappl11 160 7 0 7 1 1 0 1 0 8 0 amappl10 152 131 0 121 1 0 1 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 19 0 17 1 0 1 1 0 8 0 amappl7 128 75 0 74 1 0 1 1 0 8 0 amappl6 120 303 0 291 1 0 1 1 0 8 0 amappl5 112 74 0 66 1 0 1 1 0 8 0 amappl4 104 398 0 372 1 0 1 1 0 8 0 amappl3 96 2809 0 2703 3 0 3 3 0 8 0 amappl2 88 847 0 762 3 0 3 3 0 8 0 amappl1 80 11362 0 10715 17 0 17 17 0 8 1 amappl 88 4766 0 4568 5 0 5 5 0 92 0 uvmvnodes 80 103 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 5 0 1 1 0 1 1 0 8 0 uaddrrnd 24 694 0 655 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 694 0 655 1 0 1 1 0 8 0 vmmpekpl 168 7514 0 7478 2 0 2 2 0 8 0 vmmpepl 168 52153 0 49928 108 1 107 107 0 357 5 vmsppl 488 693 0 655 7 1 6 6 0 8 0 rwobjpl 80 17094 0 16042 27 1 26 26 0 8 2 pdppl 4096 1395 0 1310 113 26 87 95 0 8 2 pvpl 32 20218 0 0 164 0 164 164 0 265 0 pmappl 256 693 0 655 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 350 0 30 10 0 10 10 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(ffffffff8339e885) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839c8790,1,ffff80003c426c58) at pool_do_get+0x5df pool_get(ffffffff839c8790,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000333e1cc0,ffff80003c426eb0,10,ffff80003c426e00) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000333e1cc0,ffff80003c426eb0,ffff80003c426e00) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c426eb0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c426eb0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95dbe646a10, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299ddff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 syscall(ffff80003c42c4e0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c42c4e0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bc4c51bd740, count: 9 ddb{1}> trace x86_ipi_db(ffff8000299ddff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 syscall(ffff80003c42c4e0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c42c4e0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bc4c51bd740, count: -6