syzbot


panic: chgproccnt: procs < NUM

Status: upstream: reported on 2025/02/22 06:58
Reported-by: syzbot+265d5006dac2f45c9e9d@syzkaller.appspotmail.com
First crash: 207d, last: 22d

Sample crash report:
panic: chgproccnt: procs < 0
Stopped at      db_enter+0x25:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*424804   5184      0        0x10  0x4000000    1K syz-executor
 202815  23894      0           0          0    0  syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff833f7f7f) at panic+0x1e5 sys/kern/subr_prf.c:198
chgproccnt(ee00,ffffffff) at chgproccnt+0xcc
sys_setreuid(ffff800035c09778,ffff80003c46b4d0,ffff80003c46b420) at sys_setreuid+0x565 sys/kern/kern_prot.c:688
syscall(ffff80003c46b4d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c46b4d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xee293e4b020, 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: chgproccnt: procs < 0
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff833f7f7f) at panic+0x1e5 sys/kern/subr_prf.c:198
chgproccnt(ee00,ffffffff) at chgproccnt+0xcc
sys_setreuid(ffff800035c09778,ffff80003c46b4d0,ffff80003c46b420) at sys_setreuid+0x565 sys/kern/kern_prot.c:688
syscall(ffff80003c46b4d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c46b4d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xee293e4b020, count: -6
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80003c46b290
rbx               0xffff8000299eeddf
rdx                                0
rcx               0xffff800035c09778
rax               0xffff8000299edff0
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xc253526efaf15690
r11               0x78ea92d25a6b3133
r12               0xffff8000299eebe0
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff81ac09d5    db_enter+0x25
cs                               0x8
rflags                         0x246
rsp               0xffff80003c46b280
ss                              0x10
db_enter+0x25:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor) tid=424804 pid=5184 tcnt=4 stat=onproc
    flags process=10<SUGID> proc=4000000<THREAD>
    runpri=50, usrpri=50, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff800035c08a80,0xffff800035c08030
    process=0xffff80003a025360 user=0xffff80003c466000, vmspace=0xfffffd806b7f49a8
    estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 79850  245199  41652      0  2           0                syz-executor
 79850   25157  41652      0  3   0x4000080  fsleep        syz-executor
  5184  308186   3961      0  2        0x10                syz-executor
  5184  489396   3961      0  2   0x4000010                syz-executor
