Commit Graph

266299 Commits

Author SHA1 Message Date
christos
471d2b29bd remove junk assignment. 2019-02-25 00:11:13 +00:00
kamil
9dee33b7ea Add KCOV_LOAD() and KCOV_STORE() - new helper macros
New macros prefer 64-bit atomic operations whenever accessible.

As a fallback they use volatile move operations that are not known
to have negative effect in KCOV even if interrupted in the middle of
operation.

Enable kcov_basic and kcov_thread tests on targets without
__HAVE_ATOMIC64_OPS.
2019-02-24 21:14:43 +00:00
kamil
a14ed5aee6 Add missing FALLTHROUGH in sctp_input.c
Requested by GCC NetBSD/i386 kUBSan KCOC build.
2019-02-24 21:07:59 +00:00
kamil
3e090a1e3b Enable kUBSan kASan and KCOV in NetBSD/amd64 kernel=ALL
Add disabled KLEAK as it conflicts right now with KCOV, using the same
compiler instrumentation.
2019-02-24 20:58:55 +00:00
kamil
099f0805df Enable kUBSan and KCOV in NetBSD/i386 kernel=ALL 2019-02-24 20:56:27 +00:00
kamil
b477c804de Add missing FALLTHROUGH in gpib/mt.c
Requested by GCC in NetBSD/i386 kUBSan KCOV build.
2019-02-24 20:54:13 +00:00
kamil
c65357e618 Add missing FALLTHROUGH in isa/mcd.c
Requested by GCC in NetBSD/i386 kUBSan KCOV build.

Reviewed by <mgorny>
2019-02-24 20:50:03 +00:00
roy
4650f8774d Fix warn macro usage.
Thanks to rofl0r.
2019-02-24 20:20:18 +00:00
christos
d40d641d38 update for new bind 2019-02-24 20:06:43 +00:00
christos
d478069cbd new bind 2019-02-24 20:04:01 +00:00
christos
5e267ba4d2 merge conflicts 2019-02-24 20:01:26 +00:00
jandberg
a802c0bcd6 fix comment 2019-02-24 19:25:35 +00:00
jandberg
b4b0a14b43 cnpollc needs to be called before cngetc 2019-02-24 19:24:20 +00:00
mlelstv
09915c34c2 Reading a directory may trigger a panic when the buffer is too small.
Adjust necessary checks.

While here, also check for arithmetic overflow.

