panic: pool_do_get: shmpl free list modified: page 0xfffffd80683bf000; item addr 0xfffffd80683bf9a0; offset 0x40=0x69199ab6 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 123148 98837 32767 0x10 0 1 syz-executor * 75417 98837 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83394971) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838ea718,1,ffff80003c4312b8) at pool_do_get+0x5df pool_get(ffffffff838ea718,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c450558,ffff80003c431510,0,ffff80003c431460) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c450558,ffff80003c431510,ffff80003c431460) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c431510) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c431510) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x45315ef42d0, 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 0xfffffd80683bf000; item addr 0xfffffd80683bf9a0; offset 0x40=0x69199ab6 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83394971) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838ea718,1,ffff80003c4312b8) at pool_do_get+0x5df pool_get(ffffffff838ea718,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c450558,ffff80003c431510,0,ffff80003c431460) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c450558,ffff80003c431510,ffff80003c431460) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c431510) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c431510) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x45315ef42d0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c4310e0 rbx 0xffffffff837bfe07 cpu_info_full_primary+0x2e07 rdx 0xffff800001464480 rcx 0xffff80003c450558 rax 0xffffffff837beff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x8cc2ae4d73b5ebeb r11 0x1d40341b7f0b8651 r12 0xffffffff837bfc08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff827f9b75 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c4310d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=75417 pid=98837 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=0xffff80003c450a88,0xffffffff839e70a0 process=0xffff80003c41ce90 user=0xffff80003c42c000, vmspace=0xfffffd806cdd09a8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 98837 123148 29156 32767 7 0x10 syz-executor *98837 75417 29156 32767 7 0x4000010 syz-executor 86548 24379 94086 32767 3 0x90 nanoslp syz-executor 86548 199791 94086 32767 3 0x4000090 kqsel syz-executor 86548 190528 94086 32767 3 0x4000090 fsleep syz-executor 86548 67750 94086 32767 3 0x4000090 fsleep syz-executor 89040 498076 19404 32767 3 0x90 nanoslp syz-executor 89040 180695 19404 32767 3 0x4000090 lockf syz-executor 89040 154789 19404 32767 3 0x4000090 fsleep syz-executor 67234 265164 60076 32767 3 0x90 nanoslp syz-executor 67234 72130 60076 32767 3 0x4000090 kqread syz-executor 67234 79431 60076 32767 3 0x4000090 fsleep syz-executor 95164 320504 81957 32767 3 0x90 nanoslp syz-executor 95164 40409 81957 32767 3 0x4000090 fsleep syz-executor 95164 321223 81957 32767 3 0x4000090 pipewr syz-executor 42171 155887 54075 32767 3 0x90 nanoslp syz-executor 42171 331408 54075 32767 3 0x4000090 ttyout syz-executor 42171 281707 54075 32767 3 0x4000090 fsleep syz-executor 54075 503814 4361 32767 3 0x90 nanoslp syz-executor 90486 51475 2536 32767 3 0x90 nanoslp syz-executor 81957 171052 67422 32767 3 0x90 nanoslp syz-executor 29759 226862 13878 32767 3 0x90 wait syz-executor 29156 189429 53299 32767 3 0x90 nanoslp syz-executor 60076 426440 21897 32767 3 0x90 nanoslp syz-executor 19404 470106 16892 32767 3 0x90 nanoslp syz-executor 94086 478962 51972 32767 3 0x90 nanoslp syz-executor 53299 132697 7890 0 3 0x82 wait syz-executor 21897 76206 7890 0 3 0x82 wait syz-executor 67422 262591 7890 0 3 0x82 wait syz-executor 16892 173979 7890 0 3 0x82 wait syz-executor 51972 94609 7890 0 3 0x82 wait syz-executor 2536 440676 7890 0 3 0x82 wait syz-executor 13878 306894 7890 0 3 0x82 wait syz-executor 4361 140296 7890 0 3 0x82 wait syz-executor 7890 413447 50573 0 3 0x82 kqread syz-executor 50573 157888 30606 0 3 0x10008a sigsusp ksh 30606 139668 18623 0 3 0x98 kqread sshd-session 18623 436512 287 0 3 0x92 kqread sshd-session 86337 380112 1 0 3 0x100083 ttyin getty 287 521318 1 0 3 0x88 kqread sshd 1161 118238 82697 73 3 0x1100090 kqread syslogd 82697 202047 1 0 3 0x100082 sbwait syslogd 93948 83215 1 0 3 0x100080 kqread resolvd 14720 428433 7014 77 3 0x100092 kqread dhcpleased 22096 244153 7014 77 3 0x100092 kqread dhcpleased 7014 244738 1 0 3 0x80 kqread dhcpleased 66481 410965 0 0 3 0x14200 bored smr 28136 28681 0 0 3 0x14200 pgzero zerothread 86097 19886 0 0 3 0x14200 aiodoned aiodoned 31429 225952 0 0 3 0x14200 syncer update 14569 145320 0 0 3 0x14200 cleaner cleaner 5492 216823 0 0 3 0x14200 reaper reaper 11387 193021 0 0 3 0x14200 pgdaemon pagedaemon 60984 52120 0 0 3 0x14200 bored viomb 20933 152951 0 0 3 0x40014200 acpi0 acpi0 80641 170111 0 0 3 0x40014200 idle1 90857 54734 0 0 3 0x14200 bored softnet1 97122 512908 0 0 3 0x14200 bored softnet0 25422 51502 0 0 3 0x14200 bored systqmp 38624 347696 0 0 3 0x14200 bored systq 82780 71874 0 0 3 0x14200 tmoslp softclockmp 32783 103881 0 0 3 0x40014200 tmoslp softclock 23437 146644 0 0 3 0x40014200 idle0 1 339847 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 (0xffffffff838ea730) #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:765 #6 Xsyscall+0x128 Process 98837 (syz-executor) thread 0xffff80003c450558 (75417) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83941348) #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:765 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff838ea730) #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:765 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10192 10958K 10973K 166960K 11283 0 pcb 17 12K 12K 166960K 17 0 rtable 245 7K 7K 166960K 366 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 9 0 counters 68 36K 36K 166960K 68 0 ioctlops 0 0K 2K 166960K 34 0 iov 0 0K 28K 166960K 21 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1336 84K 84K 166960K 1409 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 33 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 26 97K 129K 166960K 440 0 sigio 0 0K 0K 166960K 5 0 proc 58 99K 196K 166960K 516 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 38 0 in_multi 99 7K 7K 166960K 109 0 ether_multi 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 395 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 266 160K 174K 166960K 5907 0 UVM aobj 12 6K 6K 166960K 16 0 pinsyscall 47 94K 112K 166960K 1548 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 28 0 NDP 11 0K 2K 166960K 27 0 temp 76 8671K 8737K 166960K 5286 0 kqueue 14 22K 29K 166960K 84 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 57 0 54 1 0 1 1 0 8 0 rtentry 176 115 0 1 6 0 6 6 0 8 0 unpcb 144 490 0 475 4 0 4 4 0 8 3 syncache 336 12 0 12 1 0 1 1 0 8 1 tcpqe 32 3 0 3 1 0 1 1 0 8 1 tcpcb 736 205 0 195 2 0 2 2 0 8 1 arp 136 18 0 0 1 0 1 1 0 8 0 ipq 40 3 0 1 1 0 1 1 0 8 0 ipqe 40 7 0 5 1 0 1 1 0 8 0 inpcb 328 419 0 401 2 0 2 2 0 8 0 ip6q 72 3 0 1 1 0 1 1 0 8 0 ip6af 40 6 0 4 1 0 1 1 0 8 0 nd6 152 28 0 0 2 0 2 2 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 489 0 0 31 0 31 31 0 8 0 art_table 40 490 0 0 5 0 5 5 0 8 0 art_node 32 115 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 28 0 18 1 0 1 1 0 8 0 shmpl 112 13 0 4 1 0 1 1 0 8 0 pool(0xffffffff838ea718:shmpl): page inconsistency: page 0xfffffd80683bf000; 25 on list, 9 missing, 35 items per page dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2015 0 505 95 0 95 95 0 8 0 ffsino 296 2015 0 505 117 0 117 117 0 8 0 nchpl 144 2635 0 950 63 0 63 63 0 8 0 vnodes 216 2096 0 0 117 0 117 117 0 8 0 namei 1024 8357 0 8357 2 0 2 2 0 8 2 percpumem 16 49 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 8743 0 8743 9 1 8 8 1 8 8 plimitpl 152 183 0 156 2 0 2 2 0 8 0 sigapl 424 738 0 684 7 0 7 7 0 8 0 knotepl 120 552 0 0 17 0 17 17 0 8 0 kqueuepl 224 164 0 153 3 0 3 3 0 8 2 pipepl 344 180 0 152 6 0 6 6 0 8 3 fdescpl 528 722 0 684 4 0 4 4 0 8 0 filepl 160 3877 0 3650 16 0 16 16 0 8 4 lockfpl 104 96 0 92 1 0 1 1 0 8 0 lockfspl 48 33 0 30 1 0 1 1 0 8 0 sessionpl 144 27 0 11 1 0 1 1 0 8 0 pgrppl 48 41 0 17 1 0 1 1 0 8 0 ucredpl 104 633 0 614 1 0 1 1 0 8 0 zombiepl 144 686 0 684 1 0 1 1 0 8 0 processpl 1232 738 0 684 5 0 5 5 0 8 0 procpl 664 1253 0 1187 7 0 7 7 0 8 0 sosppl 176 4 0 4 1 0 1 1 0 8 1 sockpl 752 975 0 939 11 0 11 11 0 8 6 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 119 0 0 15 0 15 15 0 8 0 mcl2k 2048 31 0 0 4 0 4 4 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 280 0 0 18 0 18 18 0 8 0 bufpl 280 2824 0 119 194 0 194 194 0 8 0 anonpl 32 7618 0 0 62 0 62 62 0 246 0 amapchunkpl 152 19028 0 18444 33 0 33 33 0 158 10 amappl16 200 2301 0 2275 5 2 3 5 0 8 1 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 5 0 5 1 1 0 1 0 8 0 amappl13 176 422 0 421 1 0 1 1 0 8 0 amappl12 168 1084 0 1037 3 0 3 3 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 43 0 33 1 0 1 1 0 8 0 amappl9 144 257 0 257 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 79 0 78 1 0 1 1 0 8 0 amappl6 120 271 0 259 1 0 1 1 0 8 0 amappl5 112 76 0 69 1 0 1 1 0 8 0 amappl4 104 416 0 394 1 0 1 1 0 8 0 amappl3 96 2983 0 2876 3 0 3 3 0 8 0 amappl2 88 877 0 799 2 0 2 2 0 8 0 amappl1 80 11731 0 11158 14 0 14 14 0 8 0 amappl 88 5112 0 4917 5 0 5 5 0 92 0 uvmvnodes 80 113 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 15 0 4 1 0 1 1 0 8 0 uaddrrnd 24 722 0 684 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 722 0 684 1 0 1 1 0 8 0 vmmpekpl 168 8096 0 8059 3 0 3 3 0 8 0 vmmpepl 168 54579 0 52462 100 0 100 100 0 357 4 vmsppl 488 721 0 684 7 1 6 6 0 8 0 rwobjpl 80 18180 0 17204 23 0 23 23 0 8 0 pdppl 4096 1452 0 1368 116 30 86 100 0 8 2 pvpl 32 16040 0 0 131 0 131 131 0 265 1 pmappl 256 721 0 684 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 298 0 33 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(ffffffff83394971) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838ea718,1,ffff80003c4312b8) at pool_do_get+0x5df pool_get(ffffffff838ea718,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c450558,ffff80003c431510,0,ffff80003c431460) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c450558,ffff80003c431510,ffff80003c431460) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c431510) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c431510) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x45315ef42d0, 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: 0x74f2fdd903b0, 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: 0x74f2fdd903b0, count: -3