270582 Commits

Author SHA1 Message Date
mrg
e9ed101783 add a note about GCC 8.3 import probably needing cleaning. 2019-10-01 09:36:56 +00:00
mrg
14f5a3b000 import GCC 8.3. it includes these new features:
- many optimisations improved: inter-procedural, profile-directed,
  LTO, loops including user-controllable unroll support, and more.
- columns numbers added to line numbers in dwarf
- gcov extended significantly
- many sanitizer updates
- many new warning messages
- many better hints and more useful error messages
- minor ABI changes on x86-64 libstdc++, and some c++17 modes
- draft c++2a features
- better c++17 experimental support
- Armv8.4-A supported, better 8.2-A and 8.3-A support, including
  32 bit arm port.  cortex a-55, a-75 and a-55.a-75 combo support.
- in the GCC bugzilla, 8.1 shows 1149 bugs fixed, 8.2 shows 100, and
  8.3 shows 158.
2019-10-01 09:36:01 +00:00
msaitoh
b7164648bb Increment if_iqdrops when dropping an oversized frame. 2019-10-01 08:13:16 +00:00
cnst
da5825f8ed kern/subr_disk: bounds_check_with_label: really protect against div by zero
Solves kernel panic in NetBSD 8.1 amd64 on VirtualBox 6.0.12 r133076.

Triggered with an NVMe controller without any actual discs behind it:

nvme0 at pci0 dev 14 function 0: vendor 80ee product 4e56 (rev. 0x00)
nvme0: NVMe 1.2
nvme0: interrupting at ioapic0 pin 22
nvme0: ORCL-VBOX-NVME-VER12, firmware 1.0, serial VB1234-56789
ld0 at nvme0 nsid 1
ld0: 0, 0 cyl, 16 head, 63 sec, 1 bytes/sect x 0 sectors

Code path is reached 4 times during normal boot, each time after wd0a
is already mounted; this patch avoids a crash with a dirty filesystem.
2019-09-30 23:23:59 +00:00
rmind
4d18bc5819 npf_ifmap_copylogname: be more defensive. 2019-09-30 22:04:33 +00:00
kamil
90a994c899 Welcome to 9.99.15!
struct proc and eventswitch() API changes.
2019-09-30 21:18:00 +00:00
kamil
5e4bbc4985 Move TRAP_CHLD/TRAP_LWP ptrace information from struct proc to siginfo
Storing struct ptrace_state information inside struct proc was vulnerable
to synchronization bugs, as multiple events emitted in the same time were
overwritting other ones.

Cache the original parent process id in p_oppid. Reusing here p_opptr is
in theory prone to slight race codition.

Change the semantics of PT_GET_PROCESS_STATE, reutning EINVAL for calls
prompting for the value in cases when there wasn't registered an
appropriate event.

Add an alternative approach to check the ptrace_state information, directly
from the siginfo_t value returned from PT_GET_SIGINFO. The original
PT_GET_PROCESS_STATE approach is kept for compat with older NetBSD and
OpenBSD. New code is recommended to keep using PT_GET_PROCESS_STATE.

Add a couple of compile-time asserts for assumptions in the code.

No functional change intended in existing ptrace(2) software.

All ATF ptrace(2) and ATF GDB tests pass.

This change improves reliability of the threading ptrace(2) code.
2019-09-30 21:13:33 +00:00
uwe
1497865af5 Use -width Pa for FILES. 2019-09-30 21:06:16 +00:00
uwe
e1b6f38e10 Fix pasto in table replace -t type 2019-09-30 20:53:12 +00:00
uwe
052f05e3b3 Use -width Pa for FILES. 2019-09-30 20:44:51 +00:00
bouyer
574d42d82d fix double space in comment 2019-09-30 16:59:09 +00:00
bouyer
e1afbabffc Fix 2 bugs, reported by Edgar Fuß on tech-net@
- pfil_run_hooks() can be called recursively, so we have to
  #define FASTROUTE_RECURSION in fil.c
- ip6_if_output()/nd6_output() will free the mbuf on error, to make sure
  to set *mpp to NULL so the caller won't try to free it again.
