syzbot


panic: free: size too small NUM <= NUM / NUM (ADDR) type shm

Status: upstream: reported on 2024/08/01 22:26
Reported-by: syzbot+2e35fcdcac9372f94bf5@syzkaller.appspotmail.com
First crash: 111d, last: 61d

Sample crash report:
panic: free: size too small 52 <= 4096 / 2 (0xffff800001590000) type shm
Stopped at      db_enter+0x25:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 360403  78869      0         0x2          0    0  syz-executor
*115102  24611      0     0x14000      0x200    1K reaper
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8302015e) at panic+0x1e5 sys/kern/subr_prf.c:198
free(ffff800001590000,1d,34) at free+0x6f5 sys/kern/kern_malloc.c:418
shmexit(fffffd806b859008) at shmexit+0x154 sys/kern/sysv_shm.c:529
uvmspace_free(fffffd806b859008) at uvmspace_free+0x7e sys/uvm/uvm_map.c:3417
reaper(ffff800029fd8f38) at reaper+0x246 sys/kern/kern_exit.c:480
end trace frame: 0x0, count: 9
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: free: size too small 52 <= 4096 / 2 (0xffff800001590000) type shm
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8302015e) at panic+0x1e5 sys/kern/subr_prf.c:198
free(ffff800001590000,1d,34) at free+0x6f5 sys/kern/kern_malloc.c:418
shmexit(fffffd806b859008) at shmexit+0x154 sys/kern/sysv_shm.c:529
uvmspace_free(fffffd806b859008) at uvmspace_free+0x7e sys/uvm/uvm_map.c:3417
reaper(ffff800029fd8f38) at reaper+0x246 sys/kern/kern_exit.c:480
end trace frame: 0x0, count: -6
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800029fe55b0
rbx               0xffff800029b7cd87
rdx                                0
rcx               0xffff800029fd8f38
rax               0xffff800029b7bff0
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xfe57748f89f82497
r11               0xb11b9eb5aed0036b
r12               0xffff800029b7cb88
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff81ae19d5    db_enter+0x25
cs                               0x8
rflags                         0x246
rsp               0xffff800029fe55a0
ss                              0x10
db_enter+0x25:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (reaper) tid=115102 pid=24611 tcnt=1 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    runpri=85, usrpri=85, slppri=4, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff800029fd96d0,0xffff800029fd8a38
    process=0xffff800029febaf0 user=0xffff800029fe0000, vmspace=0xffffffff835c0650
    estcpu=35, cpticks=8, pctcpu=21.30, user=0, sys=13611, intr=141
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 75264  245214  84147      0  3         0x2  biowait       syz-executor
 43412   43300  84147      0  3         0x2  biowait       syz-executor
 19899  271392  84147      0  3         0x2  biowait       syz-executor
 20753   29046  84147      0  3         0x2  biowait       syz-executor
 78869  360403  84147      0  7         0x2                syz-executor
 10349   73960  84147      0  3        0x82  wait          syz-executor
 76472  302495  84147      0  3        0x82  wait          syz-executor
  3712  223614      1      0  3    0x100083  ttyin         getty
 33982  329874      0      0  3     0x14280  nfsidl        nfsio
 58788  319697      0      0  3     0x14280  nfsidl        nfsio
 94585  259149      0      0  3     0x14280  nfsidl        nfsio
 75890  177207      0      0  3     0x14280  nfsidl        nfsio
 41884  464919      0      0  3     0x14280  nfsidl        nfsio
  4817  216908      0      0  3     0x14280  nfsidl        nfsio
 27383   17112      0      0  3     0x14280  nfsidl        nfsio
 58866   79471      0      0  3     0x14280  nfsidl        nfsio
 93008   52484      0      0  3     0x14280  nfsidl        nfsio
 57995   26306      0      0  3     0x14280  nfsidl        nfsio
 24932  181093      0      0  3     0x14280  nfsidl        nfsio
 42231  164022      0      0  3     0x14280  nfsidl        nfsio
 61038   88338      0      0  3     0x14280  nfsidl        nfsio
 26131  276990      0      0  3     0x14280  nfsidl        nfsio
 47528  208726      0      0  3     0x14280  nfsidl        nfsio
 36741   22265      0      0  3     0x14280  nfsidl        nfsio
 46086   60841      0      0  3     0x14280  nfsidl        nfsio
 59593  487373      0      0  3     0x14280  nfsidl        nfsio
 30963   23988      0      0  3     0x14280  nfsidl        nfsio
 82268  268895      0      0  3     0x14280  nfsidl        nfsio
 58671  162049      0      0  3     0x14200  bored         sosplice
 84147  146679  59000      0  3        0x82  wait          syz-executor
 59000  226191  96347      0  3    0x10008a  sigsusp       ksh
 96347   82031  81111      0  3        0x98  kqread        sshd-session
 81111  229234  59221      0  3        0x92  kqread        sshd-session
 59221  266687      1      0  3        0x88  kqread        sshd
 20029   47792  54333     74  3   0x1100092  bpf           pflogd
 54333  187574      1      0  3        0x80  sbwait        pflogd
 53576   66245  88192     73  3   0x1100010  biowait       syslogd
 88192  331396      1      0  3    0x100082  sbwait        syslogd
 40223  235565      1      0  3    0x100080  kqread        resolvd
 38678  453467  48306     77  3    0x100092  kqread        dhcpleased
 26859  326121  48306     77  3    0x100092  kqread        dhcpleased
 48306  259226      1      0  3        0x80  kqread        dhcpleased
 91630  167434      0      0  3     0x14200  bored         smr
 20634  294434      0      0  3     0x14200  pgzero        zerothread
 24901  376643      0      0  3     0x14200  aiodoned      aiodoned
 66835   18309      0      0  3     0x14200  syncer        update
 83255  260183      0      0  3     0x14200  cleaner       cleaner
