Commit Graph

268782 Commits

Author SHA1 Message Date
ozaki-r
ac002ee323 tests: add tests for getspi and udpate 2019-07-23 04:31:25 +00:00
ozaki-r
8e5aa2c9b8 setkey: enable to use the getspi API
If a specified SPI is not zero, tell the kernel to use the SPI by using
SADB_EXT_SPIRANGE.  Otherwise, the kernel picks a random SPI.

It enables to mimic racoon.
2019-07-23 04:30:32 +00:00
ozaki-r
58b6a74e54 ipsec: fix a regression of the update API
The update API updates an SA by creating a new SA and removing an existing SA.
The previous change removed a newly added SA wrongly if an existing SA had been
created by the getspi API.
2019-07-23 04:29:26 +00:00
nonaka
889dcccd73 kdump(1): Symbolic printing for MALLOC_OPTIONS="U". 2019-07-23 01:54:51 +00:00
rmind
dadc88e3b0 NPF improvements:
- Add support for dynamic NETMAP algorithm (stateful net-to-net).
- Add most of the support for the dynamic NAT rules; a little bit more
  userland work is needed to finish this up and enable.
- Replace 'stateful-ends' with more permissive 'stateful-all'.
- Add various tunable parameters and document them, see npf-params(7).
- Reduce the memory usage of the connection state table (conndb).
- Portmap rewrite: use memory more efficiently, handle addresses dynamically.
- Bug fix: add splsoftnet()/splx() around the thmap writers and comment.
- npftest: clean up and simplify; fix some memleaks to make ASAN happy.
2019-07-23 00:52:01 +00:00
rmind
ac03b3fba2 - nvpair_create_stringf: use the in-kernel vasprintf().
- Make nvlist_add_stringf() availabe in the kernel.
2019-07-23 00:49:16 +00:00
kre
8ad10c91e9 Amend the previous change: we can have (almost) the best of both
worlds, as when the first arg (which should be the format) contains
no % conversions, and there are more args, the results are unspecified
(according to POSIX).

We can use this so the previous usage
	printf -- format arg...
(which is stupid, and pointless, but used to work) continues to
simply ignore the -- (unspecified results mean we can do whatever
feels good...)

