panic: pool_do_get: shmpl free list modified: page 0xfffffd8030261000; item addr 0xfffffd8030261070; offset 0x10=0xdeafbe00 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *240983 67600 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 pool_do_get(ffffffff822b07c8,1,ffff800014a0424c) at pool_do_get+0x464 sys/kern/subr_pool.c:750 pool_get(ffffffff822b07c8,1) at pool_get+0xb5 sys/kern/subr_pool.c:587 shmget_allocate_segment(ffff800014950978,ffff800014a043e8,0,ffff800014a04450) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff800014950978,ffff800014a043e8,ffff800014a04450) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800014a044c0) at syscall+0x511 Xsyscall(6,0,fffffffffffffff4,0,4,de7fcfcf010) at Xsyscall+0x128 end of kernel end trace frame: 0x357, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic pool_do_get: shmpl free list modified: page 0xfffffd8030261000; item addr 0xfffffd8030261070; offset 0x10=0xdeafbe00 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 pool_do_get(ffffffff822b07c8,1,ffff800014a0424c) at pool_do_get+0x464 sys/kern/subr_pool.c:750 pool_get(ffffffff822b07c8,1) at pool_get+0xb5 sys/kern/subr_pool.c:587 shmget_allocate_segment(ffff800014950978,ffff800014a043e8,0,ffff800014a04450) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff800014950978,ffff800014a043e8,ffff800014a04450) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800014a044c0) at syscall+0x511 Xsyscall(6,0,fffffffffffffff4,0,4,de7fcfcf010) at Xsyscall+0x128 end of kernel end trace frame: 0x357, count: -8 ddb> show registers rdi 0xffffffff81b574d7 db_enter+0x17 rsi 0x346e __ALIGN_SIZE+0x246e rbp 0xffff800014a040b0 rbx 0xffff800014a04160 rdx 0x346f __ALIGN_SIZE+0x246f rcx 0xffff800002591000 rax 0xffff800002591000 r8 0xffff800014a04070 r9 0x1 r10 0xffff800001990b40 r11 0xa1fb85fc6553766a r12 0x3000000008 r13 0xffff800014a040c0 r14 0x100 r15 0x1 rip 0xffffffff81b574d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a040a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=240983 stat=onproc flags process=0 proc=4000000 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff800014950270,0xffff800014950be0 process=0xffff8000ffffb3b8 user=0xffff8000149ff000, vmspace=0xfffffd803f00cd68 estcpu=24, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 67600 247280 40303 0 2 0 syz-executor.1 *67600 240983 40303 0 7 0x4000000 syz-executor.1 67600 120829 40303 0 3 0x4000080 fsleep syz-executor.1 67600 210413 40303 0 3 0x4000080 fsleep syz-executor.1 67600 507921 40303 0 3 0x4000080 fsleep syz-executor.1 86772 209852 1 0 3 0x80 nanosleep init 10753 487499 49136 0 2 0x482 syz-executor.0 40303 93128 49136 0 2 0x482 syz-executor.1 687 460309 0 0 3 0x14200 bored sosplice 49136 425981 46374 0 3 0x82 thrsleep syz-fuzzer 49136 75363 46374 0 3 0x4000082 thrsleep syz-fuzzer 49136 386823 46374 0 3 0x4000082 thrsleep syz-fuzzer 49136 107312 46374 0 3 0x4000082 kqread syz-fuzzer 49136 58663 46374 0 3 0x4000082 thrsleep syz-fuzzer 49136 165123 46374 0 3 0x4000082 thrsleep syz-fuzzer 49136 224804 46374 0 3 0x4000082 thrsleep syz-fuzzer 46374 266104 72559 0 3 0x10008a pause ksh 72559 264354 77643 0 3 0x92 select sshd 77643 489129 1 0 3 0x80 select sshd 25876 106084 8255 73 3 0x100090 kqread syslogd 8255 349536 1 0 3 0x100082 netio syslogd 43032 298966 1 77 3 0x100090 poll dhclient 94620 116042 1 0 3 0x80 poll dhclient 44788 348089 0 0 3 0x14200 pgzero zerothread 49942 185741 0 0 3 0x14200 aiodoned aiodoned 10038 131042 0 0 3 0x14200 syncer update 77748 446863 0 0 3 0x14200 cleaner cleaner 20068 81992 0 0 3 0x14200 reaper reaper 75099 84391 0 0 3 0x14200 pgdaemon pagedaemon 75939 305375 0 0 3 0x14200 bored crynlk 61134 251131 0 0 3 0x14200 bored crypto 47539 204695 0 0 3 0x40014200 acpi0 acpi0 2037 309533 0 0 3 0x14200 bored softnet 33193 4190 0 0 3 0x14200 bored systqmp 95427 477969 0 0 3 0x14200 bored systq 24029 25182 0 0 3 0x40014200 bored softclock 865 321496 0 0 3 0x40014200 idle0 51675 29262 0 0 3 0x14200 bored smr 1 420341 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9492 6336K 6852K 78643K 11901 0 0 pcb 23 9K 10K 78643K 316 0 0 rtable 100 3K 3K 78643K 486 0 0 ifaddr 52 12K 13K 78643K 144 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 34 0 0 iov 0 0K 24K 78643K 94 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 75K 78643K 1841 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 7 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 86 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 646 0 0 sigio 0 0K 0K 78643K 5 0 0 proc 35 22K 46K 78643K 462 0 0 subproc 64 65538K 67586K 78643K 308 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 68 0 0 in_multi 33 2K 2K 78643K 157 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 257 0 0 pfkey data 0 0K 0K 78643K 2 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 78 20K 24K 78643K 2377 0 0 UVM aobj 19 3K 3K 78643K 24 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 48 0 0 NDP 10 0K 0K 78643K 48 0 0 temp 153 2690K 2811K 78643K 5236 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 11 0 7 1 0 1 1 0 8 0 inpcbpl 280 352 0 345 1 0 1 1 0 8 0 plimitpl 152 34 0 27 1 0 1 1 0 8 0 rtentry 112 104 0 64 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 7 0 7 1 1 0 1 0 8 0 tcpcb 544 126 0 122 1 0 1 1 0 8 0 nd6 48 18 0 14 1 0 1 1 0 8 0 ppxss 1128 9 0 9 5 4 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 475 0 287 12 0 12 12 0 8 0 art_table 32 476 0 287 2 0 2 2 0 8 0 art_node 16 103 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 84 0 74 1 0 1 1 0 8 0 shmpl 112 22 0 5 1 0 1 1 0 8 0 shmpl: pool(0xffffffff822b07c8:shmpl): page inconsistency: page 0xfffffd8030261000; item ordinal 0; addr 0x352652c8b4bd794a dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2450 0 1016 47 0 47 47 0 8 0 ffsino 240 2450 0 1016 85 0 85 85 0 8 0 nchpl 144 3517 0 1867 62 0 62 62 0 8 0 uvmvnodes 72 2905 0 0 53 0 53 53 0 8 0 vnodes 200 2905 0 0 153 0 153 153 0 8 0 namei 1024 10324 0 10324 2 1 1 1 0 8 1 scsiplug 64 2 0 2 1 0 1 1 0 8 1 scxspl 192 10443 0 10443 11 8 3 6 0 8 3 sigapl 432 797 0 784 2 0 2 2 0 8 0 futexpl 56 10204 0 10201 1 0 1 1 0 8 0 knotepl 112 310 0 291 1 0 1 1 0 8 0 kqueuepl 104 133 0 131 1 0 1 1 0 8 0 pipepl 112 560 0 541 3 2 1 2 0 8 0 fdescpl 424 798 0 784 2 0 2 2 0 8 0 filepl 120 4848 0 4752 4 0 4 4 0 8 1 lockfpl 104 275 0 274 2 1 1 1 0 8 0 lockfspl 32 84 0 83 2 1 1 1 0 8 0 sessionpl 112 25 0 16 1 0 1 1 0 8 0 pgrppl 48 41 0 32 1 0 1 1 0 8 0 ucredpl 96 948 0 941 1 0 1 1 0 8 0 zombiepl 144 784 0 783 2 1 1 1 0 8 0 processpl 840 813 0 783 4 0 4 4 0 8 0 procpl 600 1631 0 1591 4 0 4 4 0 8 0 sosppl 128 11 0 11 2 2 0 1 0 8 0 sockpl 384 590 0 573 3 0 3 3 0 8 1 mcl64k 65536 23 0 23 3 2 1 1 0 8 1 mcl16k 16384 5 0 5 3 3 0 1 0 8 0 mcl12k 12288 15 0 15 3 2 1 1 0 8 1 mcl9k 9216 19 0 19 3 2 1 1 0 8 1 mcl8k 8192 5 0 5 3 2 1 1 0 8 1 mcl4k 4096 27 0 27 3 2 1 1 0 8 1 mcl2k2 2112 6 0 6 4 3 1 1 0 8 1 mcl2k 2048 55654 0 55611 18 12 6 13 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 94849 0 94782 14 7 7 9 0 8 1 bufpl 256 7300 0 2706 288 0 288 288 0 8 0 anonpl 16 81139 0 70331 50 3 47 47 0 62 3 amapchunkpl 152 3645 0 3540 9 2 7 7 0 158 2 amappl16 192 3398 0 2798 35 4 31 31 0 8 0 amappl15 184 203 0 203 2 1 1 1 0 8 1 amappl14 176 226 0 223 2 1 1 1 0 8 0 amappl13 168 8 0 7 1 0 1 1 0 8 0 amappl12 160 20 0 18 1 0 1 1 0 8 0 amappl11 152 150 0 135 1 0 1 1 0 8 0 amappl10 144 138 0 137 4 3 1 1 0 8 0 amappl9 136 570 0 567 1 0 1 1 0 8 0 amappl8 128 145 0 132 1 0 1 1 0 8 0 amappl7 120 123 0 116 1 0 1 1 0 8 0 amappl6 112 162 0 155 1 0 1 1 0 8 0 amappl5 104 145 0 134 1 0 1 1 0 8 0 amappl4 96 998 0 971 2 1 1 2 0 8 0 amappl3 88 162 0 157 1 0 1 1 0 8 0 amappl2 80 6065 0 6015 2 0 2 2 0 8 0 amappl1 72 23352 0 22974 26 17 9 19 0 8 0 amappl 72 1904 0 1867 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 23 0 5 1 0 1 1 0 8 0 uaddrrnd 24 798 0 784 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 798 0 784 1 0 1 1 0 8 0 vmmpekpl 168 9455 0 9434 2 0 2 2 0 8 0 vmmpepl 168 89537 0 88058 102 26 76 86 0 357 7 vmsppl 264 797 0 784 2 1 1 2 0 8 0 pdppl 4096 1603 0 1568 6 1 5 6 0 8 0 pvpl 32 258346 0 244316 138 18 120 120 0 265 6 pmappl 200 797 0 784 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 444 0 32 12 0 12 12 0 8 0