* 5184  424804   3961      0  7   0x4000010                syz-executor
  5184  177902   3961      0  3   0x4000090  fsleep        syz-executor
 23894  202815  93886      0  7           0                syz-executor
 23894  205665  93886      0  3   0x4000080  fsleep        syz-executor
 23894  122623  93886      0  3   0x4000080  fsleep        syz-executor
 22509  349309  28258      0  2           0                syz-executor
 22509  516428  28258      0  3   0x4000080  fsleep        syz-executor
 22509  313731  28258      0  3   0x4000080  fsleep        syz-executor
 90428  233284   3131      0  2           0                syz-executor
 90428   39930   3131      0  3   0x4000080  fsleep        syz-executor
 90428  208485   3131      0  3   0x4000080  fsleep        syz-executor
 90428  477773   3131      0  3   0x4000080  fsleep        syz-executor
 90428  347427   3131      0  2   0x4000000                syz-executor
 58718  189138  53761      0  2           0                syz-executor
 58718  231942  53761      0  3   0x4000080  fsleep        syz-executor
 94020  351079  79738      0  2           0                syz-executor
 94020  428250  79738      0  3   0x4000080  fsleep        syz-executor
 28258  247831   9625      0  3        0x82  nanoslp       syz-executor
  3961  301012   9625      0  3        0x82  nanoslp       syz-executor
  3131  178981   9625      0  3        0x82  nanoslp       syz-executor
 93886  301541   9625      0  3        0x82  nanoslp       syz-executor
 22071   27522   9625      0  3         0x2  biowait       syz-executor
 41652  379684   9625      0  3        0x82  nanoslp       syz-executor
 79738   29803   9625      0  3        0x82  nanoslp       syz-executor
 53761   88223   9625      0  3        0x82  nanoslp       syz-executor
  9625   29849   8351      0  3        0x82  kqread        syz-executor
  8351   81082    498      0  3    0x10008a  sigsusp       ksh
   498  121772  97531      0  3        0x98  kqread        sshd-session
 97531   59795  34859      0  3        0x92  kqread        sshd-session
 18030   72519      1      0  3    0x100083  ttyin         getty
 34859  326063      1      0  3        0x88  kqread        sshd
 53637   73604  62424     74  3   0x1100092  bpf           pflogd
 62424  424248      1      0  3        0x80  sbwait        pflogd
 37211  254883  61199     73  3   0x1100090  kqread        syslogd
 61199  517506      1      0  3    0x100082  sbwait        syslogd
 39771   18834      1      0  3    0x100080  kqread        resolvd
 79194  423903  35826     77  3    0x100092  kqread        dhcpleased
 96449  435956  35826     77  3    0x100092  kqread        dhcpleased
 35826  388854      1      0  3        0x80  kqread        dhcpleased
 24536  314071      0      0  3     0x14200  bored         smr
 65203  477485      0      0  2     0x14200                zerothread
 13829   63055      0      0  3     0x14200  aiodoned      aiodoned
 81024  495747      0      0  3     0x14200  syncer        update
 10541  177217      0      0  3     0x14200  cleaner       cleaner
 15858   33110      0      0  3     0x14200  reaper        reaper
 98745  372260      0      0  3     0x14200  pgdaemon      pagedaemon
 99273  444323      0      0  3     0x14200  bored         viomb
 18239  278182      0      0  3  0x40014200  acpi0         acpi0
 52839  359356      0      0  3  0x40014200                idle1
 33291   27290      0      0  3     0x14200  bored         softnet7
 40959  407124      0      0  3     0x14200  bored         softnet6
 42018  507634      0      0  3     0x14200  bored         softnet5
  9489  384839      0      0  3     0x14200  bored         softnet4
  2003  150163      0      0  3     0x14200  bored         softnet3
 19881  150425      0      0  3     0x14200  bored         softnet2
 79934   43164      0      0  3     0x14200  bored         softnet1
 35410  502807      0      0  3     0x14200  bored         softnet0
 21681   81003      0      0  3     0x14200  bored         systqmp
 36382   41302      0      0  3     0x14200  bored         systq
 98634  506311      0      0  3     0x14200  tmoslp        softclockmp
 43643  375810      0      0  3  0x40014200  tmoslp        softclock
 18759  390588      0      0  3  0x40014200                idle0
     1  360024      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 5184 (syz-executor) thread 0xffff800035c09778 (424804)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838f7f40)
