syzbot


panic: chgproccnt: procs < NUM

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

Sample crash report:
panic: chgproccnt: procs < 0
Stopped at      db_enter+0x25:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 147847  54806  60929        0x10          0    0  syz-executor
* 62749  54806  60929        0x10  0x4000000    1K syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834389d0) at panic+0x1e5 sys/kern/subr_prf.c:198
chgproccnt(ee00,ffffffff) at chgproccnt+0xcc
sys_setuid(ffff8000373ecd20,ffff80003c427e90,ffff80003c427de0) at sys_setuid+0x2d9 sys/kern/kern_prot.c:746
syscall(ffff80003c427e90) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c427e90) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x18d90e75c90, 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(ffffffff834389d0) at panic+0x1e5 sys/kern/subr_prf.c:198
chgproccnt(ee00,ffffffff) at chgproccnt+0xcc
sys_setuid(ffff8000373ecd20,ffff80003c427e90,ffff80003c427de0) at sys_setuid+0x2d9 sys/kern/kern_prot.c:746
syscall(ffff80003c427e90) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c427e90) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x18d90e75c90, count: -6
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80003c427c60
rbx               0xffff8000299eee07
rdx                                0
rcx               0xffff8000373ecd20
rax               0xffff8000299edff0
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xb86a3f6b91da06d1
r11               0x7bcb78331b4c10db
r12               0xffff8000299eec08
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff8170d335    db_enter+0x25
cs                               0x8
rflags                         0x246
rsp               0xffff80003c427c50
ss                              0x10
db_enter+0x25:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor) tid=62749 pid=54806 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=0xffff8000373ec028,0xffffffff8399a558
    process=0xffff80002a3cdcf8 user=0xffff80003c422000, vmspace=0xfffffd8068bb87c0
    estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 54806  147847  81562  60929  7        0x10                syz-executor
 54806  213302  81562  60929  2   0x4000010                syz-executor
 54806   60033  81562  60929  2   0x4000010                syz-executor
*54806   62749  81562  60929  7   0x4000010                syz-executor
  4483  394503  78352      0  2           0                syz-executor
  4483  337716  78352      0  3   0x4000080  fsleep        syz-executor
  7395   24967  20693      0  2           0                syz-executor
  7395   95744  20693      0  3   0x4000080  fsleep        syz-executor
  7395  297841  20693      0  3   0x4000080  fsleep        syz-executor
  7395    3158  20693      0  2   0x4000000                syz-executor
 39249  340216  97033      0  2           0                syz-executor
 39249  427998  97033      0  3   0x4000080  fsleep        syz-executor
 87563  486917  37651      0  3        0x80  nanoslp       syz-executor
 87563  344697  37651      0  3   0x4000080  fsleep        syz-executor
 87563  362478  37651      0  3   0x4000080  ttyin         syz-executor
  3375   25774  51322      0  3        0x80  nanoslp       syz-executor
  3375   90186  51322      0  3   0x4000080  kqsel         syz-executor
  3375  167990  51322      0  3   0x4000080  fsleep        syz-executor
 81562   88481  78799      0  3        0x82  nanoslp       syz-executor
 37651  261504  78799      0  3        0x82  nanoslp       syz-executor
 51322  337561  78799      0  3        0x82  nanoslp       syz-executor
 61082  497767  78799      0  3        0x82  nanoslp       syz-executor
 87246  378063  78799      0  2         0x2                syz-executor
 20693  321012  78799      0  3        0x82  nanoslp       syz-executor
 78352  276631  78799      0  3        0x82  nanoslp       syz-executor
 97033  272034  78799      0  3        0x82  nanoslp       syz-executor
 78799   69835  51132      0  3        0x82  kqread        syz-executor
 51132  448247  34775      0  3    0x10008a  sigsusp       ksh
 34775  327701  76392      0  3        0x98  kqread        sshd-session
 76392  158774   6777      0  3        0x92  kqread        sshd-session
 82118  473796      1      0  3    0x100083  ttyopn        getty
  6777  393543      1      0  3        0x88  kqread        sshd
  2313  208023  51931     74  3   0x1100092  bpf           pflogd
 51931   30342      1      0  3        0x80  sbwait        pflogd
 36917  290778  12069     73  3   0x1100090  kqread        syslogd
 12069  264377      1      0  3    0x100082  sbwait        syslogd
 12602  286886      1      0  3    0x100080  kqread        resolvd
 51300   67405  30556     77  3    0x100092  kqread        dhcpleased
 83543   68517  30556     77  3    0x100092  kqread        dhcpleased
 30556  389818      1      0  3        0x80  kqread        dhcpleased
 73708  176683      0      0  3     0x14200  bored         smr
 48648  477215      0      0  2     0x14200                zerothread
 51881  503068      0      0  3     0x14200  aiodoned      aiodoned
 57608  463884      0      0  3     0x14200  syncer        update
 15328  208376      0      0  3     0x14200  cleaner       cleaner
 74579  426724      0      0  3     0x14200  reaper        reaper
 24115   34393      0      0  3     0x14200  pgdaemon      pagedaemon
 59673   50064      0      0  3     0x14200  bored         viomb
 27948  129392      0      0  3  0x40014200  acpi0         acpi0
 54553  425862      0      0  3  0x40014200                idle1
 34498  392288      0      0  3     0x14200  bored         softnet1
 40817  362071      0      0  3     0x14200  bored         softnet0
 22567  269031      0      0  3     0x14200  bored         systqmp
 38612   25894      0      0  3     0x14200  bored         systq
 50732  230160      0      0  3     0x14200  tmoslp        softclockmp
  3786  266645      0      0  3  0x40014200  tmoslp        softclock
 42444  481627      0      0  3  0x40014200                idle0
     1  232292      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 54806 (syz-executor) thread 0xffff8000373ec028 (60033)
