277424 Commits

Author SHA1 Message Date
jmcneill
6ddc7ecff0 Select the highest rate at boot, and update cycle counter frequency when rates change 2020-06-02 11:40:02 +00:00
jmcneill
af0e7b8750 Use a larger INSTIMAGEMB value for MKDEBUG builds 2020-06-02 10:41:30 +00:00
mrg
7be42f8044 don't elide fortran components. we'd like to revive g77-as-gfortran. 2020-06-02 08:03:59 +00:00
rin
5125993eed Appease clang -Wtentative-definition-incomplete-type.
Now, both kernel and crash(8) build with clang for amd64
(and certainly other ports also).

Pointed out by joerg.
2020-06-02 02:04:35 +00:00
jmcneill
65519e6f7f Exclude ramdisk images and empty instkernel directory 2020-06-02 01:34:50 +00:00
joerg
b90f380e16 Don't overalign _RuneStatePriv, it must share the alignment of mbstate_t
it aliased with. Assert that the alignment actually used reflects the
alignment required by existing implementation and for newly build
modules assert that it is at most the guaranteed alignment.
2020-06-02 01:30:31 +00:00
joerg
34a4ae727b Pass down errno when calling pthread__errorfunc after a system call.
Allow format arguments for that reason and use (v)snprintf_ss in
pthread_errorfunc to avoid race conditions and the like.
2020-06-02 00:29:53 +00:00
ad
248fe10b7a Reported-by: syzbot+6dd5a230d19f0cbc7814@syzkaller.appspotmail.com
Instrument STOS/MOVS for KMSAN to unbreak it.
2020-06-01 22:58:06 +00:00
riastradh
b57b0d687d Don't queue sysmon refresh until the rndsource is attached.
Using the rndsource, as refreshing the sensors will do, is not
allowed until _after_ rnd_source_attach.

XXX pullup-7
XXX pullup-8
XXX pullup-9
2020-06-01 21:54:47 +00:00
christos
0ccd2509dd Locking protocol changed; the internal routines are now called with the
socket locked. Adjust for that.
2020-06-01 18:55:37 +00:00
christos
bc54087551 Mention cleaning needed in LIBISPRIVATE directories 2020-06-01 14:46:04 +00:00
christos
e81cd2ea14 LIBISPRIVATE=yes 2020-06-01 14:42:03 +00:00
christos
2e98ca8c7c Set LIBISPRIVATE=yes 2020-06-01 14:41:25 +00:00
christos
f303c9721b Arrange to create an _pic.a library too. 2020-06-01 14:39:42 +00:00
christos
6e8b36d108 1. if ${LIBISPRIVATE} == "pic", create _pic.a so that we can embed the library
to another shared object
2. Don't compare ${LIBISPRIVATE} to "yes", because there are 3 places in
   Makefiles which set it to empty (this was a bug)
3. For private libraries, don't create .so* files
2020-06-01 14:39:14 +00:00
thorpej
69cb27bb5c lwp_thread_cleanup(): Remove overly-aggressive assertion. 2020-06-01 13:58:14 +00:00
uwe
e03c12d8dc Fix extra whitespace added by accident. 2020-06-01 13:30:52 +00:00
ad
06d492d198 In the interests of reliability simplify waiter handling more and redo
condvars to manage the list of waiters with atomic ops.
2020-06-01 11:44:59 +00:00
martin
112112a823 Adjust to "npfctl debug" command line changes, from rmind@. 2020-06-01 11:08:57 +00:00
skrll
3d720802db Remove some unnecessary bit shifts by using appropriate read size 2020-06-01 10:25:00 +00:00
ryo
6eb789bb7f even if the line size of Icache and Dcache is different, it was fixed to work correctly.
- MAX(IcacheShift,DcacheShift) is wrong and should be MIN(IcacheShift,DcacheShift).
  Dcache and Icache are now done in independent loops instead of in the same loop.
- simplify the handling of cache_handle_range() macro arguments.
- cache_handle_range macro doesn't include "ret" anymore.
2020-06-01 08:59:00 +00:00
msaitoh
774fa17d8b Add 0xa5 and 0xa6 for Comet Lake. 2020-06-01 08:33:40 +00:00
msaitoh
95a3392598 Add some definitions from the latest Intel SDM plus small fix:
- Add CPUID leaf 6 %eax bit 19 for HW_FEEDBACK* and IA32_PACKAGE_TERM* MSRs.
 - Add CPUID leaf 7 %ecx bit 31 for Protection Keys.
 - Add definition of Load only TLB and Store only TLB.
 - Add IF_PSCHANGE_MC_NO bit of IA32_ARCH_CAPABILITIES
 - Fix HWP_IGNIDL.
