| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
writes without incurring unaligned accesses; ok deraadt@
|
|
|
|
|
| |
(fchmod +T by bootcode, chmod 600 by /etc/rc). If the seed is reused, and
HWRNG isn't available, the kernel won't get RB_GOODSEED indication...
|
|
|
|
|
|
| |
relax the fstat() check because the system will have left the file
in the right mode.
ok visa kettenis
|
|
|
|
| |
ok kettenis
|
| |
|
|
|
|
|
| |
and then a void * for calling the hexdump() operator
with bluhm
|
|
|
|
|
|
| |
inspect the memory layout that the firmware has created. It is
especially useful for UEFI debugging.
OK deraadt@ kettenis@
|
|
|
|
|
|
|
|
|
| |
section, which has grown a fair bit with the introduction of retguard.
Mortimer discovered the repeated 512-byte sequence as retguard keys, and
this resolves the issue. (Chacha does not fit on the media, so 1.5K early
drop RC4 is hopefully sufficient in our KARL link universe)
Version crank the bootblocks. sysupgrade -s will install new bootblocks.
ok djm mortimer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so the file cannot be re-executed upon the next boot. This provides a
stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade.
Now various forms of upgrade failure will reboot into /bsd, which is probably
more recoverable. Performing fchmod -x depends on (1) use of MI boot.c
(not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality
in the IO layer. Most architectures have this support now.
Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will
remain in the tree while refinements happen for some of the laggard
architectures.
based upon a discussion florian
tested in snapshots for more than a week without any complaints
|
| |
|
|
|
|
|
| |
Found the hard way by Raf Czlonka (rczlonka AT gmail), thanks!
OK deraadt
|
|
|
|
|
| |
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already
|
|
|
|
|
| |
/bsd. To be used for unattended upgrades in the future.
Idea & OK deraadt
|
|
|
|
|
|
| |
MD-supplied random function to insert entropy into the kernel.
ok deraadt@
|
|
|
|
|
|
|
|
|
|
|
| |
presume we booted from. If you boot from another kernel, we cannot help
you later with hibernate, sorry -- The kernel does not get a useable
filename from the bootblocks.
In the bootblocks, detect a live hibernate signature and boot from
/bsd.booted instead.
with yasuoka, lots of discussion with mlarkin, ok tom
|
|
|
|
| |
ok deraadt yuo
|
|
|
|
|
|
| |
With input from deraadt@
okay jasper@, uebayashi@
|
|
|
|
|
|
|
| |
just remove the comment and unneeded functionality which has been "#ifdef notused"
for the past 13 years.
OK uebayasi@
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
|
| |
to contain actually consumed space on truncation.
bootarg_list can be static again, it's not referenced from outside.
ok deraadt@
|
| |
|
| |
|
|
|
|
|
| |
principe of fire and forget, and we really want developers to start
trying to write per-architecture XOR thingies using timers and such
|
|
|
|
| |
Discussed with jsing
|
|
|
|
| |
issue reported by halex
|
|
|
|
|
|
|
| |
use a MD-supplied random function. Then, insert this into the ELF
openbsd.randomdata of the kernel, so that it has entropy right from
the start. Some help from jsing for the softraid aspects.
Also tested by phessler
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
chance to interrupt the boot procedure before booting the default kernel,
just like (most) of our other hardware platforms. Interactive boots, where
you interrupt the firmware boot procedure and answer "Y" to the
"Interact with IPL?" question will now wait for human intervention at the
boot> prompt (without a timeout). Should reduce frustration when trying to
boot an alternative kernel.
ok deraadt@, miod@, jsing@, todd@
|
|
|
|
|
|
|
|
|
| |
bootloader will pass to the kernel to allow you to force ddb.console to be
set (and set early) on a machine without having to do it on a per kernel
basis using code or config tweaks.
requested by art@ (who owes me good whiskey now)
no problem! deraadt@
|
|
|
|
| |
"I like it" deraadt "sweet" tedu "love it" marco
|
|
|
|
|
|
| |
close it before going off to execute the newly-loaded kernel.
ok deraadt@
|
|
|
|
|
|
|
| |
clashed with a global variable already used by the bootblocks.
Therefore rename bootfile here to kernelfile.
ok drahn@
|
|
|
|
| |
Much more useable on serial console systems.
|
|
|
|
|
| |
not the other stupid names. that feature was retarded. tested on a few
architectures by a few people
|
|
|
|
|
|
|
|
|
|
|
| |
if it is. This gives a way to recover from "switching to com0" when
there's no serial cable handy.
Bump version numbers.
A similar change will be made to amd64 boot soon.
ok toby@ deraadt@
|
|
|
|
|
| |
console; ignore all others. based on idea by didickman@gmail.com,
ok tom
|
| |
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
| |
which fixed a buffer overflow here).
ok weingart@
|
|
|
|
| |
ok weingart@
|
|
|
|
|
|
| |
automatic boot in 5 seconds after you type "set tty com0", for example.
"I like this" deraadt@, "oh! yes" henning@, ok weingart@
|
|
|
|
|
|
| |
test for boot command handling.
Suggested by avsm@; discussed with avsm@ and weingart@ - thanks
|
| |
|
|
|
|
|
|
|
|
| |
overrun the buffer, print an error message, then stop processing
boot.conf. Also change name of variable "eof" to "rc", since it's
not just for eof.
ok weingart@
|
|
|
|
| |
ok weingart@, deraadt@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
various people. outside of some messy things in src/gnu, only one
thing in the main tree now violates this rule: bind
|