Commit Graph

299767 Commits

Author SHA1 Message Date
rillig 720f816f1c lint: inline an expression, clean up comments
No functional change.
2023-01-29 13:57:35 +00:00
rillig e13e21105e lint: untangle conditions in promote_c90
No functional change.
2023-01-29 13:47:16 +00:00
mlelstv a4c7533a87 fix typo 2023-01-29 09:24:33 +00:00
mrg 3b22396b89 build framework for embedded brotli.
need to figure out a way to handle tools build vs installed build
before we can enable it in freetype itself.
2023-01-29 07:54:11 +00:00
mrg 8c70e5df69 add brotli to x11 src dirs. 2023-01-29 06:55:44 +00:00
christos 6b1042a65c revert previous, seems to lose data. 2023-01-28 14:54:43 +00:00
jmcneill 78de745f49 Regen 2023-01-28 13:13:17 +00:00
jmcneill e0e5768dcf Catch up to 20 years of HTML and URL changes. 2023-01-28 13:12:16 +00:00
msaitoh 2f8c60d111 Remove two entries. Those were pulled up to netbsd-10 branch. 2023-01-28 12:41:07 +00:00
msaitoh 97018bda69 amdsmn(4),amdzentemp(4): Add Zen3+ Rembrandt(19h/4xh) & Zen4 Genoa(19h/1xh). 2023-01-28 12:36:52 +00:00
martin 0b45c0a62b Switch sh3 to binutils 2.39 2023-01-28 08:45:11 +00:00
rillig b4db8a2cd2 tests/lint: document how compilers promote bit-fields 2023-01-28 08:36:17 +00:00
rillig 93f3a70d97 tests/lint: investigate how compilers interpret bit-fields 2023-01-28 08:30:12 +00:00
msaitoh c9f9003339 Reduce diff against DragonFly. No functional change. 2023-01-28 07:45:21 +00:00
mrg 7474491c39 add missing ./etc/fonts/conf.avail/10-yes-antialias.conf, noted by wiz. 2023-01-28 05:25:17 +00:00
rillig 2337706755 lint: extract casting to a union into separate function
No functional change.
2023-01-28 00:55:48 +00:00
rillig 23d3457761 lint: use stronger wording in comments of unimplemented offsetof 2023-01-28 00:46:14 +00:00
rillig d16d421d16 lint: split usual arithmetic conversions into separate functions
No functional change.
2023-01-28 00:39:49 +00:00
rillig 625e995504 lint: split integer promotions into separate functions
No functional change.
2023-01-28 00:24:05 +00:00
rillig 8c3513b970 lint: remove commented code from new_tnode
The approach in that code was wrong anyway.  If an expression is shifted
to the right, that doesn't change the declared type of the expression,
it only changes the possible range of values.  A better way to implement
these restricted value spaces is by using integer_constraints.

No functional change.
2023-01-28 00:12:00 +00:00
christos a1f5518995 When trying to scrub characters in a macro to convert:
# 123 "foo.c" 1 -> .linefile 123"foo.c"1

check if there is space first. Otherwise give up.

On the vax it was trying to scrub:

    # 2672 "foo.c" 1
    emul %r2,%r0,$0,%r4
    # 0 "" 2

and ended up with an incomplete string:

    .linefile 2672"foo.c"1
    emul %r2,%r0,$0,%r4
    .
And then when the assembler tried to parse the next line after the emul
barfed with unknown pseudo-op .
2023-01-27 23:36:04 +00:00
tsutsui 0b91d1257b Use proper uintNN_t integer types. 2023-01-27 23:29:14 +00:00
tsutsui 767ec481be Remove extra tabs. 2023-01-27 20:05:03 +00:00
tsutsui dac9feab01 mvme68k: Specify proper constraints for bus_space_read region and multi ops.
Sync with next68k.
2023-01-27 20:03:02 +00:00
tsutsui fbe896c51a news68k: Specify proper constraints for bus_space_read region and multi ops.
Synk with next68k.
Also use consistent register name constrains, i.e. no '%' prefix.
2023-01-27 19:50:02 +00:00
tsutsui e603bf95a9 luna68k: Specify proper constraints for bus_space_read region and multi ops.
Sync with next68k.
2023-01-27 19:49:21 +00:00
tsutsui 3b0ebd62ec hp300: Specify proper constraints for bus_space_read region and multi ops.
Synk with next68k.
Also use consistent register name constrains, i.e. no '%' prefix.
2023-01-27 19:48:00 +00:00
jschauma 968a56b9a4 whitespace / comment pedantry 2023-01-27 19:39:04 +00:00
tsutsui 9d09fe9c25 next68k: Specify -fno-unwind-tables to shrink kernel binary size.
next68k bootloader cannot load a kernel larger than ~3.8 MB.
2023-01-27 15:36:58 +00:00
tsutsui 7d0b6ed055 next68k: Fix silent stall of next68k esp(4) SCSI.
next68k esp(4) driver requires nextdma(4) interrupts at ipl 6
during ncr53c9x_intr() for esp(4) at ipl 3.  It worked on netbsd-5
and prior, but on netbsd-5 splbio() was changed from ipl 3 to 6
for SMP support and on netbsd-6 ncr53c9x driver was changed to
use mutex(9) instead of simple_lock(9), so nextdma interrupts
were no longer raised during ncr53c9x interrupt handler.

