270508 Commits

Author SHA1 Message Date
christos
ae8d4ecfdb Use strlcpy to NUL terminate the name string here. The kernel already
uses strlcpy() to set values in this field. We leave the kernel's strncmp()
alone to maintain compatibility.
2019-10-03 17:10:16 +00:00
christos
194e441521 use strlcpy here; the destination string is passed to strtok_r, and if it
is not NUL terminated, bad things can happen.
2019-10-03 17:08:26 +00:00
christos
01d1183f90 Since ch gets reassigned, it is not certain that it will be & or | again,
so return an illegal token if it is not instead of telling the compiler
that this is impossible.
2019-10-03 16:37:45 +00:00
christos
b490ea0c99 provide sizes so that we don't truncate accidentally. 2019-10-03 16:35:57 +00:00
christos
35a16a55bf realloc(ptr, 0) != { free(ptr); return NULL; }
http://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_400
2019-10-03 16:10:23 +00:00
msaitoh
7b77b401e9 s/0x0x/0x/ 2019-10-03 15:36:24 +00:00
msaitoh
027d9892d8 - Add definitions of AMD's CPUID Fn8000_001f Encrypted Memory features.
- Add definition of AMD's CPUID Fn8000_000a %edx bit 11 "GMET".
- Define CPUID_AMD_SVM_PFThreshold correctly.
- Modify comment a bit for consistency.
2019-10-03 15:21:44 +00:00
jmcneill
dec6db4060 Do not print timeout message when SCF_TOUT_OK flag is set 2019-10-03 15:10:32 +00:00
jmcneill
8279a384e2 If firmware is connected in HT or VHT mode, report it to SIOCGIFMEDIA 2019-10-03 14:42:20 +00:00
jmcneill
b766b1586c Add IFM_IEEE80211_VHT subtype, IFM_IEEE80211_11AC operating mode, and missing descriptions 2019-10-03 14:41:14 +00:00
jmcneill
16c816c6ca Rework interrupt handling to reduce the number of wakeups required for
each command. Fix SDIO interrupt handling while here.
2019-10-03 13:49:33 +00:00
mlelstv
009daa2634 remove debug printfs, add more compat strings. 2019-10-03 11:24:27 +00:00
mlelstv
acc5d477cd More register definitions. 2019-10-03 10:53:34 +00:00
tnn
e91fbc780d improve error message 2019-10-03 10:34:30 +00:00
jnemeth
1b020fe5e7 typo 2019-10-03 06:27:09 +00:00
maxv
c3375309d2 Fix memory leaks. Was wondering where memory had gone after several hours
of attach/detach with vHCI.
2019-10-03 05:20:31 +00:00
maxv
6336c2341d More less kmem_zalloc(0). 2019-10-03 05:16:16 +00:00
maxv
1f5569dfbd Improvements:
- Don't process packets if the USB device is detached. Contrary to the
   other HCIs, vHCI has no timeout, so we never collect the pending
   packets, and must drop them synchronously.

 - Fix refcounting bug in vhci_device_ctrl_abort.

 - Implement vhci_activate.

 - Add a few KASSERTs.
2019-10-03 05:13:23 +00:00
maxv
791ad2e67e Remove the LazyFPU code, as posted 5 months ago on port-amd64@. 2019-10-03 05:06:29 +00:00
knakahara
5c0ef16821 Revert route.c:r1.224 to fix net/arp/t_arp and net/ndp/t_ndp failure.
And refactor a little. Discussed with ozaki-r@n.o.
2019-10-03 03:10:02 +00:00
mrg
b10b947bcc add gcc-8 dirs, remove gcc-6 dirs. 2019-10-03 01:34:31 +00:00
sevan
df68535e27 Skip options which rely on crypto support in getopt() argument list, if we're
not building with cryto support.

via JP <rlntlss83 at gmail com> on tech-misc@
2019-10-03 01:15:19 +00:00
mrg
7cd6de38ea gcc 8 set lists updates. i don't appear to have broken gcc 7 builds
but i only tested a couple of them.
2019-10-03 00:59:49 +00:00
kamil
081796c351 Remove ATF t_ptrace_wait test suspend1
The tests verifies that a thread can be suspended by a debugger and later
resumed by a tracee.

