Commit Graph

9135 Commits

Author SHA1 Message Date
rin
c57c4e528d PR bin/55411 (Akihiko HAYASHI)
Remove stray ``&&'' introduced in the previous revision, so that
host tools are correctly passed to configure script.

No similar problem for gcc.old. No release branches are affected.
2020-06-24 05:06:08 +00:00
jmcneill
62a169693c If calling d_minphys on the parent disk device, make sure we use the
parent disk device's dev_t. Fixes zfs on wedges on ld(4).

XXX pullup-9
2020-06-21 21:29:11 +00:00
lukem
9afb92341a kyua-cli: avoid warning about deprecated auto_ptr 2020-06-21 14:26:16 +00:00
lukem
ac33d8c71a lutok; fix build of c++ tests 2020-06-21 14:12:50 +00:00
lukem
456534299b lutok; fix strncpy -Wstringop-truncation warning 2020-06-21 14:11:54 +00:00
lukem
894e537a2e fix build of atf .cpp files 2020-06-21 13:59:56 +00:00
jdolecek
99379c717f use pool_cache for (meta)data buffers also on NetBSD
this should generally slightly improve performance on MP systems, and
specifically for xbd(4) storage avoids slow unaligned I/O buffer handling

this change requires updated kernel, to allow up to SPA_MAXBLOCKSHIFT item
size for pools

fixes PR kern/55397 by Frank Kardel
2020-06-19 14:13:23 +00:00
christos
ca704e13dc Add --timestamp for reproducible builds. 2020-06-16 00:47:21 +00:00
christos
356495e423 s/Black/Block 2020-06-15 21:27:57 +00:00
roy
b49ede492e dhcpcd: Build privsep resource limited sandbox. 2020-06-15 17:02:58 +00:00
roy
a47a5665d4 Sync 2020-06-15 16:59:05 +00:00
roy
e66fc20f54 Update to dhcpcd-9.1.2 with the following changes:
* NetBSD: free ARP state once IPv4LL address announced
* NetBSD: Mark RA dervied addresses as AUTOCONF
* BSD: Only mark static routes from dhcpcd.conf as static
* DHCP6: Ensure requested addresses are requested
* DHCP6: Fix prefix length calculation when no prefix specified
* privsep: Implement a resource limited sandbox
2020-06-15 16:58:01 +00:00
christos
a51582d48a missed the capitalized ones. 2020-06-15 02:29:44 +00:00
christos
2f0bfbf344 Rename blacklist -> blocklist 2020-06-15 01:57:29 +00:00
christos
df83713dd8 Import blocklist from https://github.com/zoulasc/blocklist.
This is the same code as blacklist from the HEAD of the NetBSD tree.
2020-06-15 01:52:52 +00:00
christos
29faeba762 merge conflicts 2020-06-15 00:37:24 +00:00
christos
03c288bb80 Import 5.39:
* Remove unused subtype_mime (Steve Grubb)
   * Remove unused check in okstat (Steve Grubb)
   * Fix mime-type in elf binaries by making sure $x is set
   * Fix indirect negative offsets broken by OFFNEGATIVE
   * Fix GUID equality check
   * PR/165: Handle empty array and strings in JSON
   * PR/162: Add --exclude-quiet
   * Fix memory leak in ascmagic (Steve Grubb)
   * Fix string comparison length with ignore whitespace
   * Fix mingwin 64 compilation
   * PR/159: whitelist getpid needed for file_pipe2file()
   * Indicate negative offsets with a flag OFFNEGATIVE
     so that -0 works.
   * Introduce "offset" magic type that can be used to
     detect the file size, and bail on short files.
   * document DER better in the magic man page.
   * fix memory leaks (SonarQube)
   * rewrite confusing loops (SonarQube)
   * fix bogus test (SonarQube)
   * pass a sized buffer to file_fmttime() (SonarQube)
   * Don't allow * in printf formats, or the code itself (Christoph Biedl)
   * Introduce a printf output size checker to avoid DoS attacks
   * Avoid memory leak on error (oss-fuzz)
   * Check length of string on DER before derefercing and add new types
   * Add missing DER string (oss-fuzz)
   * Add missing DER types, and debugging
   * PR/140: Avoid abort with hand-crafted magic file (gockelhahn)
   * PR/139:  Avoid DoS in printf with hand-crafted magic file (gockelhahn)
   * PR/138: Avoid crash with hand-crafted magic file (gockelhahn)
   * PR/136: Fix static build by adding a libmagic.pc (Fabrice Fontaine)
   * add guid support native support via the "guid" type.
2020-06-15 00:18:47 +00:00
fox
cdb11efe4c external/gpl3/gcc: Suppress -Werror=maybe-uninitialized
Seems like false positive since the ASM_GENERATE_INTERNAL_LABEL macro
stores the value into prev_label, so it is alright for prev_label to
be uninitialized.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-12 14:37:51 +00:00
ad
4b8a875ae2 uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched.  It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.
2020-06-11 19:20:42 +00:00
roy
378e0318d0 dhcpcd: Disable priviledge separation and sandboxing for SMALLPROG builds
It's a fair chunk of code and is probably safe enough for our ramdisks.
2020-06-11 16:05:54 +00:00
kamil
4228f24a2e Build and install llvm-symbolizer for MKLLVM=yes
llvm-symbolizer is an alternative for GNU addr2line(1), heavily used by the
LLVM sanitizers.