2020-06-01 08:32:39 +00:00
martin
c9e294b294 Typo in error message 2020-06-01 04:38:37 +00:00
uwe
57ff52fa43 Example of a kernel module that registers DDB commands. 2020-06-01 03:37:40 +00:00
uwe
22cb993c0d Make -f description actually use the word "force" so that it can be
found when searched for.
2020-06-01 03:18:36 +00:00
ryo
cd91fcad25 no need to make the PTE writable to do icache_sync, enough to accessible. 2020-06-01 02:42:24 +00:00
jmcneill
0e5f6fd76c Use the default motd for stable builds 2020-06-01 01:41:40 +00:00
kamil
f222e3cc8d Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang specific.
2020-06-01 01:03:21 +00:00
kamil
58e6f34180 Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang/LLVM specific.
2020-06-01 00:55:24 +00:00
kamil
b4c87b8eb8 Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang specific.
2020-06-01 00:34:25 +00:00
thorpej
b2e91447ff Oops, missed a line in the last change. 2020-06-01 00:00:37 +00:00
thorpej
b9bf75580a Remove superfluous checking for a "disable" property in the device_t
properties dictionary.
2020-05-31 23:52:19 +00:00
rin
d76d437a3f Switch from kmem_intr_alloc(sz, KM_NOSLEEP) to kmem_alloc(sz, KM_SLEEP).
Clearly document these functions are *not* for DDB session, but for
permanent data storage when initializing DDB.
2020-05-31 23:34:34 +00:00
christos
58b288d88d use strlcpy() instead of strncpy() for gcc happiness 2020-05-31 23:24:23 +00:00
rin
fbbf6b42a6 Stop allocating buffers dynamically in a DDB session, in order not to
disturb on-going debugged state of kernel datastructures.

Since DDB is running on 1 CPU at a time, static buffers are enough.

Increase in BSS section is:
  52552 for amd64 (LP64)
   9152 for m68k  (ILP32)

Requested by thorpej@ and mrg@.
Also suggested by ryo@.
Thanks!
2020-05-31 23:24:20 +00:00
maxv
869e8f7b28 Reset ud_ifaces and ud_cdesc to NULL, to prevent use-after-free in
usb_free_device().

Reported-by: syzbot+c7e74d0ae89e9f08f863@syzkaller.appspotmail.com
2020-05-31 18:33:08 +00:00
jdolecek
39045d90bd also set ifc->ui_endpoints to NULL in usbd_free_iface_data() when the value
is freed, to make it impossible to re-enter this by mistake

very likely has no effect for the syzbot problem, but good to do nevetheless

Reported-by: syzbot+c555801d6bc0d768f402@syzkaller.appspotmail.com
2020-05-31 18:20:23 +00:00
maxv
3774168381 If we failed because we didn't encounter an endpoint, do not attempt to
read 'ed', because its value is past the end of the buffer, and we thus
perform out-of-bounds accesses.

Detected thanks to vHCI+KASAN. First bug found by USB fuzzing.

Reported-by: syzbot+59e7f6b3f353584ac810@syzkaller.appspotmail.com
2020-05-31 17:52:58 +00:00
christos
4944dbf225 sync with regular socket code (no effect) 2020-05-31 17:45:02 +00:00
kamil
47ead56b15 Mask NULL + 0 LLVM UBSan reports in the ATF test: t_pslist.c
Pass -fno-delete-null-pointer-checks for Clang for the
MKSANITIZER/MKLIBCSANITIZER build
2020-05-31 16:36:07 +00:00
tnn
e097843b4c npf-params.7: s/filer/filter/ 2020-05-31 16:32:07 +00:00
rmind
a55d34090b npf-params(7): fix the state.key defaults. 2020-05-31 15:57:15 +00:00
simonb
d6f100329c Finish rename of all Cavium Octeon device driver functions, structs etc from
"octeon_foo" to "octfoo" (missed octeon_uart + entries in iobus config).
2020-05-31 14:05:21 +00:00
roy
2fc8fc72fa postinstall: Move files out of dhcpcd chroot 2020-05-31 13:45:47 +00:00
roy
e6c8f49786 Revert prior - mark dirs as obsolete.
Thanks wiz@
2020-05-31 13:07:50 +00:00
roy
79d62731fd We don't install any chroot subdirs for dhcpcd anymore 2020-05-31 13:00:48 +00:00
roy
cfd6163780 dhcpcd: Empty the chroot
While here, set correct optional hooks.
2020-05-31 12:58:09 +00:00
roy
d31eb9bba7 Sync 2020-05-31 12:52:11 +00:00
roy
7c187152f8 Update to dhcpcd-9.1.0 with the following changes:
* Leases are stored outside the chroot again
 * The chroot directory can now be (and should be) empty [1]
 * ARP is now per address rather than per interface
 * Filter allowed ioctls in the privileged actioneer
 * Filter allowed UDP ports used by sendto(2) in the privileged actioneer
 * Filter allowed file paths in the privileged actioneer
 * route socket is now drained on overflow as it cannot be
   re-opened by the unpriviledged user

 * hostname can no longer be clobbered by SLAAC
 * grep is no longer used by the test hook
 * Interface hardware address type changes are now picked up
 * Fixed some RA timing issues
 * Fixed nd_* option parsing in dhcpcd.conf
 * Allow SIGPIPE in scripts
 * Default dhcpcd.conf no longer sends the current hostname
 * Default dhcpcd.conf no longer sends a vendorclassid
2020-05-31 12:50:46 +00:00