Commit Graph

305168 Commits

Author SHA1 Message Date
mrg 6989fe4bb2 version our GCC 12 as "nb2 20240221" now. 2024-02-25 02:24:19 +00:00
mrg ef940a1216 mknative-gcc for most targets and enabling isl. 2024-02-25 01:20:55 +00:00
mrg 2dd543c6fd add some missing alignment. 2024-02-25 01:12:16 +00:00
mrg e69074ca99 build and link libisl. 2024-02-25 00:28:02 +00:00
mlelstv 965fbc37fb Don't try to discover wedges when the unit isn't online. 2024-02-24 22:06:49 +00:00
mlelstv 995b989cb2 Deliver timestamps also to raw sockets.
Fixes PR 57955
2024-02-24 21:41:13 +00:00
mlelstv 217bab0335 Attribute debug message.
Fixes PR 57959
2024-02-24 21:39:05 +00:00
mrg 4629208b15 fix some fallout from 32-bit fixes for long double functions.
apply namespace.h to remqou*.  add missing weak aliases for some of them,
and normalise checkf for __weak_alias().

now libm.so seems to only have libc undefined symbols.
2024-02-24 19:32:09 +00:00
christos 3bb75881f8 avoid stringop truncation, fix copyright string to prevent assembler warnings. 2024-02-24 15:34:47 +00:00
christos d0129385d6 add missing symbols for non long double architectures. 2024-02-24 15:16:53 +00:00
rillig d13846be6a tests/snprintb: clean up tests
Always write the value to be formatted in hexadecimal, to make it easily
distinguishable from the buffer size and maximum line length.

Use consistent wording in the comments of the test cases. Be stricter
about mistakes in a format.

Fix some wrong numbers in the snprintb_m tests for limited line length.
2024-02-24 13:00:00 +00:00
rillig 4734052d82 snprintb: clean up
Use consistent data types for buffer positions and lengths, to avoid
type casts.
2024-02-24 12:44:11 +00:00
rillig e7ed3a67af snprintb: allow non-ASCII descriptions on all platforms
Previously, these descriptions were only allowed on platforms where
plain 'char' is unsigned. On platforms where plain 'char' is signed,
they invoked undefined behavior or terminated the output early.
2024-02-24 12:40:00 +00:00
andvar 386e06c283 Declare dt variable in PXARTC_DEBUG guarded blocks, since declarations were
removed in general one (likely as unused).

Fix dt.dt_year format specifier from %02d to expected %02lld.

Pass ch (todr_chip_handle_t), not sc (pxartc_softc) to rtc_wristwatch_gettime().

Fixes PXARTC_DEBUG enabled build (tested on zaurus).
2024-02-24 12:04:16 +00:00
mlelstv c6a10ee67b Chose better number format. 2024-02-24 10:10:04 +00:00
mlelstv 06daec5d6e Don't truncate mo_descr output and protect against missing terminating NUL. 2024-02-24 09:53:26 +00:00
andvar 2b4939ce9d Remove OMAP5EVM kernel config from README.evbarm, it was retired a while ago. 2024-02-24 08:56:07 +00:00
thorpej 57a3fc47c2 Define mode macros for CPOL and CPHA, and define SPI_MODE_* in terms
of CPOL and CPHA.  Add SPI_FREQ_*() helper macros to make setting the
transfer frequency less error prone.
2024-02-23 23:45:54 +00:00
andvar df634e507d s/optionms/options/ in copy-pasted comment. 2024-02-23 22:10:39 +00:00
andvar c989100c57 s/opetions/options/ in hw.ubsec node description. 2024-02-23 22:03:45 +00:00
christos 7f4072f8fe fix 32 bit build (no atomic_*_8) 2024-02-23 21:09:49 +00:00
christos 4851547888 fix the 32 bit tanl symbol. 2024-02-23 13:42:01 +00:00
christos c68df8acc1 fix static unused issue until lint understands attributes better. 2024-02-23 13:32:28 +00:00
mrg 439ff855d8 build isl tool for GCC 12. 2024-02-23 05:34:41 +00:00
mrg dde872423e build infrastructure for isl. 2024-02-23 05:33:03 +00:00
andvar 9a3e0ce89e sc_init_md_hook expects two params since interface change in imxusbvar.h rev 1.7
thus adjust kobo_usb_init() and netwalker_usb_init() functions accordingly.