This is an unwanted behavior and will be fixed soon.
2019-10-02 23:15:09 +00:00
christos
da174a1fe9 PR/54594: Martin Husemann: bind may crash at startup
Use memcpy(3) instead of assuming casting "uint8_t *" to "uint64_t *" and
de-referencing works.
2019-10-02 15:43:15 +00:00
christos
0ce1e4fd59 Fix core-dump register fetching. 2019-10-02 15:15:09 +00:00
maya
d0e1ea051c Note /rescue is a separate set now. 2019-10-02 11:18:55 +00:00
maya
50f7458533 Split out /rescue to its own set and adapt installers/images to add it.
This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.
2019-10-02 11:15:59 +00:00
sevan
eb128c78ad DAAP DLNA 2019-10-02 11:14:46 +00:00
skrll
c3fbc82630 Remove garbage. Maybe something is wrong with mknative or mrg's script? 2019-10-02 10:34:48 +00:00
maya
ff1ecf5fdf Mark /rescue/edlabel as MI-obsolete, so we can remove all remaining MD
rescue set list files.
2019-10-02 09:47:24 +00:00
maya
586fb1f9e7 Remove ldconfig from /rescue, and mark it MI obsolete.
- ldconfig in netbsd refers to a.out binaries only. We've been ELF-only
  since NetBSD 2.0 or so, and having it in /rescue served little purpose
  even before that, as /rescue is standalone.
- Using MI obsolete to avoid the need for MD set lists where ldconfig
  is the sole entry
2019-10-02 09:45:10 +00:00
rin
df564de276 Simplify logic to get rid of implicit dependence on order of ASCII
codes of upper and lower cases ('a' > 'A').

Found by the lgtm bot.

No functional changes intended.
2019-10-02 09:36:30 +00:00
rin
d66ba54477 Describe roundup2(9) in roundup(9).
Bump date.

Install it also as roundup2(9).
2019-10-02 08:21:08 +00:00
mrg
41cead3c75 mknative-gcc for GCC 8.3 and all ports. 2019-10-02 07:14:31 +00:00
mrg
c79e82c597 make most of this compile:
- sanitizer_procmaps_netbsd.cc is obsolete.
- fix merge botches where upstrem has as slightly different version
  is upstream than prior local
- libstdc++ default is now gnu++17
- ubsan needs UBSAN_CAN_USE_CXXABI set
- properly use $G_RTL_BASE_H not (empty) $RTL_BASE_H
- libbackend HH gains new generated insn-modes-inline.h, and read-md.c
  gains the HH dep.
2019-10-02 06:51:59 +00:00
mrg
06250edab5 avoid multiple tm_file headers being listed and breaking builds. 2019-10-02 05:58:03 +00:00
mrg
415bf64101 don't undef SDB_DEBUGGING_INFO. obsolete (and triggers a warning.)
disable isInDeadlySignal() for now.
fix some compile errors in asan and lsan.
2019-10-02 05:04:58 +00:00
mrg
013d491e47 recycle README.gcc7 as README.gcc8 and give it a fresh clean 2019-10-02 04:23:58 +00:00
msaitoh
08f48d8fd1 Print oversized frame's message only when DIAGNOSTIC is set. The message
is not so important because we increment if_iqdrops now.
2019-10-02 04:17:16 +00:00
mrg
78e1884efe remove obsolete code and merge botch. 2019-10-02 03:46:21 +00:00
mrg
9c540241b2 remove obsolete gcc 4.9 or1k code. 2019-10-02 02:59:46 +00:00
mrg
e66a3c37e9 - use /usr/include/gcc-8
- update sanitizer makefiles

also, reduce diffs to upstream:
- remove or1k support
- re-order various lines to match upstream
- move regex map code into file-prefix-map.[ch]
2019-10-02 02:54:34 +00:00
mrg
200c7aa165 retire or1k gcc 4.9 code. 2019-10-02 02:50:38 +00:00
hkenken
97c77c3d3c Fixed compile error.
remove fdtbus_pinctrl_configure().
2019-10-02 01:34:09 +00:00
jmcneill
0060d28c56 Add support for devices with separate "init" and "default" pinctrl states. 2019-10-01 23:32:52 +00:00
mrg
eb6947af76 merge GCC 8.3.
XXX: our change for e500 has moved into 'powerpcspe' port, which has
XXX: been marked deprecated in GCC 8.  this may affect what ppc ports
XXX: can update to GCC 8 easily, and we may need to add support for
XXX: 'powerpcspe' while we can.
2019-10-01 22:44:18 +00:00
mrg
78fc770276 regen for GCC 8.3 and our changes. 2019-10-01 22:41:59 +00:00
kamil
1f257ef9aa Merge PT_GET_PROCESS_STATE checks into traceme_raise ATF ptrace tests
Assert that PT_GET_PROCESS_STATE for !child and !lwp events returns
non-error and zeroed struct ptrace_state.

These checks are not really special to traceme_raise, it's just an
opportunity to reuse them in an existing tests without writing a dedicated
one.

This behavior is needed to maintain in 3rd party software (GDB).
2019-10-01 22:26:38 +00:00
kamil
2f629ee89a Remove 2 static asserts from the kernel ptrace code
sizeof(pid) and sizeof(lwp) will unlikely ever change and the check can
confuse.

The assert has been moved to ATF t_ptrace_wait.c r.1.132.

Requested by <christos>
2019-10-01 21:49:50 +00:00