#0  witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1  __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1
#2  malloc+0xe3 sys/kern/kern_malloc.c:174
#3  uid_find+0xab sys/kern/kern_proc.c:136
#4  chgproccnt+0x39 sys/kern/kern_proc.c:-1
#5  sys_setreuid+0x565 sys/kern/kern_prot.c:688
#6  syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#6  syscall+0xb17 sys/arch/amd64/amd64/trap.c:748
#7  Xsyscall+0x128
Process 22071 (syz-executor) thread 0xffff8000ffff3768 (27522)
exclusive rrwlock inode r = 0 (0xfffffd806e199668)
#0  witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1  rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320
#2  rrw_enter+0xc6 sys/kern/kern_rwlock.c:621
#3  VOP_LOCK+0xa3 sys/kern/vfs_vops.c:527
#4  ufs_ihashins+0x4f ufs_ihash sys/ufs/ufs/ufs_ihash.c:-1 [inline]
#4  ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:159
#5  ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1232
#6  ffs_inode_alloc+0x279 sys/ufs/ffs/ffs_alloc.c:393
#7  ufs_mkdir+0xfc sys/ufs/ufs/ufs_vnops.c:1112
#8  VOP_MKDIR+0x101 sys/kern/vfs_vops.c:394
#9  domkdirat+0x179 sys/kern/vfs_syscalls.c:3113
#10 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#10 syscall+0xb17 sys/arch/amd64/amd64/trap.c:748
#11 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806bdf48e8)
#0  witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1  rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320
#2  rrw_enter+0xc6 sys/kern/kern_rwlock.c:621
#3  VOP_LOCK+0xa3 sys/kern/vfs_vops.c:527
#4  vn_lock+0xa4 sys/kern/vfs_vnops.c:570
#5  vfs_lookup+0x11c sys/kern/vfs_lookup.c:-1
#6  namei+0x7ca sys/kern/vfs_lookup.c:250
#7  domkdirat+0x8b sys/kern/vfs_syscalls.c:3098
#8  syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#8  syscall+0xb17 sys/arch/amd64/amd64/trap.c:748
#9  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10199  11023K   11031K 166960K     11278        0
            pcb    19     12K      12K 166960K        25        0
         rtable   211      6K       6K 166960K       263        0
             pf    39     18K      18K 166960K        50        0
         ifaddr    45      7K       7K 166960K        47        0
        ifgroup    60      2K       2K 166960K        60        0
         sysctl     1      1K       9K 166960K         5        0
       counters    72     37K      37K 166960K        72        0
       ioctlops     0      0K       4K 166960K      1486        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1338     84K      84K 166960K      1371        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2      1K       1K 166960K         2        0
         VM map     2      1K       1K 166960K         2        0
            sem     3      0K       0K 166960K         3        0
        dirhash    12      2K       2K 166960K        12        0
           ACPI  1692    195K     286K 166960K     12470        0
      file desc    17     61K      93K 166960K       156        0
          sigio     1      0K       0K 166960K         1        0
           proc    72    115K     164K 166960K       534        0
        subproc    72      4K       4K 166960K        72        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     2      0K       0K 166960K         2        0
       in_multi   100      7K       7K 166960K       100        0
    ether_multi     1      0K       0K 166960K         1        0
            mrt     1      0K       0K 166960K         3        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys    43    201K     201K 166960K        43        0
           exec     0      0K       1K 166960K       364        0
   fusefs mount     1     32K      32K 166960K         1        0
            tdb     3      0K       0K 166960K         3        0
        VM swap     8     62K      64K 166960K        10        0
       UVM amap   240    161K     168K 166960K      3158        0
       UVM aobj     3      2K       2K 166960K         3        0
     pinsyscall    42     84K     102K 166960K      1234        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     2      0K       0K 166960K         2        0
            NDP    29      2K       2K 166960K        29        0
           temp    35   8638K    8702K 166960K      4007        0
         kqueue    14     22K      24K 166960K        25        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       26    0        0     1     0     1     1     0     8    0