For now, just call mutex_exit(9) and mutex_enter(9) during
waiting nextdma(4) interrupts in MD esp_dma_intr() handler.
This could be wrong and the interrupt handler for nextdma should
be reorganized, but it just works.

Should be pulled up to netbsd-10 and netbsd-9.
2023-01-27 15:31:05 +00:00
tsutsui a6314e6f1c next68k: Specify proper constraints for bus_space_read region and multi ops.
These functions write the read data into memory at a specified pointer,
but without the "memory" constraint gcc could optimize out these ops
if the memory is allocated on local stack.

With this fix nextkbd(4) works again.

Should be pulled up to netbsd-10 and netbsd-9.
2023-01-27 15:25:47 +00:00
tsutsui 5fa541da58 next68k: Fix delay_divisor value for proper delay(9) on 68040. 2023-01-27 15:21:52 +00:00
ozaki-r 986909fbd3 ipsec: remove unnecessary splsoftnet
Because the code of IPsec itself is already MP-safe.
2023-01-27 09:33:43 +00:00
ozaki-r c92291afc7 Sprinkle __predict_{true,false} for panicstr checks 2023-01-27 09:28:41 +00:00
jschauma 2cf07ece9c +ABE attribute-based encryption
+TEE    Trusted Execution Environment
2023-01-26 22:20:16 +00:00
sjg e2f523b9a6 make: some variables should be read-only
Make variables like .newline and .MAKE.{GID,PID,PPID,UID} read-only.

Reviewed by: rillig
2023-01-26 20:48:17 +00:00
tsutsui e8864e5e82 Fix link errors now complained by new ld(1) from binutils 2.39. 2023-01-26 17:16:57 +00:00
tsutsui 705e8dbf3a No need to link shared libXext here. 2023-01-26 17:09:46 +00:00
ryo e9c719b0ea - Don't discard a packet even if the TX descriptor is temporarily not enough,
and error messages are not output.
- The argument to aq_encap_txring() need not be an mbuf reference, pass an entity.

pointed out by nisimura@. thanks
2023-01-26 01:24:19 +00:00
macallan f60d2d97f9 do some cleanup
the gm driver has been commented out for 20 years, time to remove it
while there, remove ofb and the old ADB code which have been commented out
since 2007
2023-01-26 00:15:47 +00:00
christos 0919373163 add mipsel and m68k to binutils 2.39 2023-01-25 22:36:56 +00:00
christos 176d022770 fix clang build 2023-01-25 22:35:06 +00:00
christos bd41475acf new bind 2023-01-25 21:45:37 +00:00
christos 903adedd3e merge our changes from 9.16.33 to 9.16.37 2023-01-25 21:43:22 +00:00
christos 4a8a51fcad Import bind-9.16.37 (previous was bind-9.16.33)
--- 9.16.37 released ---