This brings back the #if 0'd block from the previous modification
(so there is no longer anything that needs cleaning up later) but runs
the getopt() loop it contained only when there are at least 2 args
(so any 1 arg printf always uses that arg as the format string,
whatever it contains, including just "--") and also only when the
first (format) arg contains no '%' characters (which guarantees no %
conversions without needing to actually parse the arg).  This is the
(or a) "unspecified results" case from POSIX, so we are free to do
anything we like - including assuming that we might have options
(we don't) and pretending to process them.
2019-07-22 17:34:31 +00:00
wiz
d3d2abdc28 Move bcm43xx to /libdata/firmware, where all the other firmwares live.
Deprecate /usr/libdata/firmware.
2019-07-22 14:47:51 +00:00
sevan
26965a4a65 Use double dash to simulate em dash 2019-07-22 13:44:13 +00:00
sevan
cef2b4ad5b Use \(em to get an emphasis dash 2019-07-22 13:37:37 +00:00
hkenken
f09655c62b Change register assignments. 2019-07-22 11:44:01 +00:00
nakayama
62fb785605 hvkbd requires pckbd_keydesctab in wskbdmap_mfii.c. 2019-07-22 09:58:39 +00:00
sevan
a99bcdece4 Art for the masses - The Dream Machine
The text used an em dash which I've replaced with a coma here.
2019-07-22 09:47:28 +00:00
knakahara
ae10409ad9 remove unnecessary NULL check after kmem_zalloc(KM_SLEEP) 2019-07-22 06:52:06 +00:00
skrll
c9e2a29280 KNF (from nhusb) 2019-07-22 06:24:57 +00:00
hkenken
7f5c8c22f3 Trailing whitespace 2019-07-22 01:35:36 +00:00
wiz
3569e60225 Fix mismerge of man page after 1.0.8 import. 2019-07-21 21:07:12 +00:00
maya
d2a15d1296 update bzip2 homepage and version 2019-07-21 19:03:12 +00:00
rin
06d032efb5 Enable DISKLABEL_EI, which is useful for machines that support both endian. 2019-07-21 17:05:11 +00:00
rin
84899fcd0b Enable us to load kernel image of different byte order. Now, earmv7hf-eb
kernel can successfully boot from EFI bootloader.

XXX
We need to recognize disklabel and filesystem written in opposite byte oder.
2019-07-21 17:01:39 +00:00
rin
a1eeaadb07 Add SA_ENABLE_BIENDIAN option, which enable us to load kernel image of
opposite byte order (for arm EFI bootloader).

XXX
Currently, it is restricted to load_elf*.c. It would be nice if we can
recognize disklabel and filesystem of opposite byte order.
2019-07-21 16:53:17 +00:00
rin
d4aa74c3bc Fix cursor movement for ri_xscale = 1, e.g., fontwidth = 8 and bpp = 1. 2019-07-21 16:19:45 +00:00
rin
6a0f68df82 Fix byte order of stamp for big endian so that width-optimized
putchar functions work correctly.
2019-07-21 16:18:08 +00:00
rin
877241d59b Fix hand-crafted trap instruction in cpu_Debugger() for big endian. 2019-07-21 16:12:59 +00:00
rin
476eec093f Fix panic due to inconsistent lock states of tty_lock in zsparam().
Tested on mac68k.
2019-07-21 16:10:37 +00:00
rin
2b1514363b Fix build for !WSDISPLAY_COMPAT_RAWKBD. 2019-07-21 16:08:13 +00:00
rin
272639de87 Fallback to non-EFI boot script if EFI bootloader is absent.
Note that we do not currently build EFI bootloader for earmv7hf-eb,
as it requires little-endian version of toolchain.
2019-07-21 16:05:24 +00:00
rin
dd918b78bd The device cannot recognize break signal. Use +++++ (five plus signs) as
cnmagic in the same manner with bcm2835_com.c.
2019-07-21 15:57:23 +00:00
rin
e682cb736a Describe how to enter ddb for evbarm.
Bump date.
2019-07-21 15:51:58 +00:00
hannken
c7790bc1b7 Always use "netbsd" as kernel name, dt_module_update() already takes
care to load data from the booted kernel image.
2019-07-21 15:38:06 +00:00
hannken
f705610493 Try to load module "dtrace" before opening "/dev/dtrace/dtrace".
Fixes PR kern/54387: DTrace Kernel module does not autoload on first use ...
2019-07-21 15:37:27 +00:00
kre
311f349816 Stop assuming that printf handles options in any way at all
(it doesn't - that is, shouldn't) which includes processing -- as an
"end of options".  The first arg is (always) the format string.

Remove/fix tests that assumed the contrary.

Problem (with printf) pointed out on tech-userlevel by Thierry Laronde.
2019-07-21 15:25:59 +00:00
kre
b6a771f35e Stop assuming that printf handles options in any way at all
(it doesn't - that is, shouldn't) which includes processing -- as an
"end of options".  The first arg is (always) the format string.

Remove call to getopt() (but still do associated changes to argc/argv)

Note: for now this is #if 0's out instead of being deleted, the old
code should be fully removed sometime soon.

Problem pointed out on tech-userlevel by Thierry Laronde.
2019-07-21 15:25:39 +00:00
kre
da8bc57f2b Correct a typo. It is atf_require_prog not atf_require_pfog ... 2019-07-21 15:00:18 +00:00
martin
2ab231eed3 scripting_vprintf: to simplify things for gcc (and avoid "may be used
uninitialized" warnings) just always copy the va_list and use one
copy for the first pass, the other for the second.
2019-07-21 12:23:18 +00:00
rjs
6aef75e147 Add ftcolor.h to build from freetype2. 2019-07-21 12:15:13 +00:00
martin
f1271f8172 When changing the user geometry, do not alter the disklabel internal
geometry information. On drives only capable of doing CHS addressing,
we rely on this data.
2019-07-21 11:56:20 +00:00
maya
c4f47eb4fb Merge bzip2 1.0.8
1.0.7 (27 Jun 19)
~~~~~~~~~~~~~~~~~

* Fix undefined behavior in the macros SET_BH, CLEAR_BH, & ISSET_BH

* bzip2: Fix return value when combining --test,-t and -q.

* bzip2recover: Fix buffer overflow for large argv[0]

* bzip2recover: Fix use after free issue with outFile (CVE-2016-3189)

* Make sure nSelectors is not out of range (CVE-2019-12900)

1.0.8 (13 Jul 19)
~~~~~~~~~~~~~~~~~

* Accept as many selectors as the file format allows.
  This relaxes the fix for CVE-2019-12900 from 1.0.7
  so that bzip2 allows decompression of bz2 files that
  use (too) many selectors again.

* Fix handling of large (> 4GB) files on Windows.

* Cleanup of bzdiff and bzgrep scripts so they don't use
  any bash extensions and handle multiple archives correctly.

* There is now a bz2-files testsuite at
  https://sourceware.org/git/bzip2-tests.git
2019-07-21 11:52:14 +00:00
martin
7ea9bb0be0 Reintroduce scripting for writing the disklabel 2019-07-21 11:36:34 +00:00
martin
da49a2c5db scripting_fprintf: when we traverse the va_list twice, we need to save
it before the first and reset it before the second pass.
2019-07-21 11:35:36 +00:00
maya
c12ab3f140 Import bzip2 1.0.8 2019-07-21 11:35:13 +00:00
maya
4bc990b409 Create up to pci19.
We probably don't need more than one pci file, but the code needs to be
changed for it, which might introduce problems, and we're just before a
branch.

Not needed for evbarm because it uses devpubd by default.

Stopgap fix for PR xsrc/54388.
2019-07-21 11:14:18 +00:00
mrg
b2e4dc91f2 remove unused structure members. this brings most <foo>_chain and
<foo>_cdata structures into being identical for usb ethernet drivers.

upl(4) and url(4) need more work.
2019-07-21 10:27:56 +00:00
mrg
3cab9eef29 remove unused axe_accum and axe_idx members of struct axe_chain. 2019-07-21 09:38:28 +00:00
mrg
ba5b08dff9 move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.
2019-07-21 08:24:32 +00:00
mrg
5e2dcd85b1 add missing 'struct reg;' forward decl. 2019-07-20 20:59:05 +00:00
mrg
a7a2d40a8a don't descend into gm20x unless MKNOUVEAUFIRMWARE != "no" 2019-07-20 20:49:06 +00:00
mrg
9d9d771525 add util-macros src dir. 2019-07-20 20:25:35 +00:00
wiz
c4e128da50 Install the nouveau gm206 firmware as used by my graphics card.
Also add the other gm20x nouveau firmwares to the source tree
to make it easier to add them for someone who can test them.

Installed if MKNOUVEAUFIRMWARE is set to 'yes'.
This defaults to no except on amd64 and i386 (like for radeon).
2019-07-20 19:09:21 +00:00
christos
dfefb900a0 Restore the ability to debug a 32 bit process from a 64 bit debugger:
- add a function to validate a 64 bit context in 32 bit mode to write registers
- remove 32 bit checks from read and write register functions
- check for pc to fit in 32 bits.
proposed in tech-kern, ok maxv.
2019-07-20 18:25:11 +00:00