rtpcb      120       33    0       30     1     0     1     1     0     8    0
rtentry    176       98    0        2     5     0     5     5     0     8    0
unpcb      144       45    0       24     1     0     1     1     0     8    0
syncache   336        3    0        3     1     1     0     1     0     8    0
tcpcb      736       13    0        6     1     0     1     1     0     8    0
arp        128       10    0        0     1     0     1     1     0     8    0
inpcb      328       78    0       65     2     0     2     2     0     8    0
nd6        144       16    0        0     1     0     1     1     0     8    0
kcovpl      48        8    0        0     1     0     1     1     0     8    0
ppxss      1192       1    0        0     1     0     1     1     0     8    0
pppxif     1504       1    0        0     1     0     1     1     0     8    0
pfstscr     40        2    0        2     1     1     0     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       16    0        0     1     0     1     1     0     8    0
pfstkey    128       18    0        2     1     0     1     1     0     8    0
pfstate    384       17    0        1     2     0     2     2     0     8    0
pfrule     1344      22    0       17     2     1     1     2     0     8    0
rttmr      136        1    0        1     1     1     0     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      447    0        0    28     0    28    28     0     8    0
art_table   40      448    0        0     5     0     5     5     0     8    0
art_node    32       98    0       12     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112        1    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1599    0       84    95     0    95    95     0     8    0
ffsino     296     1599    0       84   117     0   117   117     0     8    0
nchpl      144     1808    0      112    63     0    63    63     0     8    0
uvmvnodes   80     1691    0        0    35     0    35    35     0     8    0
vnodes     216     1691    0        0    94     0    94    94     0     8    0
namei      1024    5528    0     5527     3     2     1     2     0     8    0
percpumem   16       51    0        0     1     0     1     1     0     8    0
kstatmem   264       28    0        0     2     0     2     2     0     8    0
scxspl     216     6425    0     6424     3     2     1     2     1     8    0
plimitpl   152       60    0       43     1     0     1     1     0     8    0
sigapl     424      458    0      405     7     0     7     7     0     8    0
knotepl    120       54    0        0     2     0     2     2     0     8    0
kqueuepl   224       21    0       10     1     0     1     1     0     8    0
pipepl     344      102    0       75     3     0     3     3     0     8    0
fdescpl    528      436    0      405     3     0     3     3     0     8    0
filepl     160     1560    0     1333    10     0    10    10     0     8    0
lockfpl    104       12    0       10     1     0     1     1     0     8    0
lockfspl    48        6    0        4     1     0     1     1     0     8    0
sessionpl  144       22    0       13     1     0     1     1     0     8    0
pgrppl      48       30    0       13     1     0     1     1     0     8    0
ucredpl    104       88    0       73     1     0     1     1     0     8    0
zombiepl   144      405    0      405     1     0     1     1     0     8    1
processpl  1232     458    0      405     5     0     5     5     0     8    0
procpl     664      512    0      445     6     0     6     6     0     8    0
sockpl     752      158    0      121     4     0     4     4     0     8    0
mcl64k     65536      1    0        0     1     0     1     1     0     8    0
mcl8k      8192       1    0        0     1     0     1     1     0     8    0
mcl4k      4096     109    0        0    14     0    14    14     0     8    0
mcl2k      2048      23    0        0     3     0     3     3     0     8    0
mtagpl      96        3    0        0     1     0     1     1     0     8    0
mbufpl     256      120    0        0     7     0     7     7     0     8    0
bufpl      280     2908    0      122   199     0   199   199     0     8    0
anonpl      32     7390    0        0    60     0    60    60     0   246    0
amapchunkpl 152    9215    0     8469    32     3    29    29     0   158    0
amappl16   200     2073    0     2054     5     3     2     5     0     8    0
amappl15   192       16    0       15     1     0     1     1     0     8    0
amappl14   184      148    0      136     1     0     1     1     0     8    0
amappl13   176        5    0        5     1     1     0     1     0     8    0
amappl12   168     1078    0     1047     4     1     3     3     0     8    0
amappl11   160       76    0       62     1     0     1     1     0     8    0
amappl10   152        9    0        9     1     1     0     1     0     8    0
amappl9    144      252    0      251     1     0     1     1     0     8    0
amappl8    136       23    0       21     1     0     1     1     0     8    0
amappl7    128      116    0      104     1     0     1     1     0     8    0
amappl6    120      198    0      194     1     0     1     1     0     8    0
amappl5    112      127    0      118     1     0     1     1     0     8    0
amappl4    104      296    0      276     1     0     1     1     0     8    0
amappl3     96     1375    0     1264     3     0     3     3     0     8    0
amappl2     88      629    0      567     2     0     2     2     0     8    0
amappl1     80     8225    0     7619    16     2    14    15     0     8    0
amappl      88     2487    0     2319     4     0     4     4     0    92    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        2    0        0     1     0     1     1     0     8    0
uaddrrnd    24      436    0      405     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      436    0      405     1     0     1     1     0     8    0
vmmpekpl   168     5197    0     5163     2     0     2     2     0     8    0
vmmpepl    168    34833    0    32870    88     0    88    88     0   357    0
vmsppl     488      435    0      405     5     0     5     5     0     8    0
rwobjpl     80    14429    0    11811    55     0    55    55     0     8    0
pdppl      4096     880    0      810    98    26    72    86     0     8    2
pvpl        32    13618    0        0   110     0   110   110     0   265    0
pmappl     256      435    0      405     3     0     3     3     0     8    0
extentpl    40       45    0       27     1     0     1     1     0     8    0
phpool     112      262    0       31     8     0     8     8     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x27:        addq    $0x8,%rsp
x86_ipi_db(ffffffff83787ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
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(ffffffff838f7d38) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline]
__mp_lock(ffffffff838f7d38) at __mp_lock+0x192 sys/kern/kern_lock.c:165
intr_handler(ffff800030ffbae0,ffff800000079a80) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:559
Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f
__mp_lock(ffffffff838f7d38) at __mp_lock+0x190 __mp_lock_spin sys/kern/kern_lock.c:135 [inline]
__mp_lock(ffffffff838f7d38) at __mp_lock+0x190 sys/kern/kern_lock.c:165
uvm_fault(fffffd806b7f4b90,ca226142000,0,1) at uvm_fault+0x1ea sys/uvm/uvm_fault.c:700
upageflttrap(ffff800030ffbe70,ca226142000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192
usertrap(ffff800030ffbe70) at usertrap+0x3c6 sys/arch/amd64/amd64/trap.c:605
recall_trap() at recall_trap+0x8
end of kernel
end trace frame: 0x72f93886bfe0, count: 4
ddb{0}> trace
x86_ipi_db(ffffffff83787ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
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(ffffffff838f7d38) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline]
__mp_lock(ffffffff838f7d38) at __mp_lock+0x192 sys/kern/kern_lock.c:165
intr_handler(ffff800030ffbae0,ffff800000079a80) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:559
Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f
__mp_lock(ffffffff838f7d38) at __mp_lock+0x190 __mp_lock_spin sys/kern/kern_lock.c:135 [inline]
__mp_lock(ffffffff838f7d38) at __mp_lock+0x190 sys/kern/kern_lock.c:165
uvm_fault(fffffd806b7f4b90,ca226142000,0,1) at uvm_fault+0x1ea sys/uvm/uvm_fault.c:700
upageflttrap(ffff800030ffbe70,ca226142000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192
usertrap(ffff800030ffbe70) at usertrap+0x3c6 sys/arch/amd64/amd64/trap.c:605
recall_trap() at recall_trap+0x8
end of kernel
end trace frame: 0x72f93886bfe0, count: -11
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:438
panic(ffffffff833f7f7f) at panic+0x1e5 sys/kern/subr_prf.c:198
chgproccnt(ee00,ffffffff) at chgproccnt+0xcc
sys_setreuid(ffff800035c09778,ffff80003c46b4d0,ffff80003c46b420) at sys_setreuid+0x565 sys/kern/kern_prot.c:688
syscall(ffff80003c46b4d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c46b4d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xee293e4b020, count: 9
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff833f7f7f) at panic+0x1e5 sys/kern/subr_prf.c:198
chgproccnt(ee00,ffffffff) at chgproccnt+0xcc
sys_setreuid(ffff800035c09778,ffff80003c46b4d0,ffff80003c46b420) at sys_setreuid+0x565 sys/kern/kern_prot.c:688
syscall(ffff80003c46b4d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c46b4d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xee293e4b020, count: -6

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/26 13:20 openbsd d9624900b8bd bf27483f .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: chgproccnt: procs < NUM
2025/06/18 01:39 openbsd 7cbb080c3e94 e77fae15 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: chgproccnt: procs < NUM
2025/05/17 15:40 openbsd 007267a8c99a f41472b0 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: chgproccnt: procs < NUM
2025/05/12 09:11 openbsd 1d7d4b26237d 77908e5f .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: chgproccnt: procs < NUM
2025/02/22 06:57 openbsd 6a403588e274 d34966d1 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: chgproccnt: procs < NUM
* Struck through repros no longer work on HEAD.