Commit Graph

277520 Commits

Author SHA1 Message Date
joerg
3c4ddcbfa9 Unbreak clang builds by removing questionable linker warning sections
trggered all over the place.
2020-06-11 22:25:44 +00:00
ad
ba90a6ba38 Counter tweaks:
- Don't need to count anonpages+filepages any more; clean+unknown+dirty for
  each kind of page can be summed to get the totals.

- Track the number of free pages with a counter so that it's one less thing
  for the allocator to do, which opens up further options there.

- Remove cpu_count_sync_one().  It has no users and doesn't save a whole lot.
  For the cheap option, give cpu_count_sync() a boolean parameter indicating
  that a cached value is okay, and rate limit the updates for cached values
  to hz.
2020-06-11 22:21:05 +00:00
ad
4b8a875ae2 uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched.  It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.
2020-06-11 19:20:42 +00:00
ad
30140ed218 Drop self->pt_lock before clearing TSD / malloc TSD. 2020-06-11 18:42:02 +00:00
ad
2b4d53924f Adjust memory barriers. 2020-06-11 18:41:22 +00:00
roy
378e0318d0 dhcpcd: Disable priviledge separation and sandboxing for SMALLPROG builds
It's a fair chunk of code and is probably safe enough for our ramdisks.
2020-06-11 16:05:54 +00:00
macallan
da6a71d722 forgot to commit a header change, again... 2020-06-11 14:22:10 +00:00
thorpej
aae463daac Update for proplib(3) API changes. 2020-06-11 13:49:57 +00:00
roy
fead816208 bpf(4): Add ioctls BIOCSETWF and BIOCLOCK
Once BIOCLOCK is executed, the device becomes locked which prevents the
execution of ioctl(2) commands which can change the underlying parameters
of the bpf(4) device. An example might be the setting of bpf(4) filter
programs or attaching to different network interfaces.

BIOCSETWF can be used to set write filters for outgoing packets.
Currently if a bpf(4) consumer is compromised, the bpf(4) descriptor can
essentially be used as a raw socket, regardless of consumer's UID.
Write filters give users the ability to constrain which packets can be sent
through the bpf(4) descriptor.

Taken from OpenBSD.
2020-06-11 13:36:20 +00:00
kamil
784b5b6759 Fix typo 2020-06-11 13:08:07 +00:00
martin
b7244a59d8 Do not destroy mutices that failed to init - fixes a run with
PTHREAD_DIAGASSERT set to "a". Pointed out by joerg.
2020-06-11 11:40:54 +00:00
jmcneill
229d96e351 Match fsl,imx7d-iomuxc 2020-06-11 11:05:29 +00:00
jmcneill
a348b4c16d Add i.MX7 USB support 2020-06-11 11:01:16 +00:00
martin
89e3596f3d Better bounds checking for oversized packets, to avoid kernel memory
corruption. Pointed out by Ilja Van Sprundel.
2020-06-11 09:56:57 +00:00
martin
8a2c263d7e Stricter bounds check for some packet length we get from the usb chip,
to make sure we do not corrupt kernel memory.
Pointed out by Ilja Van Sprundel.
2020-06-11 09:51:37 +00:00
msaitoh
4fdc407181 No functional change:
- Rename some macros and function.
 - Add newline.
2020-06-11 09:23:13 +00:00
sevan
149b7d7b4d bsd-family-tree 2020-06-11 09:17:10 +00:00
msaitoh
2b25256044 Fix typo. No functional change. 2020-06-11 09:16:05 +00:00
sevan
4d18db3c85 Sync with r359561 2020-06-11 09:15:31 +00:00
jdolecek
1b0f5e88e1 regen 2020-06-11 09:02:04 +00:00
jdolecek
b4f0e3c2e3 add Intel XMM 7360 LTE Modem 2020-06-11 09:01:27 +00:00
macallan
5afb4d35f0 only read the backlight level register on mobility chips 2020-06-11 07:51:26 +00:00
macallan
c0d0309dde reduce stack usage in radeonfb_pickres() and radeonfb_set_cursor() 2020-06-11 07:46:59 +00:00
msaitoh
f91387c6ed Fix IXGBE_LE32_TO_CPUS() macro for big endian machine. This problem was
only on X550*. Not tested on big endian machine.
2020-06-11 05:16:22 +00:00
dholland
c76c804434 Regen after -r1.82 of compat_sunos syscalls.master last September.
(Apparently forgotten.)