Reported-by: syzbot+88ecace8bff24169058f@syzkaller.appspotmail.com
2019-02-24 19:06:40 +00:00
christos
5eef490386 --- 9.13.7 released ---
5165.	[contrib]	Removed SDB drivers from contrib; they're obsolete.
			[GL #428]

5164.	[bug]		Correct errno to result translation in dlz filesystem
			modules. [GL #884]

5163.	[cleanup]	Out-of-tree builds failed --enable-dnstap. [GL #836]

5162.	[cleanup]	Improve dnssec-keymgr manual. Thanks to Tony Finch.
			[GL !1518]

5161.	[bug]		Do not require the SEP bit to be set for mirror zone
			trust anchors. [GL #873]

5160.	[contrib]	Added DNAME support to the DLZ LDAP schema. Also
			fixed a compilation bug affecting several DLZ
			modules. [GL #872]

5159.	[bug]		dnssec-coverage was incorrectly ignoring
			names specified on the command line without
			trailing dots. [GL !1478]

5158.	[protocol]	Add support for AMTRELAY and ZONEMD. [GL #867]

5157.	[bug]		Nslookup now errors out if there are extra command
			line arguments. [GL #207]

5141.	[security]	Zone transfer controls for writable DLZ zones were
			not effective as the allowzonexfr method was not being
			called for such zones. (CVE-2019-6465) [GL #790]

5118.	[security]	Named could crash if it is managing a key with
			`managed-keys` and the authoritative zone is rolling
			the key to an unsupported algorithm. (CVE-2018-5745)
			[GL #780]

5110.	[security]	Named leaked memory if there were multiple Key Tag
			EDNS options present. (CVE-2018-5744) [GL #772]

	--- 9.13.6 released ---

5156.	[doc]		Extended and refined the section of the ARM describing
			mirror zones. [GL #774]

5155.	[func]		"named -V" now outputs the default paths to
			named.conf, rndc.conf, bind.keys, and other
			files used or created by named and other tools, so
			that the correct paths to these files can quickly be
			determined regardless of the configure settings
			used when BIND was built. [GL #859]

5154.	[bug]		dig: process_opt could be called twice on the same
			message leading to a assertion failure. [GL #860]

5153.	[func]		Zone transfer statistics (size, number of records, and
			number of messages) are now logged for outgoing
			transfers as well as incoming ones. [GL #513]

5152.	[func]		Improved logging of DNSSEC key events:
			- Zone signing and DNSKEY maintenance events are
			  now logged to the "dnssec" category
			- Messages are now logged when DNSSEC keys are
			  pubished, activated, inactivated, deleted,
			  or revoked.
			[GL #714]

5151.	[func]		Options that have been been marked as obsolete in
			named.conf for a very long time are now fatal
			configuration errors. [GL #358]

5150.	[cleanup]	Remove the ability to compile BIND with assertions
			disabled. [GL #735]

5149.	[func]		"rndc dumpdb" now prints a line above a stale RRset
			indicating how long the data will be retained in the
			cache for emergency use. [GL #101]

5148.	[bug]		named did not sign the TKEY response. [GL #821]

5147.	[bug]		dnssec-keymgr: Add a five-minute margin to better
			handle key events close to 'now'. [GL #848]

5146.	[placeholder]

5145.	[func]		Use atomics instead of locked variables for isc_quota
			and isc_counter. [GL !1389]

5144.	[bug]		dig now returns a non-zero exit code when a TCP
			connection is prematurely closed by a peer more than
			once for the same lookup.  [GL #820]

5143.	[bug]		dnssec-keymgr and dnssec-coverage failed to find
			key files for zone names ending in ".". [GL #560]

5142.	[cleanup]	Removed "configure --disable-rpz-nsip" and
			"--disable-rpz-nsdname" options. "nsip-enable"
			and "nsdname-enable" both now default to yes,
			regardless of compile-time settings. [GL #824]

5140.	[bug]		Don't immediately mark existing keys as inactive and
			deleted when running dnssec-keymgr for the first
			time. [GL #117]

5139.	[bug]		If possible, don't use forwarders when priming.
			This ensures we can get root server IP addresses
			from priming query response glue, which may not
			be present if the forwarding server is returning
			minimal responses. [GL #752]

5138.	[bug]		Under some circumstances named could hit an assertion
			failure when doing qname minimization when using
			forwarders. [GL #797]

5137.	[func]		named now logs messages whenever a mirror zone becomes
			usable or unusable for resolution purposes. [GL #818]

5136.	[cleanup]	Check in named-checkconf that allow-update and
			allow-update-forwarding are not set at the
			view/options level; fix documentation. [GL #512]

5135.	[port]		sparc: Use smt_pause() instead of pause. [GL #816]

5134.	[bug]		win32: WSAStartup was not called before getservbyname
			was called. [GL #590]

5133.	[bug]		'rndc managed-keys' didn't handle class and view
			correctly and failed to add new lines between each
			view. [GL !1327]

5132.	[bug]		Fix race condition in cleanup part of dns_dt_create().
			[GL !1323]

5131.	[cleanup]	Address Coverity warnings. [GL #801]

5130.	[cleanup]	Remove support for l10n message catalogs. [GL #709]

5129.	[contrib]	sdlz_helper.c:build_querylist was not properly
			splitting the query string. [GL #798]

5128.	[bug]		Refreshkeytime was not being updated for managed
			keys zones. [GL #784]

5127.	[bug]		rcode.c:maybe_numeric failed to handle NUL in text
			regions. [GL #807]

5126.	[bug]		Named incorrectly accepted empty base64 and hex encoded
			fields when reading master files. [GL #807]

5125.	[bug]		Allow for up to 100 records or 64k of data when caching
			a negative response. [GL #804]

5124.	[bug]		Named could incorrectly return FORMERR rather than
			SERVFAIL. [GL #804]

5123.	[bug]		dig could hang indefinitely after encountering an error
			before creating a TCP socket. [GL #692]

5122.	[bug]		In a "forward first;" configuration, a forwarder
			timeout did not prevent that forwarder from being
			queried again after falling back to full recursive
			resolution. [GL #315]

5121.	[contrib]	dlz_stub_driver.c fails to return ISC_R_NOTFOUND on none
			matching zone names. [GL !1299]

5120.	[placeholder]

5119.	[placeholder]

5117.	[placeholder]

5116.	[bug]		Named/named-checkconf triggered a assertion when
			a mirror zone's name is bad. [GL #778]

5115.	[bug]		Allow unsupported algorithms in zone when not used for
			signing with dnssec-signzone. [GL #783]

5114.	[func]		Include a 'reconfig/reload in progress' status line
			in rndc status, use it in tests.

5113.	[port]		Fixed a Windows build error.

5112.	[bug]		Named/named-checkconf could dump core if there was
			a missing masters clause and a bad notify clause.
			[GL #779]

5111.	[bug]		Occluded DNSKEY records could make it into the
			delegating NSEC/NSEC3 bitmap. [GL #742]

5109.	[cleanup]	Remove support for RSAMD5 algorithm. [GL #628]
2019-02-24 18:56:37 +00:00
christos
7b43da1b7c use a macro to tidy up the phydesc array initialization, from FreeBSD 2019-02-24 17:22:21 +00:00
kamil
268ebb5494 Appease GCC7 in sctp_asconf.h
Do not declare types inside function parameter list.
Add decklarations of types before these function prototypes.
2019-02-24 17:01:52 +00:00
hannken
a06d953753 Clear per-lwp entries whose mount is gone before the first return
from fstrans_done().

No longer leaks "struct mount" forever.
2019-02-24 16:11:24 +00:00
sevan
9c44dd6276 Shorter than a season - The Soul Of A New Machine 2019-02-24 12:34:00 +00:00
jmcneill
3de82c2344 Pass 0xff instead of true to memset when setting "all PIDs" mode in the PID filter 2019-02-24 12:05:49 +00:00
maya
00b9d7ef65 fix typo. From Evil_Bob. 2019-02-24 11:51:05 +00:00
maxv
a64b043005 Improve the KASAN output, provide an error code, to help distinguish
classes of bugs.
2019-02-24 10:44:41 +00:00
maxv
8ed99d3815 Add support for use-after-scope detection in KASAN. It is available since
GCC7, and we have GCC7 by default now.

Slightly reorder the code, and remove a duplicated KASSERT too.

Tested on amd64-KASAN. Not yet enabled on aarch64-KASAN, but it should
work as-is.
2019-02-24 08:02:45 +00:00
pgoyette
4edc48b05c Add a couple of (rather ancient) definitions for PTT 2019-02-24 07:39:33 +00:00
mlelstv
bc5f1f9c7a The callout is used by any nonvirtual timer including CLOCK_MONOTONIC
and needs to be initialized.

Detected by [syzkaller].
2019-02-24 07:23:11 +00:00
maxv
d26f60da72 RIP, RIP6, DDP, SCTP and SCTP6 lack a length check in their _connect()
functions. Fix the first three, and add a big XXX in the SCTP ones.

Found by KASAN, triggered by SyzKaller.

Reported-by: syzbot+9eaf98dad6ca738c250d@syzkaller.appspotmail.com
2019-02-24 07:20:33 +00:00
rin
88ce17d544 Hook spi. 2019-02-24 02:30:38 +00:00
rin
35582ab2a7 Install spi.9 and friends. 2019-02-24 02:29:56 +00:00
rin
0a91477ac0 Add ./usr/include/dev/spi 2019-02-24 02:29:09 +00:00
kamil
c5cd46777b Drop signal5 test-case from ATF t_ptrace_wait*
This test is now duplicated with traceme_signalmasked_exec.
2019-02-23 20:52:42 +00:00
kamil
71299c6f1d Add signal masked and ignored variations of traceme_exec in ATF tests
All tests pass.
2019-02-23 20:46:27 +00:00
kamil
6174d56e42 Rearrange code in amdgpu_display.c to prevent build error
GCC reports that stat can be uninitialized when used, prevent this with
changing the construction of the code a little bit.

Keep original indent in order to not generate diff with upstream.

Solution suggested by <mrg>

Detected with GCC7 when building NetBSD/i386 with kUBSan.
2019-02-23 19:56:51 +00:00
kamil
e9178591aa Add missing break in amdgpu_gfx_v8_0.c
Reviewed by <mrg>

Detected with GCC7 with kUBSan build for NetBSD/i386
2019-02-23 19:37:36 +00:00
kamil
cf28f6959e Add missing break in amdgpu_cz_smc.c
Reviewed by <mrg>

Detected with GCC7 with kUBSan build for NetBSD/i386
2019-02-23 19:36:15 +00:00
kamil
0327411d8a Add signal masked and ignored variations of traceme_vfork_exec in ATF tests
All tests pass.
2019-02-23 18:07:47 +00:00
wiz
e38ac3b5cb New sentence, new line. Add missing Nd. Remove superfluous Rs. 2019-02-23 17:37:10 +00:00
wiz
70e4e24829 Sort SEE ALSO. 2019-02-23 17:34:04 +00:00
wiz
eb550baddf New sentence, new line. 2019-02-23 17:33:01 +00:00
martin
d9a5cbbf80 Adjust all callers of dwc_gmac_attach, pass MII_PHY_ANY for now. 2019-02-23 17:18:38 +00:00
martin
3502630206 Pass the phy ID to dwc_gmac_attach. 2019-02-23 17:18:07 +00:00
kamil
a7931d4610 Register kUBSan and KCOV in kernel=GENERIC of NetBSD/i386
Both options are disabled by default.
2019-02-23 12:28:22 +00:00
maxv
5891881932 Install the x86 RESET state at VCPU creation time, for convenience, so
that the libnvmm users can expect a functional VCPU right away.
2019-02-23 12:27:00 +00:00
kamil
83b223f69d Reserve majors for HAXM and example loadable kernel modules
348-350 are reserved for HAXM
351 is reserved for sys/modules/examples

Discussed on tech-kern@
2019-02-23 12:25:33 +00:00
kamil
0a62dd894e Stop including <sys/atomic.h> in KCOV
This header is not needed.

Noted by <martin>
2019-02-23 12:07:40 +00:00
kamil
ccd1760460 Fix subr_kcov build on NetBSD/i386
Cast the pointer returned from __builtin_return_address() to intptr_t
before converting it to uint64_t.
2019-02-23 12:03:07 +00:00
kamil
e222246acd Correct printing type of b_blkno (int64_t) in st.c
Fixes build with kUBSan on NetBSD/i386.
2019-02-23 11:57:41 +00:00
kamil
6d863cec8b Fix GCC7 "avoid ambiguous 'else'" build error in if_wm.c
Detected with kUBSan NetBSD/i386 build.
2019-02-23 11:41:08 +00:00
kamil
3f2edb6fdf Improve fallthrough statement wording in dev/gpib/ct.c
Fixes build with kUBSan on NetBSD/i386.
2019-02-23 11:33:31 +00:00
kamil
e1b2633dfc Improve fallthrough statement wording
Fixes build with kUBSan on NetBSD/i386.
2019-02-23 11:24:53 +00:00
mlelstv
ed3650807a add missing debug file for kcov. 2019-02-23 11:23:07 +00:00