Commit Graph

302922 Commits

Author SHA1 Message Date
rin b3db5323b4 gcc/vax: Restore NetBSD-specific extra specs, lost during merge 2023-08-17 02:55:25 +00:00
gutteridge 650194bf5d paxctl.8: minor grammar/style corrections 2023-08-16 22:22:02 +00:00
mrg 8e7ba7d807 avoid a seems wrong GCC 12 use-after-free problem. 2023-08-16 03:33:52 +00:00
christos 41706502e3 add missing 2023-08-15 22:02:36 +00:00
rillig 62bde11359 tests/make: show that '||' and '&&' must be preceded by whitespace 2023-08-15 21:27:09 +00:00
christos 95f204a973 override the override 2023-08-15 19:56:07 +00:00
palle deca08f38b Update build instructions for Solaris 10 and Solaris 11.3 hosts 2023-08-15 19:13:12 +00:00
christos 3a3e6e6861 Update link. We should also update the data... 2023-08-15 19:05:41 +00:00
rin bc51d17a83 gdb: mknative again for aarch64{,eb} for s/nbsd/netbsd/ changes
Also for ia64, riscv64, sh3e{bl}, and sparc for sure, but
nothing changed.

XXX
mknative adds something like

	-I/usr/src/tools/gdb/obj.machine-arch/.native/include

to include path. This should be dropped...
2023-08-15 09:44:14 +00:00
mrg a56a944e10 avoid a GCC 12 warning.
there's a 1-element long array and a loop conditional that tries to see
if indexes for it are not identical.  as these indexes will always both
be 0, the only valid index, the condition is always false.  GCC 12
triggers a strange warning on this code that can never run (see below),
so simply assert the array size is 1 and comment the rest.

amdgpu_dc_stream.c:470:55: error: array subscript [0, 0] is outside array bounds of 'struct dc_writeback_info[1]' [-Werror=array-bounds]
  470 |                                 stream->writeback_info[j] = stream->writeback_info[i];
2023-08-15 05:01:57 +00:00
mrg c7cd742397 avoid uninitialised variable usage in drm_gem_cma_create_internal().
in the case nothing has returned 'error', 'nsegs' and the dma info
are (potentially) uninitialised, so consider this an error.

found by GCC 12.
2023-08-15 04:57:36 +00:00
rin dfe60b963c README.gcc12: Update for earmv5{,eb}, m68k, sh3el
earmv5{,eb}:
- No new regression for full ATF.

m68k:
- blake2_prov.c needs -fno-stack-protector.
- No new regression for full ATF on amiga.

sh3el:
- In addition to kernel, userland is completely broken.
- No interesting diff with upstream in gcc/config/sh.
- Probably, we need bisectioning for GCC...
2023-08-15 04:11:53 +00:00
mrg 3ef8a5b9f1 amr(4): fix the size of the the drive format array.
now this is actually 1024 bytes long, like it wants to be.

found by GCC 12.
2023-08-15 04:04:10 +00:00
gutteridge 593e8d9786 mDNSPosix.c: free very large struct on error path 2023-08-15 00:02:16 +00:00
christos 1da411237a fix cross-build host amd64, target ppc 2023-08-14 22:42:02 +00:00
christos 37060aa12c backout previous; cross build needs native gmp 2023-08-14 22:41:34 +00:00
andvar 24b10ee032 s/streadming/streaming/ in debug message. 2023-08-14 21:17:08 +00:00
christos f5a9565a97 - fix the remaining bsd-kvm targets
- remove nbsdelf, everything uses nbsd now
- add missing files
- regen
2023-08-14 20:42:27 +00:00
palle c25779f438 Update build instructions for Solaris 11.4 (CBE) hosts 2023-08-14 18:49:45 +00:00
riastradh ec44863e36 options(4), sysctl(7): Document options HEARTBEAT. 2023-08-14 16:51:52 +00:00
christos 982170f0be fix cross-gdb 2023-08-14 16:45:26 +00:00
christos 255a2f50b8 put back the frame unwinder code lost in the merge (J. Hannken-Illjes) 2023-08-14 15:20:37 +00:00
gdt e8830a70d1 amd64 installimage: Reduce non-xz size slightly to fit 4GB flash drives
The installimage sizes were bumped in 2022 because of some growth, and
the case for not-xz sets went to 4000 (MiB).  That's just over what a
lot of "4 GB" flash drives are, but seems obviously intended to fit.
The actual usage of the filesystem, from a current build from earlier
this year (with non-xz sets) is:

/dev/dk1           3.7G       833M       2.7G  23% /mnt

