OpenBSD cvs log

created 2020-07-29T15:36:49Z
begin 2020-07-18T00:00:00Z
end 2020-07-19T00:00:00Z
path src/sys
commits 16

date 2020-07-18T07:18:22Z
author dlg
files src/sys/dev/pci/if_ix.c log diff annotate
src/sys/dev/pci/if_ix.h log diff annotate
src/sys/dev/pci/ixgbe.h log diff annotate
message replace stat collection with the kstat api.

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.

date 2020-07-18T08:37:43Z
author visa
files src/sys/arch/loongson/include/timetc.h log diff annotate
src/sys/arch/mips64/include/mips_cpu.h log diff annotate
src/sys/arch/mips64/include/timetc.h log diff annotate
src/sys/arch/octeon/include/timetc.h log diff annotate
message Userland timecounter implementation for octeon

OK naddy@; no objections from kettenis@

date 2020-07-18T08:37:44Z
author visa
files src/sys/arch/octeon/octeon/machdep.c log diff annotate
src/sys/arch/sgi/include/timetc.h log diff annotate
message Userland timecounter implementation for octeon

OK naddy@; no objections from kettenis@

date 2020-07-18T08:59:28Z
author visa
files src/sys/arch/loongson/dev/sisfb.c log diff annotate
message Remove an unused function.

date 2020-07-18T09:44:59Z
author kettenis
files src/sys/dev/ofw/fdt.c log diff annotate
src/sys/dev/ofw/fdt.h log diff annotate
message Add functions to set/add properties on an FDT node.

ok visa@

date 2020-07-18T10:23:44Z
author kettenis
files src/sys/arch/powerpc64/dev/kexec.c log diff annotate
src/sys/arch/powerpc64/include/kexec.h log diff annotate
src/sys/arch/powerpc64/stand/rdboot/cmd.h log diff annotate
src/sys/arch/powerpc64/stand/rdboot/rdboot.c log diff annotate
message Pass boothowto and bootduid parameters to the booted kernel via the
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.

date 2020-07-18T13:16:32Z
author kettenis
files src/sys/arch/powerpc64/conf/ld.script log diff annotate
src/sys/arch/powerpc64/powerpc64/pmap.c log diff annotate
message Improve kernel linker script. Split binary in a .text, .rodata and .data
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.

date 2020-07-18T14:19:13Z
author deraadt
files src/sys/arch/powerpc64/Makefile log diff annotate
message enter stand

date 2020-07-18T15:07:51Z
author kn
files src/sys/net/pfkeyv2.c log diff annotate
message Add size to free(9) calls

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

date 2020-07-18T15:10:03Z
author kn
files src/sys/net/pfkeyv2_convert.c log diff annotate
message Add size to free(9) calls

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

date 2020-07-18T16:41:43Z
author kettenis
files src/sys/arch/powerpc64/include/reloc.h log diff annotate
message Use the same names as the 64-bit PowerPC ELF ABI for the relocations.

date 2020-07-18T17:13:00Z
author deraadt
files src/sys/arch/alpha/stand/start.S log diff annotate
message __main() is not need anymore

date 2020-07-18T17:13:44Z
author deraadt
files src/sys/lib/libkern/arch/powerpc/Attic/__eabi.c log diff annotate
message The kernel and bootblocks never reference this file...

date 2020-07-18T17:40:38Z
author kn
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/net/pfkeyv2.h log diff annotate
message Add size to free(9) calls

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

date 2020-07-18T20:02:34Z
author kettenis
files src/sys/arch/powerpc64/dev/kexec.c log diff annotate
message Load kernel as an initrd such that we have symbols in ddb.

date 2020-07-18T20:21:01Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
src/sys/dev/ksyms.c log diff annotate
message Make /dev/ksyms work.