panic: pool_do_get: shmpl free list modified: page 0xfffffd8063194000; item addr 0xfffffd8063194690; offset 0x40=0x68a8f1bb Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 307841 54356 32767 0x10 0 1 syz-executor *316942 54356 32767 0x10 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83367ad1) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838dee10,1,ffff80003c489698) at pool_do_get+0x5df pool_get(ffffffff838dee10,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80002a36e7e8,ffff80003c4898f0,4,ffff80003c489840) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80002a36e7e8,ffff80003c4898f0,ffff80003c489840) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c4898f0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4898f0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcaa0fad8d00, 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 0xfffffd8063194000; item addr 0xfffffd8063194690; offset 0x40=0x68a8f1bb ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83367ad1) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838dee10,1,ffff80003c489698) at pool_do_get+0x5df pool_get(ffffffff838dee10,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80002a36e7e8,ffff80003c4898f0,4,ffff80003c489840) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80002a36e7e8,ffff80003c4898f0,ffff80003c489840) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c4898f0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4898f0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcaa0fad8d00, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c4894c0 rbx 0xffffffff8382addf cpu_info_full_primary+0x2ddf rdx 0 rcx 0xffff80002a36e7e8 rax 0xffffffff83829ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7e9cb230b6f50139 r11 0xad0df2354686b232 r12 0xffffffff8382abe0 cpu_info_full_primary+0x2be0 r13 0 r14 0 r15 0x1 rip 0xffffffff81bb4985 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c4894b0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=316942 pid=54356 tcnt=4 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=0xffff80002a36e020,0xffff80003b459260 process=0xffff800038824028 user=0xffff80003c484000, vmspace=0xfffffd806babb5e0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26899 131124 37675 0 2 0 syz-executor 54356 307841 97274 32767 7 0x10 syz-executor *54356 316942 97274 32767 7 0x4000010 syz-executor 54356 122963 97274 32767 3 0x4000090 fsleep syz-executor 54356 30358 97274 32767 3 0x4000090 fsleep syz-executor 31034 122375 33754 32767 2 0x10 syz-executor 92431 93863 67235 32767 2 0x10 syz-executor 92431 130288 67235 32767 3 0x4000090 ttyretype syz-executor 92315 452138 79685 32767 2 0x10 syz-executor 92315 230637 79685 32767 3 0x4000090 fsleep syz-executor 92315 345112 79685 32767 3 0x4000090 fsleep syz-executor 92315 272618 79685 32767 3 0x4000090 fsleep syz-executor 54655 232533 56962 32767 2 0x10 syz-executor 54655 424279 56962 32767 3 0x4000090 fsleep syz-executor 38510 293303 46398 32767 2 0x10 syz-executor 38510 357478 46398 32767 3 0x4000090 sbwait syz-executor 38510 252066 46398 32767 3 0x4000090 fsleep syz-executor 57643 237193 37974 32767 2 0x10 syz-executor 57643 71583 37974 32767 3 0x4000090 fsleep syz-executor 37675 436677 24266 0 3 0x82 wait syz-executor 57038 87696 0 0 3 0x14200 bored sosplice 33754 316265 43377 32767 2 0x10 syz-executor 37974 517322 91354 32767 3 0x90 nanoslp syz-executor 97274 148531 13795 32767 3 0x90 nanoslp syz-executor 67235 240544 23184 32767 3 0x90 nanoslp syz-executor 79685 386822 87621 32767 3 0x90 nanoslp syz-executor 46398 247528 18416 32767 3 0x90 nanoslp syz-executor 56962 81702 26398 32767 3 0x90 nanoslp syz-executor 18416 102225 24266 0 3 0x82 wait syz-executor 26398 227173 24266 0 3 0x82 wait syz-executor 23184 90238 24266 0 3 0x82 wait syz-executor 43377 68588 24266 0 3 0x82 wait syz-executor 13795 230745 24266 0 3 0x82 wait syz-executor 87621 46712 24266 0 3 0x82 wait syz-executor 91354 404550 24266 0 3 0x82 wait syz-executor 24266 78703 74668 0 3 0x82 kqread syz-executor 74668 278835 13701 0 3 0x10008a sigsusp ksh 13701 365473 15724 0 3 0x98 kqread sshd-session 15724 395504 11366 0 3 0x92 kqread sshd-session 1891 360516 1 0 3 0x100083 ttyin getty 11366 209592 1 0 3 0x88 kqread sshd 91573 426939 94546 73 3 0x1100090 kqread syslogd 94546 364235 1 0 3 0x100082 sbwait syslogd 98049 356955 1 0 3 0x100080 kqread resolvd 25610 315015 95956 77 3 0x100092 kqread dhcpleased 19726 476973 95956 77 3 0x100092 kqread dhcpleased 95956 182746 1 0 3 0x80 kqread dhcpleased 25088 459292 0 0 3 0x14200 bored smr 66917 313249 0 0 2 0x14200 zerothread 38868 489847 0 0 3 0x14200 aiodoned aiodoned 71201 367700 0 0 3 0x14200 syncer update 17627 138115 0 0 3 0x14200 cleaner cleaner 87616 484677 0 0 3 0x14200 reaper reaper 13243 46585 0 0 3 0x14200 pgdaemon pagedaemon 33112 402038 0 0 3 0x14200 bored viomb 82531 313673 0 0 3 0x40014200 acpi0 acpi0 6763 353237 0 0 3 0x40014200 idle1 24076 230932 0 0 3 0x14200 bored softnet7 72819 154204 0 0 3 0x14200 bored softnet6 90278 262956 0 0 3 0x14200 bored softnet5 81570 419684 0 0 3 0x14200 bored softnet4 71847 93620 0 0 3 0x14200 bored softnet3 84893 282438 0 0 3 0x14200 bored softnet2 83969 149212 0 0 3 0x14200 bored softnet1 91853 415234 0 0 3 0x14200 bored softnet0 8791 77592 0 0 3 0x14200 bored systqmp 562 211677 0 0 3 0x14200 bored systq 19147 332135 0 0 3 0x14200 tmoslp softclockmp 98522 405907 0 0 3 0x40014200 tmoslp softclock 84336 260482 0 0 3 0x40014200 idle0 1 47636 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 (0xffffffff838dee28) #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 54356 (syz-executor) thread 0xffff80002a36e7e8 (316942) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838717b8) #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 (0xffffffff838dee28) #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 10221 10958K 10968K 166960K 11304 0 pcb 17 12K 12K 166960K 17 0 rtable 197 5K 6K 166960K 295 0 pf 29 16K 16K 166960K 31 0 ifaddr 38 6K 7K 166960K 44 0 ifgroup 46 2K 2K 166960K 50 0 sysctl 4 1K 9K 166960K 9 0 counters 66 36K 36K 166960K 68 0 ioctlops 0 0K 2K 166960K 39 0 iov 0 0K 16K 166960K 33 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1335 84K 84K 166960K 1582 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 17 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 71 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 25 93K 125K 166960K 686 0 sigio 0 0K 0K 166960K 32 0 proc 58 99K 147K 166960K 561 0 subproc 72 4K 4K 166960K 234 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 283 0 in_multi 88 6K 7K 166960K 128 0 ether_multi 1 0K 0K 166960K 4 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 471 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 240 143K 170K 166960K 7552 0 UVM aobj 28 3K 4K 166960K 31 0 pinsyscall 46 92K 112K 166960K 1703 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 32 0 NDP 10 0K 2K 166960K 27 0 temp 75 8652K 8718K 166960K 6486 0 kqueue 13 20K 28K 166960K 129 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 77 0 74 1 0 1 1 0 8 0 rtentry 176 110 0 20 5 0 5 5 0 8 0 unpcb 144 770 0 753 9 3 6 6 0 8 5 syncache 336 10 0 10 1 0 1 1 0 8 1 tcpqe 32 3 0 3 2 2 0 1 0 8 0 tcpcb 736 377 0 366 11 7 4 7 0 8 3 arp 128 14 0 1 1 0 1 1 0 8 0 ipq 40 4 0 0 1 0 1 1 0 8 0 ipqe 40 5 0 0 1 0 1 1 0 8 0 inpcb 328 891 0 875 9 5 4 8 0 8 2 ip6q 72 4 0 1 1 0 1 1 0 8 0 ip6af 40 6 0 4 1 0 1 1 0 8 0 nd6 144 27 0 12 1 0 1 1 0 8 0 kcovpl 48 26 0 18 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 478 0 80 29 0 29 29 0 8 0 art_table 40 479 0 80 5 0 5 5 0 8 0 art_node 32 110 0 29 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 4 1 0 1 1 0 8 0 semapl 112 69 0 59 1 0 1 1 0 8 0 shmpl 112 28 0 3 1 0 1 1 0 8 0 pool(0xffffffff838dee10:shmpl): page inconsistency: page 0xfffffd8063194000; 9 on list, 25 missing, 35 items per page dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 2312 0 785 96 0 96 96 0 8 0 ffsino 296 2312 0 785 118 0 118 118 0 8 0 nchpl 144 3238 0 1543 64 0 64 64 0 8 0 uvmvnodes 80 2555 0 0 53 0 53 53 0 8 0 vnodes 216 2555 0 0 142 0 142 142 0 8 0 namei 1024 10873 0 10873 2 1 1 2 0 8 1 percpumem 16 49 0 1 1 0 1 1 0 8 0 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 11313 0 11313 9 8 1 8 1 8 1 plimitpl 152 270 0 246 2 0 2 2 0 8 1 sigapl 424 930 0 870 8 0 8 8 0 8 0 knotepl 120 303 0 0 10 0 10 10 0 8 0 kqueuepl 224 204 0 195 3 2 1 3 0 8 0 pipepl 344 266 0 239 9 6 3 9 0 8 0 fdescpl 528 907 0 870 4 0 4 4 0 8 1 filepl 160 5889 0 5674 18 4 14 16 0 8 5 lockfpl 104 120 0 118 1 0 1 1 0 8 0 lockfspl 48 48 0 46 1 0 1 1 0 8 0 sessionpl 144 43 0 28 1 0 1 1 0 8 0 pgrppl 48 76 0 53 1 0 1 1 0 8 0 ucredpl 104 844 0 826 1 0 1 1 0 8 0 zombiepl 144 870 0 870 1 0 1 1 0 8 1 processpl 1232 930 0 870 7 2 5 6 0 8 0 procpl 664 1727 0 1656 7 0 7 7 0 8 0 sosppl 168 8 0 8 1 1 0 1 0 8 0 sockpl 752 1814 0 1778 25 13 12 17 0 8 8 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 130 0 0 17 0 17 17 0 8 0 mcl2k 2048 34 0 0 5 0 5 5 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1864 0 0 117 0 117 117 0 8 0 bufpl 280 3890 0 123 270 0 270 270 0 8 0 anonpl 32 7097 0 0 58 0 58 58 0 246 0 amapchunkpl 152 38671 0 38141 44 9 35 40 0 158 14 amappl16 200 2661 0 2636 15 12 3 13 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 123 0 113 1 0 1 1 0 8 0 amappl13 176 11 0 11 2 2 0 1 0 8 0 amappl12 168 1512 0 1476 3 1 2 3 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 20 0 20 1 1 0 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 32 0 30 1 0 1 1 0 8 0 amappl7 128 97 0 87 1 0 1 1 0 8 0 amappl6 120 176 0 173 1 0 1 1 0 8 0 amappl5 112 116 0 110 1 0 1 1 0 8 0 amappl4 104 272 0 255 1 0 1 1 0 8 0 amappl3 96 4543 0 4420 4 0 4 4 0 8 0 amappl2 88 638 0 584 2 0 2 2 0 8 0 amappl1 80 10998 0 10427 14 0 14 14 0 8 0 amappl 88 6794 0 6617 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 30 0 3 1 0 1 1 0 8 0 uaddrrnd 24 907 0 870 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 907 0 870 1 0 1 1 0 8 0 vmmpekpl 168 9674 0 9627 3 0 3 3 0 8 0 vmmpepl 168 63453 0 61343 101 5 96 101 0 357 2 vmsppl 488 906 0 870 7 1 6 6 0 8 0 rwobjpl 80 21471 0 18045 71 0 71 71 0 8 0 pdppl 4096 1821 0 1740 121 40 81 99 0 8 0 pvpl 32 14219 0 0 115 0 115 115 0 265 0 pmappl 256 906 0 870 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 413 0 51 11 0 11 11 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(ffffffff83367ad1) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff838dee10,1,ffff80003c489698) at pool_do_get+0x5df pool_get(ffffffff838dee10,1) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80002a36e7e8,ffff80003c4898f0,4,ffff80003c489840) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80002a36e7e8,ffff80003c4898f0,ffff80003c489840) at sys_shmget+0x195 sys/kern/sysv_shm.c:482 syscall(ffff80003c4898f0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4898f0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcaa0fad8d00, 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: 0x7b31daac0040, 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: 0x7b31daac0040, count: -3