| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
default value of kern.splassert to 3, i.e. enter ddb on splassert()
failure. Will be used during fuzzing.
ok mpi@ visa@
|
| |
|
|
|
|
|
|
|
| |
unveil for each unveil in the process at unveil() time, and refactoring the
handling of current directory and ISDOTDOT to be much more sensible.
Worked out at ns2k18 with guenther@.
ok deraadt@
|
|
|
|
|
|
|
|
| |
Prevents a lock ordering issue between SCHED_LOCK() and printf(9)'s
mutex. While here protect all kprintf() calls ending on the console
with the mutex.
ok kettenis@, visa@
|
|
|
|
|
|
|
|
|
|
|
| |
Extend the logic already present for panic() to any DDB-related
operation such that if ddb(4) is entered because of a fault or
other trap it is still possible to call 'boot reboot'.
While here stop printing splassert() messages as well, to not fill
the buffer.
ok visa@, deraadt@
|
|
|
|
|
|
|
| |
Currently there is only support for amd64, if this change settles
I will add support for the rest of the architectures.
OK kettenis@.
|
|
|
|
| |
ok millert@ krw@
|
|
|
|
|
|
|
| |
Using a name with the 'db_' prefix makes it invisible from the dynamic
profiler.
ok deraadt@, kettenis@, visa@
|
|
|
|
|
|
| |
It doesn't compile und hasn't been working during the last decade.
ok kettenis@, deraadt@
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
on amd64 and i386.
|
|
|
|
|
|
|
| |
been opened during init(8). Only log with cnwrite() if cn_devvp
exists, otherwise use cnputc() as fallback. While there move extern
declarations to dev/cons.h.
input and OK deraadt@
|
|
|
|
| |
ok millert@
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
| |
Help and feedback by Theo and Miod.
OK deraadt@, manpage-ok jmc@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
KASSERT() is annoying as it only prints the expression as a string. If you
(developers) want to know a little more information, you have to do:
#ifdef DIAGNOSTIC
if (bad)
panic(...);
#endif
KASSERTMSG() replaces it into a single line:
KASSERTMSG(!bad, ...);
Taken from NetBSD.
(There is a concern that KASSERT() messages are too long; consume more memory,
and not friendly for small monitors. This have to be considered & revisited
later.)
"Like" from henning@
Man page review & advices from jmc@ and schwarze@
|
|
|
|
|
|
|
|
| |
Now, for kernel to "reboot" (reboot, halt, or shutdown), MD boot(9) is called
in some places. This change introduces a new MI function reboot(9) which is
simply a wrapper to call MD boot(9).
OK kettenis@ deraadt@
|
|
|
|
|
|
| |
formatting into a local buffer.
ok miod@
|
|
|
|
|
| |
making format-string vulnerabilities exploitable; inspired by similar
change made by Kees Cook to Linux; ok deraadt@
|
|
|
|
|
|
| |
They scroll away the important information. Disable splassert in
panic().
OK deraadt@ uebayasi@ sthen@
|
|
|
|
|
|
| |
this also adds support in gcc 4.x kprintf format checks
ok kettenis@
|
|
|
|
|
| |
.h files to pull it in, if needed
ok tedu
|
|
|
|
| |
to xconsole. ok deraadt@ guenther@
|
|
|
|
|
|
|
|
|
| |
so that the process-level stuff is to/from struct process and not
struct proc. This fixes a bunch of problem cases in rthreads.
Based on earlier work by blambert and myself, but mostly written
at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
|
|
|
|
|
|
| |
as dumpsys() will now clear the sensitive information.
ok djm@ (and dumpsys changes too)
|
| |
|
|
|
|
|
|
| |
size_t and ssize_t variables.
OK miod and cthulhu.
|
|
|
|
| |
the kernel printf. This will allow support for the real %z in the near future.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
which like NFSSERVER and NFSCLIENT.
|
| |
|
| |
|
|
|
|
|
|
| |
detecting phantom devices when scanning dmesg output.
Suggested by miod@, ok deraadt@.
|
| |
|
| |
|
|
|
|
|
|
|
| |
to built-ins, so eventually we will have one version of these files.
Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h
and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes.
okay millert@, drahn@, miod@.
|
|
|
|
| |
ok markus@ drahn@
|
|
|
|
| |
ok deraadt@ henric@ djm@
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
| |
|
| |
|
|
|
|
| |
some module does -- tough -- they can rewrite it using the safer versions.
|
|
|
|
| |
deraadt@ ok
|
| |
|
| |
|