panic: pool_do_get: shmpl free list modified: page 0xfffffd8067b4c000; item addr 0xfffffd8067b4c388; offset 0x40=0x68231e52 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 52824 82363 0 0x10 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83398962) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff839ba778,1,ffff80003c975648) at pool_do_get+0x5be sys/kern/subr_pool.c:-1 pool_get(ffffffff839ba778,1) at pool_get+0x103 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c983c68,ffff80003c9758a0,110,ffff80003c9757f0) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c983c68,ffff80003c9758a0,ffff80003c9757f0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c9758a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9758a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xffd228ee0e0, 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 0xfffffd8067b4c000; item addr 0xfffffd8067b4c388; offset 0x40=0x68231e52 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83398962) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff839ba778,1,ffff80003c975648) at pool_do_get+0x5be sys/kern/subr_pool.c:-1 pool_get(ffffffff839ba778,1) at pool_get+0x103 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c983c68,ffff80003c9758a0,110,ffff80003c9757f0) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c983c68,ffff80003c9758a0,ffff80003c9757f0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c9758a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9758a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xffd228ee0e0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c9754c0 rbx 0xfffffd8067b4c388 rdx 0xffff80000146c140 rcx 0 rax 0xffff80003c983c68 r8 0 r9 0x8080808080808080 r10 0xafb6c4f5da623a26 r11 0x399406777b0c7e93 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff8280b335 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c9754b0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=52824 pid=82363 tcnt=3 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c9839d8,0xffff80003c968558 process=0xffff8000ffff6360 user=0xffff80003c970000, vmspace=0xfffffd806c06d9e8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 86806 229625 17713 0 2 0 syz-executor 86806 286405 17713 0 2 0x4000000 syz-executor 82363 24158 91482 0 2 0x10 syz-executor *82363 52824 91482 0 7 0x4000010 syz-executor 82363 88242 91482 0 3 0x4000090 fsleep syz-executor 93212 448858 24915 0 2 0 syz-executor 93212 456474 24915 0 3 0x4000080 fsleep syz-executor 93212 460503 24915 0 3 0x4000080 fsleep syz-executor 74550 406972 0 0 3 0x14280 nfsidl nfsio 983 422715 0 0 3 0x14280 nfsidl nfsio 52550 222100 0 0 3 0x14280 nfsidl nfsio 92974 157712 0 0 3 0x14280 nfsidl nfsio 53212 300642 0 0 3 0x14280 nfsidl nfsio 25438 207056 0 0 3 0x14280 nfsidl nfsio 20180 104076 0 0 3 0x14280 nfsidl nfsio 96522 377807 0 0 3 0x14280 nfsidl nfsio 29264 276703 0 0 3 0x14280 nfsidl nfsio 30804 402001 0 0 3 0x14280 nfsidl nfsio 78977 9096 0 0 3 0x14280 nfsidl nfsio 67128 288780 0 0 3 0x14280 nfsidl nfsio 85939 117691 0 0 3 0x14280 nfsidl nfsio 52616 189601 0 0 3 0x14280 nfsidl nfsio 67124 313391 0 0 3 0x14280 nfsidl nfsio 77231 1960 0 0 3 0x14280 nfsidl nfsio 17072 94634 0 0 3 0x14280 nfsidl nfsio 14221 224375 0 0 3 0x14280 nfsidl nfsio 39689 150961 0 0 3 0x14280 nfsidl nfsio 56930 373355 0 0 3 0x14280 nfsidl nfsio 79432 481448 0 0 3 0x14200 bored sosplice 50810 117479 91720 0 3 0x82 nanoslp syz-executor 91482 200063 91720 0 2 0xc82 syz-executor 17713 149841 91720 0 3 0x82 nanoslp syz-executor 24915 237959 91720 0 2 0xc82 syz-executor 92036 390605 91720 0 2 0x2 syz-executor 26192 437014 91720 0 2 0x2 syz-executor 64536 82551 91720 0 2 0x2 syz-executor 64205 284927 91720 0 2 0x2 syz-executor 91720 213833 72401 0 3 0x82 kqread syz-executor 72401 415892 92851 0 3 0x10008a sigsusp ksh 92851 81040 69783 0 3 0x98 kqread sshd-session 69783 204424 71588 0 3 0x92 kqread sshd-session 73879 372590 1 0 3 0x100083 ttyopn getty 71588 32136 1 0 3 0x88 kqread sshd 25424 56476 69558 73 3 0x1100090 kqread syslogd 69558 188449 1 0 3 0x100082 sbwait syslogd 19876 186088 1 0 3 0x100080 kqread resolvd 49710 112548 16919 77 3 0x100092 kqread dhcpleased 45712 456290 16919 77 3 0x100092 kqread dhcpleased 16919 245327 1 0 3 0x80 kqread dhcpleased 9116 92529 0 0 3 0x14200 bored smr 34322 293894 0 0 2 0x14200 zerothread 73744 347682 0 0 3 0x14200 aiodoned aiodoned 44231 515920 0 0 3 0x14200 syncer update 42373 503934 0 0 3 0x14200 cleaner cleaner 57365 295784 0 0 3 0x14200 reaper reaper 80701 493654 0 0 3 0x14200 pgdaemon pagedaemon 83330 253252 0 0 3 0x14200 bored viomb 28930 489263 0 0 3 0x40014200 acpi0 acpi0 87887 460575 0 0 3 0x14200 bored softnet3 65863 308110 0 0 3 0x14200 bored softnet2 59870 97618 0 0 3 0x14200 bored softnet1 31399 194790 0 0 2 0x14200 softnet0 47821 485615 0 0 3 0x14200 bored systqmp 47341 225434 0 0 3 0x14200 bored systq 47633 225298 0 0 2 0x40014200 softclock 18322 495551 0 0 3 0x40014200 idle0 1 385795 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10186 11056K 11623K 166960K 13164 0 pcb 17 16K 18K 166960K 322 0 rtable 245 10K 10K 166960K 447 0 pf 30 12K 20K 166960K 91 0 ifaddr 42 7K 8K 166960K 81 0 ifgroup 50 2K 2K 166960K 130 0 sysctl 3 1K 9K 166960K 7 0 counters 31 17K 18K 166960K 72 0 ioctlops 0 0K 4K 166960K 154 0 iov 0 0K 16K 166960K 54 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1473 93K 93K 166960K 2405 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 19 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 30 0 dirhash 12 2K 2K 166960K 36 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 14 49K 97K 166960K 989 0 sigio 0 0K 0K 166960K 27 0 proc 60 59K 124K 166960K 525 0 subproc 72 4K 4K 166960K 73 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 145 0 in_multi 99 7K 7K 166960K 138 0 ether_multi 1 0K 0K 166960K 6 0 mrt 1 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 2K 166960K 408 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 204 158K 177K 166960K 10093 0 UVM aobj 59 2K 3K 166960K 64 0 pinsyscall 35 70K 96K 166960K 2021 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 42 0 NDP 11 0K 2K 166960K 51 0 temp 58 8663K 8782K 166960K 24715 0 kqueue 13 20K 32K 166960K 164 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 145 0 141 3 2 1 3 0 8 0 rtentry 136 140 0 29 4 0 4 4 0 8 0 unpcb 144 799 0 784 11 5 6 6 0 8 5 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 808 177 0 173 2 1 1 2 0 8 0 arp 88 23 0 5 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 1 1 0 1 1 0 8 0 inpcb 344 1275 0 1268 20 13 7 13 0 8 6 nd6 104 30 0 4 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1072 30 0 30 1 0 1 1 0 8 1 pppxif 1384 9 0 9 1 0 1 1 0 8 1 pfrule 1344 1 0 0 1 0 1 1 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 582 0 115 32 1 31 32 0 8 0 art_table 32 584 0 115 5 1 4 5 0 8 0 art_node 16 139 0 39 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 27 0 17 1 0 1 1 0 8 0 shmpl 112 61 0 5 2 0 2 2 0 8 0 pool(0xffffffff839ba778:shmpl): page inconsistency: page 0xfffffd8067b4c000; 13 on list, 21 missing, 35 items per page dirhash 1024 34 0 17 3 0 3 3 0 8 0 dino2pl 256 3312 0 1812 95 0 95 95 0 8 0 ffsino 248 3312 0 1812 95 0 95 95 0 8 0 nchpl 144 4717 0 3039 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 uvmvnodes 80 3984 0 0 82 0 82 82 0 8 0 vnodes 216 3984 0 0 222 0 222 222 0 8 0 namei 1024 16526 0 16522 2 1 1 2 0 8 0 kstatmem 264 70 0 48 2 0 2 2 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 14273 0 14273 11 7 4 8 1 8 4 plimitpl 152 373 0 357 1 0 1 1 0 8 0 sigapl 424 1290 0 1227 8 0 8 8 0 8 0 knotepl 120 59797 0 59750 10 0 10 10 0 8 8 kqueuepl 184 444 0 435 6 3 3 4 0 8 2 pipepl 296 312 0 285 12 9 3 12 0 8 0 fdescpl 440 1252 0 1226 5 1 4 5 0 8 0 filepl 120 8733 0 8525 17 6 11 15 0 8 4 lockfpl 104 423 0 421 2 1 1 2 0 8 0 lockfspl 48 98 0 96 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 46 0 30 1 0 1 1 0 8 0 ucredpl 104 1503 0 1491 1 0 1 1 0 8 0 zombiepl 144 1339 0 1338 1 0 1 1 0 8 0 processpl 1128 1290 0 1227 5 0 5 5 0 8 0 procpl 656 2592 0 2524 8 0 8 8 0 8 0 sosppl 168 6 0 6 1 1 0 1 0 8 0 sockpl 528 2252 0 2226 19 9 10 11 0 8 8 mcl64k 65536 202 0 201 1 0 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 25 0 25 2 1 1 1 0 8 1 mcl4k 4096 3650 0 3596 15 7 8 14 0 8 0 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1043 0 1038 2 0 2 2 0 8 1 mtagpl 96 110 0 22 3 0 3 3 0 8 0 mbufpl 256 14568 0 14313 28 4 24 24 0 8 4 bufpl 280 4017 0 154 276 0 276 276 0 8 0 anonpl 24 186072 0 183063 61 29 32 57 0 187 4 amapchunkpl 152 34282 0 33882 37 10 27 30 0 158 7 amappl16 200 3477 0 3445 28 21 7 16 0 8 3 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 105 0 95 1 0 1 1 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 1858 0 1831 3 1 2 3 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 1 0 1 0 8 0 amappl9 144 308 0 308 1 1 0 1 0 8 0 amappl8 136 20 0 19 1 0 1 1 0 8 0 amappl7 128 102 0 92 1 0 1 1 0 8 0 amappl6 120 174 0 170 1 0 1 1 0 8 0 amappl5 112 123 0 115 1 0 1 1 0 8 0 amappl4 104 290 0 272 1 0 1 1 0 8 0 amappl3 96 6828 0 6737 5 1 4 4 0 8 0 amappl2 88 638 0 580 2 0 2 2 0 8 0 amappl1 80 12036 0 11501 14 1 13 14 0 8 0 amappl 88 9281 0 9141 5 0 5 5 0 92 0 dma4096 4096 2 0 2 2 1 1 1 0 8 1 dma2048 2048 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 63 0 5 2 0 2 2 0 8 0 uaddrrnd 24 1252 0 1226 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1252 0 1226 1 0 1 1 0 8 0 vmmpekpl 168 11544 0 11512 2 0 2 2 0 8 0 vmmpepl 168 83177 0 81471 98 10 88 96 0 357 4 vmsppl 360 1251 0 1226 4 1 3 4 0 8 0 rwobjpl 32 26377 0 21501 40 0 40 40 0 8 0 pdppl 4096 2510 0 2452 110 44 66 82 0 8 8 pvpl 32 529256 0 521297 142 52 90 137 0 265 6 pmappl 216 1251 0 1226 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 302 0 64 8 0 8 8 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(ffffffff83398962) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff839ba778,1,ffff80003c975648) at pool_do_get+0x5be sys/kern/subr_pool.c:-1 pool_get(ffffffff839ba778,1) at pool_get+0x103 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c983c68,ffff80003c9758a0,110,ffff80003c9757f0) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c983c68,ffff80003c9758a0,ffff80003c9757f0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c9758a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9758a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xffd228ee0e0, 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(ffffffff83398962) at panic+0x1cf sys/kern/subr_prf.c:198 pool_do_get(ffffffff839ba778,1,ffff80003c975648) at pool_do_get+0x5be sys/kern/subr_pool.c:-1 pool_get(ffffffff839ba778,1) at pool_get+0x103 sys/kern/subr_pool.c:-1 shmget_allocate_segment(ffff80003c983c68,ffff80003c9758a0,110,ffff80003c9757f0) at shmget_allocate_segment+0x1a7 sys/kern/sysv_shm.c:-1 sys_shmget(ffff80003c983c68,ffff80003c9758a0,ffff80003c9757f0) at sys_shmget+0x1b2 sys/kern/sysv_shm.c:482 syscall(ffff80003c9758a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9758a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xffd228ee0e0, count: -8