panic: pool_do_get: shmpl free list modified: page 0xfffffd806772c000; item addr 0xfffffd806772ce70; offset 0x40=0x67b32962 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *240892 69204 32767 0x10 0x4000000 0K syz-executor 91394 34900 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833ab7de) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839297b8,1,ffff80003c55be28) at pool_do_get+0x5da pool_get(ffffffff839297b8,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff7730,ffff80003c55c080,4,ffff80003c55bfd0) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff7730,ffff80003c55c080,ffff80003c55bfd0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c55c080) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c55c080) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x546141ba1c0, 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 0xfffffd806772c000; item addr 0xfffffd806772ce70; offset 0x40=0x67b32962 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833ab7de) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839297b8,1,ffff80003c55be28) at pool_do_get+0x5da pool_get(ffffffff839297b8,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff7730,ffff80003c55c080,4,ffff80003c55bfd0) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff7730,ffff80003c55c080,ffff80003c55bfd0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c55c080) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c55c080) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x546141ba1c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c55bc60 rbx 0xffffffff83794dc7 cpu_info_full_primary+0x2dc7 rdx 0xffff80000143e5c0 rcx 0xffff8000ffff7730 rax 0xffffffff83793ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x47e6da15a13dd88d r11 0x7391c15965afbfc r12 0xffffffff83794bc8 cpu_info_full_primary+0x2bc8 r13 0 r14 0 r15 0x1 rip 0xffffffff81eb5385 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c55bc50 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=240892 pid=69204 tcnt=3 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=0xffff8000ffff4028,0xffff8000ffff6550 process=0xffff80003c0e2b80 user=0xffff80003c557000, vmspace=0xfffffd806bd421f8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46312 103457 58111 32767 2 0x10 syz-executor 46312 250458 58111 32767 3 0x4000090 fsleep syz-executor 47216 96153 77511 32767 2 0x10 syz-executor 47216 124744 77511 32767 3 0x4000010 biowait syz-executor 47216 266228 77511 32767 3 0x4000010 inode syz-executor 69204 292122 87785 32767 2 0x10 syz-executor 69204 285617 87785 32767 3 0x4000090 ttyout syz-executor *69204 240892 87785 32767 7 0x4000010 syz-executor 24184 508039 45318 32767 2 0x10 syz-executor 24184 524098 45318 32767 3 0x4000090 pipewr syz-executor 24184 463005 45318 32767 3 0x4000090 pipewr syz-executor 68237 93737 2114 0 3 0x82 sbwait sshd-session 57430 152070 5599 32767 3 0x90 nanoslp syz-executor 57430 366295 5599 32767 3 0x4000090 kqsel syz-executor 33846 215053 66232 32767 3 0x90 nanoslp syz-executor 33846 373763 66232 32767 3 0x4000090 piperd syz-executor 33846 91268 66232 32767 3 0x4000090 fsleep syz-executor 30069 444209 63505 0 3 0x100082 sbwait arp 63505 114911 13768 0 3 0x10008a sigsusp sh 66232 388603 34350 32767 3 0x90 nanoslp syz-executor 50803 422998 73091 32767 3 0x90 nanoslp syz-executor 45318 366599 87059 32767 3 0x90 nanoslp syz-executor 77511 329 76979 32767 3 0x90 nanoslp syz-executor 5599 100394 7570 32767 3 0x90 nanoslp syz-executor 87785 16718 86901 32767 3 0x90 nanoslp syz-executor 13768 34647 43785 0 3 0x80 wait syz-executor 58111 40706 29639 32767 3 0x90 nanoslp syz-executor 34350 317452 28298 0 3 0x82 wait syz-executor 87059 516678 28298 0 3 0x82 wait syz-executor 76979 33424 28298 0 3 0x82 wait syz-executor 86901 387447 28298 0 3 0x82 wait syz-executor 7570 136680 28298 0 3 0x82 wait syz-executor 43785 381229 28298 0 3 0x82 wait syz-executor 73091 211388 28298 0 3 0x82 wait syz-executor 29639 195651 28298 0 3 0x82 wait syz-executor 28298 377947 37081 0 3 0x82 kqread syz-executor 37081 449961 87485 0 3 0x10008a sigsusp ksh 87485 376753 56760 0 3 0x98 kqread sshd-session 56760 303311 2114 0 3 0x92 kqread sshd-session 5495 36916 1 0 3 0x100083 ttyin getty 2114 207448 1 0 3 0x88 kqread sshd 92191 34807 22943 73 3 0x1100090 kqread syslogd 22943 484386 1 0 3 0x100082 sbwait syslogd 36688 326453 1 0 3 0x100080 kqread resolvd 92056 429841 48899 77 3 0x100092 kqread dhcpleased 65525 347168 48899 77 3 0x100092 kqread dhcpleased 48899 416141 1 0 3 0x80 kqread dhcpleased 86757 224070 0 0 3 0x14200 bored smr 38476 156489 0 0 2 0x14200 zerothread 61155 518172 0 0 3 0x14200 aiodoned aiodoned 52675 200002 0 0 3 0x14200 syncer update 66569 76629 0 0 3 0x14200 cleaner cleaner 34900 91394 0 0 7 0x14200 reaper 66173 188351 0 0 3 0x14200 pgdaemon pagedaemon 87688 200275 0 0 3 0x14200 bored viomb 9525 520045 0 0 3 0x40014200 acpi0 acpi0 29992 4597 0 0 3 0x40014200 idle1 26549 390579 0 0 3 0x14200 bored softnet3 5738 160710 0 0 3 0x14200 bored softnet2 95088 332761 0 0 3 0x14200 bored softnet1 85054 368901 0 0 3 0x14200 bored softnet0 97731 482146 0 0 3 0x14200 bored systqmp 61983 498982 0 0 3 0x14200 bored systq 70433 311610 0 0 3 0x14200 tmoslp softclockmp 35821 230844 0 0 3 0x40014200 tmoslp softclock 38440 441115 0 0 3 0x40014200 idle0 1 523975 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 (0xffffffff839297d0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pool_get+0x10b sys/kern/subr_pool.c:583 #4 shmget_allocate_segment+0x1a7 #5 sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 CPU 1: kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10183 10953K 10966K 166960K 11262 0 pcb 17 12K 12K 166960K 17 0 rtable 218 6K 6K 166960K 324 0 pf 31 16K 16K 166960K 31 0 ifaddr 40 7K 7K 166960K 42 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 1 1K 1K 166960K 1 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 28 0 iov 0 0K 0K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1333 84K 84K 166960K 1352 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 4 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 26 97K 125K 166960K 164 0 proc 58 79K 115K 166960K 472 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 5 0 in_multi 89 6K 6K 166960K 91 0 ether_multi 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 336 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 253 75K 77K 166960K 2835 0 UVM aobj 4 3K 3K 166960K 5 0 pinsyscall 50 100K 112K 166960K 1155 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 25 1K 1K 166960K 25 0 temp 34 8634K 8702K 166960K 3678 0 kqueue 13 20K 24K 166960K 26 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 34 0 30 1 0 1 1 0 8 0 rtentry 112 103 0 1 3 0 3 3 0 8 0 unpcb 144 52 0 35 1 0 1 1 0 8 0 syncache 336 5 0 4 1 0 1 1 0 8 0 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 17 0 10 2 0 2 2 0 8 1 arp 120 17 0 0 1 0 1 1 0 8 0 inpcb 376 84 0 69 2 0 2 2 0 8 0 nd6 136 21 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 411 0 0 26 0 26 26 0 8 0 art_table 32 412 0 0 4 0 4 4 0 8 0 art_node 16 102 0 9 1 0 1 1 0 8 0 semapl 112 3 0 1 1 0 1 1 0 8 0 shmpl 112 2 0 1 1 0 1 1 0 8 0 pool(0xffffffff839297b8:shmpl): page inconsistency: page 0xfffffd806772c000; 33 on list, 1 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1580 0 79 94 0 94 94 0 8 0 ffsino 280 1580 0 79 108 0 108 108 0 8 0 nchpl 144 1804 0 131 63 0 63 63 0 8 0 uvmvnodes 80 1661 0 0 34 0 34 34 0 8 0 vnodes 216 1661 0 0 93 0 93 93 0 8 0 namei 1024 5234 0 5233 1 0 1 1 0 8 0 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 5957 0 5956 3 1 2 2 1 8 1 plimitpl 152 41 0 16 2 0 2 2 0 8 1 sigapl 424 436 0 378 8 0 8 8 0 8 0 futexpl 64 402 0 400 1 0 1 1 0 8 0 knotepl 120 65 0 0 2 0 2 2 0 8 0 kqueuepl 216 26 0 15 1 0 1 1 0 8 0 pipepl 328 103 0 73 3 0 3 3 0 8 0 fdescpl 504 418 0 379 7 1 6 6 0 8 0 filepl 152 1435 0 1208 9 0 9 9 0 8 0 lockfpl 104 16 0 14 1 0 1 1 0 8 0 lockfspl 48 7 0 5 1 0 1 1 0 8 0 sessionpl 144 22 0 5 1 0 1 1 0 8 0 pgrppl 48 30 0 5 1 0 1 1 0 8 0 ucredpl 104 132 0 114 1 0 1 1 0 8 0 zombiepl 144 379 0 378 1 0 1 1 0 8 0 processpl 1168 436 0 378 5 0 5 5 0 8 0 procpl 656 490 0 422 7 0 7 7 0 8 1 sockpl 688 170 0 134 4 0 4 4 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 110 0 0 14 0 14 14 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 248 0 0 16 0 16 16 0 8 0 bufpl 280 2325 0 124 158 0 158 158 0 8 0 anonpl 24 100955 0 95145 37 1 36 36 0 184 0 amapchunkpl 152 8748 0 8056 28 0 28 28 0 158 0 amappl16 200 1968 0 1932 5 0 5 5 0 8 3 amappl15 192 71 0 70 1 0 1 1 0 8 0 amappl14 184 104 0 92 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 0 1 1 0 8 1 amappl12 168 1007 0 968 2 0 2 2 0 8 0 amappl11 160 43 0 33 1 0 1 1 0 8 0 amappl10 152 13 0 13 2 1 1 1 0 8 1 amappl9 144 281 0 281 1 0 1 1 0 8 1 amappl8 136 26 0 25 1 0 1 1 0 8 0 amappl7 128 93 0 81 1 0 1 1 0 8 0 amappl6 120 167 0 162 1 0 1 1 0 8 0 amappl5 112 117 0 111 1 0 1 1 0 8 0 amappl4 104 271 0 255 1 0 1 1 0 8 0 amappl3 96 1336 0 1203 4 0 4 4 0 8 0 amappl2 88 602 0 541 2 0 2 2 0 8 0 amappl1 80 7649 0 6988 15 0 15 15 0 8 0 amappl 88 2502 0 2305 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 418 0 379 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 418 0 379 1 0 1 1 0 8 0 vmmpekpl 168 4975 0 4936 2 0 2 2 0 8 0 vmmpepl 168 32563 0 30390 98 0 98 98 0 357 1 vmsppl 456 417 0 379 7 1 6 6 0 8 0 rwobjpl 64 14050 0 11379 44 0 44 44 0 8 0 pdppl 4096 844 0 758 108 10 98 98 0 8 12 pvpl 32 14369 0 0 116 0 116 116 0 265 0 pmappl 248 417 0 379 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 285 0 13 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(ffffffff833ab7de) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839297b8,1,ffff80003c55be28) at pool_do_get+0x5da pool_get(ffffffff839297b8,1) at pool_get+0x149 shmget_allocate_segment(ffff8000ffff7730,ffff80003c55c080,4,ffff80003c55bfd0) at shmget_allocate_segment+0x1a7 sys_shmget(ffff8000ffff7730,ffff80003c55c080,ffff80003c55bfd0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c55c080) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c55c080) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x546141ba1c0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029aabff0) 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 __mp_lock(ffffffff83933370) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83933370) at __mp_lock+0x192 sys/kern/kern_lock.c:144 reaper(ffff8000ffffca48) at reaper+0x24b sys/kern/kern_exit.c:478 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029aabff0) 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 __mp_lock(ffffffff83933370) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83933370) at __mp_lock+0x192 sys/kern/kern_lock.c:144 reaper(ffff8000ffffca48) at reaper+0x24b sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -5