panic: pool_do_get: shmpl free list modified: page 0xfffffd8064b38000; item addr 0xfffffd8064b38850; offset 0x40=0x6899709a Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 510908 83629 32767 0x10 0 1 syz-executor *449877 83629 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83369cef) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83927fc8,1,ffff800037015bb8) at pool_do_get+0x5df pool_get(ffffffff83927fc8,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000ffff2d08,ffff800037015e10,0,ffff800037015d60) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000ffff2d08,ffff800037015e10,ffff800037015d60) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff800037015e10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800037015e10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x446dec31c00, 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 0xfffffd8064b38000; item addr 0xfffffd8064b38850; offset 0x40=0x6899709a ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83369cef) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83927fc8,1,ffff800037015bb8) at pool_do_get+0x5df pool_get(ffffffff83927fc8,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000ffff2d08,ffff800037015e10,0,ffff800037015d60) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000ffff2d08,ffff800037015e10,ffff800037015d60) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff800037015e10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800037015e10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x446dec31c00, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000370159e0 rbx 0xffffffff837d3ddf cpu_info_full_primary+0x2ddf rdx 0xffff8000014328c0 rcx 0xffff8000ffff2d08 rax 0xffffffff837d2ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xce223ff70bbf95f1 r11 0xd39a329b3b7b4fa4 r12 0xffffffff837d3be0 cpu_info_full_primary+0x2be0 r13 0 r14 0 r15 0x1 rip 0xffffffff813ae8c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000370159d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=449877 pid=83629 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=0xffff80003a4354e8,0xffff80003a435cc0 process=0xffff80003c47e730 user=0xffff800037010000, vmspace=0xfffffd806834c400 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 7258 391221 56516 32767 2 0x10 syz-executor 54200 130286 0 0 3 0x14200 bored sosplice 92223 317436 3689 32767 2 0x10 syz-executor 83629 510908 36227 32767 7 0x10 syz-executor *83629 449877 36227 32767 7 0x4000010 syz-executor 17251 163414 53897 32767 2 0x10 syz-executor 17251 67740 53897 32767 3 0x4000090 fsleep syz-executor 17251 102934 53897 32767 3 0x4000090 fsleep syz-executor 17251 381011 53897 32767 3 0x4000090 fsleep syz-executor 21846 366524 6368 32767 2 0x10 syz-executor 21846 391857 6368 32767 3 0x4000090 netacc syz-executor 94448 265832 30876 32767 2 0x10 syz-executor 94448 158110 30876 32767 3 0x4000090 ttyin syz-executor 94448 20347 30876 32767 3 0x4000090 fsleep syz-executor 56516 92391 20162 32767 3 0x90 nanoslp syz-executor 6368 368519 13921 32767 3 0x90 nanoslp syz-executor 36227 199248 31894 32767 3 0x90 nanoslp syz-executor 30876 174757 53417 32767 3 0x90 nanoslp syz-executor 3689 509950 6907 32767 3 0x90 nanoslp syz-executor 30671 119127 42161 32767 2 0x10 syz-executor 85396 257398 96686 32767 2 0x10 syz-executor 53897 329118 11059 32767 3 0x90 nanoslp syz-executor 96686 85392 79904 0 3 0x82 wait syz-executor 6907 437624 79904 0 3 0x82 wait syz-executor 11059 410528 79904 0 3 0x82 wait syz-executor 53417 233250 79904 0 3 0x82 wait syz-executor 13921 507838 79904 0 3 0x82 wait syz-executor 20162 311204 79904 0 3 0x82 wait syz-executor 42161 144593 79904 0 3 0x82 wait syz-executor 31894 414774 79904 0 3 0x82 wait syz-executor 79904 196975 20097 0 2 0x2 syz-executor 20097 313744 21721 0 3 0x10008a sigsusp ksh 21721 101910 68596 0 3 0x98 kqread sshd-session 68596 435154 94518 0 3 0x92 kqread sshd-session 21826 300202 1 0 3 0x100083 ttyin getty 94518 438784 1 0 3 0x88 kqread sshd 30717 132281 94502 73 3 0x1100090 kqread syslogd 94502 500491 1 0 3 0x100082 sbwait syslogd 69123 520650 1 0 3 0x100080 kqread resolvd 82854 145647 35738 77 3 0x100092 kqread dhcpleased 93827 502516 35738 77 3 0x100092 kqread dhcpleased 35738 64388 1 0 3 0x80 kqread dhcpleased 44442 30289 0 0 3 0x14200 bored smr 21083 450961 0 0 3 0x14200 pgzero zerothread 14019 92958 0 0 3 0x14200 aiodoned aiodoned 37868 96287 0 0 3 0x14200 syncer update 49789 389829 0 0 3 0x14200 cleaner cleaner 23549 297022 0 0 3 0x14200 reaper reaper 56794 421077 0 0 3 0x14200 pgdaemon pagedaemon 51911 129146 0 0 3 0x14200 bored viomb 36378 377236 0 0 3 0x40014200 acpi0 acpi0 27091 456432 0 0 3 0x40014200 idle1 6317 128574 0 0 3 0x14200 bored softnet7 66985 414401 0 0 3 0x14200 bored softnet6 9949 373702 0 0 3 0x14200 bored softnet5 84259 98633 0 0 3 0x14200 bored softnet4 64967 310707 0 0 3 0x14200 bored softnet3 68016 9917 0 0 3 0x14200 bored softnet2 57345 501328 0 0 3 0x14200 bored softnet1 91108 182296 0 0 3 0x14200 bored softnet0 41141 48950 0 0 3 0x14200 bored systqmp 28573 419822 0 0 3 0x14200 bored systq 63439 190788 0 0 3 0x14200 tmoslp softclockmp 26256 76330 0 0 3 0x40014200 tmoslp softclock 51458 181196 0 0 3 0x40014200 idle0 1 514492 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 (0xffffffff83927fe0) #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:748 #7 Xsyscall+0x128 Process 83629 (syz-executor) thread 0xffff8000ffff2d08 (449877) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839c50d0) #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:748 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff83927fe0) #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:748 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10224 10960K 10968K 166960K 11304 0 pcb 17 12K 12K 166960K 17 0 rtable 213 6K 6K 166960K 266 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 30 0 iov 0 0K 16K 166960K 8 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1334 84K 84K 166960K 1423 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 13K 166960K 8 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 6 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 25 93K 125K 166960K 250 0 sigio 0 0K 0K 166960K 1 0 proc 58 99K 163K 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 1 0K 0K 166960K 23 0 in_multi 99 7K 7K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 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 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 357 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 252 182K 184K 166960K 3739 0 UVM aobj 12 2K 2K 166960K 14 0 pinsyscall 46 92K 110K 166960K 1282 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 6 0 NDP 11 0K 2K 166960K 27 0 temp 41 8639K 8704K 166960K 4601 0 kqueue 13 20K 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 26 0 0 1 0 1 1 0 8 0 rtpcb 120 53 0 50 1 0 1 1 0 8 0 rtentry 176 99 0 1 5 0 5 5 0 8 0 unpcb 144 238 0 219 6 0 6 6 0 8 5 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 187 0 177 7 0 7 7 0 8 6 arp 128 12 0 0 1 0 1 1 0 8 0 inpcb 328 271 0 256 7 0 7 7 0 8 5 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 144 18 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 441 0 0 28 0 28 28 0 8 0 art_table 40 442 0 0 5 0 5 5 0 8 0 art_node 32 99 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 4 0 1 1 0 1 1 0 8 0 shmpl 112 11 0 2 1 0 1 1 0 8 0 pool(0xffffffff83927fc8:shmpl): page inconsistency: page 0xfffffd8064b38000; 25 on list, 9 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1756 0 250 95 0 95 95 0 8 0 ffsino 296 1756 0 250 117 0 117 117 0 8 0 nchpl 144 2094 0 412 63 0 63 63 0 8 0 uvmvnodes 80 1837 0 0 38 0 38 38 0 8 0 vnodes 216 1837 0 0 103 0 103 103 0 8 0 namei 1024 6412 0 6412 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 6958 0 6958 3 2 1 2 1 8 1 plimitpl 152 151 0 126 2 0 2 2 0 8 0 sigapl 424 536 0 476 8 0 8 8 0 8 0 knotepl 120 289 0 0 9 0 9 9 0 8 0 kqueuepl 224 112 0 102 5 0 5 5 0 8 4 pipepl 344 112 0 85 3 0 3 3 0 8 0 fdescpl 528 513 0 476 4 0 4 4 0 8 0 filepl 160 2550 0 2325 21 0 21 21 0 8 11 lockfpl 104 31 0 29 1 0 1 1 0 8 0 lockfspl 48 16 0 14 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 32 0 8 1 0 1 1 0 8 0 ucredpl 104 544 0 525 1 0 1 1 0 8 0 zombiepl 144 477 0 476 1 0 1 1 0 8 0 processpl 1248 536 0 476 7 1 6 6 0 8 0 procpl 664 707 0 640 7 0 7 7 0 8 1 sockpl 752 563 0 526 24 0 24 24 0 8 19 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k 2048 26 0 0 4 0 4 4 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 203 0 0 13 0 13 13 0 8 0 bufpl 280 2945 0 116 203 0 203 203 0 8 0 anonpl 32 4454 0 0 36 0 36 36 0 246 0 amapchunkpl 152 11208 0 10472 40 4 36 36 0 158 6 amappl16 200 1060 0 975 5 0 5 5 0 8 0 amappl15 192 6 0 6 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 1121 0 1085 2 0 2 2 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 9 0 9 2 2 0 1 0 8 0 amappl9 144 259 0 258 2 1 1 1 0 8 0 amappl8 136 22 0 19 1 0 1 1 0 8 0 amappl7 128 92 0 82 1 0 1 1 0 8 0 amappl6 120 174 0 171 1 0 1 1 0 8 0 amappl5 112 113 0 106 1 0 1 1 0 8 0 amappl4 104 268 0 252 1 0 1 1 0 8 0 amappl3 96 1908 0 1782 4 0 4 4 0 8 0 amappl2 88 612 0 559 2 0 2 2 0 8 0 amappl1 80 8743 0 8163 14 0 14 14 0 8 0 amappl 88 3073 0 2888 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 13 0 2 1 0 1 1 0 8 0 uaddrrnd 24 513 0 476 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 513 0 476 1 0 1 1 0 8 0 vmmpekpl 168 5710 0 5674 2 0 2 2 0 8 0 vmmpepl 168 38247 0 36079 102 0 102 102 0 357 4 vmsppl 488 512 0 476 7 1 6 6 0 8 0 rwobjpl 80 14378 0 11622 58 0 58 58 0 8 1 pdppl 4096 1034 0 952 112 28 84 98 0 8 2 pvpl 32 13122 0 0 107 1 106 106 0 265 0 pmappl 256 512 0 476 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 290 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(ffffffff83369cef) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83927fc8,1,ffff800037015bb8) at pool_do_get+0x5df pool_get(ffffffff83927fc8,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000ffff2d08,ffff800037015e10,0,ffff800037015d60) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000ffff2d08,ffff800037015e10,ffff800037015d60) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff800037015e10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800037015e10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x446dec31c00, 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: 0x75b8702f79c0, 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: 0x75b8702f79c0, count: -3