panic: pool_do_get: shmpl free list modified: page 0xfffff1006b0b7000; item addr 0xfffff1006b0b7ee8; offset 0x40=0x6a319d28 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *162450 45804 -1 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83478138) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a7f458,1,ffff80003c90f688) at pool_do_get+0x5bc pool_get(ffffffff83a7f458,1) at pool_get+0x11a sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c8e87e8,ffff80003c90f8d0,175,ffff80003c90f820) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c8e87e8,ffff80003c90f8d0,ffff80003c90f820) at sys_shmget+0x195 sys/kern/sysv_shm.c:501 syscall(ffff80003c90f8d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90f8d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe0112aaa630, 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 *cpu0: pool_do_get: shmpl free list modified: page 0xfffff1006b0b7000; item addr 0xfffff1006b0b7ee8; offset 0x40=0x6a319d28 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83478138) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a7f458,1,ffff80003c90f688) at pool_do_get+0x5bc pool_get(ffffffff83a7f458,1) at pool_get+0x11a sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c8e87e8,ffff80003c90f8d0,175,ffff80003c90f820) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c8e87e8,ffff80003c90f8d0,ffff80003c90f820) at sys_shmget+0x195 sys/kern/sysv_shm.c:501 syscall(ffff80003c90f8d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90f8d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe0112aaa630, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c90f4f0 rbx 0xfffff1006b0b7ee8 rdx 0xffff8000015e2740 rcx 0 rax 0xffff80003c8e87e8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe4c79b47bf11ebbf r11 0xed2aa392847db697 r12 0 r13 0xffffffff83a7f458 shm_pool r14 0 r15 0x1 rip 0xffffffff81677df5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c90f4e0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=162450 pid=45804 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=64, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8e8550,0xffff80003c8e94f0 process=0xffff8000ffffa898 user=0xffff80003c90a000, vmspace=0xfffff1006cc012f8 estcpu=14, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 40640 289063 82775 0 2 0 syz-executor 40640 126437 82775 0 2 0x4000000 syz-executor 29055 161733 23463 0 2 0 syz-executor 29055 505302 23463 0 3 0x4000080 fsleep syz-executor 32405 519769 97149 0 2 0 syz-executor 32405 465261 97149 0 3 0x4000080 fsleep syz-executor 5122 321338 57771 0 3 0x90 nanoslp syz-executor 5122 199596 57771 0 3 0x4000090 fsleep syz-executor 5122 238295 57771 0 3 0x4000090 kqsel syz-executor 5122 239953 57771 0 3 0x4000090 fsleep syz-executor 5122 500904 57771 0 3 0x4000090 fsleep syz-executor 69116 464087 74345 0 2 0 syz-executor 69116 519623 74345 0 3 0x4000080 fsleep syz-executor 45804 331916 30336 -1 2 0x10 syz-executor *45804 162450 30336 -1 7 0x4000010 syz-executor 57771 473391 1962 0 3 0x82 nanoslp syz-executor 54591 385489 1962 0 2 0x2 syz-executor 7266 218338 1962 0 2 0x2 syz-executor 82775 460264 1962 0 2 0x3 syz-executor 30336 171359 1962 0 2 0x3 syz-executor 97149 141031 1962 0 2 0x3 syz-executor 23463 141886 1962 0 2 0x3 syz-executor 74345 68709 1962 0 2 0x3 syz-executor 1962 58203 47058 0 3 0x82 kqread syz-executor 47058 417389 28238 0 3 0x10008a sigsusp ksh 28238 473356 47854 0 3 0x98 kqread sshd-session 47854 362515 37962 0 3 0x92 kqread sshd-session 63935 204460 1 0 3 0x100083 ttyin getty 37962 14564 1 0 3 0x88 kqread sshd 49883 482312 79419 73 3 0x1100090 kqread syslogd 79419 153225 1 0 3 0x100082 sbwait syslogd 35300 434743 1 0 3 0x100080 kqread resolvd 62933 390921 30916 77 3 0x100092 kqread dhcpleased 49361 329973 30916 77 3 0x100092 kqread dhcpleased 30916 297428 1 0 3 0x80 kqread dhcpleased 6681 107065 0 0 3 0x14200 bored smr 80423 339526 0 0 2 0x14200 zerothread 27328 333615 0 0 3 0x14200 aiodoned aiodoned 89749 498617 0 0 3 0x14200 syncer update 77584 23188 0 0 3 0x14200 cleaner cleaner 43970 62710 0 0 3 0x14200 reaper reaper 43531 496445 0 0 3 0x14200 pgdaemon pagedaemon 30424 325219 0 0 3 0x14200 bored viomb 74390 299775 0 0 3 0x40014200 acpi0 acpi0 22690 165516 0 0 2 0x14200 softnet0 49877 497905 0 0 3 0x14200 bored systqmp 62453 27366 0 0 3 0x14200 bored systq 88745 413917 0 0 3 0x40014200 tmoslp softclock 9832 316882 0 0 3 0x40014200 idle0 1 231949 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 devbuf 11038 12119K 12378K 166960K 12296 0 pcb 17 13K 14K 166960K 74 0 rtable 205 5K 6K 166960K 355 0 pf 31 13K 17K 166960K 44 0 ifaddr 37 6K 7K 166960K 46 0 ifgroup 46 2K 2K 166960K 57 0 sysctl 3 1K 9K 166960K 7 0 counters 32 17K 17K 166960K 35 0 ioctlops 0 0K 4K 166960K 42 0 iov 0 0K 12K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1357 85K 85K 166960K 1527 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 7 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 85K 166960K 233 0 sigio 0 0K 0K 166960K 5 0 proc 60 59K 83K 166960K 513 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 14 0 in_multi 84 6K 7K 166960K 102 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 369 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 213 150K 158K 166960K 3844 0 UVM aobj 10 5K 6K 166960K 12 0 pinsyscall 37 74K 90K 166960K 1333 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 10 0K 2K 166960K 29 0 temp 40 9103K 9116K 166960K 10228 0 kqueue 14 22K 28K 166960K 38 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 102 0 99 3 0 3 3 0 8 2 rtentry 136 112 0 18 4 0 4 4 0 8 0 unpcb 144 140 0 125 3 0 3 3 0 8 2 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 33 0 29 1 0 1 1 0 8 0 arp 96 18 0 2 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 194 0 185 4 0 4 4 0 8 2 nd6 112 24 0 5 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 1 0 1 0 8 0 pfstscr 40 5 0 1 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 5 0 1 1 0 1 1 0 8 0 pfstate 384 3 0 1 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 483 0 91 30 0 30 30 0 8 3 art_table 40 484 0 91 5 0 5 5 0 8 0 art_node 32 112 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 2 1 1 1 0 8 0 semapl 72 7 0 2 1 0 1 1 0 8 0 shmpl 112 9 0 2 2 1 1 1 0 8 0 pool(0xffffffff83a7f458:shmpl): page inconsistency: page 0xfffff1006b0b7000; 27 on list, 7 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1769 0 315 92 0 92 92 0 8 0 ffsino 256 1769 0 315 92 0 92 92 0 8 0 nchpl 144 2079 0 390 64 0 64 64 0 8 0 vnodes 216 1959 0 0 109 0 109 109 0 8 0 namei 1024 6558 0 6557 3 2 1 2 0 8 0 kstatmem 264 27 0 6 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 6810 0 6810 3 2 1 3 1 8 1 plimitpl 152 76 0 59 1 0 1 1 0 8 0 sigapl 424 528 0 487 6 1 5 6 0 8 0 knotepl 120 6717 0 6440 22 6 16 16 0 8 6 kqueuepl 184 140 0 129 5 0 5 5 0 8 4 pipepl 304 124 0 96 3 0 3 3 0 8 0 fdescpl 448 515 0 487 4 0 4 4 0 8 0 filepl 120 2411 0 2199 14 0 14 14 0 8 4 lockfpl 104 71 0 67 1 0 1 1 0 8 0 lockfspl 48 33 0 29 1 0 1 1 0 8 0 sessionpl 144 29 0 21 1 0 1 1 0 8 0 pgrppl 48 37 0 21 1 0 1 1 0 8 0 ucredpl 104 307 0 294 1 0 1 1 0 8 0 zombiepl 144 517 0 517 1 0 1 1 0 8 1 processpl 1152 528 0 487 4 0 4 4 0 8 0 procpl 664 695 0 645 6 0 6 6 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 552 437 0 410 10 0 10 10 0 8 7 mcl64k 65536 15 0 14 2 1 1 1 0 8 0 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl8k 8192 12 0 11 2 1 1 1 0 8 0 mcl4k 4096 2641 0 2583 16 8 8 15 0 8 0 mcl2k 2048 214 0 212 1 0 1 1 0 8 0 mtagpl 96 5 0 5 1 1 0 1 0 8 0 mbufpl 256 5418 0 5276 17 0 17 17 0 8 4 bufpl 272 2459 0 103 158 0 158 158 0 8 0 anonpl 24 79395 0 76342 21 0 21 21 0 186 0 amapchunkpl 152 10589 0 10136 22 1 21 21 0 158 1 amappl16 200 924 0 899 4 1 3 4 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 407 0 406 1 0 1 1 0 8 0 amappl13 176 114 0 104 1 0 1 1 0 8 0 amappl12 168 750 0 723 2 0 2 2 0 8 0 amappl11 160 9 0 9 1 1 0 1 0 8 0 amappl10 152 59 0 49 1 0 1 1 0 8 0 amappl9 144 273 0 273 1 1 0 1 0 8 0 amappl8 136 92 0 91 1 0 1 1 0 8 0 amappl7 128 140 0 129 1 0 1 1 0 8 0 amappl6 120 150 0 148 1 0 1 1 0 8 0 amappl5 112 90 0 83 1 0 1 1 0 8 0 amappl4 104 262 0 245 1 0 1 1 0 8 0 amappl3 96 2031 0 1926 3 0 3 3 0 8 0 amappl2 88 524 0 468 2 0 2 2 0 8 0 amappl1 80 10447 0 9891 14 2 12 14 0 8 0 amappl 88 3139 0 2987 4 0 4 4 0 92 0 uvmvnodes 80 101 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 254 0 254 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 11 0 2 1 0 1 1 0 8 0 uaddrrnd 24 515 0 487 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 515 0 487 1 0 1 1 0 8 0 vmmpekpl 168 6134 0 6099 2 0 2 2 0 8 0 vmmpepl 168 40958 0 39225 82 1 81 81 0 357 0 vmsppl 368 514 0 487 4 1 3 4 0 8 0 rwobjpl 40 14210 0 13254 11 0 11 11 0 8 0 pdppl 4096 1036 0 974 90 24 66 76 0 8 4 pvpl 32 224372 0 216016 79 3 76 79 0 265 0 pmappl 216 514 0 487 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 521 0 41 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83478138) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a7f458,1,ffff80003c90f688) at pool_do_get+0x5bc pool_get(ffffffff83a7f458,1) at pool_get+0x11a sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c8e87e8,ffff80003c90f8d0,175,ffff80003c90f820) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c8e87e8,ffff80003c90f8d0,ffff80003c90f820) at sys_shmget+0x195 sys/kern/sysv_shm.c:501 syscall(ffff80003c90f8d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90f8d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe0112aaa630, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83478138) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a7f458,1,ffff80003c90f688) at pool_do_get+0x5bc pool_get(ffffffff83a7f458,1) at pool_get+0x11a sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c8e87e8,ffff80003c90f8d0,175,ffff80003c90f820) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c8e87e8,ffff80003c90f8d0,ffff80003c90f820) at sys_shmget+0x195 sys/kern/sysv_shm.c:501 syscall(ffff80003c90f8d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90f8d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe0112aaa630, count: -8