2019-09-30 16:58:06 +00:00
sevan
f3e3e81ae9 Document standards and correct history.
via Free / OpenBSD.
2019-09-30 13:44:52 +00:00
christos
34c0ab9f83 use __inline
add missing __printflike attributes
2019-09-30 12:20:54 +00:00
knakahara
9b6ccc4b31 Fix a ifa_release() leak for a specific struct rt_addrinfo.
ok by ozaki-r@n.o
2019-09-30 10:22:14 +00:00
mrg
647857abb4 remove HAVE_GCC == 6 support, add HAVE_GCC == 8 support 2019-09-30 08:40:20 +00:00
knakahara
37335b67b8 Fix typo in vmxnet3_legacy_intr().
That causes sysctl hw.vmx*.{rx,tx} effect inversely when vmx(4) uses
INTx or MSI.
2019-09-30 07:13:54 +00:00
rmind
04cb50ac51 libnpf/npfctl: support dynamic NAT rulesets using a name prefix. 2019-09-30 00:37:11 +00:00
mrg
90bf43e918 convert HAVE_GCC == 7 to HAVE_GCC >= 7. 2019-09-30 00:06:02 +00:00
mrg
21303c93e9 convert HAVE_GCC == 7 to HAVE_GCC >= 7. 2019-09-29 23:44:58 +00:00
mrg
4be7da17b5 gcc 7 can now be found in gcc.old. 2019-09-29 22:10:55 +00:00
jakllsch
798696b68b Use AHCI_RFIS_SYNC in ahci_cmd_complete() AT_READREG case.
Ensures CPU sees the current device to host FIS before parsing.
2019-09-29 21:28:20 +00:00
jakllsch
957fc3477a Use AHCI_CMDTBL_SYNC in ahci_exec_fis() to ensure hardware sees the
command FIS.
2019-09-29 21:25:08 +00:00
jakllsch
d0c4fc374a Ensure cmdh_prdtl is 0 in ahci_do_reset_drive().
(I'm probably just being paranoid here.)
2019-09-29 21:21:41 +00:00
jakllsch
e5df2e6fa2 Make AHCI_RFIS_SYNC macro (currently unused) compile. 2019-09-29 21:16:14 +00:00
rmind
18d62e57fc npfctl: implement table replace subcommand.
Contributed by Timshel Knoll-Miller.

(missed a file in previous commit; cvs is so helpful..)
2019-09-29 18:51:08 +00:00
rmind
5d5375a7df NPF ifmap: rework and fix a few small bugs. 2019-09-29 17:00:29 +00:00
rmind
fc0df3a9c7 npfctl: implement table replace subcommand.
Contributed by Timshel Knoll-Miller.
2019-09-29 16:58:35 +00:00
rhialto
1c7f0224e7 Do all delta calculations strictly using uint32_t. Avoid integer
overflows in calculating absolute deltas by subtracting the right way
around.

Reported-by: syzbot+68c37d09c833f8ec1341@syzkaller.appspotmail.com
2019-09-29 12:07:52 +00:00
skrll
4d2c256e48 Typo in comment 2019-09-29 08:33:20 +00:00
skrll
aa0418fd85 aprint_debug_dev output alignment 2019-09-29 06:51:45 +00:00
macallan
03cbe5cbfe appease -Werror=stack-protector by avoiding variable sized arrays
Now this builds and works on sparc64
2019-09-29 05:35:29 +00:00
macallan
d5d5bb2c7c add another matchstring for the ds1307 found in Sun Fire V210 ( and probably
V240 )
2019-09-29 05:28:21 +00:00
uwe
dc64369beb db_command - don't hide local static variable in the middle of other
local variable definitions.  While here, get rid of the alignment of
variable names.
2019-09-29 02:49:59 +00:00
uwe
59ae426bf2 db_command - make setting have_addr more clear.
Don't set it to false that it's already initialized to.
2019-09-29 02:42:12 +00:00
uwe
a11e9371ac db_command - make sure count is always initialized. 2019-09-29 02:35:39 +00:00
uwe
22d01b8c34 Print db> prompt in db_read_line(), not db_readline().
The former is what DDB repl calls.  The latter performs the actual
input so let other code use it without the unwanted db> prompt.  It's
already used by ACPI (and AcpiOsWaitCommandReady supplies its own
prompt).  I also use it for my uncommitted Forth scripting for DDB.
2019-09-29 02:00:22 +00:00
pgoyette
949406f27b Another issue, as identified on IRC/ICB 2019-09-29 00:57:11 +00:00
jakllsch
2bd734055e Increase MI efiboot bootprompt() input buffer from 80 bytes to LINE_MAX.
This allows you to load a kernel from a build directory deep in some file
system after you accidentally boot an old kernel with a new userland and
are otherwise unable to get yourself back to a matching kernel.
2019-09-29 00:52:26 +00:00
mrg
2c08c52060 fix another sign compare warning:
cast 'int ret' to size_t when comparing against another size_t
and 'ret' has known to be 0 or positive.
2019-09-29 00:10:02 +00:00
bad
7a2e426f67 initialize disc_dict to NULL.
otherwise, if DIOCGDISKINFO returns an error != ENXIO getdiskinfo() later
tries to prop_object_release() stack garbage.

found by rumpctrl tests using clang-7.
2019-09-28 18:03:18 +00:00
tnn
67966cb98d len -> m_len 2019-09-28 16:22:45 +00:00
tnn
1afa4d8960 mcx(4): fix rx mbuf DMA overrun
pullup-9
2019-09-28 16:20:43 +00:00
chs
addc83ab61 initialize a local variable to avoid a gcc warning with
certain optimization options.
2019-09-28 16:14:52 +00:00
jmcneill
a20d501e5a mbstat_conver_to_user_cb -> mbstat_convert_to_user_cb 2019-09-28 16:02:12 +00:00
christos
42ca6328b8 fix sign-compare. 2019-09-28 15:15:34 +00:00
christos
f43e1160fa Disable NETBSD32_DRMKMS by not using it, but keep compiling it. 2019-09-28 15:15:09 +00:00
christos
30ebda9305 fixed signed compare. 2019-09-28 15:13:08 +00:00
christos
09ba5bf49a remove local version of mstohz() now that <sys/param.h> provides it. 2019-09-28 15:11:53 +00:00
christos
63ec74c9e4 document that mstohz take and return unsigned int 2019-09-28 15:11:19 +00:00