Commit Graph

272360 Commits

Author SHA1 Message Date
wiz
28107122fa Remove macros with no effect. 2019-12-18 10:17:48 +00:00
maxv
e67f51b8f7 Retire filemon, discussed on tech-kern@. 2019-12-18 07:37:17 +00:00
christos
8282cab4e4 move file/lib after xz 2019-12-18 02:46:21 +00:00
christos
441814a01a bump 2019-12-18 02:35:59 +00:00
riastradh
f1d2e7e5f7 Reduce entropy estimate for sun8icrypto TRNG.
NIST's SP800-90B entropy estimation tools put it at no more than .08
bits of entropy per byte of data(!), so estimate 100 bits of data per
bit of entropy.  This is probably not conservative enough -- the NIST
tools were written without knowledge of how this alleged TRNG works!
Knowledge of the physics of how the TRNG is supposed to work could
probably enable a better job at predicting the outputs.

While here, bump the size of data we can sample directly with sysctl
to 4096 bytes.
2019-12-18 02:26:48 +00:00
christos
19a77b177c Also disable ssp and fortify by default. 2019-12-18 02:16:04 +00:00
msaitoh
28a131041a Regen. 2019-12-18 01:15:32 +00:00
msaitoh
a4e3409764 Add AMD Family14h PCIe. 2019-12-18 01:13:55 +00:00
roy
b42795cb1a inet: Add support for IPv4 /31 prefixes, as described in RFC 3021.
To run a /31 network, participating hosts MUST drop support
for directed broadcasts, and treat the first and last addresses
on subnet as unicast. The broadcast address for the prefix
should be the link local broadcast address, INADDR_BROADCAST.

Taken from FreeBSD, r226402.
Fixes PR kern/51388.
2019-12-18 00:49:15 +00:00
christos
b735c4fa8d fix sun2 2019-12-17 19:12:50 +00:00
christos
16fd89ab39 Fix sun2 (static linking) 2019-12-17 18:59:39 +00:00
christos
33c14bf659 Sync with upstream. 2019-12-17 18:35:57 +00:00
jakllsch
ed63da0ae0 rkvop: set stride using virtual framebuffer width instead of display mode 2019-12-17 18:30:51 +00:00
jakllsch
8a76c35233 Move drm_encoder from rkvop(4) to the SoC-layer output pipe drivers (rk_dwhdmi). 2019-12-17 18:26:36 +00:00
ad
28431b3e66 ksem_sysinit(): more lossage. 2019-12-17 18:16:05 +00:00
ad
868c6c81ec Set ksem_max before installing the syscall package. 2019-12-17 18:10:36 +00:00
ad
dc1bd2c938 Fix LOCKDEBUG panic on mutex_init().
Reported-by: syzbot+5a77339dc0a55e8d8caa@syzkaller.appspotmail.com
2019-12-17 18:08:15 +00:00
jakllsch
1fd88b52af rk3399_cru: implement dclk_vop0_frac and dclk_vop1_frac 2019-12-17 17:51:12 +00:00
christos
fae31486a8 Add more libraries 2019-12-17 13:35:43 +00:00
skrll
85ee6e12a8 Fix a UVMHIST_LOG format 2019-12-17 13:25:50 +00:00
msaitoh
798c702773 Improve some chip revisions support:
- Add 8168FP, 8411, 8168G, 8401E, 8105E, 8105E_SPIN1, 8106E and 8402 from
   {Free,Open}BSD.
 - Renumber RTK_HWREV_8103E from 0x24C00000 to 0x34c00000. 0x24C00000 is newly
   used as RTK_HWREV_8102EL_SPIN1. Same as {Free,Open}BSD.
2019-12-17 10:42:06 +00:00
martin
e2b0943e17 Cast an off_t to intmax_t and use %jd to printf it. 2019-12-17 08:02:00 +00:00
mlelstv
cea9bbee01 Add error and zero targets to build. 2019-12-17 07:57:25 +00:00
msaitoh
b9ae5f22eb Use bus_space_barrier() instead of x86 specific *fence instruction.
Written by riastradh@.
2019-12-17 05:49:01 +00:00
christos
edc0c34588 Protect network ioctls from non-authorized users. (Ilja Van Sprundel) 2019-12-17 04:54:36 +00:00
christos
f50eba77aa new file(1) 2019-12-17 02:32:26 +00:00
christos
78a23c3a8c merge conflicts 2019-12-17 02:31:05 +00:00
christos
eff51ed236 Import 5.38:
- Always accept -S (no sandbox) even if we don't support sandboxing
	- More syscalls elided for sandboxiing
	- For ELF dynamic means having an interpreter not just PT_DYNAMIC
	- Check for large ELF session header offset
	- When saving and restoring a locale, keep the locale name in our
	  own storage.
	- Add a flag to disable CSV file detection.
	- Don't pass NULL/0 to memset to appease sanitizers.
	- Avoid spurious prints when looks for extensions or apple strings
	  in fsmagic.
	- Add builtin decompressors for xz and and bzip.
	- Add a limit for the number of CDF elements.
	- More checks for overflow in CDF.