exclusive rrwlock inode r = 0 (0xfffffd8068c5bec0)
#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  dofchmodat+0x162 sys/kern/vfs_syscalls.c:2382
#8  syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#8  syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
#9  Xsyscall+0x128
Process 54806 (syz-executor) thread 0xffff8000373ecd20 (62749)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8397f0f0)
#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:175
#3  uid_find+0xab sys/kern/kern_proc.c:136
#4  chgproccnt+0x39 sys/kern/kern_proc.c:-1
#5  sys_setuid+0x2d9 sys/kern/kern_prot.c:746
#6  syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#6  syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
#7  Xsyscall+0x128
Process 87246 (syz-executor) thread 0xffff80002a272d08 (378063)
exclusive rwlock vmmaplk r = 0 (0xfffffd8068bb8c90)
#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  vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5171
#3  uvmspace_fork+0x12b sys/uvm/uvm_map.c:3741
#4  process_new+0x577 sys/kern/kern_fork.c:281
#5  fork1+0x3f6 sys/kern/kern_fork.c:-1
#6  syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#6  syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
#7  Xsyscall+0x128
exclusive rwlock vmmaplk r = 0 (0xfffffd800b0634d0)
#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  vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5171
#3  uvmspace_fork+0x44 sys/uvm/uvm_map.c:3732
#4  process_new+0x577 sys/kern/kern_fork.c:281
#5  fork1+0x3f6 sys/kern/kern_fork.c:-1
#6  syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#6  syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
#7  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10197  11026K   11285K 166960K     11563        0
            pcb    18     12K      12K 166960K        45        0
         rtable   257     10K      11K 166960K       402        0
             pf    38     18K      22K 166960K        76        0
         ifaddr    43      7K       7K 166960K        54        0
        ifgroup    55      2K       2K 166960K        71        0
         sysctl     1      1K       9K 166960K         5        0
       counters    68     36K      37K 166960K        98        0
       ioctlops     0      0K       4K 166960K      1532        0
            iov     0      0K      16K 166960K         4        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1348     85K      85K 166960K      1538        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2      1K       5K 166960K         7        0
         VM map     2      1K       1K 166960K         2        0
            sem     7      0K       0K 166960K         7        0
        dirhash    12      2K       2K 166960K        21        0
           ACPI  1692    195K     286K 166960K     12470        0
      file desc    18     65K      97K 166960K       346        0
          sigio     0      0K       0K 166960K         3        0
           proc    76    131K     196K 166960K       563        0
        subproc    72      4K       4K 166960K        73        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     0      0K       0K 166960K        17        0
       in_multi    99      7K       7K 166960K       100        0
    ether_multi     1      0K       0K 166960K         1        0
            mrt     1      0K       0K 166960K         1        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys    79    360K     360K 166960K        79        0
           exec     0      0K       1K 166960K       404        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   246    152K     166K 166960K      5207        0
       UVM aobj     9      2K       2K 166960K        10        0
     pinsyscall    43     86K     106K 166960K      1510        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K        14        0
            NDP    12      0K       2K 166960K        35        0
           temp    40   8667K    8733K 166960K      5223        0
         kqueue    17     25K      29K 166960K        64        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       54    0       51     1     0     1     1     0     8    0