6067.	[security]	Fix serve-stale crash when recursive clients soft quota
			is reached. (CVE-2022-3924) [GL #3619]

6066.	[security]	Handle RRSIG lookups when serve-stale is active.
			(CVE-2022-3736) [GL #3622]

6064.	[security]	An UPDATE message flood could cause named to exhaust all
			available memory. This flaw was addressed by adding a
			new "update-quota" statement that controls the number of
			simultaneous UPDATE messages that can be processed or
			forwarded. The default is 100. A stats counter has been
			added to record events when the update quota is
			exceeded, and the XML and JSON statistics version
			numbers have been updated. (CVE-2022-3094) [GL #3523]

6062.	[func]		The DSCP implementation, which has only been
			partly operational since 9.16.0, is now marked as
			deprecated. Configuring DSCP values in named.conf
			will cause a warning will be logged. [GL #3773]

6060.	[bug]		Fix a use-after-free bug in dns_zonemgr_releasezone()
			by detaching from the zone manager outside of the write
			lock. [GL #3768]

6059.	[bug]		In some serve stale scenarios, like when following an
			expired CNAME record, named could return SERVFAIL if the
			previous request wasn't successful. Consider non-stale
			data when in serve-stale mode. [GL #3678]

6058.	[bug]		Prevent named from crashing when "rndc delzone"
			attempts to delete a zone added by a catalog zone.
			[GL #3745]

6050.	[bug]		Changes to the RPZ response-policy min-update-interval
			and add-soa options now take effect as expected when
			named is reconfigured. [GL #3740]

6048.	[bug]		Fix a log message error in dns_catz_update_from_db(),
			where serials with values of 2^31 or larger were logged
			incorrectly as negative numbers. [GL #3742]

6045.	[cleanup]	The list of supported DNSSEC algorithms changed log
			level from "warning" to "notice" to match named's other
			startup messages. [GL !7217]

6044.	[bug]		There was an "RSASHA236" typo in a log message.
			[GL !7206]

	--- 9.16.36 released ---

6043.	[bug]		The key file IO locks objects would never get
			deleted from the hashtable due to off-by-one error.
			[GL #3727]

6042.	[bug]		ANY responses could sometimes have the wrong TTL.
			[GL #3613]

6040.	[bug]		Speed up the named shutdown time by explicitly
			canceling all recursing ns_client objects for
			each ns_clientmgr. [GL #3183]

6039.	[bug]		Removing a catalog zone from catalog-zones without
			also removing the referenced zone could leave a
			dangling pointer. [GL #3683]

6031.	[bug]		Move the "final reference detached" log message
			from dns_zone unit to the DEBUG(1) log level.
			[GL #3707]

6024.	[func]		Deprecate 'auto-dnssec'. [GL #3667]

6021.	[bug]		Use the current domain name when checking answers from
			a dual-stack-server. [GL #3607]

6020.	[bug]		Ensure 'named-checkconf -z' respects the check-wildcard
			option when loading a zone.  [GL #1905]

6017.	[bug]		The view's zone table was not locked when it should
			have been leading to race conditions when external
			extensions that manipulate the zone table where in
			use. [GL #3468]

	--- 9.16.35 released ---

6013.	[bug]		Fix a crash that could happen when you change
			a dnssec-policy zone with NSEC3 to start using
			inline-signing. [GL #3591]

6009.	[bug]		Don't trust a placeholder KEYDATA from the managed-keys
			zone by adding it into secroots. [GL #2895]

6008.	[bug]		Fixed a race condition that could cause a crash
			in dns_zone_synckeyzone(). [GL #3617]

6002.	[bug]		Fix a resolver prefetch bug when the record's TTL value
			is equal to the configured prefetch eligibility value,
			but the record was erroneously not treated as eligible
			for prefetching. [GL #3603]

6001.	[bug]		Always call dns_adb_endudpfetch() after calling
			dns_adb_beginudpfetch() for UDP queries in resolver.c,
			in order to adjust back the quota. [GL #3598]

6000.	[bug]		Fix a startup issue on Solaris systems with many
			(reportedly > 510) CPUs. Thanks to Stacey Marshall from
			Oracle for deep investigation of the problem. [GL #3563]

5999.	[bug]		rpz-ip rules could be ineffective in some scenarios
			with CD=1 queries. [GL #3247]

5998.	[bug]		The RecursClients statistics counter could overflow
			in certain resolution scenarios. [GL #3584]

5996.	[bug]		Fix a couple of bugs in cfg_print_duration(), which
			could result in generating incomplete duration values
			when printing the configuration using named-checkconf.
			[GL !6880]

	--- 9.16.34 released ---

5991.	[protocol]	Add support for parsing and validating "dohpath" to
			SVCB. [GL #3544]

5988.	[bug]		Some out of memory conditions in opensslrsa_link.c
			could lead to memory leaks. [GL #3551]

5984.	[func]		'named -V' now reports the list of supported
			DNSSEC/DS/HMAC algorithms and the supported TKEY modes.
			[GL #3541]

5983.	[bug]		Changing just the TSIG key names for primaries in
			catalog zones' member zones was not effective.
			[GL #3557]

5973.	[bug]		Fixed a possible invalid detach in UPDATE
			processing. [GL #3522]

5963.	[bug]		Ensure struct named_server is properly initialized.
			[GL #6531]

5921.	[test]		Convert system tests to use a default DNSKEY algorithm
			where the test is not DNSKEY algorithm specific.
			[GL #3440]
2023-01-25 20:36:33 +00:00
rillig af8302262b shar.1: remove false security claim
It's easy to embed arbitrary shell code in a line starting with 'X',
which the suggested egrep command would fail to detect.
2023-01-25 19:52:14 +00:00
christos bdafefeba8 disable no ifuncs no mips error for now. 2023-01-25 19:08:41 +00:00
riastradh 302ffddf9d x86/intr: Work around sleazy clockintr with a secret frame argument.
PR kern/57197
2023-01-25 15:54:52 +00:00
snj 5daecd1e86 spell "Chamonix" properly 2023-01-25 13:37:31 +00:00
christos 6fe6df832c switch sun2 to binutils 2.39 2023-01-25 00:16:50 +00:00