login: panic: pool_do_get: shmpl free list modified: page 0xfffffd80398cc000; item addr 0xfffffd80398cc2a8; offset 0x10=0xdeadbe00 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *347430 14315 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x15c sys/kern/subr_prf.c:208 pool_do_get(ffffffff82283890,1,ffff8000149fe824) at pool_do_get+0x48b sys/kern/subr_pool.c:750 pool_get(ffffffff82283890,1) at pool_get+0xc1 sys/kern/subr_pool.c:587 shmget_allocate_segment(ffff8000ffff3530,ffff8000149fea08,0,ffff8000149fe9f0) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000ffff3530,ffff8000149fea08,ffff8000149fe9f0) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff8000149feaa0) at syscall+0x541 Xsyscall(6,0,fffffffffffffff3,0,4,83bb0c00d8) at Xsyscall+0x128 end of kernel end trace frame: 0x8662c4c6f0, 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 0xfffffd80398cc000; item addr 0xfffffd80398cc2a8; offset 0x10=0xdeadbe00 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x15c sys/kern/subr_prf.c:208 pool_do_get(ffffffff82283890,1,ffff8000149fe824) at pool_do_get+0x48b sys/kern/subr_pool.c:750 pool_get(ffffffff82283890,1) at pool_get+0xc1 sys/kern/subr_pool.c:587 shmget_allocate_segment(ffff8000ffff3530,ffff8000149fea08,0,ffff8000149fe9f0) at shmget_allocate_segment+0x15e sys/kern/sysv_shm.c:409 sys_shmget(ffff8000ffff3530,ffff8000149fea08,ffff8000149fe9f0) at sys_shmget+0x13f sys/kern/sysv_shm.c:472 syscall(ffff8000149feaa0) at syscall+0x541 Xsyscall(6,0,fffffffffffffff3,0,4,83bb0c00d8) at Xsyscall+0x128 end of kernel end trace frame: 0x8662c4c6f0, count: -8 ddb> show registers rdi 0xffffffff8121a687 db_enter+0x17 rsi 0x3759 __ALIGN_SIZE+0x2759 rbp 0xffff8000149fe680 rbx 0xffff8000149fe730 rdx 0x375a __ALIGN_SIZE+0x275a rcx 0xffff800000b3c000 rax 0xffff800000b3c000 r8 0xffff8000149fe640 r9 0x1 r10 0xffff800000936b40 r11 0x39fdd6b48acee9dc r12 0x3000000008 r13 0xffff8000149fe690 r14 0x100 r15 0x1 rip 0xffffffff8121a688 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149fe670 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=347430 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff39e0,0xffff8000ffff24d8 process=0xffff8000ffff7a50 user=0xffff8000149f9000, vmspace=0xfffffd803f014210 estcpu=30, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 14315 154136 68189 0 2 0 syz-executor.1 14315 283834 68189 0 2 0x4000000 syz-executor.1 *14315 347430 68189 0 7 0x4000000 syz-executor.1 14315 417892 68189 0 3 0x4000080 fsleep syz-executor.1 14315 252099 68189 0 3 0x4000080 fsleep syz-executor.1 99097 507043 1 0 3 0x100083 ttyin getty 17282 114853 0 0 3 0x14200 bored sosplice 8647 209797 42581 0 2 0x2 syz-executor.0 68189 320138 42581 0 2 0x482 syz-executor.1 42581 48369 28859 0 3 0x82 thrsleep syz-fuzzer 42581 43775 28859 0 3 0x4000082 thrsleep syz-fuzzer 42581 60728 28859 0 3 0x4000082 thrsleep syz-fuzzer 42581 186706 28859 0 3 0x4000082 thrsleep syz-fuzzer 42581 171399 28859 0 3 0x4000082 thrsleep syz-fuzzer 42581 141384 28859 0 3 0x4000082 thrsleep syz-fuzzer 42581 335756 28859 0 3 0x4000082 thrsleep syz-fuzzer 42581 463820 28859 0 3 0x4000082 kqread syz-fuzzer 28859 87974 67910 0 3 0x10008a pause ksh 67910 421189 82851 0 3 0x92 select sshd 82851 174951 1 0 3 0x80 select sshd 78465 104841 58425 73 3 0x100090 kqread syslogd 58425 104779 1 0 3 0x100082 netio syslogd 34685 176627 1 77 3 0x100090 poll dhclient 24228 199712 1 0 3 0x80 poll dhclient 51569 37960 0 0 3 0x14200 pgzero zerothread 19766 522476 0 0 3 0x14200 aiodoned aiodoned 49077 517710 0 0 3 0x14200 syncer update 55507 43033 0 0 3 0x14200 cleaner cleaner 34151 245046 0 0 3 0x14200 reaper reaper 75567 373156 0 0 3 0x14200 pgdaemon pagedaemon 34558 241043 0 0 3 0x14200 bored crynlk 69675 66701 0 0 3 0x14200 bored crypto 32382 130161 0 0 3 0x40014200 acpi0 acpi0 63926 411393 0 0 3 0x14200 bored softnet 77003 149399 0 0 3 0x14200 bored systqmp 69869 236059 0 0 3 0x14200 bored systq 336 433509 0 0 3 0x40014200 bored softclock 62377 274452 0 0 3 0x40014200 idle0 76440 239027 0 0 3 0x14200 bored smr 1 209028 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 9487 6341K 6351K 78643K 10883 0 0 pcb 23 9K 11K 78643K 524 0 0 rtable 100 3K 3K 78643K 353 0 0 ifaddr 49 12K 13K 78643K 154 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 29 0 0 iov 0 0K 24K 78643K 127 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 76K 78643K 1710 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 21 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 126 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 784 0 0 sigio 1 0K 0K 78643K 10 0 0 proc 42 30K 46K 78643K 356 0 0 subproc 64 65538K 69634K 78643K 86 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 101 0 0 in_multi 33 2K 2K 78643K 59 0 0 ether_multi 1 0K 0K 78643K 2 0 0 mrt 1 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 232 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 81 20K 40K 78643K 2725 0 0 UVM aobj 59 7K 7K 78643K 67 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 30 0 0 NDP 9 0K 0K 78643K 40 0 0 temp 150 2359K 2425K 78643K 4989 0 0 kqueue 0 0K 0K 78643K 9 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 375 0 368 1 0 1 1 0 8 0 plimitpl 152 30 0 23 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 tcpcb 544 130 0 126 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 22 0 22 5 4 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 30 0 13 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 121 0 111 1 0 1 1 0 8 0 shmpl 112 65 0 8 2 0 2 2 0 8 0 shmpl: pool(0xffffffff82283890:shmpl): page inconsistency: page 0xfffffd80398cc000; item ordinal 0; addr 0x954d11ef66000455 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2962 0 1560 46 0 46 46 0 8 0 ffsino 240 2962 0 1560 83 0 83 83 0 8 0 nchpl 144 4306 0 2693 61 0 61 61 0 8 0 uvmvnodes 72 3105 0 0 57 0 57 57 0 8 0 vnodes 200 3105 0 0 164 0 164 164 0 8 0 namei 1024 12337 0 12336 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 11956 0 11956 12 11 1 6 0 8 1 sigapl 432 954 0 941 2 0 2 2 0 8 0 futexpl 56 13180 0 13178 1 0 1 1 0 8 0 knotepl 112 243 0 216 2 1 1 2 0 8 0 kqueuepl 104 241 0 239 1 0 1 1 0 8 0 pipepl 112 676 0 657 4 3 1 2 0 8 0 fdescpl 424 955 0 941 2 0 2 2 0 8 0 filepl 120 6045 0 5945 6 2 4 5 0 8 0 lockfpl 104 338 0 336 2 1 1 1 0 8 0 lockfspl 32 449 0 448 2 1 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 1491 0 1484 1 0 1 1 0 8 0 zombiepl 144 941 0 941 2 1 1 1 0 8 1 processpl 840 970 0 941 4 0 4 4 0 8 0 procpl 600 2109 0 2069 4 0 4 4 0 8 0 sosppl 128 7 0 7 3 3 0 1 0 8 0 sockpl 384 826 0 809 5 2 3 4 0 8 1 mcl64k 65536 279 0 279 33 16 17 32 0 8 17 mcl16k 16384 3 0 3 3 3 0 1 0 8 0 mcl12k 12288 19 0 19 5 4 1 1 0 8 1 mcl9k 9216 16 0 16 3 2 1 1 0 8 1 mcl8k 8192 11 0 11 5 4 1 1 0 8 1 mcl4k 4096 54 0 54 2 1 1 1 0 8 1 mcl2k2 2112 3 0 3 3 3 0 1 0 8 0 mcl2k 2048 46229 0 46195 14 9 5 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 79842 0 79773 27 21 6 22 0 8 0 bufpl 256 7233 0 2874 273 0 273 273 0 8 0 anonpl 16 91936 0 83230 68 28 40 51 0 62 4 amapchunkpl 152 8773 0 8688 102 29 73 96 0 158 69 amappl16 192 4695 0 4222 46 21 25 36 0 8 1 amappl15 184 5 0 3 1 0 1 1 0 8 0 amappl14 176 423 0 418 1 0 1 1 0 8 0 amappl13 168 24 0 21 1 0 1 1 0 8 0 amappl12 160 401 0 399 1 0 1 1 0 8 0 amappl11 152 183 0 174 1 0 1 1 0 8 0 amappl10 144 56 0 55 2 1 1 1 0 8 0 amappl9 136 240 0 237 1 0 1 1 0 8 0 amappl8 128 518 0 501 1 0 1 1 0 8 0 amappl7 120 26 0 23 1 0 1 1 0 8 0 amappl6 112 50 0 45 1 0 1 1 0 8 0 amappl5 104 361 0 349 1 0 1 1 0 8 0 amappl4 96 656 0 629 2 1 1 2 0 8 0 amappl3 88 161 0 156 1 0 1 1 0 8 0 amappl2 80 8340 0 8290 2 0 2 2 0 8 0 amappl1 72 25936 0 25526 25 15 10 19 0 8 0 amappl 72 2321 0 2287 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 66 0 8 1 0 1 1 0 8 0 uaddrrnd 24 955 0 941 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 955 0 941 1 0 1 1 0 8 0 vmmpekpl 168 10414 0 10392 2 0 2 2 0 8 0 vmmpepl 168 102735 0 101340 104 38 66 76 0 357 0 vmsppl 264 954 0 941 2 1 1 2 0 8 0 pdppl 4096 1916 0 1882 6 1 5 6 0 8 0 pvpl 32 278905 0 266819 165 45 120 131 0 265 22 pmappl 192 954 0 941 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 466 0 57 13 0 13 13 0 8 0