270660 Commits

Author SHA1 Message Date
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
christos
98b92e3fd6 For 32 bit the mstohz and hztoms functions evaluate their parameter multiple
times. This is inefficient for cases like:
    unsigned ms = hztoms(MIN(timeout, mstohz(INT_MAX)));
Make them inline functions; also provide the 64 bit versions for them here
so all the LP64 machines can use them (before only amd64 and sparc64
specialized mstohz).
Make them both return unsigned int.
2019-09-28 15:10:58 +00:00
christos
95af61f1e6 Fix signed/unsigned comparison 2019-09-28 12:34:56 +00:00
bouyer
45858b815d joshua stein, PR kern/54493: acpi_i2c uses incorrect arguments for _DSM call
The last argument to the _DSM call has to be ACPI_TYPE_PACKAGE, as defined in in
clude/acpredef.h for _DSM.

Avoids an ACPI warning at boot.
2019-09-28 11:24:10 +00:00
mlelstv
dda7ace908 Fix typo, remove debug printf. 2019-09-28 10:47:09 +00:00
mlelstv
0735f45fcf signed/unsigned comparison. 2019-09-28 08:21:08 +00:00
skrll
36e99b00d0 Update tegra_pinmux to support all bindings (pins and pin groups)
Update tegra210_pinmux.c with all defined pins and groups.
2019-09-28 07:42:47 +00:00
skrll
93f547b926 Fix build on SOC_BCM2835 kernels 2019-09-28 07:39:30 +00:00
mlelstv
5577cee0b2 Handle BCM2838 (bcm2711) SoC pecularities. 2019-09-28 07:24:52 +00:00
plunky
1f4a29ea41 permit read_encryption_key_size from userland 2019-09-28 07:10:55 +00:00
skrll
1422789e63 newline after break 2019-09-28 07:06:50 +00:00
plunky
c7c6d6a659 When encrypted connections are configured, verify that the encryption
key length has a minimum size when the adaptor supports that.

This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506

https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/
2019-09-28 07:06:33 +00:00
skrll
d85c9217cb Whitespace 2019-09-28 07:06:32 +00:00
christos
c4ca49101c Fix copying issue that was causing errors in unit_test puffs_tstavfs by
removing code.
2019-09-27 22:36:57 +00:00
jakllsch
98f4c0656e Use roundup2() instead of open coding something almost the same that
truncates 64-bit quantities.

Fixes disk access and booting in bootaa64.efi on SoftIron OverDrive 1000
(which does not have any memory below 4GiB).
2019-09-27 20:10:42 +00:00
jmcneill
2e338718ed Don't assume pinctrl-0 is the default configuration. 2019-09-27 20:05:53 +00:00
christos
37c269d9aa Instead of casting to size_t, cast to uintmax_t to prevent truncation
(pointed out by chuq). In all these cases uio_offset can't be negative.
2019-09-27 14:36:18 +00:00
skrll
3d1277ec53 BCM2838 (RPI4) support.
Based on a diff from mlelstv
2019-09-27 12:58:54 +00:00
bad
62a168f97a Remove libelf from "usr" list. Deleted 2015-09-30. 2019-09-27 11:57:42 +00:00
bad
c0a44e83e0 Exclude sys/external/{gpl2/dts,bsd/drm*}.
Saves some 100MB in the src-netbsd repo.
2019-09-27 11:53:42 +00:00
mlelstv
253aa8fee2 BEAGLE* kernel expects NetBSD bootargs (command line, no FDT). 2019-09-27 08:57:12 +00:00
gson
8dd7503246 Incrase pxeboot code size limit from 64k to 128k. Fixes PR kern/54560.
The start_pxe.S part was suggested by mlelstv.
2019-09-27 08:57:10 +00:00
mlelstv
ac4fabcadc Ensure failure if resid goes negative. 2019-09-27 08:17:11 +00:00