Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/kern



Module Name:    src
Committed By:   riastradh
Date:           Mon Mar 17 19:02:49 UTC 2025

Modified Files:
        src/sys/kern: kern_proc.c

Log Message:
kern_proc.c: Fix mistakes in SET_ERROR sprinkling.

To avoid triggering a SET_ERROR probe, I moved an initial

        rval = EPERM;

to a separate label `eperm', and then adjusted all the `goto done'
lines that didn't initialize rval themselves to do `goto eperm'
instead.

However, I was sloppy and missed some cases, so some spuriously
failed when they should have succeeded.

Annoyingly, we don't seem to have any automatic tests for this bug!
So the releng test bed hasn't discovered the problem.


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 src/sys/kern/kern_proc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index