KASAN: invalid memory access in witness_checkorder

Status: upstream: reported on 2026/07/13 09:01
Reported-by: syzbot+a1a3c17d15d5df2f9ce8@syzkaller.appspotmail.com
First crash: 134d, last: 15d

Sample crash report:
login: KASAN: invalid read of 4 bytes at 0xffff800029a7d4b0 from pc 0xffffffff82be5156
KASAN: first bad byte at 0xffff800029a7d4b0 (+0); shadow 0xfd: pool use-after-free (or unallocated item)
KASAN: 0xffff800029a7d4b0 is 312 bytes inside the 1240-byte item [0xffff800029a7d378..0xffff800029a7d850) in pool 'processpl'
KASAN: allocated at:
#0  pool_get+0x7c7 sys/kern/subr_pool.c:834
#1  process_new+0x47 sys/kern/kern_fork.c:221
#2  fork1+0x589 sys/kern/kern_fork.c:407
#3  syscall+0x118e mi_syscall sys/sys/syscall_mi.h:176 [inline]
#3  syscall+0x118e sys/arch/amd64/amd64/trap.c:791
#4  Xsyscall+0x128
KASAN: freed at:
#0  pool_put+0x7d sys/kern/subr_pool.c:1019
#1  process_zap+0x404 sys/kern/kern_exit.c:896
#2  dowait6+0x1228 sys/kern/kern_exit.c:578
#3  sys_wait4+0x2a1 sys/kern/kern_exit.c:719
#4  syscall+0x118e mi_syscall sys/sys/syscall_mi.h:176 [inline]
#4  syscall+0x118e sys/arch/amd64/amd64/trap.c:791
#5  Xsyscall+0x128
KASAN: pc: witness_checkorder+0x106
KASAN: call trace:
#0  __asan_load4_noabort+0x82 kasan_shadow_check sys/kern/subr_kasan.c:1014 [inline]
#0  __asan_load4_noabort+0x82 sys/kern/subr_kasan.c:1098
#1  witness_checkorder+0x106 sys/kern/subr_witness.c:779
#2  mtx_enter+0x128 sys/kern/kern_lock.c:406
#3  knote_processexit+0x46 sys/kern/kern_event.c:2239
#4  reaper+0x3bd sys/kern/kern_exit.c:515
#5  proc_trampoline+0x10
KASAN: shadow of 0xffff800029a7d380..0xffff800029a7d600 (1 cell = 8 bytes):
 0xffff800029a7d380: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
 0xffff800029a7d400: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
>0xffff800029a7d480: fd fd fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd
 0xffff800029a7d500: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
 0xffff800029a7d580: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
