| Commit message (Collapse) | Author | Files | Lines |
|
adapter_buswidth, adapter_softc) from struct scsi_link to struct
scsibus_attach_args.
Additional compile tests by jmatthew@ (sparc64) and aoyam@ (luna88k).
|
|
While here, make messages more correct.
|
|
|
|
Not enabled for now.
OK deraadt@
|
|
This nicely simplifies the code, deleting three header inclusions
and calls to various complicated library functions.
Dead code reported by Jan Stary <hans at stare dot cz>.
Garbage collect pointless (void) casts and a .Tn macro while here.
Tweaks and OK martijn@, OK millert@ and kn@ on an earlier version.
|
|
ok markus@
|
|
flakiness, this doesn't actually seem to be related to booting an
OpenBSD kernel straight from the bootloader kernel.
|
|
|
|
The initial alternate device number was set to 1 (instead of -1),
causing device number 1 to be skipped the first time sndiod is used.
|
|
|
|
|
|
use of -f; remove that too;
pointed out by guenther
|
|
|
|
|
|
was ever added;
the text was added 21 years ago when ip6 support was added;
marfabastewart noticed it, and guenther tracked down the commit responsible;
this commit removes that text;
|
|
pfkeyv2_send() allocates multiple buffers using the same variable `i' to
calculate their sizes, use dedicated size variables for each buffer to reuse
them with free(9).
For this, make pfkeyv2_policy() pass back the size of its freshly allocated
buffer.
Tested, feedback and OK tobhe
|
|
|
|
|
|
|
|
ok visa kettenis
|
|
|
|
ok deraadt@
|
|
filesystem manually.
ok kettenis
|
|
ok kettenis
|
|
import_identities() calls import_identity() which allocates a buffer and
potentially frees it itself; if not, import_identities() uses it and frees
it afterwards.
Instead of crunching down the buffer size twice, make import_identity()
calculate and pass it back, similar to how pfkeyv2.c:pfkeyv2_get() does it.
Tested and OK tobhe
|
|
pfkeyv2_get() and pfkeyv2_dump_policy() allocate buffers and can pass back
their sizes, those sizes are already used during copyout() and such.
Make one pfkeyv2_dump_policy() call pass back the size and reuse all sizes
in the respective free(9) calls.
Tested and OK tobhe
|
|
|
|
is troubling for the installer)
|
|
|
|
|
|
error out if ftp(1) or tar(1) fails; this happened to swarte@ a few months
(something to do with /home on NFS without -maproot IIRC).
Check that the signature file is at least 3 lines long (meaning that it contains
at least 1 syspatch) before entering the magic loop otherwise `grep -q' will
abort the script due to pipefail.
While here, revove a useless use of sort(1).
|
|
segment, but continue to cover these with a single PT_LOAD segment such
that we can continue to load kernels from the firmware Linux kernel.
This is important since our bootloader is a stripped down OpenBSD kernel
as well.
Proper page protections are installed by pmap_bootstrap(). This allows us
to add "relro" sections to the .rodata segment.
|
|
device tree. Make sure the RB_GOODRANDOM flag only gets set if we
read a non-stale /etc/random.seed and we actually filled an
.openbsd.randomdata segment.
|
|
ok visa@
|
|
|
|
OK naddy@; no objections from kettenis@
|
|
before this the stats were always collected, but you could only see
stats with gdb against the running kernel, or by enabling IX_DEBUG
in the build. neither of these are supported by default.
|
|
Found by Jan Stary <hans at stare.cz>, discussed with jmc@
|
|
Found by CompCert which notes that \E is not a valid escape sequence.
ok nicm@
|
|
From Larry Hynes via tech@.
|
|
like we do on arm64 and armv7.
|
|
Tested by cwen@ and myself. Thanks to pirofti@ for creating the
userland timecounter feature.
ok kettenis@ pirofti@ deraadt@ cheloha@
|
|
|
|
by slaacd(8).
"wroute" allows changes to the routing table so this is a good fit.
Nothing else in base is effected by this. dhclient might use
the wroute pledge in the future and might also want SO_RTABLE in a
more distant future.
OK deraadt
|
|
|
|
r1.146 "Enable IPv6 routing domain support" adapted the mtod() line from the
IPV6_PIPEX case which was bogus since introduction in r1.118.
Issue found by florian, who came up with the same partial diff for SO_RTABLE
while working on rdomain aware slaacd(8).
Taken from sys/netinet/ip_output.c which does it correctly.
OK florian millert
|
|
One can prove that the Toeplitz matrix generated from a 16-bit seed is
invertible if and only if the seed has odd Boolean parity. Invertibility
is necessary and sufficient for the stoeplitz hash to take all 65536
possible values.
Generate a system stoeplitz seed of odd parity uniformly at random. This
is done by generating a random 16-bit number and then flipping its last
bit if it's of even parity. This works since flipping the last bit swaps
the numbers of even and odd parity, so we obtain a 2:1 mapping from all
16-bit numbers onto those with odd parity.
Implementation of parity via popcount provided by naddy; input from miod,
David Higgs, Matthew Martin, Martin Vahlensieck and others.
ok dlg
|
|
|
|
within pipex(4) layer.
ok mpi@
|
|
ok mpi@
|