rtentry    176      113    0        1     6     0     6     6     0     8    0
unpcb      144      323    0      305     6     0     6     6     0     8    5
syncache   336        3    0        3     1     1     0     1     0     8    0
tcpcb      736      155    0      148     7     6     1     7     0     8    0
arp        136       18    0        0     1     0     1     1     0     8    0
inpcb      328      299    0      287     8     6     2     7     0     8    1
nd6        152       26    0        0     1     0     1     1     0     8    0
kcovpl      48        8    0        0     1     0     1     1     0     8    0
ppxss      1192      14    0       14     1     0     1     1     0     8    1
pffrag     232        4    0        1     1     0     1     1     0   482    0
pffrnode    88        4    0        1     1     0     1     1     0     8    0
pffrent     40        7    0        4     1     0     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
pfrktable  1344       4    0        1     1     0     1     1     0     8    0
pfanchor   1288       2    0        0     1     0     1     1     0     8    0
pftag       88        1    0        0     1     0     1     1     0     8    0
pfstitem    24       33    0        0     1     0     1     1     0     8    0
pfstkey    128       33    0        0     2     0     2     2     0     8    0
pfstate    448       33    0        0     4     0     4     4     0     8    0
pfrule     1344      24    0       17     2     1     1     2     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      460    0        0    29     0    29    29     0     8    0
art_table   40      461    0        0     5     0     5     5     0     8    0
art_node    32      113    0       11     1     0     1     1     0     8    0
sysvmsgpl   40        1    0        1     1     0     1     1     0     8    1
semapl     112        5    0        0     1     0     1     1     0     8    0
shmpl      112        7    0        1     1     0     1     1     0     8    0
dirhash    1024      23    0        6     3     0     3     3     0     8    0
dino2pl    256     1964    0      452    95     0    95    95     0     8    0
ffsino     296     1964    0      452   117     0   117   117     0     8    0
nchpl      144     2455    0      759    64     0    64    64     0     8    0
rtmask      32        5    0        5     1     0     1     1     0     8    1
vnodes     216     2139    0        0   119     0   119   119     0     8    0
namei      1024    8122    0     8121     5     2     3     3     0     8    2
percpumem   16       64    0       15     1     0     1     1     0     8    0
pfiaddrpl  120        1    0        0     1     0     1     1     0     8    0
kstatmem   264       40    0       14     3     0     3     3     0     8    1
scxspl     216     8229    0     8229    10     2     8     8     1     8    8
plimitpl   152       50    0       30     1     0     1     1     0     8    0
sigapl     424      666    0      618     7     1     6     7     0     8    0
knotepl    120      314    0        0    10     0    10    10     0     8    0
kqueuepl   224       92    0       79     2     0     2     2     0     8    0
pipepl     344      210    0      183     9     0     9     9     0     8    6
fdescpl    528      650    0      618     3     0     3     3     0     8    0
filepl     160     3429    0     3198    18     3    15    15     0     8    5
lockfpl    104       69    0       67     1     0     1     1     0     8    0
lockfspl    48       32    0       30     1     0     1     1     0     8    0
sessionpl  144       22    0       13     1     0     1     1     0     8    0
pgrppl      48       31    0       14     1     0     1     1     0     8    0
ucredpl    104      354    0      338     1     0     1     1     0     8    0
zombiepl   144      717    0      716     2     1     1     1     0     8    0
processpl  1232     666    0      618     5     1     4     5     0     8    0
procpl     664     1075    0     1015     7     1     6     6     0     8    0
sosppl     176        3    0        3     1     0     1     1     0     8    1
sockpl     752      678    0      645    24     7    17    17     0     8   13
mcl64k     65536      2    0        0     1     0     1     1     0     8    0
mcl8k      8192       2    0        0     1     0     1     1     0     8    0
mcl4k      4096     115    0        0    15     0    15    15     0     8    0
mcl2k      2048      28    0        0     4     0     4     4     0     8    0
mtagpl      96       15    0        0     1     0     1     1     0     8    0
mbufpl     256      162    0        0    10     0    10    10     0     8    0
bufpl      280     2695    0      131   184     0   184   184     0     8    0
anonpl      32     4623    0        0    38     0    38    38     0   246    0
amapchunkpl 152   15758    0    15253    30     2    28    28     0   158    8
amappl16   200     2159    0     2129     6     3     3     6     0     8    0
amappl15   192       10    0       10     1     1     0     1     0     8    0
amappl14   184        4    0        4     1     1     0     1     0     8    0
amappl13   176      440    0      439     1     0     1     1     0     8    0
amappl12   168     1021    0      979     3     0     3     3     0     8    0
amappl11   160        7    0        7     1     1     0     1     0     8    0
amappl10   152       48    0       34     1     0     1     1     0     8    0
amappl9    144      252    0      251     1     0     1     1     0     8    0
amappl8    136       26    0       24     1     0     1     1     0     8    0
amappl7    128       98    0       97     1     0     1     1     0     8    0
amappl6    120      282    0      268     1     0     1     1     0     8    0
amappl5    112       96    0       86     1     0     1     1     0     8    0
amappl4    104      428    0      398     1     0     1     1     0     8    0
amappl3     96     2595    0     2500     4     1     3     3     0     8    0
amappl2     88      770    0      690     2     0     2     2     0     8    0
amappl1     80    10060    0     9470    15     2    13    15     0     8    0
amappl      88     4425    0     4256     5     0     5     5     0    92    0
uvmvnodes   80      103    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      255    0      255     2     1     1     1     0     8    1
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        9    0        1     1     0     1     1     0     8    0
uaddrrnd    24      650    0      618     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      650    0      618     1     0     1     1     0     8    0
vmmpekpl   168     7400    0     7370     3     0     3     3     0     8    0
vmmpepl    168    48631    0    46694    89     2    87    88     0   357    1
vmsppl     488      649    0      618     5     1     4     5     0     8    0
rwobjpl     80    16243    0    15195    24     0    24    24     0     8    0
pdppl      4096    1308    0     1236   106    34    72    88     0     8    0
pvpl        32    11348    0        0    92     0    92    92     0   265    0
pmappl     256      649    0      618     3     0     3     3     0     8    0
extentpl    40       45    0       27     1     0     1     1     0     8    0
phpool     112      288    0       45     8     0     8     8     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x27:        addq    $0x8,%rsp
x86_ipi_db(ffffffff83867ff0) 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(ffffffff8397eee8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline]
__mp_lock(ffffffff8397eee8) at __mp_lock+0x192 sys/kern/kern_lock.c:165
softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83
dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862
Xsoftclock() at Xsoftclock+0x27
__mp_lock(ffffffff8397eee8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline]
__mp_lock(ffffffff8397eee8) at __mp_lock+0x192 sys/kern/kern_lock.c:165
dorefreshcreds(ffff80002a3cdcf8,ffff80003c409cb8) at dorefreshcreds+0x31 sys/kern/kern_prot.c:1177
syscall(ffff80003c449380) at syscall+0x1cb refreshcreds sys/sys/proc.h:613 [inline]
syscall(ffff80003c449380) at syscall+0x1cb mi_syscall sys/sys/syscall_mi.h:140 [inline]
syscall(ffff80003c449380) at syscall+0x1cb sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d6b3143f410, count: 4
ddb{0}> trace
x86_ipi_db(ffffffff83867ff0) 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(ffffffff8397eee8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline]
__mp_lock(ffffffff8397eee8) at __mp_lock+0x192 sys/kern/kern_lock.c:165
softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83
dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862
Xsoftclock() at Xsoftclock+0x27
__mp_lock(ffffffff8397eee8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline]
__mp_lock(ffffffff8397eee8) at __mp_lock+0x192 sys/kern/kern_lock.c:165
dorefreshcreds(ffff80002a3cdcf8,ffff80003c409cb8) at dorefreshcreds+0x31 sys/kern/kern_prot.c:1177
syscall(ffff80003c449380) at syscall+0x1cb refreshcreds sys/sys/proc.h:613 [inline]
syscall(ffff80003c449380) at syscall+0x1cb mi_syscall sys/sys/syscall_mi.h:140 [inline]
syscall(ffff80003c449380) at syscall+0x1cb sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d6b3143f410, 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(ffffffff834389d0) at panic+0x1e5 sys/kern/subr_prf.c:198
chgproccnt(ee00,ffffffff) at chgproccnt+0xcc
sys_setuid(ffff8000373ecd20,ffff80003c427e90,ffff80003c427de0) at sys_setuid+0x2d9 sys/kern/kern_prot.c:746
syscall(ffff80003c427e90) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c427e90) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x18d90e75c90, count: 9
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834389d0) at panic+0x1e5 sys/kern/subr_prf.c:198
chgproccnt(ee00,ffffffff) at chgproccnt+0xcc
sys_setuid(ffff8000373ecd20,ffff80003c427e90,ffff80003c427de0) at sys_setuid+0x2d9 sys/kern/kern_prot.c:746
syscall(ffff80003c427e90) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c427e90) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x18d90e75c90, count: -6

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/27 22:07 openbsd 7de01a79e4ba e8331348 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: chgproccnt: procs < NUM
2025/11/16 02:48 openbsd 42d4ce758e42 f7988ea4 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main panic: chgproccnt: procs < NUM
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.