Do not install it as tools as it is not necessary as of today in that
stage.
2020-06-09 21:50:32 +00:00
fox
6ed49867f1 external/mpl/dhcp: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-07 23:29:16 +00:00
fox
1644357e99 external/cddl/osnet: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-07 23:26:54 +00:00
fox
9674cee3b8 external/bsd/atf: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.

Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@
2020-06-07 23:09:34 +00:00
rin
a3321772bf Check x > 0 *before*, not after, using (x - 1) as index of array. 2020-06-05 12:47:28 +00:00
roy
50e9876ff7 dhcpcd: kqueue(2) support removed in favour of pollts(2) 2020-06-04 13:09:45 +00:00
roy
b652e16f07 Sync 2020-06-04 13:08:13 +00:00
roy
d37f9bca9d Update to dhcpcd-9.1.1 with the following changes:
* Restore dumping leases from stdin
 * auth: Only accept RECONFIGURE messages from LL addresses
 * auth: Access the RDM monotonic counter file via privsep
 * ARP: call arp_announced() when cancelling it
 * BSD: fwip(4) interfaces are now ignored by default
 * privsep: Ensure IPC buffers are large enough to carry messages
 * privsep: Only open RAW sockets for the needed protocols
 * privsep: Fix indirect ioctls returning data
 * privsep: wait for processes on SIGCHLD rather than when sent a STOP cmd
 * eloop: just use ppoll/pollts(2), falling back to pselect(2)
2020-06-04 13:07:12 +00:00
joerg
558a0c7357 If _malloc_thread_cleanup is implement, call it from libpthread.
Provide the hook from modern jemalloc to avoid using TSD for the thread
destruction cleanup as it can result in reentrancy crashes if fork is
called from a thread that never called malloc as it will result in a
late malloc from the pre-fork synchronisation handler.
2020-06-04 00:45:32 +00:00
christos
2326a56e4c Fix the vax build: vax is special and always builds pic code. 2020-06-03 02:07:52 +00:00
mrg
7be42f8044 don't elide fortran components. we'd like to revive g77-as-gfortran. 2020-06-02 08:03:59 +00:00
christos
0ccd2509dd Locking protocol changed; the internal routines are now called with the
socket locked. Adjust for that.
2020-06-01 18:55:37 +00:00
christos
f303c9721b Arrange to create an _pic.a library too. 2020-06-01 14:39:42 +00:00
kamil
58e6f34180 Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang/LLVM specific.
2020-06-01 00:55:24 +00:00
kamil
b4c87b8eb8 Avoid redefining _REENTRANT under sanitizers
Switch away from -Wno-macro-redefined which was Clang specific.
2020-06-01 00:34:25 +00:00
christos
4944dbf225 sync with regular socket code (no effect) 2020-05-31 17:45:02 +00:00
roy
d31eb9bba7 Sync 2020-05-31 12:52:11 +00:00
roy
7c187152f8 Update to dhcpcd-9.1.0 with the following changes:
* Leases are stored outside the chroot again
 * The chroot directory can now be (and should be) empty [1]
 * ARP is now per address rather than per interface
 * Filter allowed ioctls in the privileged actioneer
 * Filter allowed UDP ports used by sendto(2) in the privileged actioneer
 * Filter allowed file paths in the privileged actioneer
 * route socket is now drained on overflow as it cannot be
   re-opened by the unpriviledged user

 * hostname can no longer be clobbered by SLAAC
 * grep is no longer used by the test hook
 * Interface hardware address type changes are now picked up
 * Fixed some RA timing issues
 * Fixed nd_* option parsing in dhcpcd.conf
 * Allow SIGPIPE in scripts
 * Default dhcpcd.conf no longer sends the current hostname
 * Default dhcpcd.conf no longer sends a vendorclassid
2020-05-31 12:50:46 +00:00
joerg
a3a68b7379 Don't define psl as common symbol, move it into the only file using it. 2020-05-30 23:52:09 +00:00
christos
f944c04b7f Create pic lib and don't install pkgconfig file. 2020-05-30 20:54:46 +00:00
christos
e4bfa5b301 Make libuv private, requested by joerg@ 2020-05-30 20:47:58 +00:00
christos
f0574a0e8b make it compile again 2020-05-29 20:56:27 +00:00
christos
5b7d12e411 Add more printf annotations 2020-05-29 20:54:16 +00:00
christos
fc16d48c3b put back the warn flags 2020-05-29 20:16:07 +00:00
christos
22eebdc3bb fix printf format warning with format_arg 2020-05-29 20:15:37 +00:00
christos
1c87ec2c04 Add explicit casts 2020-05-29 20:15:14 +00:00
christos
b44539c331 fix WORDS_BIGENDIAN 2020-05-29 11:01:53 +00:00
kamil
f1fd2e6f4c Fix the ntpd build with Clang/LLVM
Set -Wno-format-nonliteral for ntp_refclock.c
2020-05-29 10:53:02 +00:00
christos
1091d03bdb Fix incorrect merge. 2020-05-29 10:50:36 +00:00
kamil
acf22f181d Fix the libntp build with Clang/LLVM
Set -Wno-error=implicit-int-float-conversion
2020-05-29 10:47:37 +00:00