2019-12-17 02:23:53 +00:00
manu
a2ffa8f62d Do not use NAME=label syntax when label are empty
When booting sysinst from UEFI, it defaults to a GPT installation
where partition have no labels. Bootstrap used the NAME=label partition
anyway, with the result that both EFI and FFS root partition had
the same name "NAME=" and could not be distinguished. The first matching
partition for the name was used, and bootstrap looked for the kernel
in the EFI partition.

We fix that by not using NAME=label names for partition when label
is empty. In that case we revert to old syntax such as hd0b
2019-12-17 01:37:52 +00:00
ad
1ba3c68c12 More rump-ing. I will split this into two files during the week. 2019-12-17 00:59:14 +00:00
ad
5b04a37fe9 Rump is living up to its name 2019-12-17 00:51:28 +00:00
ad
cae3276510 Hopefully unbreak the build - now that this is included in rump. 2019-12-17 00:33:47 +00:00
christos
288aa6a579 Find and set a version to a make(1) variable. 2019-12-17 00:17:00 +00:00
christos
738f2752ce PR/54773: David Shao: krb5-config.in needs to be evaluated by the shell now
in order to work. Perhaps it is better to keep a local modified copy that
does not need this treatment...
2019-12-17 00:16:26 +00:00
christos
9ee086ef0e revert previous, don't specialcase NUL string. 2019-12-16 22:55:45 +00:00
ad
8b7aa961f5 NetBSD 9.99.26 - UVM counter changes 2019-12-16 22:48:25 +00:00
ad
a98966d3dc - Extend the per-CPU counters matt@ did to include all of the hot counters
in UVM, excluding uvmexp.free, which needs special treatment and will be
  done with a separate commit.  Cuts system time for a build by 20-25% on
  a 48 CPU machine w/DIAGNOSTIC.

- Avoid 64-bit integer divide on every fault (for rnd_add_uint32).
2019-12-16 22:47:54 +00:00
uwe
df1f230d9f pthread__rwlock_spin - clarify the test.
It's more pedantically correct to check RW_WRITE_LOCKED before
obtaining the thread id of the owner.  And since there must be an
owner annotate the guard NULL check as unlinkely.

No functional change intended.  Ok ad@.
2019-12-16 22:22:11 +00:00
ad
50003803e5 kpreempt_disabled(): softint LWPs aren't preemptable. 2019-12-16 20:59:39 +00:00
uwe
ba77a23d10 G/c unused rwlock owner macros copy-pasted from the kernel.
They were brought along with the rwlock flags but never used and never
even adapted to the new home (the struct member name is different
here).  I looked at adapting and using them, but they don't really
help readability that much and there are cases where we need to deal
with "fused" owner values anyway and so can't use them.
2019-12-16 20:45:40 +00:00
ad
16118283b5 As with turnstiles, don't bother allocating sleepq locks with mutex_obj_alloc(),
and avoid the indirect reference.
2019-12-16 19:43:36 +00:00
ad
c6c5943eb0 Just make the turnstile locks statics and avoid the indirect reference
since COHERENCY_UNIT does the right thing in !MP.
2019-12-16 19:22:15 +00:00
ad
0d77a8f35e pmap_unmap_ptes(): ci_want_pmapload isn't dependant on TLB state. 2019-12-16 19:20:45 +00:00
ad
bc7137b62e Use the high bits of pqflags for PQ_TIME, not low. 2019-12-16 19:18:26 +00:00
ad
33a633d2e2 Align the TLB packet precisely on the stack, and do 7 INVLPG since it's
what fits in a single line.
2019-12-16 19:17:25 +00:00
ad
189acff958 pcq_create(): fix broken assertion. 2019-12-16 18:50:44 +00:00
ad
f9a949d85f Merge from yamt-pagecache:
uvm_pagerealloc(): Don't bother with insert to new.  Nobody uses it and it
can return an error now due to radixtree.
2019-12-16 18:30:18 +00:00
ad
3f49a1ff57 genfs_do_putpages(): add a missing call to uvm_page_array_advance().
Spotted by the automated test runs and:

Reported-by: syzbot+adc1f0ce21bcece5307d@syzkaller.appspotmail.com
2019-12-16 18:17:32 +00:00
tkusumi
46b8a4bca5 dm: Cleanup dm.h (remove unneeded comments, etc) 2019-12-16 15:59:04 +00:00
skrll
46a62dc73f Be consistent with RPI 32-bit and 64-kernels and use .img for the file
to give to the firmware to boot
2019-12-16 14:32:14 +00:00