259119 Commits

Author SHA1 Message Date
christos
1a640231a9 Don't warn about undefined symbols when we sanitize, since we are not linking
against the sanitizers.
2018-06-02 01:40:52 +00:00
christos
1372179b4a Don't add a dynamic dependency to the sanitizer shared libaries in other
shared libraries.
2018-06-02 01:40:02 +00:00
christos
a62bd702e8 Don't sanitize the sanitizer. 2018-06-02 01:38:41 +00:00
christos
a4bb88f1bb Use a constant to prevent dynamic array allocation which messes up SSP. 2018-06-02 01:19:46 +00:00
jmcneill
3431fec8cc Move simplefb declaration to files.fdt 2018-06-01 22:11:53 +00:00
mrg
7af9bd6f50 commit some note updates i wrote last august. 2018-06-01 21:46:18 +00:00
mrg
ac73e5178c include <sys/param.h> for the cddl proc.h vs our lwp.h.
this fixes build issues with cats/netwinder since the zfs/dtrace update.
2018-06-01 21:22:43 +00:00
nat
bd032a9faa Fix support for 8192eu, notably TPLINK TL-WN823NV2, by using the right
registers when setting receiver gain.

Ok christos@.
2018-06-01 19:19:54 +00:00
nat
7b4ff3c65a Add another register as found on 8192eu. 2018-06-01 19:17:04 +00:00
macallan
042f7395a2 add functions to access SCOM registers on 970 CPUs 2018-06-01 18:18:11 +00:00
macallan
595e9ddcb5 set ATACH_DMA_BEFORE_CMD 2018-06-01 18:14:33 +00:00
macallan
8c68fa51e4 add a flag to start DMA before issuing commands - needed to work around a bug
in some SATA chips which get confused if the disk responds too fast
Mostly for K2 SATA / svwsata found in G5 Macs
adapted from OpenBSD
2018-06-01 18:13:30 +00:00
macallan
0e0166f058 add clock speed control for 970MP CPUs 2018-06-01 18:06:58 +00:00
bouyer
d24a660346 Defer display hardware reset to pipeline activation. This way, if we have a
pipeline setup which we can't manage, the simple framebuffer will keep working.
2018-06-01 17:18:44 +00:00
macallan
fed8fb0816 enable svwsata now that it works properly 2018-06-01 16:13:08 +00:00
macallan
faa3170145 another G5-specific fix - do a 32bit read of the status register before
checking for channel interrupts. No more interrupt storms.
Adapted from FreeBSD
2018-06-01 16:12:01 +00:00
thorpej
fe989590a3 Fix a paste-o that prevented the 2-pin interrupt messages from being
printed correctly (but no other harmful effects).  Pointed out by
Brad Spencer.
2018-06-01 13:42:14 +00:00
maxv
27f49d46d5 Fix M_PKTHDR use in if_alc, if_age and if_ena.
if_alc and if_age always put in _rxhead a M_PKTHDR-flagged mbuf, so the
flag must always be present. Instead of manually adding the flag, add a
KASSERT to ensure it is already there. If it weren't, there would be
memory corruptions.

Same in if_ena, but this one does not compile so we don't really care.

