login: panic: pool_do_get: shmpl free list modified: page 0xfffffd8066317000; item addr 0xfffffd8066317e00; offset 0x40=0x684074f1 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 76908 64108 0 0 0 1 syz-executor * 72079 64108 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833d7366) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839ee028,1,ffff80003c413ed8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff839ee028,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe7210,ffff80003c414130,73,ffff80003c414080) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe7210,ffff80003c414130,ffff80003c414080) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c414130) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c414130) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95c2725fce0, 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 0xfffffd8066317000; item addr 0xfffffd8066317e00; offset 0x40=0x684074f1 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833d7366) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839ee028,1,ffff80003c413ed8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff839ee028,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe7210,ffff80003c414130,73,ffff80003c414080) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe7210,ffff80003c414130,ffff80003c414080) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c414130) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c414130) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95c2725fce0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c413d10 rbx 0xffffffff8386edd7 cpu_info_full_primary+0x2dd7 rdx 0xffff8000014843c0 rcx 0xffff8000fffe7210 rax 0xffffffff8386dff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x52241c8750158c3a r11 0x8de3a3edaefa8d19 r12 0xffffffff8386ebd8 cpu_info_full_primary+0x2bd8 r13 0 r14 0 r15 0x1 rip 0xffffffff8162de55 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c413d00 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=72079 pid=64108 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffe6f80,0xffffffff839ddc48 process=0xffff8000fffe2208 user=0xffff80003c40f000, vmspace=0xfffffd806bfe8020 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 64108 76908 44036 0 7 0 syz-executor *64108 72079 44036 0 7 0x4000000 syz-executor 2240 122119 3441 0 2 0 syz-executor 2240 445879 3441 0 3 0x4000080 fsleep syz-executor 22526 125407 51084 60928 2 0x10 syz-executor 22526 449302 51084 60928 3 0x4000090 ttyin syz-executor 15318 78784 64799 0 3 0x80 nanoslp syz-executor 15318 25431 64799 0 3 0x4000080 sbwait syz-executor 15318 395829 64799 0 3 0x4000080 fsleep syz-executor 22711 9562 48608 0 3 0x80 nanoslp syz-executor 22711 185731 48608 0 3 0x4000080 kqsel syz-executor 22711 61388 48608 0 3 0x4000080 fsleep syz-executor 73876 81646 11943 0 3 0x80 nanoslp syz-executor 73876 438417 11943 0 3 0x4000080 sbwait syz-executor 73876 85475 11943 0 3 0x4000080 fsleep syz-executor 3078 339624 1 0 3 0x100083 ttyopn getty 49716 108638 0 0 3 0x14200 acct acct 59042 5217 49953 0 3 0x100082 sbwait arp 49953 479613 88397 0 3 0x10008a sigsusp sh 48608 96931 85489 0 3 0x82 nanoslp syz-executor 51084 503103 85489 0 3 0x82 nanoslp syz-executor 64799 268679 85489 0 3 0x82 nanoslp syz-executor 88397 389223 85489 0 3 0x82 wait syz-executor 44036 60142 85489 0 3 0x82 nanoslp syz-executor 3441 470482 85489 0 3 0x82 nanoslp syz-executor 11943 165160 85489 0 3 0x82 nanoslp syz-executor 80787 235856 85489 0 3 0x82 wait syz-executor 85489 121078 3376 0 3 0x82 kqread syz-executor 3376 355937 45350 0 3 0x10008a sigsusp ksh 45350 422677 98589 0 3 0x98 kqread sshd-session 98589 102037 3499 0 3 0x92 kqread sshd-session 3499 487868 1 0 3 0x88 kqread sshd 18316 377269 59494 74 3 0x1100092 bpf pflogd 59494 367589 1 0 3 0x80 sbwait pflogd 52425 106853 70915 73 3 0x1100090 kqread syslogd 70915 333745 1 0 3 0x100082 sbwait syslogd 89796 491745 1 0 3 0x100080 kqread resolvd 95312 371684 78260 77 3 0x100092 kqread dhcpleased 26561 323555 78260 77 3 0x100092 kqread dhcpleased 78260 487402 1 0 3 0x80 kqread dhcpleased 81792 250466 0 0 3 0x14200 bored smr 1943 259128 0 0 2 0x14200 zerothread 71200 232440 0 0 3 0x14200 aiodoned aiodoned 93077 46707 0 0 3 0x14200 syncer update 42127 52032 0 0 3 0x14200 cleaner cleaner 25687 3312 0 0 3 0x14200 reaper reaper 36576 97546 0 0 3 0x14200 pgdaemon pagedaemon 15679 312358 0 0 3 0x14200 bored viomb 53014 179008 0 0 3 0x40014200 acpi0 acpi0 24361 258453 0 0 3 0x40014200 idle1 37215 326151 0 0 3 0x14200 bored softnet3 4084 49042 0 0 3 0x14200 bored softnet2 36724 461540 0 0 3 0x14200 bored softnet1 93911 245710 0 0 3 0x14200 bored softnet0 46993 380609 0 0 3 0x14200 bored systqmp 57644 167951 0 0 3 0x14200 bored systq 55209 27330 0 0 3 0x14200 tmoslp softclockmp 95567 292703 0 0 3 0x40014200 tmoslp softclock 93491 157829 0 0 3 0x40014200 idle0 1 367422 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 (0xffffffff839ee040) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:296 #2 mtx_enter+0x62 sys/kern/kern_lock.c:253 #3 pool_get+0x10b sys/kern/subr_pool.c:578 #4 shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 #5 sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 #7 Xsyscall+0x128 Process 64108 (syz-executor) thread 0xffff8000fffe7210 (72079) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a0d258) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #1 syscall+0xae6 sys/arch/amd64/amd64/trap.c:579 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff839ee040) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 mtx_enter_try+0x1ad sys/kern/kern_lock.c:296 #2 mtx_enter+0x62 sys/kern/kern_lock.c:253 #3 pool_get+0x10b sys/kern/subr_pool.c:578 #4 shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 #5 sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10201 11043K 11302K 166960K 11397 0 pcb 17 12K 12K 166960K 40 0 rtable 224 7K 7K 166960K 348 0 pf 34 17K 18K 166960K 47 0 ifaddr 41 7K 7K 166960K 43 0 ifgroup 55 2K 2K 166960K 55 0 sysctl 1 1K 9K 166960K 6 0 counters 68 36K 36K 166960K 68 0 ioctlops 0 0K 4K 166960K 1496 0 iov 0 0K 12K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1344 85K 85K 166960K 1453 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 97K 166960K 230 0 sigio 0 0K 0K 166960K 1 0 proc 72 91K 140K 166960K 545 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 2 0K 0K 166960K 17 0 in_multi 89 6K 6K 166960K 94 0 ether_multi 1 0K 0K 166960K 1 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 373 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 257 163K 170K 166960K 3913 0 UVM aobj 3 2K 2K 166960K 4 0 pinsyscall 45 90K 108K 166960K 1318 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 12 0K 1K 166960K 26 0 temp 76 8691K 8755K 166960K 10406 0 kqueue 14 22K 26K 166960K 48 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 44 0 38 1 0 1 1 0 8 0 rtentry 176 104 0 1 5 0 5 5 0 8 0 unpcb 144 86 0 67 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 808 38 0 33 1 0 1 1 0 8 0 arp 128 17 0 0 1 0 1 1 0 8 0 inpcb 328 281 0 269 7 0 7 7 0 8 6 nd6 144 21 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pffrag 232 2 0 1 1 0 1 1 0 482 0 pffrnode 88 2 0 1 1 0 1 1 0 8 0 pffrent 40 3 0 2 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pfstitem 24 22 0 0 1 0 1 1 0 8 0 pfstkey 128 22 0 0 1 0 1 1 0 8 0 pfstate 384 22 0 0 3 0 3 3 0 8 0 pfrule 1344 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 412 0 0 26 0 26 26 0 8 0 art_table 32 414 0 0 4 0 4 4 0 8 0 art_node 16 103 0 9 1 0 1 1 0 8 0 semapl 112 1 0 0 1 0 1 1 0 8 0 shmpl 112 1 0 1 1 0 1 1 0 8 1 pool(0xffffffff839ee028:shmpl): page inconsistency: page 0xfffffd8066317000; 34 on list, 0 missing, 35 items per page dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1746 0 232 95 0 95 95 0 8 0 ffsino 288 1746 0 232 109 0 109 109 0 8 0 nchpl 144 2082 0 388 63 0 63 63 0 8 0 uvmvnodes 80 1888 0 0 39 0 39 39 0 8 0 vnodes 216 1888 0 0 105 0 105 105 0 8 0 namei 1024 6717 0 6717 2 0 2 2 0 8 2 percpumem 16 49 0 0 1 0 1 1 0 8 0 kstatmem 264 26 0 0 2 0 2 2 0 8 0 scxspl 216 6743 0 6743 2 1 1 2 1 8 1 plimitpl 152 36 0 18 1 0 1 1 0 8 0 sigapl 424 534 0 482 7 0 7 7 0 8 1 knotepl 120 524 0 0 16 0 16 16 0 8 0 kqueuepl 224 62 0 51 1 0 1 1 0 8 0 pipepl 336 114 0 87 3 0 3 3 0 8 0 fdescpl 520 515 0 482 3 0 3 3 0 8 0 filepl 160 2316 0 2089 13 0 13 13 0 8 3 lockfpl 104 177 0 175 2 0 2 2 0 8 1 lockfspl 48 24 0 22 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 35 0 18 1 0 1 1 0 8 0 ucredpl 104 242 0 227 1 0 1 1 0 8 0 zombiepl 144 483 0 482 1 0 1 1 0 8 0 processpl 1240 534 0 482 5 0 5 5 0 8 0 procpl 656 729 0 668 6 0 6 6 0 8 0 sockpl 728 411 0 371 10 0 10 10 0 8 6 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 15 0 15 15 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 182 0 0 12 0 12 12 0 8 0 bufpl 280 2549 0 124 174 0 174 174 0 8 0 anonpl 32 7648 0 0 62 0 62 62 0 246 0 amapchunkpl 152 11328 0 10683 25 0 25 25 0 158 0 amappl16 200 2322 0 2298 15 4 11 14 0 8 8 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 113 0 100 1 0 1 1 0 8 0 amappl13 176 31 0 31 1 1 0 1 0 8 0 amappl12 168 1159 0 1125 4 1 3 3 0 8 1 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 11 0 11 1 1 0 1 0 8 0 amappl9 144 245 0 245 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 124 0 111 1 0 1 1 0 8 0 amappl6 120 191 0 187 1 0 1 1 0 8 0 amappl5 112 145 0 135 1 0 1 1 0 8 0 amappl4 104 314 0 294 1 0 1 1 0 8 0 amappl3 96 1902 0 1785 5 1 4 4 0 8 0 amappl2 88 632 0 568 2 0 2 2 0 8 0 amappl1 80 8700 0 8068 15 0 15 15 0 8 0 amappl 88 3215 0 3035 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 7 0 7 2 1 1 1 0 8 1 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 7 0 7 2 1 1 1 0 8 1 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 3 0 1 1 0 1 1 0 8 0 uaddrrnd 24 515 0 482 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 515 0 482 1 0 1 1 0 8 0 vmmpekpl 168 6128 0 6101 2 0 2 2 0 8 0 vmmpepl 168 39792 0 37734 101 0 101 101 0 357 6 vmsppl 480 514 0 482 5 0 5 5 0 8 0 rwobjpl 72 15841 0 12977 55 0 55 55 0 8 1 pdppl 4096 1037 0 964 103 28 75 87 0 8 2 pvpl 32 14619 0 0 119 1 118 118 0 265 0 pmappl 256 514 0 482 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 384 0 30 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(ffffffff833d7366) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff839ee028,1,ffff80003c413ed8) at pool_do_get+0x5ea sys/kern/subr_pool.c:-1 pool_get(ffffffff839ee028,1) at pool_get+0x149 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff8000fffe7210,ffff80003c414130,73,ffff80003c414080) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff8000fffe7210,ffff80003c414130,ffff80003c414080) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c414130) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c414130) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x95c2725fce0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff8000299ddff0) 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: 0x7a2175af2200, count: 12 ddb{1}> trace x86_ipi_db(ffff8000299ddff0) 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: 0x7a2175af2200, count: -3