panic: pool_do_get: shmpl free list modified: page 0xfffffd80609ca000; item addr 0xfffffd80609ca7e0; offset 0x40=0x69f6809f Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *300332 39029 32767 0x10 0x4000000 0K syz-executor 10823 70999 32767 0x10 0 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83447321) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83aaaf40,1,ffff80003c41d3a8) at pool_do_get+0x5df pool_get(ffffffff83aaaf40,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe67e8,ffff80003c41d600,cc,ffff80003c41d550) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe67e8,ffff80003c41d600,ffff80003c41d550) at sys_shmget+0x195 sys/kern/sysv_shm.c:484 syscall(ffff80003c41d600) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41d600) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2934d6a410, 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 0xfffffd80609ca000; item addr 0xfffffd80609ca7e0; offset 0x40=0x69f6809f ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83447321) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83aaaf40,1,ffff80003c41d3a8) at pool_do_get+0x5df pool_get(ffffffff83aaaf40,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe67e8,ffff80003c41d600,cc,ffff80003c41d550) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe67e8,ffff80003c41d600,ffff80003c41d550) at sys_shmget+0x195 sys/kern/sysv_shm.c:484 syscall(ffff80003c41d600) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41d600) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2934d6a410, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c41d1d0 rbx 0xffffffff838afe07 cpu_info_full_primary+0x2e07 rdx 0xffff8000015d3b80 rcx 0xffff8000fffe67e8 rax 0xffffffff838aeff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xba49e1f80d3ba9bd r11 0x70d36bf937155f84 r12 0xffffffff838afc08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff8193c975 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c41d1c0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=300332 pid=39029 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=0xffff8000fffe7a10,0xffffffff839e4fa0 process=0xffff80003c3dc9c0 user=0xffff80003c418000, vmspace=0xfffffd806c8ac5e0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39029 24729 5120 32767 2 0x10 syz-executor *39029 300332 5120 32767 7 0x4000010 syz-executor 51133 111135 17017 32767 2 0x10 syz-executor 70999 10823 17185 32767 7 0x10 syz-executor 70999 291681 17185 32767 2 0x4000010 syz-executor 70259 511409 53331 0 2 0x2 syz-executor 95286 243793 53331 0 2 0x2 syz-executor 74579 359745 43453 0 3 0x100082 sbwait arp 43453 383984 93704 0 3 0x10008a sigsusp sh 89180 224997 1 32767 4 0x58000c90 syz-executor 17185 312189 171 32767 3 0x90 nanoslp syz-executor 17017 106305 48809 32767 3 0x90 nanoslp syz-executor 5120 277655 15204 32767 3 0x90 nanoslp syz-executor 54118 260736 82322 32767 3 0x90 wait syz-executor 93704 400306 58734 0 3 0x80 wait syz-executor 15204 160873 53331 0 3 0x82 wait syz-executor 82322 218212 53331 0 3 0x82 wait syz-executor 171 119663 53331 0 3 0x82 wait syz-executor 58734 94586 53331 0 3 0x82 wait syz-executor 48809 501159 53331 0 3 0x82 wait syz-executor 53331 404219 72048 0 3 0x10000082 kqread syz-executor 72048 377239 56301 0 3 0x10008a sigsusp ksh 56301 345015 93512 0 3 0x98 kqread sshd-session 93512 315311 21873 0 3 0x92 kqread sshd-session 67708 145915 1 0 3 0x100083 ttyin getty 21873 378389 1 0 3 0x88 kqread sshd 40215 74500 38975 73 3 0x1100090 kqread syslogd 38975 339432 1 0 3 0x100082 sbwait syslogd 93198 142009 1 0 3 0x100080 kqread resolvd 62334 27119 66057 77 3 0x100092 kqread dhcpleased 70521 178981 66057 77 3 0x100092 kqread dhcpleased 66057 271381 1 0 3 0x80 kqread dhcpleased 38704 481993 0 0 3 0x14200 bored smr 23177 428991 0 0 2 0x14200 zerothread 60083 170907 0 0 3 0x14200 aiodoned aiodoned 45223 284558 0 0 3 0x14200 syncer update 85552 482668 0 0 3 0x14200 cleaner cleaner 70589 102041 0 0 3 0x14200 reaper reaper 22519 303006 0 0 3 0x14200 pgdaemon pagedaemon 83751 218852 0 0 3 0x14200 bored viomb 92032 181427 0 0 3 0x40014200 acpi0 acpi0 49582 430788 0 0 3 0x40014200 idle1 89896 511582 0 0 3 0x14200 bored softnet1 29865 125106 0 0 3 0x14200 bored softnet0 81029 354592 0 0 3 0x14200 bored systqmp 97914 298027 0 0 3 0x14200 bored systq 36899 13 0 0 3 0x14200 tmoslp softclockmp 62502 400631 0 0 3 0x40014200 tmoslp softclock 27910 225979 0 0 3 0x40014200 idle0 1 520116 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 (0xffffffff83aaaf58) #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:585 #3 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #4 sys_shmget+0x195 sys/kern/sysv_shm.c:484 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #6 Xsyscall+0x128 Process 39029 (syz-executor) thread 0xffff8000fffe67e8 (300332) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8399fe40) #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:783 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff83aaaf58) #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:585 #3 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #4 sys_shmget+0x195 sys/kern/sysv_shm.c:484 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11054 12015K 12034K 166960K 12151 0 pcb 17 12K 12K 166960K 17 0 rtable 177 5K 6K 166960K 343 0 pf 27 16K 16K 166960K 31 0 ifaddr 32 5K 7K 166960K 42 0 ifgroup 42 1K 2K 166960K 50 0 sysctl 4 1K 9K 166960K 8 0 counters 66 36K 37K 166960K 70 0 ioctlops 0 0K 4K 166960K 70 0 iov 0 0K 20K 166960K 22 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1287 81K 81K 166960K 1693 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 32 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 21 77K 129K 166960K 496 0 sigio 0 0K 0K 166960K 6 0 proc 58 99K 147K 166960K 515 0 subproc 69 4K 4K 166960K 222 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 66 0 in_multi 67 5K 7K 166960K 99 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 14 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 484 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 220 169K 195K 166960K 5972 0 UVM aobj 9 2K 2K 166960K 10 0 pinsyscall 43 86K 117K 166960K 1578 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 9 0K 1K 166960K 25 0 temp 55 9083K 9147K 166960K 7588 0 kqueue 13 20K 28K 166960K 81 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 54 0 50 1 0 1 1 0 8 0 rtentry 176 109 0 29 5 0 5 5 0 8 0 unpcb 144 516 0 501 6 0 6 6 0 8 5 syncache 336 8 0 8 1 0 1 1 0 8 1 tcpcb 736 159 0 155 4 2 2 4 0 8 1 arp 136 18 0 5 1 0 1 1 0 8 0 ipq 40 4 0 2 1 0 1 1 0 8 0 ipqe 40 8 0 6 1 0 1 1 0 8 0 inpcb 328 339 0 331 4 2 2 4 0 8 1 ip6q 72 5 0 1 1 0 1 1 0 8 0 ip6af 40 7 0 3 1 0 1 1 0 8 0 nd6 152 26 0 11 1 0 1 1 0 8 0 kcovpl 48 23 0 17 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 118 28 0 28 28 0 8 4 art_table 40 442 0 118 5 0 5 5 0 8 0 art_node 32 109 0 36 1 0 1 1 0 8 0 sysvmsgpl 40 71 0 70 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 25 0 15 1 0 1 1 0 8 0 shmpl 112 7 0 1 1 0 1 1 0 8 0 pool(0xffffffff83aaaf40:shmpl): page inconsistency: page 0xfffffd80609ca000; 28 on list, 6 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2152 0 673 93 0 93 93 0 8 0 ffsino 296 2152 0 673 114 0 114 114 0 8 0 nchpl 144 2766 0 1061 64 0 64 64 0 8 0 vnodes 216 2383 0 0 133 0 133 133 0 8 0 namei 1024 9065 0 9065 2 1 1 2 0 8 1 percpumem 16 50 0 2 1 0 1 1 0 8 0 kstatmem 264 25 0 4 2 0 2 2 0 8 0 scxspl 216 8719 0 8719 4 3 1 3 1 8 1 plimitpl 152 134 0 112 2 0 2 2 0 8 1 sigapl 424 754 0 703 7 0 7 7 0 8 0 knotepl 120 280 0 0 9 0 9 9 0 8 0 kqueuepl 224 97 0 88 1 0 1 1 0 8 0 pipepl 344 196 0 169 3 0 3 3 0 8 0 fdescpl 528 738 0 705 4 0 4 4 0 8 0 filepl 160 4370 0 4166 15 1 14 15 0 8 4 lockfpl 104 110 0 108 1 0 1 1 0 8 0 lockfspl 48 41 0 39 1 0 1 1 0 8 0 sessionpl 144 54 0 40 1 0 1 1 0 8 0 pgrppl 48 88 0 66 1 0 1 1 0 8 0 ucredpl 104 1077 0 1061 1 0 1 1 0 8 0 zombiepl 144 706 0 703 1 0 1 1 0 8 0 processpl 1232 754 0 703 5 0 5 5 0 8 0 procpl 664 1291 0 1238 7 0 7 7 0 8 1 sockpl 752 915 0 888 21 10 11 16 0 8 8 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 118 0 0 15 0 15 15 0 8 0 mcl2k 2048 27 0 0 4 0 4 4 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 278 0 0 18 0 18 18 0 8 0 bufpl 280 2943 0 105 203 0 203 203 0 8 0 anonpl 32 11873 0 0 96 0 96 96 0 246 0 amapchunkpl 152 19076 0 18590 34 0 34 34 0 158 8 amappl16 200 2937 0 2898 22 9 13 21 0 8 8 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 398 0 395 1 0 1 1 0 8 0 amappl13 176 120 0 109 1 0 1 1 0 8 0 amappl12 168 967 0 937 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 61 0 50 1 0 1 1 0 8 0 amappl9 144 262 0 262 1 1 0 1 0 8 0 amappl8 136 92 0 90 1 0 1 1 0 8 0 amappl7 128 153 0 141 1 0 1 1 0 8 0 amappl6 120 158 0 156 1 0 1 1 0 8 0 amappl5 112 160 0 152 1 0 1 1 0 8 0 amappl4 104 270 0 253 1 0 1 1 0 8 0 amappl3 96 3468 0 3369 5 1 4 4 0 8 0 amappl2 88 547 0 491 2 0 2 2 0 8 0 amappl1 80 12088 0 11512 16 0 16 16 0 8 1 amappl 88 5195 0 5043 6 0 6 6 0 92 0 uvmvnodes 80 114 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 9 0 1 1 0 1 1 0 8 0 uaddrrnd 24 738 0 705 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 738 0 705 1 0 1 1 0 8 0 vmmpekpl 168 8567 0 8524 3 0 3 3 0 8 0 vmmpepl 168 57793 0 55927 109 0 109 109 0 357 10 vmsppl 488 737 0 705 7 1 6 6 0 8 0 rwobjpl 80 19374 0 18379 29 0 29 29 0 8 1 pdppl 4096 1483 0 1410 113 32 81 99 0 8 8 pvpl 32 16832 0 0 137 1 136 136 0 265 0 pmappl 256 737 0 705 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 292 0 38 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(ffffffff83447321) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83aaaf40,1,ffff80003c41d3a8) at pool_do_get+0x5df pool_get(ffffffff83aaaf40,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe67e8,ffff80003c41d600,cc,ffff80003c41d550) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe67e8,ffff80003c41d600,ffff80003c41d550) at sys_shmget+0x195 sys/kern/sysv_shm.c:484 syscall(ffff80003c41d600) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c41d600) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2934d6a410, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299adff0) 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: 0x74d78fb46e50, count: 12 ddb{1}> trace x86_ipi_db(ffff8000299adff0) 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: 0x74d78fb46e50, count: -3