Fixes build for KOBO and NETWALKER(_MD) kernel configs.
Needs pullup to netbsd-10.
2024-02-22 23:16:10 +00:00
rillig 69c5b3b0c1 snprintb: always null-terminate output
Always null-terminate the output in the buffer, even in error cases. The
wording in the manual page has been promising this since 2008. For
snprintb_m, ensure that the output is terminated with two null
characters, to gracefully handle situations in which the caller does not
check whether snprintb returned an error.

If the buffer size is zero, allow the buffer to be a null pointer,
analogous to snprintf.

Fix an out-of-bounds memory read if the bitfmt ends with a '*' directive
(since today).

In the tests, merge the helper functions for snprintb, snprintb_m, as
they were similar enough.

Fix a few 'line_max exceeded' tests, ensuring that they output a '#'
marker, and that the 'complete' tests don't.
2024-02-22 21:04:23 +00:00
rillig d101133e9b snprintb: error out on out-of-bounds bit shifts
Previously, these invoked undefined behavior, now they lead to an early
return. An example of out-of-bounds bit number is in SCZ_PCICTRL_BITS.
Bit fields that extend beyond the msb are still allowed.

Allow 'f' and 'F' to have fields that are 64 bits wide. This only makes
sense when the field starts at bit 0.

Remove the unused 'val_len', it was only needed before snprintb.c 1.20.
2024-02-22 18:26:15 +00:00
tsutsui c2ea718210 Pull a change of newfs/mkfs.c rev 1.136:
> if the window size works but is 0, assume it didn't work and use 80.
2024-02-22 14:11:52 +00:00
christos 413be39817 Use 32 bit counters on non _LP64 machines because they don't have 64 bit
atomics.
2024-02-22 12:43:10 +00:00
mrg e73c8d2f22 enable isl support for GCC 12. 2024-02-22 02:47:26 +00:00
mrg 73f1b4907e Include the local NetBSD GCC version so that bumps to it trigger rebuilds
unfortunately, this will cause one rebuild to get the new name.
2024-02-22 02:40:21 +00:00
mrg dcc586893d if the window size works but is 0, assume it didn't work and use 80. 2024-02-22 02:11:29 +00:00
mrg 38933bfad4 apply some NetBSD_DISABLED_* 2024-02-22 02:10:30 +00:00
christos 1fcbeeff9a new tool 2024-02-22 01:13:42 +00:00
christos 1d31a8ea1e new Makefile 2024-02-22 01:10:54 +00:00
christos e5e43f7b8c new tool 2024-02-22 01:10:37 +00:00
christos 83706a56cd add mdig and named-rrchecker 2024-02-22 00:59:44 +00:00
christos e359e10520 add new bind tools 2024-02-22 00:58:49 +00:00
andvar 181973476e Add 0x prefix before hex physmem in couple more places.
For netwinder move physmem arg to new line to keep line <80 symbols.
2024-02-21 23:23:06 +00:00
christos 20bd86aa0f new bind. 2024-02-21 22:55:29 +00:00
christos 21a52f56eb changes for new bind.
XXX: removing lint libraries where lint does not work anymore is temporary.
2024-02-21 22:53:47 +00:00
christos bb5aa156ef merge conflicts between 9.16.42 and 9.18.24 2024-02-21 22:50:55 +00:00
christos 8aaca124c0 Import bind-9.18.24 (previous was 9.16.42)
--- 9.18.24 released ---