KASAN: legend: 00 valid; 01..07 partial; fb malloc redzone; fc malloc freed; fd pool freed; fe kmem; fa global; f1..f4/f8 stack/scope
panic: Caught invalid memory access at ffff800029a7d4b0 size 4 op 0
Stopped at      db_enter+0x17:  popq    %rbp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 225506  43913      0         0x2          0    1  syz-executor
*148210  49491      0     0x14000      0x200    0K reaper
db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457
panic(ffffffff847b3fb2) at panic+0x296 sys/kern/subr_prf.c:198
__asan_load4_noabort(ffff800029a7d4b0) at __asan_load4_noabort+0xa3
witness_checkorder(ffff800029a7d490,9,0) at witness_checkorder+0x106 sys/kern/subr_witness.c:779
mtx_enter(ffff800029a7d480) at mtx_enter+0x128 sys/kern/kern_lock.c:406
knote_processexit(ffff800029a7d378) at knote_processexit+0x46 sys/kern/kern_event.c:2239
reaper(ffff8000298454c8) at reaper+0x3bd sys/kern/kern_exit.c:515
end trace frame: 0x0, count: 8
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{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
*cpu0: Caught invalid memory access at ffff800029a7d4b0 size 4 op 0
ddb{0}> show kasan
KASAN: invalid read of 4 bytes at 0xffff800029a7d4b0 from pc 0xffffffff82be5156
KASAN: first bad byte at 0xffff800029a7d4b0 (+0); shadow 0xfd: pool use-after-free (or unallocated item)
KASAN: 0xffff800029a7d4b0 is 312 bytes inside the 1240-byte item [0xffff800029a7d378..0xffff800029a7d850) in pool 'processpl'
KASAN: allocated at:
#0  pool_get+0x7c7 sys/kern/subr_pool.c:834
#1  process_new+0x47 sys/kern/kern_fork.c:221
#2  fork1+0x589 sys/kern/kern_fork.c:407
#3  syscall+0x118e mi_syscall sys/sys/syscall_mi.h:176 [inline]
#3  syscall+0x118e sys/arch/amd64/amd64/trap.c:791
#4  Xsyscall+0x128
KASAN: freed at:
#0  pool_put+0x7d sys/kern/subr_pool.c:1019
#1  process_zap+0x404 sys/kern/kern_exit.c:896
#2  dowait6+0x1228 sys/kern/kern_exit.c:578
#3  sys_wait4+0x2a1 sys/kern/kern_exit.c:719
#4  syscall+0x118e mi_syscall sys/sys/syscall_mi.h:176 [inline]
#4  syscall+0x118e sys/arch/amd64/amd64/trap.c:791
#5  Xsyscall+0x128
KASAN: pc: witness_checkorder+0x106
KASAN: call trace:
#0  __asan_load4_noabort+0x82 kasan_shadow_check sys/kern/subr_kasan.c:1014 [inline]
#0  __asan_load4_noabort+0x82 sys/kern/subr_kasan.c:1098
#1  witness_checkorder+0x106 sys/kern/subr_witness.c:779
#2  mtx_enter+0x128 sys/kern/kern_lock.c:406
#3  knote_processexit+0x46 sys/kern/kern_event.c:2239
#4  reaper+0x3bd sys/kern/kern_exit.c:515
#5  proc_trampoline+0x10
KASAN: shadow of 0xffff800029a7d380..0xffff800029a7d600 (1 cell = 8 bytes):
 0xffff800029a7d380: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
 0xffff800029a7d400: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
>0xffff800029a7d480: fd fd fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd
 0xffff800029a7d500: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
 0xffff800029a7d580: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
KASAN: legend: 00 valid; 01..07 partial; fb malloc redzone; fc malloc freed; fd pool freed; fe kmem; fa global; f1..f4/f8 stack/scope
ddb{0}> trace
db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457
panic(ffffffff847b3fb2) at panic+0x296 sys/kern/subr_prf.c:198
__asan_load4_noabort(ffff800029a7d4b0) at __asan_load4_noabort+0xa3
witness_checkorder(ffff800029a7d490,9,0) at witness_checkorder+0x106 sys/kern/subr_witness.c:779
mtx_enter(ffff800029a7d480) at mtx_enter+0x128 sys/kern/kern_lock.c:406
knote_processexit(ffff800029a7d378) at knote_processexit+0x46 sys/kern/kern_event.c:2239
reaper(ffff8000298454c8) at reaper+0x3bd sys/kern/kern_exit.c:515
end trace frame: 0x0, count: -7
ddb{0}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800029843150
rbx               0xdfff908000000004
rdx                                0
rcx               0xffffffff854efff0    cpu_info_full_primary+0x1ff0
rax                                0
r8                        0xffffffff
r9                                 0
r10               0xffff800029842ed8
r11               0xffffffff81a373d0    x86_bus_space_io_read_1
r12               0xffffffff854f0e0f    cpu_info_full_primary+0x2e0f
r13               0xffffffff854f0c10    cpu_info_full_primary+0x2c10
r14               0x1ffff00005308634
r15                              0x1
rip               0xffffffff83ac31e7    db_enter+0x17
cs                               0x8
rflags                         0x246
rsp               0xffff800029843150
ss                              0x10
db_enter+0x17:  popq    %rbp
ddb{0}> show proc
PROC (reaper) tid=148210 pid=49491 tcnt=1 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    runpri=32, usrpri=55, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff800045fff9f0,0xffff800029844fa8
    process=0xffff8000297b3a20 user=0xffff800029838000, vmspace=0xffffffff85632080
    estcpu=5, cpticks=49, pctcpu=0.6, user=0, sys=0, intr=0
ddb{0}> ps
   PID     TID   PPID   UID  S      PRLAGS     PFLAGS WAIT      COMMAND
 52379  135813  32965     0  3         0x2          0 clonelk   ifconfig
 32965   13745  60041     0  3    0x100002       0x88 sigsusp   sh
 85836  442136  71322     0  2           0          0           syz-executor
 85836  271591  71322     0  3           0  0x4000080 sbwait    syz-executor
 85836  175450  71322     0  2           0  0x4000000           syz-executor
 60041  128211  27733     0  3         0x2       0x80 wait      syz-executor
  5168  123200  27733     0  3         0x2       0x80 piperd    syz-executor
 43913  225506  27733     0  7         0x2          0           syz-executor
 89840  274467      0     0  3     0x14000      0x200 acct      acct
 57921   34333  27733     0  3         0x2       0x80 piperd    syz-executor
 71322  309625  27733     0  2         0x2      0xc80           syz-executor
 68479   64651      1     0  2    0x100003       0x80           getty
 40279  162109      0     0  3     0x14000      0x280 nfsidl    nfsio
 99250    5339      0     0  3     0x14000      0x280 nfsidl    nfsio
 78098  138674      0     0  3     0x14000      0x280 nfsidl    nfsio
 85899  232152      0     0  3     0x14000      0x280 nfsidl    nfsio
 27947  382196      0     0  3     0x14000      0x280 nfsidl    nfsio
 47038   81625      0     0  3     0x14000      0x280 nfsidl    nfsio
 33977   19438      0     0  3     0x14000      0x280 nfsidl    nfsio
 64589  282664      0     0  3     0x14000      0x280 nfsidl    nfsio
 72073  256221      0     0  3     0x14000      0x280 nfsidl    nfsio
 12044  328870      0     0  3     0x14000      0x280 nfsidl    nfsio
  2502  232513      0     0  3     0x14000      0x280 nfsidl    nfsio
 24399  356645      0     0  3     0x14000      0x280 nfsidl    nfsio
 26259  237938      0     0  3     0x14000      0x280 nfsidl    nfsio
 95496  508933      0     0  3     0x14000      0x280 nfsidl    nfsio
 92094  468364      0     0  3     0x14000      0x280 nfsidl    nfsio
 10025  512203      0     0  3     0x14000      0x280 nfsidl    nfsio
 38802   68438      0     0  3     0x14000      0x280 nfsidl    nfsio
 74226  137833      0     0  3     0x14000      0x280 nfsidl    nfsio
 92451  171479      0     0  3     0x14000      0x280 nfsidl    nfsio
  3741  169358      0     0  3     0x14000      0x280 nfsidl    nfsio
 18143   81285  20981     0  3    0x100002       0x80 sbwait    arp
 20981  243801  33598     0  3    0x100002       0x88 sigsusp   sh
 33598  486028  27733     0  3         0x2       0x80 wait      syz-executor
 27733  429932  58725     0  3         0x2       0x80 wait      syz-executor
 58725  322505  39156     0  3    0x100002       0x88 sigsusp   ksh
 39156  338131  81333     0  3        0x10       0x88 kqread    sshd-session
 81333  324105  11192     0  3        0x12       0x80 kqread    sshd-session
 11192  213123      1     0  3           0       0x88 kqread    sshd
 45343  311108  48468    74  3   0x1100012       0x80 bpf       pflogd
 48468  357633      1     0  3           0       0x80 sbwait    pflogd
  8012  159945  25891    73  2   0x1100010       0x80           syslogd
 25891  164277      1     0  3    0x100002       0x80 sbwait    syslogd-parent
 38381  101980      1     0  3    0x100000       0x80 kqread    resolvd
 81737  236251  11338    77  3    0x100012       0x80 kqread    dhcpleased
 14355  187743  11338    77  3    0x100012       0x80 kqread    dhcpleased
 11338   38226      1     0  3           0       0x80 kqread    dhcpleased
 53046   94537      0     0  2     0x14000      0x200           smr
  2774  452865      0     0  3     0x14000      0x200 pgzero    zerothread
 71402  338605      0     0  3     0x14000      0x200 aiodoned  aiodoned
 72032  375278      0     0  2     0x14000      0xe00           update
 21077   73041      0     0  3     0x14000      0x200 cleaner   cleaner
*49491  148210      0     0  7     0x14000      0x200           reaper
 68675  203549      0     0  3     0x14000      0x200 pgdaemon  pagedaemon
 20800  165061      0     0  3     0x14000      0x200 bored     viomb
 26209  409611      0     0  3     0x14000 0x40000200 acpi0     acpi0
 24612  174845      0     0  3     0x14000 0x40000200           idle1
 41975  377095      0     0  3     0x14000      0x200 bored     softnet1
 53283  236374      0     0  2     0x14000      0x200           softnet0
 55807  119581      0     0  3     0x14000      0x200 bored     systqmp
  7591  151261      0     0  3     0x14000      0x200 bored     systq
 58705  433054      0     0  2     0x14000      0x200           softclockmp
  5517  204374      0     0  3     0x14000 0x40000200 tmoslp    softclock
 71181  176033      0     0  3     0x14000 0x40000200           idle0
     1  270796      0     0  3         0x2       0x80 wait      init
     0       0     -1     0  3     0x10000      0x200 scheduler swapper
ddb{0}> show all locks
Process 43913 (syz-executor) thread 0xffff800029844538 (225506)
exclusive rrwlock inode r = 0 (0xffff800001d16b08)
#0  witness_lock+0x534 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x534 sys/kern/subr_witness.c:1160
#1  rw_do_enter_write+0x4e4 sys/kern/kern_rwlock.c:320
#2  rrw_enter+0xf5 sys/kern/kern_rwlock.c:621
#3  VOP_LOCK+0x186 sys/kern/vfs_vops.c:527
#4  vn_lock+0xba sys/kern/vfs_vnops.c:576
#5  vget+0x37a sys/kern/vfs_subr.c:699
#6  ufs_ihashget+0x299 sys/ufs/ufs/ufs_ihash.c:100
#7  ffs_vget+0x11c sys/ufs/ffs/ffs_vfsops.c:1203
#8  ufs_lookup+0x174e sys/ufs/ufs/ufs_lookup.c:478
#9  VOP_LOOKUP+0xea sys/kern/vfs_vops.c:85
#10 vfs_lookup+0xe55 sys/kern/vfs_lookup.c:585
#11 namei+0xcba sys/kern/vfs_lookup.c:250
#12 dounlinkat+0x15c sys/kern/vfs_syscalls.c:1807
#13 syscall+0x118e mi_syscall sys/sys/syscall_mi.h:176 [inline]
#13 syscall+0x118e sys/arch/amd64/amd64/trap.c:791
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xffff800001d16d58)
#0  witness_lock+0x534 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x534 sys/kern/subr_witness.c:1160
#1  rw_do_enter_write+0x4e4 sys/kern/kern_rwlock.c:320
#2  rrw_enter+0xf5 sys/kern/kern_rwlock.c:621
#3  VOP_LOCK+0x186 sys/kern/vfs_vops.c:527
#4  vn_lock+0xba sys/kern/vfs_vnops.c:576
#5  vget+0x37a sys/kern/vfs_subr.c:699
#6  cache_lookup+0x619 sys/kern/vfs_cache.c:222
#7  ufs_lookup+0x39d sys/ufs/ufs/ufs_lookup.c:160
#8  VOP_LOOKUP+0xea sys/kern/vfs_vops.c:85
#9  vfs_lookup+0xe55 sys/kern/vfs_lookup.c:585
#10 namei+0xcba sys/kern/vfs_lookup.c:250
#11 dounlinkat+0x15c sys/kern/vfs_syscalls.c:1807
#12 syscall+0x118e mi_syscall sys/sys/syscall_mi.h:176 [inline]
#12 syscall+0x118e sys/arch/amd64/amd64/trap.c:791
#13 Xsyscall+0x128
Process 49491 (reaper) thread 0xffff8000298454c8 (148210)
exclusive rwlock kqpsl r = 0 (0xffffffff8523c098)
#0  witness_lock+0x534 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x534 sys/kern/subr_witness.c:1160
#1  rw_do_enter_write+0x4e4 sys/kern/kern_rwlock.c:320
#2  knote_processexit+0x2e sys/kern/kern_event.c:2238
#3  reaper+0x3bd sys/kern/kern_exit.c:515
#4  proc_trampoline+0x10
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff855aa2c0)
#0  witness_lock+0x534 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x534 sys/kern/subr_witness.c:1160
#1  __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1
#2  mi_switch+0x73e sys/kern/sched_bsd.c:443
#3  sleep_finish+0x3dc sys/kern/kern_synch.c:369
#4  rw_do_enter_write+0x3a6 sys/kern/kern_rwlock.c:298
#5  knote_processexit+0x2e sys/kern/kern_event.c:2238
#6  reaper+0x3bd sys/kern/kern_exit.c:515
#7  proc_trampoline+0x10
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 11066  12270K   12395K 166960K     12364        0
            pcb    18     24K      24K 166960K        32        0
         rtable   239     20K      29K 166960K      1433        0
             pf    35     24K      26K 166960K       124        0
         ifaddr    41     12K      15K 166960K       197        0
        ifgroup    55      2K       2K 166960K       207        0
         sysctl     3      1K      13K 166960K        11        0
       counters    70     42K      44K 166960K       148        0
       ioctlops     6      5K     197K 166960K      1544        0
            iov     2      0K      16K 166960K         5        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1316     85K      90K 166960K      1956        0
      UFS quota     1     36K      36K 166960K         1        0
      UFS mount     5     44K      44K 166960K         5        0
            shm     2      2K       6K 166960K         3        0
         VM map     2      1K       1K 166960K         2        0
            sem    10      0K       1K 166960K        12        0
        dirhash    12      2K       2K 166960K        12        0
           ACPI  1692    195K     405K 166960K     12472        0
      file desc    17     56K     121K 166960K       843        0
          sigio     0      0K       0K 166960K         2        0
           proc   140    147K     195K 166960K      1613        0
        subproc    81     10K      14K 166960K       414        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     20K      20K 166960K         1        0
    ip_moptions     0      0K       0K 166960K         2        0
       in_multi    89      6K       8K 166960K       496        0
    ether_multi     1      0K       0K 166960K         1        0
            mrt     1      0K       0K 166960K        16        0
    ISOFS mount     1     36K      36K 166960K         1        0
  MSDOSFS mount     1     20K      20K 166960K         1        0
           ttys    67    465K     465K 166960K        67        0
           exec    36      9K      18K 166960K       872        0
   fusefs mount     1     36K      36K 166960K         1        0
     pfkey data     0      0K       0K 166960K         1        0
            tdb     3      1K       1K 166960K         3        0
        VM swap    14    124K     124K 166960K        15        0
       UVM amap   574    351K     387K 166960K      7472        0
       UVM aobj     8      4K       4K 166960K        12        0
     pinsyscall   170    295K     391K 166960K      2940        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     1      0K       0K 166960K         9        0
            NDP    20      1K       1K 166960K       139        0
           temp   323   9358K    9474K 166960K      8103        0
         kqueue    15     45K      84K 166960K        53        0
      SYN cache     2     16K      16K 166960K         2        0