*24611  115102      0      0  7     0x14200                reaper
 11494  502485      0      0  3     0x14200  pgdaemon      pagedaemon
 12026  520068      0      0  3     0x14200  bored         viomb
 68863  169643      0      0  3  0x40014200  acpi0         acpi0
 35888  430793      0      0  3  0x40014200                idle1
 97930  515614      0      0  3     0x14200  bored         softnet3
 13742  281829      0      0  3     0x14200  bored         softnet2
 43620   82936      0      0  3     0x14200  bored         softnet1
 12287  306930      0      0  3     0x14200  bored         softnet0
 42028  437656      0      0  3     0x14200  bored         systqmp
 52210  167350      0      0  3     0x14200  bored         systq
 94004   13193      0      0  3     0x14200  tmoslp        softclockmp
 22955  275177      0      0  3  0x40014200  tmoslp        softclock
 26396  276749      0      0  3  0x40014200                idle0
     1  103500      0      0  3     0x80082  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
CPU 1:
exclusive mutex /syzkaller/managers/multicore/kernel/sys/kern/kern_malloc.c:91 r = 0 (0xffffffff834ef458)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  mtx_enter_try+0x178
#2  mtx_enter+0x60 sys/kern/kern_lock.c:239
#3  free+0x9f sys/kern/kern_malloc.c:385
#4  shmexit+0x154 sys/kern/sysv_shm.c:529
#5  uvmspace_free+0x7e sys/uvm/uvm_map.c:3417
#6  reaper+0x246 sys/kern/kern_exit.c:480
#7  proc_trampoline+0x10
Process 75264 (syz-executor) thread 0xffff800035db3988 (245214)
exclusive rrwlock inode r = 0 (0xfffffd806434bc48)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:564
#5  vget+0x2bd sys/kern/vfs_subr.c:676
#6  ufs_ihashget+0x192 sys/ufs/ufs/ufs_ihash.c:98
#7  ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1201
#8  ufs_lookup+0x19f8 sys/ufs/ufs/ufs_lookup.c:478
#9  VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85
#10 vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566
#11 namei+0x7aa sys/kern/vfs_lookup.c:250
#12 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852
#13 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#13 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd8079915c58)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:564
#5  vfs_lookup+0x109 sys/kern/vfs_lookup.c:418
#6  namei+0x7aa sys/kern/vfs_lookup.c:250
#7  dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852
#8  syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#8  syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#9  Xsyscall+0x128
Process 43412 (syz-executor) thread 0xffff800035db2ce0 (43300)
exclusive rrwlock inode r = 0 (0xfffffd806434b5e8)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:564
#5  vget+0x2bd sys/kern/vfs_subr.c:676
#6  ufs_ihashget+0x192 sys/ufs/ufs/ufs_ihash.c:98
#7  ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1201
#8  ufs_lookup+0x19f8 sys/ufs/ufs/ufs_lookup.c:478
#9  VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85
#10 vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566
#11 namei+0x7aa sys/kern/vfs_lookup.c:250
#12 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852
#13 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#13 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd8079915f88)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:564
#5  vfs_lookup+0x109 sys/kern/vfs_lookup.c:418
#6  namei+0x7aa sys/kern/vfs_lookup.c:250
#7  dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852
#8  syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#8  syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#9  Xsyscall+0x128
Process 19899 (syz-executor) thread 0xffff80002a115c08 (271392)
exclusive rrwlock inode r = 0 (0xfffffd806434b098)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:169
#5  ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1230
#6  ffs_inode_alloc+0x283 sys/ufs/ffs/ffs_alloc.c:393
#7  ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112
#8  VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394
#9  domkdirat+0x179 sys/kern/vfs_syscalls.c:3099
#10 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#10 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#11 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd8063ae5708)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:564
#5  vfs_lookup+0x109 sys/kern/vfs_lookup.c:418
#6  namei+0x7aa sys/kern/vfs_lookup.c:250
#7  domkdirat+0x8b sys/kern/vfs_syscalls.c:3084
#8  syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#8  syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#9  Xsyscall+0x128
Process 20753 (syz-executor) thread 0xffff8000ffffc520 (29046)
exclusive rrwlock inode r = 0 (0xfffffd806434be68)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:564
#5  vget+0x2bd sys/kern/vfs_subr.c:676
#6  ufs_ihashget+0x192 sys/ufs/ufs/ufs_ihash.c:98
#7  ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1201
#8  ufs_lookup+0x19f8 sys/ufs/ufs/ufs_lookup.c:478
#9  VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85
#10 vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566
#11 namei+0x7aa sys/kern/vfs_lookup.c:250
#12 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852
#13 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#13 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806434b2b8)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:564
#5  vget+0x2bd sys/kern/vfs_subr.c:676
#6  cache_lookup+0x36e sys/kern/vfs_cache.c:222
#7  ufs_lookup+0x218 sys/ufs/ufs/ufs_lookup.c:160
#8  VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85
#9  vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566
#10 namei+0x7aa sys/kern/vfs_lookup.c:250
#11 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852
#12 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#12 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#13 Xsyscall+0x128
Process 53576 (syslogd) thread 0xffff8000ffffd450 (66245)
exclusive rrwlock inode r = 0 (0xfffffd806e1575f0)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  rw_enter+0x41b sys/kern/kern_rwlock.c:309
#2  rrw_enter+0xbe sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:564
#5  sys_fsync+0x152 sys/kern/vfs_syscalls.c:2926
#6  syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline]
#6  syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577
#7  Xsyscall+0x128
Process 24611 (reaper) thread 0xffff800029fd8f38 (115102)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83559e08)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  uvmspace_free+0x6d sys/uvm/uvm_map.c:3416
#2  reaper+0x246 sys/kern/kern_exit.c:480
#3  proc_trampoline+0x10
exclusive mutex /syzkaller/managers/multicore/kernel/sys/kern/kern_malloc.c:91 r = 0 (0xffffffff834ef458)
#0  witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5b8 sys/kern/subr_witness.c:1151
#1  mtx_enter_try+0x178
#2  mtx_enter+0x60 sys/kern/kern_lock.c:239
#3  free+0x9f sys/kern/kern_malloc.c:385
#4  shmexit+0x154 sys/kern/sysv_shm.c:529
#5  uvmspace_free+0x7e sys/uvm/uvm_map.c:3417
#6  reaper+0x246 sys/kern/kern_exit.c:480
#7  proc_trampoline+0x10
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10227  14189K   14460K 166960K     13447        0
            pcb    17     14K      16K 166960K       220        0
         rtable   232      8K       8K 166960K      2022        0
             pf    34     17K      19K 166960K       228        0
         ifaddr    42      8K       8K 166960K       295        0
        ifgroup    55      2K       2K 166960K       342        0
         sysctl     3      1K       1K 166960K         5        0
       counters    64     36K      36K 166960K       238        0
       ioctlops     0      0K       8K 166960K      1672        0
            iov     0      0K      24K 166960K        80        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1440     90K      91K 166960K      2948        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     3     20K      20K 166960K        23        0
         VM map     2      1K       1K 166960K         2        0
            sem    12      0K       0K 166960K       129        0
        dirhash    12      2K       2K 166960K        36        0
           ACPI  1690    195K     286K 166960K     12418        0
      file desc    10     33K      89K 166960K      2060        0
          sigio     0      0K       0K 166960K        26        0
           proc    72     91K     128K 166960K      2083        0
        subproc   104      6K       7K 166960K       767        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     0      0K       0K 166960K       434        0
       in_multi    96      7K       7K 166960K       695        0
    ether_multi     1      0K       0K 166960K         6        0
            mrt     1      0K       0K 166960K         2        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys   247   1102K    1102K 166960K       247        0
           exec     0      0K       1K 166960K      1332        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   206     72K      93K 166960K     18265        0
       UVM aobj    99      3K       3K 166960K       103        0
     pinsyscall    35     70K     102K 166960K      4487        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K        51        0
            NDP    12      0K       2K 166960K       220        0
           temp    75   6824K    6900K 166960K     98247        0
         kqueue    13     20K      28K 166960K       214        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       24    0        0     1     0     1     1     0     8    0
