panic: pool_do_get: shmpl free list modified: page 0xfffffd8067c38000; item addr 0xfffffd8067c38620; offset 0x40=0x692ac70f Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *206685 62612 32767 0x10 0x4000000 0 syz-executor 179390 13162 32767 0x10 0 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a4059) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839e50b8,1,ffff80003ac268b8) at pool_do_get+0x5df pool_get(ffffffff839e50b8,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe54e8,ffff80003ac26b10,5c,ffff80003ac26a60) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe54e8,ffff80003ac26b10,ffff80003ac26a60) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003ac26b10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003ac26b10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc954f93aaf0, 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 0xfffffd8067c38000; item addr 0xfffffd8067c38620; offset 0x40=0x692ac70f ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833a4059) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839e50b8,1,ffff80003ac268b8) at pool_do_get+0x5df pool_get(ffffffff839e50b8,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe54e8,ffff80003ac26b10,5c,ffff80003ac26a60) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe54e8,ffff80003ac26b10,ffff80003ac26a60) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003ac26b10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003ac26b10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc954f93aaf0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003ac266e0 rbx 0xffffffff8383fe07 cpu_info_full_primary+0x2e07 rdx 0xffff80000143ccc0 rcx 0xffff8000fffe54e8 rax 0xffffffff8383eff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9707efd4ed19c1c7 r11 0x816290f072dc8469 r12 0xffffffff8383fc08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff81d63585 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003ac266d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=206685 pid=62612 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=0xffff8000fffe4558,0xffffffff839d7db0 process=0xffff8000fffe39e0 user=0xffff80003ac21000, vmspace=0xfffffd806cdbf7c0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62612 85918 35591 32767 2 0x10 syz-executor *62612 206685 35591 32767 7 0x4000010 syz-executor 93345 64433 56873 32767 2 0x10 syz-executor 93345 341532 56873 32767 3 0x4000090 piperd syz-executor 78942 351769 70612 32767 2 0x10 syz-executor 78942 216256 70612 32767 3 0x4000090 fsleep syz-executor 78942 22900 70612 32767 3 0x4000090 netacc syz-executor 78942 174502 70612 32767 3 0x4000090 fsleep syz-executor 13162 179390 78551 32767 7 0x10 syz-executor 13162 175665 78551 32767 3 0x4000090 kqread syz-executor 13162 409143 78551 32767 3 0x4000090 fsleep syz-executor 13162 360866 78551 32767 3 0x4000090 fsleep syz-executor 63690 176514 31710 32767 2 0x10 syz-executor 63690 143454 31710 32767 3 0x4000090 ttyout syz-executor 63690 18271 31710 32767 3 0x4000090 fsleep syz-executor 63690 477622 31710 32767 3 0x4000090 fsleep syz-executor 32567 178000 72366 32767 3 0x90 wait syz-executor 78551 431803 17114 32767 2 0x10 syz-executor 24563 88431 62999 32767 3 0x90 wait syz-executor 31710 142287 71947 32767 3 0x90 nanoslp syz-executor 35591 483631 20589 32767 3 0x90 nanoslp syz-executor 49058 451920 30523 32767 3 0x90 nanoslp syz-executor 70612 455217 43755 32767 2 0x10 syz-executor 56873 223061 31831 32767 3 0x90 nanoslp syz-executor 72366 492537 11581 0 3 0x82 wait syz-executor 17114 491825 11581 0 3 0x82 wait syz-executor 71947 423643 11581 0 3 0x82 wait syz-executor 62999 54300 11581 0 3 0x82 wait syz-executor 30523 413069 11581 0 3 0x82 wait syz-executor 43755 154973 11581 0 3 0x82 wait syz-executor 31831 444008 11581 0 3 0x82 wait syz-executor 20589 345736 11581 0 3 0x82 wait syz-executor 11581 248654 46520 0 3 0x82 kqread syz-executor 46520 488722 17793 0 3 0x10008a sigsusp ksh 17793 492442 48799 0 3 0x98 kqread sshd-session 48799 348683 13741 0 3 0x92 kqread sshd-session 12013 470541 1 0 3 0x100083 ttyin getty 13741 95527 1 0 3 0x88 kqread sshd 16540 494289 18858 73 3 0x1100090 kqread syslogd 18858 347924 1 0 3 0x100082 sbwait syslogd 91884 234378 1 0 3 0x100080 kqread resolvd 44212 197992 13255 77 3 0x100092 kqread dhcpleased 76039 42005 13255 77 3 0x100092 kqread dhcpleased 13255 340290 1 0 3 0x80 kqread dhcpleased 31329 143463 0 0 3 0x14200 bored smr 16072 49447 0 0 3 0x14200 pgzero zerothread 9455 148311 0 0 3 0x14200 aiodoned aiodoned 42252 74079 0 0 3 0x14200 syncer update 98829 468383 0 0 3 0x14200 cleaner cleaner 64300 378381 0 0 3 0x14200 reaper reaper 80535 187371 0 0 3 0x14200 pgdaemon pagedaemon 22805 216751 0 0 3 0x14200 bored viomb 43107 349736 0 0 3 0x40014200 acpi0 acpi0 75048 188931 0 0 3 0x40014200 idle1 19144 286704 0 0 3 0x14200 bored softnet1 38296 510985 0 0 3 0x14200 bored softnet0 87307 227838 0 0 3 0x14200 bored systqmp 42095 208125 0 0 3 0x14200 bored systq 64750 152974 0 0 3 0x14200 tmoslp softclockmp 22634 147695 0 0 3 0x40014200 tmoslp softclock 77425 69955 0 0 3 0x40014200 idle0 1 461143 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 (0xffffffff839e50d0) #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:775 #7 Xsyscall+0x128 Process 62612 (syz-executor) thread 0xffff8000fffe54e8 (206685) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83914a78) #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 (0xffffffff839e50d0) #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:775 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10216 10961K 10973K 166960K 11309 0 pcb 17 12K 12K 166960K 17 0 rtable 247 7K 7K 166960K 443 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 4 1K 9K 166960K 8 0 counters 68 36K 36K 166960K 68 0 ioctlops 0 0K 2K 166960K 33 0 iov 0 0K 16K 166960K 57 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1335 84K 84K 166960K 1381 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 19 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 64 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 26 97K 113K 166960K 514 0 sigio 0 0K 0K 166960K 12 0 proc 58 99K 147K 166960K 531 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 136 0 in_multi 99 7K 7K 166960K 112 0 ether_multi 1 0K 0K 166960K 6 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 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 426 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 286 169K 190K 166960K 6573 0 UVM aobj 28 4K 5K 166960K 30 0 pinsyscall 47 94K 108K 166960K 1590 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 30 0 NDP 11 0K 2K 166960K 27 0 temp 49 8673K 8737K 166960K 5417 0 kqueue 17 24K 32K 166960K 117 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 126 0 123 1 0 1 1 0 8 0 rtentry 176 118 0 3 6 0 6 6 0 8 0 unpcb 144 469 0 444 8 0 8 8 0 8 7 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 240 0 232 7 0 7 7 0 8 5 arp 136 19 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 1 1 0 1 1 0 8 0 inpcb 328 561 0 550 7 0 7 7 0 8 5 ip6q 72 4 0 0 1 0 1 1 0 8 0 ip6af 40 5 0 0 1 0 1 1 0 8 0 nd6 152 30 0 2 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 480 0 11 30 0 30 30 0 8 0 art_table 40 481 0 11 5 0 5 5 0 8 0 art_node 32 118 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 1 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 61 0 51 1 0 1 1 0 8 0 shmpl 112 27 0 2 1 0 1 1 0 8 0 pool(0xffffffff839e50b8:shmpl): page inconsistency: page 0xfffffd8067c38000; 9 on list, 25 missing, 35 items per page dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2128 0 617 95 0 95 95 0 8 0 ffsino 296 2128 0 617 117 0 117 117 0 8 0 nchpl 144 2884 0 1192 63 0 63 63 0 8 0 vnodes 216 2209 0 0 123 0 123 123 0 8 0 namei 1024 9701 0 9701 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 9732 0 9732 3 2 1 2 1 8 1 plimitpl 152 100 0 75 2 0 2 2 0 8 1 sigapl 424 802 0 748 7 0 7 7 0 8 0 knotepl 120 324 0 0 10 0 10 10 0 8 0 kqueuepl 224 191 0 180 3 0 3 3 0 8 2 pipepl 344 150 0 122 3 0 3 3 0 8 0 fdescpl 528 786 0 748 3 0 3 3 0 8 0 filepl 160 4435 0 4203 18 0 18 18 0 8 8 lockfpl 104 81 0 79 1 0 1 1 0 8 0 lockfspl 48 35 0 33 1 0 1 1 0 8 0 sessionpl 144 28 0 12 1 0 1 1 0 8 0 pgrppl 48 49 0 25 1 0 1 1 0 8 0 ucredpl 104 708 0 689 1 0 1 1 0 8 0 zombiepl 144 751 0 748 1 0 1 1 0 8 0 processpl 1232 802 0 748 5 0 5 5 0 8 0 procpl 664 1449 0 1384 7 0 7 7 0 8 1 sosppl 176 4 0 4 1 0 1 1 0 8 1 sockpl 752 1173 0 1134 23 10 13 23 0 8 8 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 122 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 25 0 0 4 0 4 4 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 1193 0 0 75 0 75 75 0 8 0 bufpl 280 3276 0 121 226 0 226 226 0 8 0 anonpl 32 7384 0 0 61 1 60 61 0 246 0 amapchunkpl 152 21421 0 20786 39 0 39 39 0 158 12 amappl16 200 2737 0 2709 18 7 11 15 0 8 8 amappl15 192 56 0 56 1 1 0 1 0 8 0 amappl14 184 43 0 43 1 0 1 1 0 8 1 amappl13 176 453 0 452 1 0 1 1 0 8 0 amappl12 168 1133 0 1086 3 0 3 3 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 47 0 37 1 0 1 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 24 0 23 1 0 1 1 0 8 0 amappl7 128 88 0 85 1 0 1 1 0 8 0 amappl6 120 270 0 259 1 0 1 1 0 8 0 amappl5 112 79 0 71 1 0 1 1 0 8 0 amappl4 104 405 0 380 1 0 1 1 0 8 0 amappl3 96 3421 0 3303 3 0 3 3 0 8 0 amappl2 88 946 0 868 3 0 3 3 0 8 1 amappl1 80 12082 0 11509 15 0 15 15 0 8 1 amappl 88 5785 0 5571 5 0 5 5 0 92 0 uvmvnodes 80 116 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 29 0 2 1 0 1 1 0 8 0 uaddrrnd 24 786 0 748 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 786 0 748 1 0 1 1 0 8 0 vmmpekpl 168 8455 0 8421 2 0 2 2 0 8 0 vmmpepl 168 59152 0 57014 104 0 104 104 0 357 6 vmsppl 488 785 0 748 7 1 6 6 0 8 0 rwobjpl 80 19448 0 18425 26 0 26 26 0 8 1 pdppl 4096 1579 0 1496 103 16 87 91 0 8 4 pvpl 32 13442 0 0 110 1 109 109 0 265 0 pmappl 256 785 0 748 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 346 0 19 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(ffffffff833a4059) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839e50b8,1,ffff80003ac268b8) at pool_do_get+0x5df pool_get(ffffffff839e50b8,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe54e8,ffff80003ac26b10,5c,ffff80003ac26a60) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe54e8,ffff80003ac26b10,ffff80003ac26a60) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003ac26b10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003ac26b10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc954f93aaf0, 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: 0x77c86a5b4630, 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: 0x77c86a5b4630, count: -3