and similar for netbsd-10 built yesterday, so we can afford to shrink
slightly.  Drop to 3800, which is still huge, but will make 4 GB flash
drives work.
2023-08-14 13:54:05 +00:00
mrg cf6ce93972 when calling a function that needs more bytes than we have, create a
stack variable long enough and use that instead.

found by GCC 12.
2023-08-14 05:41:09 +00:00
mrg 0bd1afb85a apply -Wno-error for GCC 12.
this code seems broken.  hash_table_del() is called on a ptr that was
either just freed (realloc() case) or will be freed (xfree_impl() case),
but in both cases hash_table_del() will free() the same address.  for
the realloc() case, as it's after free(), it's UB.  for the xfree_impl()
case, it can be solved by not free()ing here.
2023-08-14 05:29:28 +00:00
mrg 046f28e789 use -O1 on sh3, GCC 12 and parser.c.
this triggers clobbered vs. longjmp/setjmp warnings with -Os that sh3 uses.
2023-08-14 03:18:14 +00:00
mrg 514f9297ef avoid uninitialised variable use.
found by GCC 12.
2023-08-14 03:03:48 +00:00
rin 12ff6354c6 libcrypt: trailing white space 2023-08-14 02:22:35 +00:00
rin 68587ab30c gcc: Host tool gengtype requires version.h
Should fix random failure for parallel build.
2023-08-14 02:21:22 +00:00
chs 39c928de1c uvm: prevent TLB invalidation races during COW resolution
When a thread takes a page fault which results in COW resolution,
other threads in the same process can be concurrently accessing that
same mapping on other CPUs.  When the faulting thread updates the pmap
entry at the end of COW processing, the resulting TLB invalidations to
other CPUs are not done atomically, so another thread can write to the
new writable page and then a third thread might still read from the
old read-only page, resulting in inconsistent views of the page by the
latter two threads.  Fix this by removing the pmap entry entirely for
the original page before we install the new pmap entry for the new
page, so that the new page can only be modified after the old page is
no longer accessible.

This fixes PR 56535 as well as the netbsd versions of problems
described in various bug trackers:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225584
https://reviews.freebsd.org/D14347
https://github.com/golang/go/issues/34988
2023-08-13 23:06:07 +00:00
andvar 83a6cb5606 fix typos in comments. 2023-08-13 22:06:44 +00:00
wiz adb944c5df fix typo in previous 2023-08-13 21:52:32 +00:00
christos 9f4404cfb9 regen 2023-08-13 21:29:15 +00:00
christos 3750b21626 put back the kvm code that was lost between 11.0 and 13.2 2023-08-13 21:28:22 +00:00
christos 8604679352 centralize handling of kvm on NetBSD 2023-08-13 21:28:04 +00:00
riastradh eb494815f1 gdb/doc/GDBvn.texi: Omit spurious trailing blank line.
Reduces diff from upstream.
2023-08-13 21:25:55 +00:00
christos d0b5c4dbc0 sun2 can't make gdb anymore. there is no gmp because no gcc. 2023-08-13 21:17:05 +00:00
gutteridge 70a10ac32a mdnsd(8): switch to use arc4random(3) for randomness 2023-08-13 18:57:07 +00:00
riastradh 03840421c9 vis(3): Per KNF, sys/param.h comes before sys/types.h.
Which is nice because that's also lexicographic.
2023-08-13 15:20:37 +00:00
riastradh dbb433e7d2 vis(3): Need <stdint.h> for SIZE_MAX, per C standard.
From Kyle Evans <kevans@FreeBSD.org>.

Followup to PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-08-13 15:19:24 +00:00
riastradh 5f1a044720 vis(3): Sort includes. No functional change intended.
Prompted by PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-08-13 15:19:13 +00:00
christos fd4c26cb57 restore original contents that got overwriten by the build. 2023-08-13 12:17:17 +00:00
christos e9656f8156 remove building GDBvn.text, it comes with gdb-13.2 2023-08-13 12:16:14 +00:00
christos 4407f5a64c add mipsel 2023-08-13 12:04:11 +00:00
riastradh 45c2d29183 strncpy(3): More on how strlcpy is not a safe strncpy replacement. 2023-08-13 11:27:22 +00:00
wiz dde43aa723 memcpy: consistency in prototype and fix sentence 2023-08-13 04:20:07 +00:00
christos 8e699bff4f F_GETPATH guarantees that data points to a MAXPATHLEN pointer, so go back
to using MAXPATHLEN.
2023-08-12 23:22:49 +00:00
christos 42c84f8ba4 mfd_name should be already NUL terminated. 2023-08-12 23:09:12 +00:00
christos f495a620b7 Add missing F_GETPATH (from Theodore Preduta) 2023-08-12 23:07:46 +00:00
rillig 9348f849bd lint: clean up comments
There's no output buffer anymore.
2023-08-12 21:32:16 +00:00