login: panic: pool_do_get: shmpl free list modified: page 0xfffffd80379ba000; item addr 0xfffffd80379bae70; offset 0x10=0xdead4000 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *494569 6097 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:208 pool_do_get(ffffffff822b3328,1,ffff8000221861fc) at pool_do_get+0x464 sys/kern/subr_pool.c:744 pool_get(ffffffff822b3328,1) at pool_get+0xb5 sys/kern/subr_pool.c:581 shmget_allocate_segment(ffff80002214e720,ffff800022186398,0,ffff800022186400) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff80002214e720,ffff800022186398,ffff800022186400) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800022186470) at syscall+0x511 Xsyscall(6,0,fffffffffffffff4,0,4,3cc2cf700d8) at Xsyscall+0x128 end of kernel end trace frame: 0x357, 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 0xfffffd80379ba000; item addr 0xfffffd80379bae70; 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:208 pool_do_get(ffffffff822b3328,1,ffff8000221861fc) at pool_do_get+0x464 sys/kern/subr_pool.c:744 pool_get(ffffffff822b3328,1) at pool_get+0xb5 sys/kern/subr_pool.c:581 shmget_allocate_segment(ffff80002214e720,ffff800022186398,0,ffff800022186400) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff80002214e720,ffff800022186398,ffff800022186400) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff800022186470) at syscall+0x511 Xsyscall(6,0,fffffffffffffff4,0,4,3cc2cf700d8) at Xsyscall+0x128 end of kernel end trace frame: 0x357, count: -8 ddb> show registers rdi 0xffffffff81b18397 db_enter+0x17 rsi 0x33b1 __ALIGN_SIZE+0x23b1 rbp 0xffff800022186060 rbx 0xffff800022186110 rdx 0x33b2 __ALIGN_SIZE+0x23b2 rcx 0xffff800000b90000 rax 0xffff800000b90000 r8 0xffff800022186020 r9 0x1 r10 0xffff80000098bbc0 r11 0x446abe3c708934ed r12 0x3000000008 r13 0xffff800022186070 r14 0x100 r15 0x1 rip 0xffffffff81b18398 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022186050 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=494569 stat=onproc flags process=10 proc=4000000 pri=62, usrpri=62, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8260,0xffff80002214e4d8 process=0xffff8000ffff69e8 user=0xffff800022181000, vmspace=0xfffffd803f014d68 estcpu=12, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 6097 240368 61525 60929 2 0x10 syz-executor.1 6097 138864 61525 60929 2 0x4000010 syz-executor.1 * 6097 494569 61525 60929 7 0x4000010 syz-executor.1 6097 207661 61525 60929 3 0x4000090 fsleep syz-executor.1 6097 91349 61525 60929 3 0x4000090 fsleep syz-executor.1 6097 111651 61525 60929 3 0x4000090 fsleep syz-executor.1 6097 266666 61525 60929 3 0x4000090 fsleep syz-executor.1 65455 8996 52963 0 3 0x82 piperd syz-executor.0 61525 291763 52963 0 2 0x482 syz-executor.1 52963 313318 97449 0 3 0x82 thrsleep syz-fuzzer 52963 451347 97449 0 3 0x4000082 thrsleep syz-fuzzer 52963 145194 97449 0 3 0x4000082 thrsleep syz-fuzzer 52963 516947 97449 0 3 0x4000082 thrsleep syz-fuzzer 52963 215909 97449 0 3 0x4000082 thrsleep syz-fuzzer 52963 255449 97449 0 3 0x4000082 thrsleep syz-fuzzer 52963 9081 97449 0 3 0x4000082 thrsleep syz-fuzzer 52963 493599 97449 0 3 0x4000082 kqread syz-fuzzer 52963 259628 97449 0 3 0x4000082 thrsleep syz-fuzzer 97449 458792 80902 0 3 0x10008a pause ksh 80902 274637 39704 0 3 0x92 select sshd 85777 97173 1 0 3 0x100083 ttyin getty 39704 53737 1 0 3 0x80 select sshd 45891 383657 56915 73 3 0x100090 kqread syslogd 56915 245848 1 0 3 0x100082 netio syslogd 71043 291635 1 77 3 0x100090 poll dhclient 51793 320688 1 0 3 0x80 poll dhclient 1510 264084 0 0 3 0x14200 pgzero zerothread 97329 491071 0 0 3 0x14200 aiodoned aiodoned 53796 192103 0 0 3 0x14200 syncer update 5640 380441 0 0 3 0x14200 cleaner cleaner 57910 176090 0 0 3 0x14200 reaper reaper 41670 446556 0 0 3 0x14200 pgdaemon pagedaemon 77513 361013 0 0 3 0x14200 bored crynlk 16210 51017 0 0 3 0x14200 bored crypto 25156 347928 0 0 3 0x40014200 acpi0 acpi0 89287 487077 0 0 3 0x14200 bored softnet 40264 497185 0 0 3 0x14200 bored systqmp 64631 208309 0 0 3 0x14200 bored systq 50006 9030 0 0 3 0x40014200 bored softclock 3919 45557 0 0 3 0x40014200 idle0 1405 312112 0 0 3 0x14200 bored smr 1 139316 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 9438 6311K 6443K 78643K 10559 0 0 pcb 24 9K 10K 78643K 59 0 0 rtable 100 3K 3K 78643K 177 0 0 ifaddr 35 10K 10K 78643K 39 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 15 0 0 iov 1 8K 8K 78643K 2 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 1215 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 31 0 0 proc 41 30K 54K 78643K 248 0 0 subproc 64 65538K 67586K 78643K 68 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 33 2K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 30 132K 132K 78643K 30 0 0 exec 0 0K 1K 78643K 165 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 91 21K 21K 78643K 824 0 0 UVM aobj 2 2K 2K 78643K 3 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 5 0K 0K 78643K 10 0 0 temp 81 2684K 2748K 78643K 2919 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 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 28 0 21 1 0 1 1 0 8 0 plimitpl 152 14 0 7 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 17 0 17 1 0 1 1 0 8 1 tcpcb 544 10 0 6 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 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 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 shmpl 112 1 0 1 1 0 1 1 0 8 1 shmpl: pool(0xffffffff822b3328:shmpl): page inconsistency: page 0xfffffd80379ba000; item ordinal 0; addr 0x6f6627e44ab29721 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1452 0 44 46 0 46 46 0 8 0 ffsino 240 1452 0 44 83 0 83 83 0 8 0 nchpl 144 1696 0 74 61 0 61 61 0 8 0 uvmvnodes 72 1501 0 0 28 0 28 28 0 8 0 vnodes 200 1501 0 0 79 0 79 79 0 8 0 namei 1024 4006 0 4006 2 1 1 1 0 8 1 scxspl 192 4256 0 4256 7 1 6 6 0 8 6 sigapl 432 201 0 188 2 0 2 2 0 8 0 futexpl 56 289 0 285 1 0 1 1 0 8 0 knotepl 112 47 0 28 1 0 1 1 0 8 0 kqueuepl 104 4 0 2 1 0 1 1 0 8 0 pipepl 112 134 0 115 1 0 1 1 0 8 0 fdescpl 424 202 0 188 2 0 2 2 0 8 0 filepl 120 994 0 896 4 0 4 4 0 8 1 lockfpl 104 9 0 8 2 1 1 1 0 8 0 lockfspl 32 5 0 4 2 1 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 51 0 43 1 0 1 1 0 8 0 zombiepl 144 188 0 188 2 1 1 1 0 8 1 processpl 840 216 0 188 4 0 4 4 0 8 0 procpl 600 245 0 203 4 0 4 4 0 8 0 sockpl 384 76 0 58 3 0 3 3 0 8 1 mcl4k 4096 10 0 10 2 1 1 1 0 8 1 mcl2k 2048 54821 0 54776 16 3 13 13 0 8 6 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 89631 0 89547 11 4 7 7 0 8 0 bufpl 256 5633 0 1139 281 0 281 281 0 8 0 anonpl 16 30511 0 20044 44 1 43 43 0 62 0 amapchunkpl 152 805 0 689 8 1 7 7 0 158 2 amappl16 192 721 0 150 29 0 29 29 0 8 0 amappl14 176 29 0 27 1 0 1 1 0 8 0 amappl13 168 7 0 6 1 0 1 1 0 8 0 amappl12 160 9 0 7 1 0 1 1 0 8 0 amappl11 152 31 0 17 1 0 1 1 0 8 0 amappl10 144 55 0 54 1 0 1 1 0 8 0 amappl9 136 537 0 533 1 0 1 1 0 8 0 amappl8 128 115 0 100 1 0 1 1 0 8 0 amappl7 120 27 0 24 1 0 1 1 0 8 0 amappl6 112 55 0 48 1 0 1 1 0 8 0 amappl5 104 127 0 117 1 0 1 1 0 8 0 amappl4 96 396 0 372 2 1 1 2 0 8 0 amappl3 88 118 0 111 1 0 1 1 0 8 0 amappl2 80 758 0 708 3 1 2 2 0 8 0 amappl1 72 12597 0 12179 23 10 13 19 0 8 3 amappl 72 457 0 417 1 0 1 1 0 75 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 2 0 1 1 0 1 1 0 8 0 uaddrrnd 24 202 0 188 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 202 0 188 1 0 1 1 0 8 0 vmmpekpl 168 5610 0 5592 1 0 1 1 0 8 0 vmmpepl 168 28960 0 27462 96 13 83 83 0 357 17 vmsppl 264 201 0 188 2 0 2 2 0 8 1 pdppl 4096 410 0 376 6 0 6 6 0 8 1 pvpl 32 110021 0 96240 116 4 112 112 0 265 0 pmappl 200 201 0 188 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 420 0 11 12 0 12 12 0 8 0