panic: pool_do_get: shmpl free list modified: page 0xfffffd802fffe000; item addr 0xfffffd802fffe628; offset 0x10=0xdead4000 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *264357 8824 60929 0x10 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:212 pool_do_get(ffffffff82292cb8,1,ffff800015a2017c) at pool_do_get+0x464 sys/kern/subr_pool.c:744 pool_get(ffffffff82292cb8,1) at pool_get+0xb5 sys/kern/subr_pool.c:581 shmget_allocate_segment(ffff8000149014e8,ffff800015a20308,0,ffff800015a20370) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000149014e8,ffff800015a20308,ffff800015a20370) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800015a203d0) at syscall+0x508 Xsyscall(6,0,fffffffffffffff4,0,4,d1acf656010) at Xsyscall+0x128 end of kernel end trace frame: 0xd1cd1d4ec20, 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 0xfffffd802fffe000; item addr 0xfffffd802fffe628; offset 0x10=0xdead4000 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:212 pool_do_get(ffffffff82292cb8,1,ffff800015a2017c) at pool_do_get+0x464 sys/kern/subr_pool.c:744 pool_get(ffffffff82292cb8,1) at pool_get+0xb5 sys/kern/subr_pool.c:581 shmget_allocate_segment(ffff8000149014e8,ffff800015a20308,0,ffff800015a20370) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000149014e8,ffff800015a20308,ffff800015a20370) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800015a203d0) at syscall+0x508 Xsyscall(6,0,fffffffffffffff4,0,4,d1acf656010) at Xsyscall+0x128 end of kernel end trace frame: 0xd1cd1d4ec20, count: -8 ddb> show registers rdi 0xffffffff81e7b9a7 db_enter+0x17 rsi 0x387c __ALIGN_SIZE+0x287c rbp 0xffff800015a1ffe0 rbx 0xffff800015a20090 rdx 0x387d __ALIGN_SIZE+0x287d rcx 0xffff800016bff000 rax 0xffff800016bff000 r8 0xffff800015a1ffa0 r9 0x1 r10 0xffff800000995940 r11 0xd0652b6a6edc799a r12 0x3000000008 r13 0xffff800015a1fff0 r14 0x100 r15 0x1 rip 0xffffffff81e7b9a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a1ffd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=264357 stat=onproc flags process=10 proc=4000000 pri=75, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800014901008,0xffff800014970d60 process=0xffff8000ffffb3c0 user=0xffff800015a1b000, vmspace=0xfffffd803f013550 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 8824 508585 65950 60929 2 0x10 syz-executor.1 * 8824 264357 65950 60929 7 0x4000010 syz-executor.1 8824 31025 65950 60929 3 0x4000090 fsleep syz-executor.1 8824 425125 65950 60929 3 0x4000090 fsleep syz-executor.1 8824 135885 65950 60929 3 0x4000090 fsleep syz-executor.1 8824 522198 65950 60929 3 0x4000090 fsleep syz-executor.1 48900 61416 0 0 3 0x14200 bored sosplice 65950 414469 68861 0 3 0x82 nanosleep syz-executor.1 34716 9420 68861 0 3 0x82 piperd syz-executor.0 68861 21782 72986 0 3 0x82 thrsleep syz-fuzzer 68861 399254 72986 0 3 0x4000082 thrsleep syz-fuzzer 68861 444995 72986 0 3 0x4000082 thrsleep syz-fuzzer 68861 196589 72986 0 3 0x4000082 kqread syz-fuzzer 68861 170219 72986 0 3 0x4000082 thrsleep syz-fuzzer 68861 57900 72986 0 3 0x4000082 thrsleep syz-fuzzer 68861 76260 72986 0 3 0x4000082 thrsleep syz-fuzzer 72986 27608 99703 0 3 0x10008a pause ksh 99703 384760 50330 0 3 0x92 select sshd 96984 171755 1 0 3 0x100083 ttyin getty 50330 149876 1 0 3 0x80 select sshd 16096 354773 68671 73 3 0x100090 kqread syslogd 68671 419829 1 0 3 0x100082 netio syslogd 18912 197073 1 77 3 0x100090 poll dhclient 68445 76689 1 0 3 0x80 poll dhclient 52298 188125 0 0 2 0x14200 zerothread 10417 355921 0 0 3 0x14200 aiodoned aiodoned 29877 329613 0 0 3 0x14200 syncer update 24434 275174 0 0 3 0x14200 cleaner cleaner 94170 168093 0 0 3 0x14200 reaper reaper 34753 358342 0 0 3 0x14200 pgdaemon pagedaemon 30580 351290 0 0 3 0x14200 bored crynlk 27203 116655 0 0 3 0x14200 bored crypto 219 305824 0 0 3 0x40014200 acpi0 acpi0 88844 177782 0 0 3 0x14200 bored softnet 17831 450878 0 0 3 0x14200 bored systqmp 60038 280283 0 0 3 0x14200 bored systq 30753 397119 0 0 3 0x40014200 bored softclock 76252 448193 0 0 3 0x40014200 idle0 95514 237581 0 0 3 0x14200 bored smr 1 62755 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 9472 6337K 6981K 78643K 12431 0 0 pcb 23 9K 10K 78643K 404 0 0 rtable 112 4K 4K 78643K 356 0 0 ifaddr 46 11K 12K 78643K 120 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 39 0 0 iov 0 0K 16K 78643K 70 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 77K 78643K 1941 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 11 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 72 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 783 0 0 sigio 1 0K 0K 78643K 9 0 0 proc 41 30K 54K 78643K 352 0 0 subproc 32 2K 2K 78643K 34 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 57 0 0 in_multi 33 2K 2K 78643K 51 0 0 ether_multi 1 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 238 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 94 21K 29K 78643K 2656 0 0 UVM aobj 45 2K 2K 78643K 51 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 19 0 0 NDP 8 0K 0K 78643K 29 0 0 temp 136 2709K 2775K 78643K 5428 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 307 0 298 1 0 1 1 0 8 0 rtentry 112 49 0 5 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 10 0 10 1 1 0 1 0 8 0 tcpcb 544 110 0 104 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 17 0 17 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 0 1 0 1 1 0 8 0 semapl 112 70 0 60 1 0 1 1 0 8 0 shmpl 112 49 0 6 2 0 2 2 0 8 0 shmpl: pool(0xffffffff82292cb8:shmpl): page inconsistency: page 0xfffffd802fffe000; item ordinal 0; addr 0x6e7672541d0a1a08 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2715 0 1299 46 0 46 46 0 8 0 ffsino 240 2715 0 1299 84 0 84 84 0 8 0 nchpl 144 4008 0 2375 61 0 61 61 0 8 0 uvmvnodes 72 3188 0 0 58 0 58 58 0 8 0 vnodes 200 3188 0 0 168 0 168 168 0 8 0 namei 1024 11699 0 11699 2 1 1 1 0 8 1 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 10609 0 10609 9 8 1 6 0 8 1 plimitpl 152 35 0 28 1 0 1 1 0 8 0 sigapl 432 954 0 941 2 0 2 2 0 8 0 futexpl 56 12353 0 12349 1 0 1 1 0 8 0 knotepl 112 236 0 217 1 0 1 1 0 8 0 kqueuepl 104 210 0 208 1 0 1 1 0 8 0 pipepl 112 604 0 585 3 1 2 2 0 8 1 fdescpl 424 955 0 941 2 0 2 2 0 8 0 filepl 120 5852 0 5753 4 0 4 4 0 8 0 lockfpl 104 273 0 272 2 1 1 1 0 8 0 lockfspl 48 84 0 83 2 1 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 1409 0 1401 1 0 1 1 0 8 0 zombiepl 144 941 0 941 2 1 1 1 0 8 1 processpl 840 970 0 941 4 0 4 4 0 8 0 procpl 624 1957 0 1917 4 0 4 4 0 8 0 sosppl 128 8 0 8 2 2 0 1 0 8 0 sockpl 384 658 0 639 4 1 3 3 0 8 1 mcl64k 65536 15 0 15 4 3 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 12 0 12 3 2 1 1 0 8 1 mcl9k 9216 10 0 10 3 2 1 1 0 8 1 mcl8k 8192 6 0 6 2 2 0 1 0 8 0 mcl4k 4096 36 0 36 4 3 1 1 0 8 1 mcl2k2 2112 4 0 4 3 3 0 1 0 8 0 mcl2k 2048 51287 0 51242 15 8 7 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 83978 0 83916 11 4 7 9 0 8 0 bufpl 256 6949 0 2471 280 0 280 280 0 8 0 anonpl 16 83396 0 72874 65 18 47 56 0 62 4 amapchunkpl 152 3916 0 3779 12 5 7 9 0 158 1 amappl16 192 4131 0 3577 40 11 29 38 0 8 1 amappl14 176 415 0 412 2 1 1 1 0 8 0 amappl12 160 19 0 17 1 0 1 1 0 8 0 amappl11 152 48 0 34 1 0 1 1 0 8 0 amappl10 144 433 0 430 1 0 1 1 0 8 0 amappl9 136 515 0 512 1 0 1 1 0 8 0 amappl8 128 133 0 119 1 0 1 1 0 8 0 amappl7 120 401 0 397 1 0 1 1 0 8 0 amappl6 112 52 0 46 1 0 1 1 0 8 0 amappl5 104 205 0 194 1 0 1 1 0 8 0 amappl4 96 1086 0 1063 1 0 1 1 0 8 0 amappl3 88 571 0 560 1 0 1 1 0 8 0 amappl2 80 6875 0 6810 4 2 2 3 0 8 0 amappl1 72 25761 0 25345 24 15 9 19 0 8 0 amappl 80 2192 0 2147 2 1 1 2 0 84 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 50 0 6 1 0 1 1 0 8 0 uaddrrnd 24 955 0 941 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 955 0 941 1 0 1 1 0 8 0 vmmpekpl 168 10347 0 10319 2 0 2 2 0 8 0 vmmpepl 168 103342 0 101802 96 25 71 79 0 357 0 vmsppl 272 954 0 941 2 1 1 2 0 8 0 pdppl 4096 1916 0 1882 6 1 5 6 0 8 0 pvpl 32 262416 0 248480 158 34 124 140 0 265 11 pmappl 200 954 0 941 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 434 0 26 12 0 12 12 0 8 0