rtpcb      120      329    0      326     2     1     1     2     0     8    0
rtentry    112      716    0      610     5     1     4     4     0     8    0
unpcb      144      880    0      863    10     9     1     4     0     8    0
syncache   336       10    0       10     4     4     0     1     0     8    0
tcpqe       32        6    0        6     2     2     0     1     0     8    0
tcpcb      808      367    0      363    10     9     1     4     0     8    0
arp        120      127    0      107     1     0     1     1     0     8    0
ipq         40        1    0        1     1     1     0     1     0     8    0
ipqe        40        3    0        3     1     1     0     1     0     8    0
inpcb      336     1804    0     1793    28    25     3    13     0     8    0
nd6        136      194    0      166     1     0     1     1     0     8    0
pkpcb       40        7    0        7     3     3     0     1     0     8    0
kcovpl      48       59    0       51     1     0     1     1     0     8    0
ppxss      1168      33    0       33     3     3     0     1     0     8    0
pffrag     232        7    0        5     2     1     1     1     0   482    0
pffrnode    88        7    0        5     2     1     1     1     0     8    0
pffrent     40       10    0        8     2     1     1     1     0     8    0
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfstitem    24      184    0      157     1     0     1     1     0     8    0
pfstkey    128      184    0      157     2     0     2     2     0     8    0
pfstate    376      184    0      157     6     1     5     5     0     8    0
pfrule     1344      28    0       21     2     1     1     2     0     8    0
art_heap8  4096       3    0        0     3     0     3     3     0     8    0
art_heap4  256     2847    0     2410    37     9    28    31     0     8    0
art_table   32     2850    0     2410     4     0     4     4     0     8    0
art_node    16      712    0      619     1     0     1     1     0     8    0
sysvmsgpl   40       16    0        7     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112      125    0      115     1     0     1     1     0     8    0
shmpl      112      100    0        4     3     0     3     3     0     8    0
dirhash    1024      33    0       16     3     0     3     3     0     8    0
dino2pl    256     3781    0     2173   102     0   102   102     0     8    0
ffsino     272     3781    0     2173   109     0   109   109     0     8    0
nchpl      144     5763    0     5097    65    39    26    65     0     8    0
uvmvnodes   80     5100    0        0   105     0   105   105     0     8    0
vnodes     216     5100    0        0   284     0   284   284     0     8    0
namei      1024   25105    0    25104     6     5     1     2     0     8    0
percpumem   16      133    0       87     1     0     1     1     0     8    0
kstatmem   264      198    0      174     2     0     2     2     0     8    0
scsiplug    72        1    0        1     1     1     0     1     0     8    0
scxspl     216    41273    0    41268    13    12     1     8     1     8    0
plimitpl   152      339    0      322     1     0     1     1     0     8    0
sigapl     424     2285    0     2219    10     1     9     9     0     8    0
futexpl     64    18134    0    18134     5     4     1     1     0     8    1
knotepl    120      692    0        0    17     0    17    17     0     8    0
kqueuepl   216      353    0      344     1     0     1     1     0     8    0
pipepl     320      355    0      328     3     0     3     3     0     8    0
fdescpl    496     2245    0     2221     7     2     5     5     0     8    1
filepl     152    12335    0    12095    38    27    11    21     0     8    1
lockfpl    104      565    0      563     2     1     1     2     0     8    0
lockfspl    48      245    0      243     1     0     1     1     0     8    0
sessionpl  144       80    0       71     1     0     1     1     0     8    0
pgrppl      48      150    0      133     1     0     1     1     0     8    0
ucredpl    104     2133    0     2119     1     0     1     1     0     8    0
zombiepl   144     2689    0     2685     2     1     1     1     0     8    0
processpl  1160    2285    0     2219     7     1     6     6     0     8    0
procpl     648     4411    0     4334     8     0     8     8     0     8    0
srpgc       96       10    0       10     4     4     0     1     0     8    0
sosppl     168       15    0       15     5     5     0     1     0     8    0
sockpl     664     3034    0     3004    34    29     5    16     0     8    1
mcl64k     65536      4    0        0     1     0     1     1     0     8    0
mcl16k     16384      5    0        0     1     0     1     1     0     8    0
mcl12k     12288      1    0        0     1     0     1     1     0     8    0
mcl9k      9216       2    0        0     1     0     1     1     0     8    0
mcl8k      8192       7    0        0     1     0     1     1     0     8    0
mcl4k      4096       6    0        0     1     0     1     1     0     8    0
mcl2k      2048     255    0        0    29     1    28    29     0     8    0
mtagpl      96       14    0        0     1     0     1     1     0     8    0
mbufpl     256      461    0        0    25     0    25    25     0     8    0
bufpl      280    11461    0     5310   456     4   452   456     0     8    0
anonpl      24   374642    0   371395   130    78    52    80     0   185    8
amapchunkpl 152   59168    0    58765    79    46    33    42     0   158    7
amappl16   200     7412    0     7391    46    44     2    27     0     8    0
amappl15   192       10    0       10     1     1     0     1     0     8    0
amappl14   184      233    0      221     1     0     1     1     0     8    0
amappl13   176        6    0        6     1     1     0     1     0     8    0
amappl12   168     3710    0     3683     3     1     2     2     0     8    0
amappl11   160       87    0       73     1     0     1     1     0     8    0
amappl10   152       22    0       22     1     1     0     1     0     8    0
amappl9    144      171    0      170     1     0     1     1     0     8    0
amappl8    136       21    0       19     1     0     1     1     0     8    0
amappl7    128      217    0      204     1     0     1     1     0     8    0
amappl6    120      700    0      699     1     0     1     1     0     8    0
amappl5    112      360    0      348     1     0     1     1     0     8    0
amappl4    104      488    0      469     1     0     1     1     0     8    0
amappl3     96    11544    0    11450     4     0     4     4     0     8    0
amappl2     88     1452    0     1383     2     0     2     2     0     8    0
amappl1     80    17349    0    16796    16     2    14    14     0     8    0
amappl      88    17364    0    17220     5     0     5     5     0    92    0
dma16384   16384      2    0        2     2     2     0     1     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      254    0      254     2     2     0     1     0     8    0
dma64       64        7    0        7     2     2     0     1     0     8    0
dma32       32        7    0        7     1     1     0     1     0     8    0
dma16       16       20    0       19     1     0     1     1     0     8    0
aobjpl      72      102    0        4     2     0     2     2     0     8    0
uaddrrnd    24     2245    0     2218     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     2245    0     2218     1     0     1     1     0     8    0
vmmpekpl   168    19075    0    19012     4     0     4     4     0     8    0
vmmpepl    168   143870    0   142216   123    38    85   104     0   357    0
vmsppl     440     2244    0     2218     6     2     4     5     0     8    0
rwobjpl     56    47646    0    41547    88     1    87    87     0     8    0
pdppl      4096    4497    0     4436   185   114    71    83     0     8   10
pvpl        32    44425    0        0   358     0   358   358     0   265    0
pmappl     248     2244    0     2218     3     0     3     3     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112      553    0      174    12     0    12    12     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x27:        addq    $0x8,%rsp
x86_ipi_db(ffffffff83465ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393
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(ffffffff83559c00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline]
__mp_lock(ffffffff83559c00) at __mp_lock+0x192 sys/kern/kern_lock.c:144
intr_handler(ffff80002a1278f0,ffff800000079f80) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553
Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f
__mp_lock(ffffffff83559c00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline]
__mp_lock(ffffffff83559c00) at __mp_lock+0x192 sys/kern/kern_lock.c:144
syscall(ffff80002a127ac0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline]
syscall(ffff80002a127ac0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7b241630a3c0, count: 6
ddb{0}> trace
x86_ipi_db(ffffffff83465ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393
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(ffffffff83559c00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline]
__mp_lock(ffffffff83559c00) at __mp_lock+0x192 sys/kern/kern_lock.c:144
intr_handler(ffff80002a1278f0,ffff800000079f80) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553
Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f
__mp_lock(ffffffff83559c00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline]
__mp_lock(ffffffff83559c00) at __mp_lock+0x192 sys/kern/kern_lock.c:144
syscall(ffff80002a127ac0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline]
syscall(ffff80002a127ac0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7b241630a3c0, count: -9
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:437
panic(ffffffff8302015e) at panic+0x1e5 sys/kern/subr_prf.c:198
free(ffff800001590000,1d,34) at free+0x6f5 sys/kern/kern_malloc.c:418
shmexit(fffffd806b859008) at shmexit+0x154 sys/kern/sysv_shm.c:529
uvmspace_free(fffffd806b859008) at uvmspace_free+0x7e sys/uvm/uvm_map.c:3417
reaper(ffff800029fd8f38) at reaper+0x246 sys/kern/kern_exit.c:480
end trace frame: 0x0, count: 9
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8302015e) at panic+0x1e5 sys/kern/subr_prf.c:198
free(ffff800001590000,1d,34) at free+0x6f5 sys/kern/kern_malloc.c:418
shmexit(fffffd806b859008) at shmexit+0x154 sys/kern/sysv_shm.c:529
uvmspace_free(fffffd806b859008) at uvmspace_free+0x7e sys/uvm/uvm_map.c:3417
reaper(ffff800029fd8f38) at reaper+0x246 sys/kern/kern_exit.c:480
end trace frame: 0x0, count: -6

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/21 16:56 openbsd e95f2867f8e8 6f888b75 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: free: size too small NUM <= NUM / NUM (ADDR) type shm
2024/08/01 22:26 openbsd 0a2182255779 1e9c4cf3 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main panic: free: size too small NUM <= NUM / NUM (ADDR) type shm
* Struck through repros no longer work on HEAD.