ddb{0}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache    128       28    0        0     1     0     1     1     0     8    0
rtpcb      120      106    0      102     1     0     1     1     0     8    0
rtentry    176      512    0      421     5     0     5     5     0     8    0
unpcb      144      166    0      145     1     0     1     1     0     8    0
syncache   336        4    0        4     2     2     0     1     0     8    0
tcpcb      736       14    0       10     1     0     1     1     0     8    0
arp        136       91    0       76     1     0     1     1     0     8    0
inpcb      328      334    0      326     5     1     4     4     0     8    3
nd6        152      134    0      116     1     0     1     1     0     8    0
pkpcb       40        3    0        3     1     1     0     1     0     8    0
kcovpl      48       46    0       38     1     0     1     1     0     8    0
ppxss      1192       2    0        2     1     0     1     1     0     8    1
pffrent     40        2    0        2     1     0     1     1     0     8    1
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       40    0        6     1     0     1     1     0     8    0
pfstkey    128       40    0        6     2     0     2     2     0     8    0
pfstate    448       40    0        6     4     0     4     4     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256     2053    0     1679    31     4    27    27     0     8    0
art_table   40     2054    0     1679     6     1     5     5     0     8    0
art_node    32      512    0      429     1     0     1     1     0     8    0
semapl      72        9    0        1     1     0     1     1     0     8    0
shmpl      120        9    0        4     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     2000    0      444    98     0    98    98     0     8    0
ffsino     296     2000    0      444   120     0   120   120     0     8    0
nchpl      144     2413    0      567    69     0    69    69     0     8    0
vnodes     216     2499    0        0   139     0   139   139     0     8    0
namei      1024   12777    0    12777     2     1     1     2     0     8    1
percpumem   16       90    0       40     1     0     1     1     0     8    0
kstatmem   264      105    0       80     2     0     2     2     0     8    0
scxspl     216     8333    0     8333     4     3     1     2     1     8    1
plimitpl   152      172    0      155     1     0     1     1     0     8    0
sigapl     424     1093    0     1027     9     0     9     9     0     8    1
knotepl    120      279    0        0     9     0     9     9     0     8    0
kqueuepl   224       86    0       75     1     0     1     1     0     8    0
pipepl     344      263    0      236     4     0     4     4     0     8    0
fdescpl    528     1056    0     1027     3     0     3     3     0     8    0
filepl     160     4209    0     3992    12     0    12    12     0     8    1
lockfpl    104       56    0       52     1     0     1     1     0     8    0
lockfspl    48       25    0       21     1     0     1     1     0     8    0
sessionpl  144       72    0       63     1     0     1     1     0     8    0
pgrppl      48      118    0      101     1     0     1     1     0     8    0
ucredpl    104      813    0      800     1     0     1     1     0     8    0
zombiepl   144     1029    0     1027     1     0     1     1     0     8    0
processpl  1240    1093    0     1027     6     0     6     6     0     8    0
procpl     664     1473    0     1405     7     0     7     7     0     8    0
sockpl     752      612    0      579     7     0     7     7     0     8    3
mcl8k      8192       3    0        0     1     0     1     1     0     8    0
mcl4k      4096     119    0        0    15     0    15    15     0     8    0
mcl2k      2048      26    0        0     4     0     4     4     0     8    0
mextrefs    64       26    0        0     1     0     1     1     0     8    0
mtagpl      96        2    0        0     1     0     1     1     0     8    0
mbufpl     256     1187    0        0    74     0    74    74     0     8    0
bufpl      272     2682    0       92   173     0   173   173     0     8    0
anonpl      32     5375    0        0    44     0    44    44     0   222    0
amapchunkpl 152   21024    0    20701    25     1    24    25     0   158    5
amappl16   200     2131    0     2116     6     4     2     5     0     8    0
amappl15   192        5    0        5     1     1     0     1     0     8    0
amappl14   184      853    0      850     1     0     1     1     0     8    0
amappl13   176      191    0      178     1     0     1     1     0     8    0
amappl12   168     1447    0     1420     2     0     2     2     0     8    0
amappl11   160        6    0        6     1     1     0     1     0     8    0
amappl10   152       71    0       59     1     0     1     1     0     8    0
amappl9    144      283    0      283     2     2     0     1     0     8    0
amappl8    136      241    0      237     1     0     1     1     0     8    0
amappl7    128      217    0      203     1     0     1     1     0     8    0
amappl6    120      339    0      335     1     0     1     1     0     8    0
amappl5    112      292    0      282     1     0     1     1     0     8    0
amappl4    104      415    0      396     1     0     1     1     0     8    0
amappl3     96     4223    0     4138     4     1     3     4     0     8    0
amappl2     88      615    0      553     2     0     2     2     0     8    0
amappl1     80    15711    0    15104    16     1    15    16     0     8    0
amappl      88     6150    0     6033     4     0     4     4     0    92    0
uvmvnodes   80      104    0        0     3     0     3     3     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      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       11    0        4     1     0     1     1     0     8    0
uaddrrnd    24     1056    0     1027     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1056    0     1027     1     0     1     1     0     8    0
vmmpekpl   168    10305    0    10266     3     0     3     3     0     8    0
vmmpepl    168    76861    0    75180    89     3    86    89     0   357    2
vmsppl     488     1055    0     1027     5     0     5     5     0     8    0
rwobjpl     80    24372    0    23357    26     2    24    25     0     8    0
pdppl      4096    2120    0     2054   136    62    74    86     0     8    8
pvpl        32    11173    0        0    91     0    91    91     0   265    0
pmappl     256     1055    0     1027     3     0     3     3     0     8    0
extentpl    40       46    0       28     1     0     1     1     0     8    0
phpool     120      553    0       72    15     0    15    15     0     8    0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457
panic(ffffffff847b3fb2) at panic+0x296 sys/kern/subr_prf.c:198
__asan_load4_noabort(ffff800029a7d4b0) at __asan_load4_noabort+0xa3
witness_checkorder(ffff800029a7d490,9,0) at witness_checkorder+0x106 sys/kern/subr_witness.c:779
mtx_enter(ffff800029a7d480) at mtx_enter+0x128 sys/kern/kern_lock.c:406
knote_processexit(ffff800029a7d378) at knote_processexit+0x46 sys/kern/kern_event.c:2239
reaper(ffff8000298454c8) at reaper+0x3bd sys/kern/kern_exit.c:515
end trace frame: 0x0, count: -7
ddb{0}> machine ddbcpu 1
Stopped at      x86_ipi_db+0x1f:        addq    $0x8,%rsp
x86_ipi_db(ffff800028f93ff0) at x86_ipi_db+0x1f sys/arch/amd64/amd64/db_interface.c:412
x86_ipi_handler() at x86_ipi_handler+0xfd sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
__mp_lock(ffffffff855a9ac0) at __mp_lock+0x272 __mp_lock_spin sys/kern/kern_lock.c:142 [inline]
__mp_lock(ffffffff855a9ac0) at __mp_lock+0x272 sys/kern/kern_lock.c:173
__mp_acquire_count(ffffffff855a9ac0,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1
mi_switch() at mi_switch+0x73e sys/kern/sched_bsd.c:443
sleep_finish(ffffffffffffffff,1) at sleep_finish+0x3dc sys/kern/kern_synch.c:369
biowait(ffff800001b09780) at biowait+0xe6 sys/kern/vfs_bio.c:1110
bwrite(ffff800001b09780) at bwrite+0x428 sys/kern/vfs_bio.c:625
ufs_dirremove(ffff800001d452b0,ffff800001d16a68,800c,0) at ufs_dirremove+0x4c0 sys/ufs/ufs/ufs_lookup.c:919
ufs_remove(ffff800029a61d80) at ufs_remove+0x2a3 sys/ufs/ufs/ufs_vnops.c:594
VOP_REMOVE(ffff800001d452b0,ffff800001d451d8,ffff800029a61f00) at VOP_REMOVE+0x2ee sys/kern/vfs_vops.c:331
dounlinkat(ffff800029844538,ffffff9c,7261466a7350,0) at dounlinkat+0x39d sys/kern/vfs_syscalls.c:-1
syscall(ffff800029a621a0) at syscall+0x118e mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff800029a621a0) at syscall+0x118e sys/arch/amd64/amd64/trap.c:791
end trace frame: 0xffff800029a62220, count: 0
ddb{1}> trace
x86_ipi_db(ffff800028f93ff0) at x86_ipi_db+0x1f sys/arch/amd64/amd64/db_interface.c:412
x86_ipi_handler() at x86_ipi_handler+0xfd sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
__mp_lock(ffffffff855a9ac0) at __mp_lock+0x272 __mp_lock_spin sys/kern/kern_lock.c:142 [inline]
__mp_lock(ffffffff855a9ac0) at __mp_lock+0x272 sys/kern/kern_lock.c:173
__mp_acquire_count(ffffffff855a9ac0,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1
mi_switch() at mi_switch+0x73e sys/kern/sched_bsd.c:443
sleep_finish(ffffffffffffffff,1) at sleep_finish+0x3dc sys/kern/kern_synch.c:369
biowait(ffff800001b09780) at biowait+0xe6 sys/kern/vfs_bio.c:1110
bwrite(ffff800001b09780) at bwrite+0x428 sys/kern/vfs_bio.c:625
ufs_dirremove(ffff800001d452b0,ffff800001d16a68,800c,0) at ufs_dirremove+0x4c0 sys/ufs/ufs/ufs_lookup.c:919
ufs_remove(ffff800029a61d80) at ufs_remove+0x2a3 sys/ufs/ufs/ufs_vnops.c:594
VOP_REMOVE(ffff800001d452b0,ffff800001d451d8,ffff800029a61f00) at VOP_REMOVE+0x2ee sys/kern/vfs_vops.c:331
dounlinkat(ffff800029844538,ffffff9c,7261466a7350,0) at dounlinkat+0x39d sys/kern/vfs_syscalls.c:-1
syscall(ffff800029a621a0) at syscall+0x118e mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff800029a621a0) at syscall+0x118e sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7261466a7800, count: -15

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/09 15:55 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan c93bd0a945a8 5cecaf1f .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/11/05 16:45 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan 85be6f17d1ef 5cecaf1f .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/11/04 04:53 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan 0ab9e2da1a14 5af5b6c6 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/11/02 09:42 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan b1b521f3695d 25a0ae84 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/10/25 11:54 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan b1b521f3695d 1d9ca40b .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/07/27 15:02 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan 99e40689641a 1f273138 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/07/25 04:57 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan 7c61c2d2eaf2 492bab15 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/07/22 21:41 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan 7c61c2d2eaf2 4a865b71 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/07/17 14:50 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan 2a13fb6a1f83 7f27c57a .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
2026/07/13 09:00 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan dbfd7807b1e0 a870962e .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in witness_checkorder
* Struck through repros no longer work on HEAD.