"Treat valsize as unsigned"
2020-06-11 03:47:05 +00:00
dholland
a3e1f5bd7e Regen with new makesyscalls.
(the large diff of rump_syscalls.h has been checked and was the point
of the makesyscalls change)
2020-06-11 03:45:30 +00:00
dholland
7595c2f933 Don't output things in awk hash order. Sort first. 2020-06-11 03:25:35 +00:00
thorpej
814a779807 Update for proplib(3) API changes. 2020-06-11 02:32:06 +00:00
thorpej
e4c60075ae Oops, missed a couple. 2020-06-11 02:30:21 +00:00
thorpej
de43e596ff Update for proplib(3) API changes. 2020-06-11 02:28:01 +00:00
dholland
7220d65dba fix awk-induced bug (using wrong variable, getting away with it by luck) 2020-06-11 02:21:26 +00:00
kamil
f637acc932 Follow the syscall() logic and mask unsupported syscall ranges in rump
Avoids invalid pointer dereference from too large syscall numbers.
2020-06-11 00:33:30 +00:00
ad
62e0939e7d - Make pthread_condvar and pthread_mutex work on the stack rather than in
pthread_t, so there's less chance of bad things happening if someone calls
  (for example) pthread_cond_broadcast() from a signal handler.

- Remove all the deferred waiter handling except for the one case that really
  matters which is transferring waiters from condvar -> mutex on wakeup, and
  do that by splicing the condvar's waiters onto the mutex.

- Remove the mutex waiters bit as it's another complication that's not
  strictly needed.
2020-06-10 22:45:15 +00:00
ad
7ec7fae4db - Wired/resident stats shouldn't covered by PMAPCOUNTERS.
- Rename need_update_pv -> need_enter_pv.

Ok ryo@
2020-06-10 22:24:22 +00:00
ad
a1d54d8ee2 Adjust cond_timedwait_race to take account of spurious wakeups (which are
completely legit).
2020-06-10 21:46:50 +00:00
sevan
1f66fbf040 URM 2020-06-10 20:26:52 +00:00
jmcneill
8201fa08db Use generic platform definition for i.MX7 2020-06-10 19:30:23 +00:00
jmcneill
7af73871cf If enable-method is missing, try psci 2020-06-10 19:29:48 +00:00
jmcneill
e6ecdc649f Build i.MX7D dtbs for armv7 2020-06-10 18:53:31 +00:00
jmcneill
0b98f54e0a FDT-ize i.MX7. I don't have a board so this has only been tested on QEMU. 2020-06-10 17:57:50 +00:00
tsutsui
089d36aae0 MBR type for Ext2 should be MBR_PTYPE_LNXEXT2, not MBR_PTYPE_FAT12. 2020-06-10 16:56:22 +00:00
tsutsui
08529c6341 Change mountpoint of boot ext2fs from /stand to /ext2 to avoid conflict.
Should be pulled up to netbsd-9, with fixes of PR/55060.
2020-06-10 16:26:33 +00:00
simonb
2d5ac8346f Update for proplib(3) API changes. 2020-06-10 07:34:19 +00:00
msaitoh
78e3c03e74 Add SRBDS_CTRL bit. 2020-06-10 03:39:03 +00:00
simonb
9d2114faa9 Protect using mipsNN_foo() functions with an #ifdef MIPSNN.
Fixes non-MIPSNN kernel compiles pointed out by tsutsui@.
2020-06-10 01:42:17 +00:00
macallan
98f36c9844 proplib API catchup
NFCI, tested on v210
2020-06-09 21:57:00 +00:00
kamil
4228f24a2e Build and install llvm-symbolizer for MKLLVM=yes
llvm-symbolizer is an alternative for GNU addr2line(1), heavily used by the
LLVM sanitizers.

Do not install it as tools as it is not necessary as of today in that
stage.
2020-06-09 21:50:32 +00:00
nia
9e48297e1f FQA GCHQ 2020-06-09 19:45:29 +00:00
tsutsui
dac5bee800 Fix comment. 2020-06-09 17:13:41 +00:00
tsutsui
4907681a33 Specify -fno-unwind-tables to shrink binary. Saves ~3.5%. 2020-06-09 16:49:08 +00:00