270590 Commits

Author SHA1 Message Date
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
mlelstv
2030671b99 signed/unsigned mismatch. 2019-09-27 08:12:01 +00:00
wiz
9d3e825cb4 Sort errors. Remove trailing whitespace. 2019-09-27 07:20:07 +00:00
hkenken
9e55e6308e Add i.MX SPI device type.
IMX31_CSPI
	IMX35_CSPI
	IMX51_ECSPI
2019-09-27 02:59:21 +00:00
hkenken
d8665b6fda Add SDHC_FLAG_NO_BUSY_INTR flag. 2019-09-27 02:54:57 +00:00
chs
3ea1957ac9 do not clear "cold" in MD code, that is done in MI code.
this instance was missed when that was changed 20 years ago.
2019-09-27 00:53:34 +00:00
pgoyette
ccc3f35b62 Actually return the updated pointer-to-mbuf-pointer to the caller
rather than discarding-after-assignment.  Introduced from the
[pgoyette-compat] branch work.

Welcome to 9.99.14 !!!  (Module hook routine prototype changed.)

Found by the lgtm bot, reported via private Email from maxv@
2019-09-27 00:32:03 +00:00
bad
604f5fbb67 rtadvd needs expandm.[hc] from libwrap. 2019-09-26 22:43:36 +00:00
bad
6551e0cc8c revert r1.35-r1.40 of sys/rump/listsrcdirs.
addressed differently in tools/Makefile r1.204.
2019-09-26 22:39:55 +00:00
sjg
7d130808c7 Do not assume safe to pass NULL to realpath(3).
PR: 54574
Reviewed by: buhrow
2019-09-26 21:09:55 +00:00
christos
d23402aa92 provide VNOVALSIZE and VNOVALFLAGS to avoid casting in source. 2019-09-26 20:57:19 +00:00
christos
5c69aad9bb Validate register number before fetching/storing it (Gopikrishnan Sidhardhan) 2019-09-26 20:11:10 +00:00
christos
5305e0052c kill WARNS = 3 2019-09-26 18:45:00 +00:00
christos
931165c7dc Cast m_mbuflen() result to "size_t". It could also be "u_int" since it is
assigned to "u_int", but all the other "standalone" equivalent functions return
"size_t".
2019-09-26 18:44:45 +00:00
christos
b9a70faf36 kill WARNS = 3 2019-09-26 18:36:08 +00:00
christos
e86444da16 cast VNOVAL to the the va_size type which is u_quad_t... I think it is time
to change this to uint64_t...
2019-09-26 18:35:48 +00:00
bad
c3c178f615 Provide a weak alias for vnode_to_path to be used unless librumpvfs is present. 2019-09-26 17:52:50 +00:00
christos
1283b96a83 Kill WARNS = 3 2019-09-26 17:34:56 +00:00
christos
41d496bc7d fix sign-compare issues: uio->uio_offset (off_t) is compared with (size_t):
cast the offset to size_t.
2019-09-26 17:34:08 +00:00
christos
9625eb0427 Rewrite the procfs_fileno as an inline function to make it more clear what
it does...
2019-09-26 17:33:18 +00:00
christos
75a357d94d document errors returned by F_GETPATH 2019-09-26 17:13:52 +00:00