panic: pool_do_get: aobjpl free list modified: page 0xfffffd802f875000; item addr 0xfffffd802f8758c8; offset 0x14=0xdeafbeab Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 33283 85234 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_do_get(ffffffff825aa5d8,1,ffff80001495f738) at pool_do_get+0x463 sys/kern/subr_pool.c:744 pool_get(ffffffff825aa5d8,1) at pool_get+0xb5 sys/kern/subr_pool.c:581 uao_create() at uao_create+0x7c sys/uvm/uvm_aobj.c:728 shmget_allocate_segment(ffff8000ffff2018,ffff80001495f928,a2,ffff80001495f970) at shmget_allocate_segment+0x352 sys/kern/sysv_shm.c:430 sys_shmget(ffff8000ffff2018,ffff80001495f928,ffff80001495f970) at sys_shmget+0x13f sys/kern/sysv_shm.c:468 syscall(ffff80001495f9f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xae1dd8bbaf0, count: 6 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: aobjpl free list modified: page 0xfffffd802f875000; item addr 0xfffffd802f8758c8; offset 0x14=0xdeafbeab 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:207 pool_do_get(ffffffff825aa5d8,1,ffff80001495f738) at pool_do_get+0x463 sys/kern/subr_pool.c:744 pool_get(ffffffff825aa5d8,1) at pool_get+0xb5 sys/kern/subr_pool.c:581 uao_create() at uao_create+0x7c sys/uvm/uvm_aobj.c:728 shmget_allocate_segment(ffff8000ffff2018,ffff80001495f928,a2,ffff80001495f970) at shmget_allocate_segment+0x352 sys/kern/sysv_shm.c:430 sys_shmget(ffff8000ffff2018,ffff80001495f928,ffff80001495f970) at sys_shmget+0x13f sys/kern/sysv_shm.c:468 syscall(ffff80001495f9f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xae1dd8bbaf0, count: -9 ddb> show registers rdi 0xffffffff81339267 db_enter+0x17 rsi 0x3e52 __ALIGN_SIZE+0x2e52 rbp 0xffff80001495f5a0 rbx 0xffff80001495f650 rdx 0x3e53 __ALIGN_SIZE+0x2e53 rcx 0xffff800016da0000 rax 0xffff800016da0000 r8 0xffff80001495f560 r9 0x1 r10 0xffff800000a67a80 r11 0xb7833fb081be0095 r12 0x3000000008 r13 0xffff80001495f5b0 r14 0x100 r15 0x1 rip 0xffffffff81339268 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001495f590 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=33283 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3b40,0xffff8000ffff2518 process=0xffff8000ffff7b10 user=0xffff80001495a000, vmspace=0xfffffd803f012110 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 35052 41296 88884 0 2 0 syz-executor.1 35052 202996 88884 0 3 0x4000080 bell syz-executor.1 35052 479655 88884 0 3 0x4000080 fsleep syz-executor.1 85234 232810 5615 0 2 0 syz-executor.0 85234 318067 5615 0 3 0x4000080 piperd syz-executor.0 *85234 33283 5615 0 7 0x4000000 syz-executor.0 5615 258405 86258 0 3 0x82 nanosleep syz-executor.0 1324 23426 1 0 3 0x100083 ttyin getty 88884 377127 86258 0 2 0x482 syz-executor.1 90798 196882 0 0 3 0x14200 acct acct 87037 309238 0 0 3 0x14200 bored sosplice 86258 231399 59816 0 3 0x82 thrsleep syz-fuzzer 86258 92071 59816 0 3 0x4000082 thrsleep syz-fuzzer 86258 242770 59816 0 3 0x4000082 thrsleep syz-fuzzer 86258 252191 59816 0 3 0x4000082 thrsleep syz-fuzzer 86258 217881 59816 0 3 0x4000082 kqread syz-fuzzer 86258 4440 59816 0 3 0x4000082 thrsleep syz-fuzzer 86258 8833 59816 0 3 0x4000082 thrsleep syz-fuzzer 86258 409452 59816 0 3 0x4000082 thrsleep syz-fuzzer 59816 87985 90005 0 3 0x10008a pause ksh 90005 74679 21569 0 3 0x92 select sshd 21569 299138 1 0 3 0x80 select sshd 15654 81775 76985 73 3 0x100090 kqread syslogd 76985 158798 1 0 3 0x100082 netio syslogd 3389 319709 1 77 3 0x100090 poll dhclient 84494 474797 1 0 3 0x80 poll dhclient 15148 490681 0 0 2 0x14200 zerothread 98892 66480 0 0 3 0x14200 aiodoned aiodoned 56395 143723 0 0 3 0x14200 syncer update 53704 232802 0 0 3 0x14200 cleaner cleaner 32325 265513 0 0 3 0x14200 reaper reaper 35402 26910 0 0 3 0x14200 pgdaemon pagedaemon 3548 116266 0 0 3 0x14200 bored crynlk 25318 514703 0 0 3 0x14200 bored crypto 37653 54638 0 0 3 0x40014200 acpi0 acpi0 31052 109948 0 0 3 0x14200 bored softnet 20572 8403 0 0 3 0x14200 bored systqmp 35846 59835 0 0 3 0x14200 bored systq 68924 31864 0 0 3 0x40014200 bored softclock 75079 25744 0 0 3 0x40014200 idle0 30907 496027 0 0 3 0x14200 bored smr 1 461081 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 9539 6434K 14936K 78643K 15042 0 0 pcb 13 8K 9K 78643K 417 0 0 rtable 95 11K 12K 78643K 1392 0 0 ifaddr 82 16K 17K 78643K 496 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 159 0 0 iov 0 0K 20K 78643K 487 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 3058 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 112 0 0 VM map 30 7K 7K 78643K 35 0 0 sem 12 0K 0K 78643K 1649 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1794 195K 288K 78643K 12646 0 0 file desc 6 17K 25K 78643K 1982 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 49 38K 55K 78643K 1061 0 0 subproc 32 2K 2K 78643K 221 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 188 0 0 in_multi 59 3K 4K 78643K 410 0 0 ether_multi 1 0K 0K 78643K 22 0 0 mrt 1 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 541 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 155 250K 250K 78643K 6129 0 0 UVM aobj 111 7K 7K 78643K 406 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 423 0 0 NDP 15 0K 0K 78643K 140 0 0 temp 147 3535K 4174K 78643K 93774 0 0 kqueue 0 0K 0K 78643K 22 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 33 0 29 1 0 1 1 0 8 0 rtpcb 80 238 0 236 1 0 1 1 0 8 0 rtentry 112 279 0 245 2 0 2 2 0 8 0 unpcb 120 1093 0 1084 1 0 1 1 0 8 0 syncache 264 17 0 17 5 5 0 1 0 8 0 tcpqe 32 113 0 113 4 4 0 1 0 8 0 tcpcb 544 1191 0 1187 9 7 2 2 0 8 1 ipq 40 20 0 20 8 8 0 1 0 8 0 ipqe 40 397 0 397 8 8 0 1 0 8 0 inpcb 280 4306 0 4299 9 6 3 3 0 8 2 rttmr 72 1 0 1 1 1 0 1 0 8 0 ip6q 72 4 0 4 1 1 0 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 53 0 51 4 3 1 1 0 8 0 pkpcb 40 6 0 6 3 3 0 1 0 8 0 ppxss 1128 43 0 43 14 13 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1414 0 1242 33 19 14 15 0 8 3 art_table 32 1415 0 1242 2 0 2 2 0 8 0 art_node 16 278 0 247 1 0 1 1 0 8 0 sysvmsgpl 40 41 0 28 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1645 0 1635 1 0 1 1 0 8 0 shmpl 112 405 0 296 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4365 0 2966 46 0 46 46 0 8 0 ffsino 240 4365 0 2966 83 0 83 83 0 8 0 nchpl 144 7355 0 6899 60 40 20 60 0 8 0 uvmvnodes 72 5780 0 0 106 0 106 106 0 8 0 vnodes 208 5780 0 0 305 0 305 305 0 8 0 namei 1024 25199 0 25199 3 2 1 1 0 8 1 vcpupl 1984 28 0 0 4 0 4 4 0 8 0 vmpool 520 33 0 5 2 0 2 2 0 8 0 scxspl 192 28156 0 28156 16 15 1 7 0 8 1 plimitpl 152 193 0 186 1 0 1 1 0 8 0 sigapl 432 2122 0 2108 2 0 2 2 0 8 0 futexpl 56 63220 0 63219 3 2 1 1 0 8 0 knotepl 112 443 0 424 1 0 1 1 0 8 0 kqueuepl 104 481 0 479 1 0 1 1 0 8 0 pipepl 128 1304 0 1283 7 6 1 2 0 8 0 fdescpl 424 2123 0 2108 2 0 2 2 0 8 0 filepl 120 18304 0 18203 16 11 5 5 0 8 1 lockfpl 104 750 0 748 1 0 1 1 0 8 0 lockfspl 48 250 0 248 1 0 1 1 0 8 0 sessionpl 112 31 0 21 1 0 1 1 0 8 0 pgrppl 48 55 0 45 1 0 1 1 0 8 0 ucredpl 96 1998 0 1990 1 0 1 1 0 8 0 zombiepl 144 2110 0 2110 1 0 1 1 0 8 1 processpl 864 2141 0 2110 4 0 4 4 0 8 0 procpl 632 4819 0 4777 6 2 4 5 0 8 0 sosppl 128 29 0 29 6 5 1 1 0 8 1 sockpl 384 5661 0 5643 26 20 6 7 0 8 3 mcl64k 65536 551 0 551 47 46 1 29 0 8 1 mcl16k 16384 35 0 35 11 11 0 1 0 8 0 mcl12k 12288 78 0 78 9 8 1 1 0 8 1 mcl9k 9216 33 0 33 14 13 1 1 0 8 1 mcl8k 8192 105 0 105 7 6 1 1 0 8 1 mcl4k 4096 263 0 263 5 4 1 1 0 8 1 mcl2k2 2112 16 0 16 7 6 1 1 0 8 1 mcl2k 2048 71395 0 71349 17 10 7 15 0 8 0 mtagpl 80 37 0 37 7 6 1 1 0 8 1 mbufpl 256 132819 0 132736 70 60 10 22 0 8 1 bufpl 256 14376 0 8136 391 0 391 391 0 8 0 anonpl 16 278086 0 262005 167 79 88 101 0 62 4 amapchunkpl 152 13434 0 13275 74 58 16 20 0 158 9 amappl16 192 12891 0 11694 148 76 72 72 0 8 11 amappl15 184 429 0 426 1 0 1 1 0 8 0 amappl14 176 253 0 246 1 0 1 1 0 8 0 amappl13 168 19 0 19 4 4 0 1 0 8 0 amappl12 160 107 0 105 2 1 1 1 0 8 0 amappl11 152 429 0 418 1 0 1 1 0 8 0 amappl10 144 264 0 260 1 0 1 1 0 8 0 amappl9 136 970 0 967 1 0 1 1 0 8 0 amappl8 128 569 0 532 3 1 2 2 0 8 0 amappl7 120 333 0 324 1 0 1 1 0 8 0 amappl6 112 412 0 401 1 0 1 1 0 8 0 amappl5 104 374 0 363 1 0 1 1 0 8 0 amappl4 96 2399 0 2367 1 0 1 1 0 8 0 amappl3 88 219 0 204 1 0 1 1 0 8 0 amappl2 80 15725 0 15645 3 1 2 3 0 8 0 amappl1 72 49332 0 48888 25 16 9 20 0 8 0 amappl 80 5241 0 5181 2 0 2 2 0 84 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 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 64 405 0 295 2 0 2 2 0 8 0 pool(0xffffffff825aa5d8:aobjpl): page inconsistency: page 0xfffffd802f875000; 13 on list, 48 missing, 62 items per page uaddrrnd 24 2156 0 2108 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2156 0 2108 1 0 1 1 0 8 0 vmmpekpl 168 17650 0 17611 2 0 2 2 0 8 0 vmmpepl 168 268163 0 265693 335 175 160 160 0 357 50 vmsppl 272 2122 0 2108 7 5 2 2 0 8 1 pdppl 4096 4318 0 4254 10 1 9 9 0 8 0 pvpl 32 729806 0 710717 456 167 289 337 0 265 93 pmappl 200 2155 0 2113 3 0 3 3 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 699 0 173 16 0 16 16 0 8 0