panic: pool_do_get: shmpl free list modified: page 0xffffef806d074000; item addr 0xffffef806d074af0; offset 0x40=0x6a6b6a49 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 38084 56857 32767 0x10 0 0 syz-executor *446289 56857 32767 0x10 0x4000000 1K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834b5219) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a54fc8,9,ffff80002a339e78) at pool_do_get+0x5df pool_get(ffffffff83a54fc8,9) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff800045feea78,ffff80002a33a0d0,0,ffff80002a33a020) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff800045feea78,ffff80002a33a0d0,ffff80002a33a020) at sys_shmget+0x195 sys/kern/sysv_shm.c:503 syscall(ffff80002a33a0d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a33a0d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9f384d27a00, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: pool_do_get: shmpl free list modified: page 0xffffef806d074000; item addr 0xffffef806d074af0; offset 0x40=0x6a6b6a49 ddb{1}> show kasan No such command ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834b5219) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a54fc8,9,ffff80002a339e78) at pool_do_get+0x5df pool_get(ffffffff83a54fc8,9) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff800045feea78,ffff80002a33a0d0,0,ffff80002a33a020) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff800045feea78,ffff80002a33a0d0,ffff80002a33a020) at sys_shmget+0x195 sys/kern/sysv_shm.c:503 syscall(ffff80002a33a0d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a33a0d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9f384d27a00, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a339ca0 rbx 0xffff80002999ee07 rdx 0xffff8000015b5a80 rcx 0xffff800045feea78 rax 0xffff80002999dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x48f7cc52fdbe6a93 r11 0x1b49ec64d58b483e r12 0xffff80002999ec08 r13 0 r14 0 r15 0x1 rip 0xffffffff813ea7c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a339c90 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=446289 pid=56857 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045fee2b0,0xffff800045fef780 process=0xffff80003c3cd360 user=0xffff80002a335000, vmspace=0xffffef806d1a0b90 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 56857 38084 10463 32767 7 0x10 0 syz-executor *56857 446289 10463 32767 7 0x10 0x4000000 syz-executor 12599 488174 26361 32767 2 0x10 0 syz-executor 12599 85707 26361 32767 3 0x10 0x4000080 fsleep syz-executor 80949 361376 82119 32767 3 0x10 0x80 nanoslp syz-executor 80949 7971 82119 32767 3 0x10 0x4000080 lockf syz-executor 80949 399337 82119 32767 3 0x10 0x4000080 fsleep syz-executor 97806 284406 42458 32767 3 0x10000010 0x80 nanoslp syz-executor 52669 11163 80958 32767 3 0x10 0x80 wait syz-executor 36709 79463 58132 32767 3 0x10 0x80 piperd syz-executor 82119 100843 77965 32767 3 0x10 0x80 nanoslp syz-executor 26361 331427 40271 32767 3 0x10 0x80 nanoslp syz-executor 1832 275556 46649 32767 3 0x10 0x80 piperd syz-executor 10463 518862 21510 32767 3 0x10 0x80 nanoslp syz-executor 58132 59950 70332 0 3 0x2 0x80 wait syz-executor 42458 374568 70332 0 3 0x2 0x80 wait syz-executor 77965 157004 70332 0 3 0x2 0x80 wait syz-executor 80958 432119 70332 0 3 0x2 0x80 wait syz-executor 40271 386244 70332 0 3 0x2 0x80 wait syz-executor 21510 513880 70332 0 3 0x2 0x80 wait syz-executor 46649 484291 70332 0 3 0x2 0x80 wait syz-executor 70332 139561 69457 0 3 0x2 0x80 nanoslp syz-executor 69457 263502 52571 0 3 0x100002 0x88 sigsusp ksh 52571 197059 82932 0 3 0x10 0x88 kqread sshd-session 82932 318296 15496 0 3 0x12 0x80 kqread sshd-session 19866 236111 1 0 3 0x100003 0x80 ttyin getty 15496 78165 1 0 3 0 0x88 kqread sshd 71194 178918 30709 73 3 0x1100010 0x80 kqread syslogd 30709 286811 1 0 3 0x100002 0x80 sbwait syslogd 24242 36351 1 0 3 0x100000 0x80 kqread resolvd 42705 403432 9677 77 3 0x100012 0x80 kqread dhcpleased 97921 114001 9677 77 3 0x100012 0x80 kqread dhcpleased 9677 426646 1 0 3 0 0x80 kqread dhcpleased 5151 411670 0 0 3 0x14000 0x200 bored smr 12740 298534 0 0 2 0x14000 0x200 zerothread 50492 320699 0 0 3 0x14000 0x200 aiodoned aiodoned 65125 58682 0 0 3 0x14000 0x200 syncer update 48135 414691 0 0 3 0x14000 0x200 cleaner cleaner 29014 448719 0 0 3 0x14000 0x200 reaper reaper 16154 10499 0 0 3 0x14000 0x200 pgdaemon pagedaemon 85117 96344 0 0 3 0x14000 0x200 bored viomb 76279 471524 0 0 3 0x14000 0x40000200 acpi0 acpi0 67054 487222 0 0 3 0x14000 0x40000200 idle1 98627 488745 0 0 3 0x14000 0x200 bored softnet1 28321 144803 0 0 3 0x14000 0x200 bored softnet0 59953 284024 0 0 3 0x14000 0x200 bored systqmp 80487 85480 0 0 3 0x14000 0x200 bored systq 76296 329101 0 0 3 0x14000 0x200 tmoslp softclockmp 11644 217249 0 0 3 0x14000 0x40000200 tmoslp softclock 15588 52455 0 0 3 0x14000 0x40000200 idle0 1 442364 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex shmpl r = 0 (0xffffffff83a54fe0) #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+0x4b4 sys/kern/kern_lock.c:487 #2 pool_get+0x124 sys/kern/subr_pool.c:585 #3 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #4 sys_shmget+0x195 sys/kern/sysv_shm.c:503 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #6 Xsyscall+0x128 Process 56857 (syz-executor) thread 0xffff800045feea78 (446289) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a3d100) #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:783 #2 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff83a54fe0) #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+0x4b4 sys/kern/kern_lock.c:487 #2 pool_get+0x124 sys/kern/subr_pool.c:585 #3 shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 #4 sys_shmget+0x195 sys/kern/sysv_shm.c:503 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11050 12016K 12034K 166960K 12144 0 pcb 17 12K 12K 166960K 17 0 rtable 219 6K 7K 166960K 356 0 pf 29 16K 16K 166960K 31 0 ifaddr 38 6K 7K 166960K 44 0 ifgroup 46 2K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 68 36K 37K 166960K 70 0 ioctlops 0 0K 4K 166960K 62 0 iov 0 0K 2K 166960K 8 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1288 81K 81K 166960K 1532 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 11 1K 1K 166960K 12 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 20 73K 121K 166960K 366 0 sigio 1 0K 0K 166960K 4 0 proc 58 99K 163K 166960K 539 0 subproc 63 3K 4K 166960K 189 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 39 0 in_multi 88 6K 7K 166960K 106 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 16 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 387 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 218 167K 194K 166960K 4787 0 UVM aobj 7 2K 4K 166960K 9 0 pinsyscall 41 82K 109K 166960K 1469 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 15 0 NDP 10 0K 2K 166960K 27 0 temp 32 9118K 9130K 166960K 4311 0 kqueue 13 20K 37K 166960K 74 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 49 0 46 1 0 1 1 0 8 0 rtentry 176 113 0 12 6 0 6 6 0 8 0 unpcb 144 174 0 157 1 0 1 1 0 8 0 syncache 336 11 0 11 1 0 1 1 0 8 1 tcpcb 736 86 0 78 1 0 1 1 0 8 0 arp 136 19 0 2 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 5 0 3 1 0 1 1 0 8 0 inpcb 328 307 0 294 7 0 7 7 0 8 5 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 152 25 0 3 1 0 1 1 0 8 0 kcovpl 48 21 0 14 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 468 0 44 29 2 27 29 0 8 0 art_table 40 469 0 44 5 0 5 5 0 8 0 art_node 32 113 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 9 0 0 1 0 1 1 0 8 0 shmpl 112 6 0 2 1 0 1 1 0 8 0 pool(0xffffffff83a54fc8:shmpl): page inconsistency: page 0xffffef806d074000; 30 on list, 4 missing, 35 items per page dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1884 0 406 93 0 93 93 0 8 0 ffsino 296 1884 0 406 114 0 114 114 0 8 0 nchpl 144 2323 0 619 64 0 64 64 0 8 0 vnodes 216 2082 0 0 116 0 116 116 0 8 0 namei 1024 7261 0 7261 2 1 1 2 0 8 1 percpumem 16 51 0 1 1 0 1 1 0 8 0 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scxspl 216 8295 0 8295 6 3 3 3 1 8 3 plimitpl 152 90 0 68 2 0 2 2 0 8 1 sigapl 424 636 0 587 7 0 7 7 0 8 1 knotepl 120 276 0 0 9 0 9 9 0 8 0 kqueuepl 224 80 0 71 2 1 1 2 0 8 0 pipepl 344 177 0 150 3 0 3 3 0 8 0 fdescpl 528 620 0 588 3 0 3 3 0 8 0 filepl 160 2959 0 2758 13 0 13 13 0 8 3 lockfpl 104 71 0 66 1 0 1 1 0 8 0 lockfspl 48 26 0 23 1 0 1 1 0 8 0 sessionpl 144 48 0 33 1 0 1 1 0 8 0 pgrppl 48 73 0 51 1 0 1 1 0 8 0 ucredpl 104 509 0 491 1 0 1 1 0 8 0 zombiepl 144 589 0 587 1 0 1 1 0 8 0 processpl 1232 636 0 587 5 0 5 5 0 8 0 procpl 664 928 0 875 6 0 6 6 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 752 531 0 498 10 0 10 10 0 8 6 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl9k128 9344 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k 2048 21 0 0 3 0 3 3 0 8 0 mextrefs 64 18 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1186 0 0 75 0 75 75 0 8 0 bufpl 272 2711 0 102 174 0 174 174 0 8 0 anonpl 32 5411 0 0 44 0 44 44 0 247 0 amapchunkpl 152 14286 0 13849 29 1 28 29 0 158 6 amappl16 200 1667 0 1649 5 3 2 5 0 8 0 amappl15 192 4 0 3 1 0 1 1 0 8 0 amappl14 184 401 0 400 1 0 1 1 0 8 0 amappl13 176 127 0 117 1 0 1 1 0 8 0 amappl12 168 868 0 837 2 0 2 2 0 8 0 amappl11 160 10 0 10 1 1 0 1 0 8 0 amappl10 152 153 0 143 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 1 0 1 0 8 0 amappl8 136 87 0 86 1 0 1 1 0 8 0 amappl7 128 143 0 131 1 0 1 1 0 8 0 amappl6 120 147 0 146 1 0 1 1 0 8 0 amappl5 112 97 0 90 1 0 1 1 0 8 0 amappl4 104 276 0 259 1 0 1 1 0 8 0 amappl3 96 2635 0 2530 5 1 4 4 0 8 0 amappl2 88 550 0 498 2 0 2 2 0 8 0 amappl1 80 12290 0 11734 17 1 16 16 0 8 2 amappl 88 4048 0 3896 5 0 5 5 0 92 0 uvmvnodes 80 106 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 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 8 0 2 1 0 1 1 0 8 0 uaddrrnd 24 620 0 588 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 620 0 588 1 0 1 1 0 8 0 vmmpekpl 168 7433 0 7389 3 0 3 3 0 8 0 vmmpepl 168 49866 0 48057 103 3 100 103 0 357 12 vmsppl 488 619 0 588 7 1 6 6 0 8 1 rwobjpl 80 17290 0 16389 24 1 23 24 0 8 1 pdppl 4096 1247 0 1176 111 32 79 95 0 8 8 pvpl 32 13344 0 0 109 1 108 108 0 265 0 pmappl 256 619 0 588 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 518 0 38 14 0 14 14 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83978ff0) 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 __mp_lock(ffffffff83a3c900) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a3c900) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x741a4ad4edd0, count: 8 ddb{0}> trace x86_ipi_db(ffffffff83978ff0) 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 __mp_lock(ffffffff83a3c900) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a3c900) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x741a4ad4edd0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834b5219) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a54fc8,9,ffff80002a339e78) at pool_do_get+0x5df pool_get(ffffffff83a54fc8,9) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff800045feea78,ffff80002a33a0d0,0,ffff80002a33a020) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff800045feea78,ffff80002a33a0d0,ffff80002a33a020) at sys_shmget+0x195 sys/kern/sysv_shm.c:503 syscall(ffff80002a33a0d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a33a0d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9f384d27a00, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834b5219) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_get(ffffffff83a54fc8,9,ffff80002a339e78) at pool_do_get+0x5df pool_get(ffffffff83a54fc8,9) at pool_get+0x162 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff800045feea78,ffff80002a33a0d0,0,ffff80002a33a020) at shmget_allocate_segment+0x1af sys/kern/sysv_shm.c:-1 sys_shmget(ffff800045feea78,ffff80002a33a0d0,ffff80002a33a020) at sys_shmget+0x195 sys/kern/sysv_shm.c:503 syscall(ffff80002a33a0d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a33a0d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9f384d27a00, count: -8