6343.	[bug]		Fix case insensitive setting for isc_ht hashtable.
			[GL #4568]

	--- 9.18.23 released ---

6322.	[security]	Specific DNS answers could cause a denial-of-service
			condition due to DNS validation taking a long time.
			(CVE-2023-50387) [GL #4424]

6321.	[security]	Change 6315 inadvertently introduced regressions that
			could cause named to crash. [GL #4234]

6320.	[bug]		Under some circumstances, the DoT code in client
			mode could process more than one message at a time when
			that was not expected. That has been fixed. [GL #4487]

	--- 9.18.22 released ---

6319.	[func]		Limit isc_task_send() overhead for RBTDB tree pruning.
			[GL #4383]

6317.	[security]	Restore DNS64 state when handling a serve-stale timeout.
			(CVE-2023-5679) [GL #4334]

6316.	[security]	Specific queries could trigger an assertion check with
			nxdomain-redirect enabled. (CVE-2023-5517) [GL #4281]

6315.	[security]	Speed up parsing of DNS messages with many different
			names. (CVE-2023-4408) [GL #4234]

6314.	[bug]		Address race conditions in dns_tsigkey_find().
			[GL #4182]

6312.	[bug]		Conversion from NSEC3 signed to NSEC signed could
			temporarily put the zone into a state where it was
			treated as unsigned until the NSEC chain was built.
			Additionally conversion from one set of NSEC3 parameters
			to another could also temporarily put the zone into a
			state where it was treated as unsigned until the new
			NSEC3 chain was built. [GL #1794] [GL #4495]

6310.	[bug]		Memory leak in zone.c:sign_zone. When named signed a
			zone it could leak dst_keys due to a misplaced
			'continue'. [GL #4488]

6306.	[func]		Log more details about the cause of "not exact" errors.
			[GL #4500]

6304.	[bug]		The wrong time was being used to determine what RRSIGs
			where to be generated when dnssec-policy was in use.
			[GL #4494]

6302.	[func]		The "trust-anchor-telemetry" statement is no longer
			marked as experimental. This silences a relevant log
			message that was emitted even when the feature was
			explicitly disabled. [GL #4497]

6300.	[bug]		Fix statistics export to use full 64 bit signed numbers
			instead of truncating values to unsigned 32 bits.
			[GL #4467]

6299.	[port]		NetBSD has added 'hmac' to libc which collides with our
			use of 'hmac'. [GL #4478]

	--- 9.18.21 released ---

6297.	[bug]		Improve LRU cleaning behaviour. [GL #4448]

6296.	[func]		The "resolver-nonbackoff-tries" and
			"resolver-retry-interval" options are deprecated;
			a warning will be logged if they are used. [GL #4405]

6294.	[bug]		BIND might sometimes crash after startup or
			re-configuration when one 'tls' entry is used multiple
			times to connect to remote servers due to initialisation
			attempts from contexts of multiple threads. That has
			been fixed. [GL #4464]

6290.	[bug]		Dig +yaml will now report "no servers could be reached"
			also for UDP setup failure when no other servers or
			tries are left. [GL #1229]

6287.	[bug]		Recognize escapes when reading the public key from file.
			[GL !8502]

6286.	[bug]		Dig +yaml will now report "no servers could be reached"
			on TCP connection failure as well as for UDP timeouts.
			[GL #4396]

6282.	[func]		Deprecate AES-based DNS cookies. [GL #4421]

	--- 9.18.20 released ---

6280.	[bug]		Fix missing newlines in the output of "rndc nta -dump".
			[GL !8454]

6277.	[bug]		Take into account local authoritative zones when
			falling back to serve-stale. [GL #4355]

6275.	[bug]		Fix assertion failure when using lock-file configuration
			option together -X argument to named. [GL #4386]

6274.	[bug]		The 'lock-file' file was being removed when it
			shouldn't have been making it ineffective if named was
			started 3 or more times. [GL #4387]

6271.	[bug]		Fix a shutdown race in dns__catz_update_cb(). [GL #4381]

6269.	[maint]		B.ROOT-SERVERS.NET addresses are now 170.247.170.2 and
			2801:1b8:10::b. [GL #4101]

6267.	[func]		The timeouts for resending zone refresh queries over UDP
			were lowered to enable named to more quickly determine
			that a primary is down. [GL #4260]

6265.	[bug]		Don't schedule resign operations on the raw version
			of an inline-signing zone. [GL #4350]

6261.	[bug]		Fix a possible assertion failure on an error path in
			resolver.c:fctx_query(), when using an uninitialized
			link. [GL #4331]

6254.	[cleanup]	Add semantic patch to do an explicit cast from char
			to unsigned char in ctype.h class of functions.
			[GL #4327]

6252.	[test]		Python system tests have to be executed by invoking
			pytest directly. Executing them with the legacy test
			runner is no longer supported. [GL #4250]

6250.	[bug]		The wrong covered value was being set by
			dns_ncache_current for RRSIG records in the returned
			rdataset structure. This resulted in TYPE0 being
			reported as the covered value of the RRSIG when dumping
			the cache contents. [GL #4314]

	--- 9.18.19 released ---

6246.	[security]	Fix use-after-free error in TLS DNS code when sending
			data. (CVE-2023-4236) [GL #4242]

6245.	[security]	Limit the amount of recursion that can be performed
			by isccc_cc_fromwire. (CVE-2023-3341) [GL #4152]

6244.	[bug]		Adjust log levels on malformed messages to NOTICE when
			transferring in a zone. [GL #4290]

6241.	[bug]		Take into account the possibility of partial TLS writes
			in TLS DNS code. That helps to prevent DNS messages
			corruption on long DNS over TLS streams. [GL #4255]

6240.	[bug]		Use dedicated per-worker thread jemalloc memory
			arenas for send buffers allocation to reduce memory
			consumption and avoid lock contention. [GL #4038]

6239.	[func]		Deprecate the 'dnssec-must-be-secure' option.
			[GL #3700]

6237.	[bug]		Address memory leaks due to not clearing OpenSSL error
			stack. [GL #4159]

6235.	[doc]		Clarify BIND 9 time formats. [GL #4266]

6234.	[bug]		Restore stale-refresh-time value after flushing the
			cache. [GL #4278]

6232.	[bug]		Following the introduction of krb5-subdomain-self-rhs
			and ms-subdomain-self-rhs update rules, removal of
			nonexistent PTR and SRV records via UPDATE could fail.
			[GL #4280]

6231.	[func]		Make nsupdate honor -v for SOA requests if the server
			is specified. [GL #1181]

6230.	[bug]		Prevent an unnecessary query restart if a synthesized
			CNAME target points to the CNAME owner. [GL #3835]

6227.	[bug]		Check the statistics-channel HTTP Content-length
			to prevent negative or overflowing values from
			causing a crash. [GL #4125]

6224.	[bug]		Check the If-Modified-Since value length to prevent
			out-of-bounds write. [GL #4124]

	--- 9.18.18 released ---

6220.	[func]		Deprecate the 'dialup' and 'heartbeat-interval'
			options. [GL #3700]

6219.	[bug]		Ignore 'max-zone-ttl' on 'dnssec-policy insecure'.
			[GL #4032]

6215.	[protocol]	Return REFUSED to GSS-API TKEY requests if GSS-API
			support is not configured. [GL #4225]

6213.	[bug]		Mark a primary server as temporarily unreachable if the
			TCP connection attempt times out. [GL #4215]

6212.	[bug]		Don't process detach and close netmgr events when
			the netmgr has been paused. [GL #4200]

	--- 9.18.17 released ---

6206.	[bug]		Add shutdown checks in dns_catz_dbupdate_callback() to
			avoid a race with dns_catz_shutdown_catzs(). [GL #4171]

6205.	[bug]		Restore support to read legacy HMAC-MD5 K file pairs.
			[GL #4154]

6204.	[bug]		Use NS records for relaxed QNAME-minimization mode.
			This reduces the number of queries named makes when
			resolving, as it allows the non-existence of NS RRsets
			at non-referral nodes to be cached in addition to the
			referrals that are normally cached. [GL #3325]

6200.	[bug]		Fix nslookup erroneously reporting a timeout when the
			input is delayed. [GL #4044]

6199.	[bug]		Improve HTTP Connection: header protocol conformance
			in the statistics channel. [GL #4126]

6198.	[func]		Remove the holes in the isc_result_t enum to compact
			the isc_result tables. [GL #4149]

6197.	[bug]		Fix a data race between the dns_zone and dns_catz
			modules when registering/unregistering a database
			update notification callback for a catalog zone.
			[GL #4132]

6196.	[cleanup]	Report "permission denied" instead of "unexpected error"
			when trying to update a zone file on a read-only file
			system. Thanks to Midnight Veil. [GL #4134]

6193.	[bug]		Fix a catz db update notification callback registration
			logic error, which could crash named when receiving an
			AXFR update for a catalog zone while the previous update
			process of the catalog zone was already running.
			[GL #4136]

6166.	[func]		Retry without DNS COOKIE on FORMERR if it appears that
			the FORMERR was due to the presence of a DNS COOKIE
			option. [GL #4049]
2024-02-21 21:53:59 +00:00
martin f436dff43b Defer deletion of any color menu options untill the final menu (in the
selected language) has been loaded.
2024-02-21 20:31:57 +00:00
macallan dafa96cff1 avoid one more instance of unnecessary blitter stalling 2024-02-21 13:24:40 +00:00
macallan e867efe101 keep track of hw settings for blitter, fill of fb access to avoid unnecessary
register writes
while there, remove some accidentially left in debug goop
2024-02-21 13:04:01 +00:00
msaitoh 1be67e827e igc(4): Print EtrackID. 2024-02-21 12:39:39 +00:00
msaitoh 06e5fbf4ad igc(4): Modify dmesg output of PHY and NVM info.
- Print PHY info first and then print NVM info.
 - Remove debug output.
2024-02-21 12:34:06 +00:00
msaitoh 848153091e wm(4): Fix upper 16bit of Image Unique ID(EtrackID).
Don't override uid1 variable while reading option ROM version
to print Image Unique ID correctly.
2024-02-21 12:23:52 +00:00