Also, use m_remove_pkthdr to remove the flag, instead of doing it
manually. This ensures the tags get freed (even though these drivers
don't seem to be using mtags).
2018-06-01 09:34:39 +00:00
maxv
3be9488a92 Use m_remove_pkthdr() instead of "&= ~M_PKTHDR", to ensure the tags get
freed. Several other drivers have this problem it seems...
2018-06-01 09:10:52 +00:00
maxv
ecc6d10cdd Rename
M_CSUM_DATA_IPv6_HL -> M_CSUM_DATA_IPv6_IPHL
	M_CSUM_DATA_IPv6_HL_SET -> M_CSUM_DATA_IPv6_SET

Reduces the diff against IPv4. Also, clarify the definitions.
2018-06-01 08:56:00 +00:00
reinoud
bc04b4d828 Pretend we already included the <types.h> 2018-06-01 08:04:57 +00:00
reinoud
904d0d7d53 Pass the address of the array, this fixes issues with i386 compilation 2018-06-01 07:26:15 +00:00
reinoud
030165175e Compile NetBSD/userland without CTF for the linker doesn't allow for a single
file compiled without CTF
2018-06-01 07:22:33 +00:00
reinoud
597163716c Fix compilation errors so NetBSD/usermode compiles under ./build.sh 2018-06-01 07:19:50 +00:00
ozaki-r
d72e3ba12d Make sure to remove all AF_LINK addresses in if_detach 2018-06-01 07:16:23 +00:00
ozaki-r
20ec6b197e Make sure to not change if_hwdl once set 2018-06-01 07:14:13 +00:00
ozaki-r
28cab72f3d Fix _rt_free via rtrequest(RTM_DELETE) hangs in rt_timer handlers
A rt_timer handler is passed a rtentry with an extra reference that avoids the
rtentry is accidentally released.  So rt_timer handers must release the reference
of a passed rtentry by themselves (but they didn't).
2018-06-01 07:13:35 +00:00
kre
8c02aa5477 80 column police. Some KNF and whitespace corrections (until I got bored...)
NFCI.
2018-06-01 05:48:29 +00:00
christos
11e4f7ba0a Generate xml files properly. Noted by youri.
XXX: pullup-8
2018-06-01 01:21:02 +00:00
mrg
018c94e858 disable a few more things and return another 1% of memory. 2018-06-01 01:19:06 +00:00
kre
c0824e2dbe Avoid duplicate typedefs so these headers can be used
as part of tools build, when the base system compiler does
not allow duplicate type definitions.

Someone please fix this some better way than this!
2018-06-01 00:56:19 +00:00
christos
bbc1fb973a PR/50893: Bruce Lilly: Handle carp interfaces.
XXX: pullup-8 (in src/external/bsd/dhcp/dist/common/bpf.c)
2018-06-01 00:42:49 +00:00
mrg
51f0836237 the previous change doubled the check for pascal. fix it so
that we only check for later maxwell and pascal once each,
as intended.
2018-05-31 23:46:59 +00:00
mrg
8be7f28269 docpureset() doesn't return anything, so mark it void.
(probably could also be __dead.)
2018-05-31 23:22:50 +00:00
mrg
242ae3d56a convert Lfp_null_fpstate (which is invoked if savefpstate() is called
with NULL) into a panic for DIAGNOSTIC kernels.
2018-05-31 22:44:13 +00:00
mrg
e6f1ec2627 it's called VM_MAXUSER_ADDRESS32 not VM_MAXUSER32_ADDRESS.
fixes mips64 builds, and likely fixes riscv when it happens again.
2018-05-31 22:26:36 +00:00
jmcneill
4cc813e6ef sunxi_gpio_release: hold lock around call to sunxi_gpio_ctl 2018-05-31 20:52:53 +00:00
maxv
125fb0e433 Add XXX for NULL deref. Not sure how to fix it, not sure we care either... 2018-05-31 15:41:11 +00:00
maxv
48df35d34b Clarify, remove superfluous things. 2018-05-31 15:34:25 +00:00
maxv
56fc5b5d9b Adapt rev1.75, suggested by Alexander Bluhm. Relax the checks to allow
protocols smaller than two bytes (only IPPROTO_NONE). While here style.
2018-05-31 15:06:45 +00:00
maxv
767beb2240 Remove the non-IKE part of the computation, too. 2018-05-31 13:51:56 +00:00
kamil
ea3d16d0e0 Fix read of unitialized array elements in top(1)
The cp_old array is allocated with malloc(3) and its pointer is passed to
percentages64().

In this function there happens a calculation of total_change, which value
depends on the value inside the unitialized cp_old[] array.

==26662==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x268a2c in percentages64 /usr/src/external/bsd/top/bin/../dist/machine/m_netbsd.c:1341:6
#1 0x26748b in get_system_info /usr/src/external/bsd/top/bin/../dist/machine/m_netbsd.c:478:6
#2 0x25518e in do_display /usr/src/external/bsd/top/bin/../dist/top.c:507:5
#3 0x253038 in main /usr/src/external/bsd/top/bin/../dist/top.c:975:2
#4 0x21cad1 in ___start (/usr/bin/top+0x1cad1)
SUMMARY: MemorySanitizer: use-of-uninitialized-value /usr/src/external/bsd/top/bin/../dist/machine/m_netbsd.c:1341:6 in percentages64
Exiting

Fix this issue by changling malloc(3) with calloc(3).

Detected with Memory Sanitizer during the integration of sanitizers with
the NetBSD basesystem.

Reported by <Yang Zheng>
2018-05-31 10:14:21 +00:00
ryo
451b70226c implement properly branch_taken() and inst_unconditional_flow_transfer(). 2018-05-31 09:37:16 +00:00
mrg
197fc894d1 fix XORG_PKG_PACKAGE_NAME to not include multiple quotes for PACKAGE_NAME,
and add a XORG_PKG_RELEASE_DATE to define RELEASE_DATE.
2018-05-31 09:31:39 +00:00
kamil
3ff7937744 Fix unitialized signal mask passed to sigaction(2) in top(1)
Detected with Memory Sanitizer during the integration of sanitizers with
the NetBSD basesystem.

Reported by <Yang Zheng>
2018-05-31 09:20:05 +00:00
mrg
8cdb4e7c98 disable matching nouveau on pascal and the second generation of maxwell
cards that are not supported by this version of drm.

this should fix various modern systems vs nvidia issues, eg PR 53188.

XXX: pullup-7, pullup-8.
2018-05-31 09:18:31 +00:00
mrg
7bed951fb6 regen. 2018-05-31 09:12:11 +00:00
mrg
3fed806bcf add a bunch of nvidia devices from various generations. 2018-05-31 09:11:47 +00:00
mrg
4a035634ac remove unused include. 2018-05-31 09:09:32 +00:00
mrg
5d873ca56c make 'clean' and/or 'cleandir' actually clean all the things. 2018-05-31 09:08:25 +00:00