Commit Graph

274044 Commits

Author SHA1 Message Date
ryoon 0b1d31ee04 Fix typo in sysctl node name 2020-02-10 15:29:05 +00:00
christos cb454259c2 When extracting symlinks atomically remove them like we do for hard links. 2020-02-10 15:24:21 +00:00
martin 1b607b5c42 Do not use -P for tar extractions - the in tree tar has been fixed. 2020-02-10 14:55:53 +00:00
kamil c9fe095b51 Rename suspend2 to suspend_no_deadlock 2020-02-10 11:42:41 +00:00
mlelstv 5981b364e7 Reject open when attach didn't complete successfully. 2020-02-10 10:05:55 +00:00
skrll b4461e2abf Fix USB_DEBUG build 2020-02-10 09:15:27 +00:00
kamil a6c4eb28f3 Avoid unportable bit shift semantics
hijack.c:451:52, left shift of 1 by 31 places cannot be represented in type 'int
2020-02-10 09:10:58 +00:00
msaitoh 4f5840cebb Restore an register read for RX_FRAMES_OK which was removed in rev. 1.133.
All statistics registers should be read to ACK the interrupt. Fixes PR#54920.

XXX pullup-[89]
2020-02-10 07:48:02 +00:00
riastradh e798caea38 Omit duplicate rnd_init in rump. 2020-02-10 07:13:06 +00:00
ryo accb2dabd4 add support VLAN HW filter 2020-02-10 05:53:11 +00:00
ryo c7d7f2416b fix descriptions of register map in comment 2020-02-10 05:07:28 +00:00
christos b6b0a28bae use asprintf(). 2020-02-10 04:54:01 +00:00
riastradh c3fff0bc81 Initialize struct cpu_info::ci_cpuname (= ci_data.cpu_name) in rump. 2020-02-10 03:23:29 +00:00
riastradh f7aaf31f63 Switch from ad-hoc logging to dtrace probes. 2020-02-09 22:57:39 +00:00
riastradh 471ee6c6a2 Teach threadpool(9) to use percpu_create, mostly. 2020-02-09 22:57:26 +00:00
roy 3730c74003 route(4): dst addr could be in a different mbuf for RO_MISSFILTER
While here, the correct assertation is RTAX_DST == 0.
RTA_DST is just a flag.
2020-02-09 21:15:03 +00:00
jmcneill 428130a8e6 Retire azalia(4). 2020-02-09 16:06:17 +00:00
fox d56b4ad409 usr.sbin/ypserv: Suppress -Werror=format-truncation= error.
Add GCC_NO_FORMAT_TRUNCATION makedbm.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 15:52:48 +00:00
maya 5c658b8ee4 Remove trace of uyurex. Pointed out by maxv, thanks! 2020-02-09 15:46:15 +00:00
jakllsch b23f4a3ad0 Improve compatibility with newer A64 DE2 DTB endpoint numbers.
Should fix video output with new Linux 5.5rc DTBs on A64/H2/H3/H5-based SoCs.
2020-02-09 15:22:25 +00:00
fox 505bb4b586 usr.sbin/timed: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION master.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 15:13:28 +00:00
fox 709709c6c1 usr.sbin/srtconfig: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to srtconfig.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 15:10:31 +00:00
jmcneill 2a3fb8936a Do not define HAVE_DRI3_H 2020-02-09 12:28:28 +00:00
maxv 1273dfb58e Reference nvmmctl(8). 2020-02-09 12:19:01 +00:00
jmcneill 1d88b05fe4 Do not clear the screen before exiting boot services as this may cause an
undesired display mode switch. PR# 54615
2020-02-09 12:13:39 +00:00
skrll 45f6dbd827 Traiing whitespace 2020-02-09 09:30:37 +00:00
skrll 1f51cad9fa Trailing whitespace 2020-02-09 09:29:50 +00:00
kamil ac23308f24 Specify NOLIBCSANITIZER for the ELF loader
The sanitizer does not work reliably before finishing initialization of
ld.elf_so. There is also a number of false positives that are not real
problems here.
2020-02-09 09:11:59 +00:00
skrll 09d805dd96 #if 0 / #endif -> a comment 2020-02-09 08:14:55 +00:00
fox 126c439986 usr.bin/xlint: Fix -Werror=format-overflow= error.
Replace sprintf(3) with snprintf(3).

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

Reviewed by: kamil@
2020-02-09 08:10:25 +00:00
skrll 1c3da65b51 Improve comments 2020-02-09 08:09:58 +00:00
fox 5b7a3dc736 external/gpl3/gcc: Suppress -Werror=format-overflow error.
Add -Wno-error=format-overflow for c-cppbuiltin.c and c-typeck.c to prevent
build failure.

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

Reviewed by: kamil@
2020-02-09 08:04:40 +00:00
fox 84139b589c external/mpl/dhcp: Suppress -Werror=format-overflow error.
Add -Wno-error=format-overflow mdb6.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 07:59:44 +00:00
fox b796f1c940 external/cddl/osnet: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION dwarf.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 07:55:13 +00:00
fox 2873fa744e external/bsd/ipf: Suppress -Werror=maybe-uninitialized error.
Add -Wno-error=maybe-uninitialized in ipsopt.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 07:51:20 +00:00
fox 3782e1a9e2 external/bsd/ipf: Suppress -Werror=format-overflow= error.
Add -Wno-error=format-overflow in ipmon.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-09 07:47:50 +00:00
maya f9068bab35 Don't special case aarch64 and add -fomit-frame-pointer to builds.
This behaviour is probably due to a past behaviour of clang, where it
always emitted frame pointer code.
This is no longer true for clang on netbsd, and I don't think it was true
for GCC.

Meanwhile, this flag bleeds into pkgsrc where it breaks random packages,
requiring workarounds like lang/ruby*-base/hacks.mk.
2020-02-08 21:16:53 +00:00
kamil e601f31a6d O_SEARCH tests: expect revoke +x failure on NFS
Patch by Kyle Evans (FreeBSD)

PR misc/54946
2020-02-08 19:58:36 +00:00
kamil f66ccdf057 Change the behavior of pthread_equal()
On error when not aborting, do not return EINVAL as it has a side effect
of being interpreted as matching threads. For invalid threads return
unmatched.

Check pthreads for NULL, before accessing pt_magic field. This avoids
faults on comparision with a NULL pointer.

This behavior is in the scope of UB, but should be easier to deal with
buggy software.
2020-02-08 17:06:03 +00:00
jmcneill c89149843e Fix a few bugs related to the framebuffer:
- If a GOP mode wasn't explicitly requested, the bootloader was passing
   fb info to the kernel even if the console was in text mode! This
   results in garbled console output on at least ThinkPad T420 and
   likely many others. If a mode isn't specified, default to 800x600.
 - The "gop" command was incorrectly parsing video modes in the form
   WxHxD as WxWxD.
 - Allow a short form WxH for the "gop" command to select any mode with
   the target dimensions.
2020-02-08 14:35:47 +00:00
roy 6847938ebe route(4): add RO_MISSFILTER socket option
This allows filtering of specific RTM_MISS destination sockaddrs.
2020-02-08 14:17:30 +00:00
kamil df9cced477 Avoid use-after-free bug in PAM environment
Traditional BSD putenv(3) was creating an internal copy of the passed
argument. Unfortunately this was causing memory leaks and was changed by
POSIX to not allocate.

Adapt the putenv(3) usage to modern POSIX (and NetBSD) semantics.
2020-02-08 13:44:35 +00:00
fox 171529808d user.bin/tftp: Suppress -Werror=format-overflow error.
Add -Wno-error=format-overflow tftp.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-08 13:33:56 +00:00
ryo 04dc727438 arm64_image_header->image_size must be included size of arm64_image_header.
with -u option, image_size should be binary (file) size (header included).
without -u option, image_size should be binary (file) size + header size.
2020-02-08 13:27:00 +00:00
fox d9fb617d8f external/bsd/ntp: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to refclock_jjy.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-08 13:20:10 +00:00
fox 5f234ad7f3 usr.sbin/fstyp: Fix -Werror=conversion error.
Type cast the size_t to uint32_t to prevent implicit type conversion errors.

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

Reviewed by: kamil@
2020-02-08 12:56:56 +00:00
fox a31bab7fbe usr.bin/talk: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to get_names.c to prevent build failure.

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

Reviewed by: kamil@
2020-02-08 12:53:29 +00:00
fox 8d2b6606df external/bsd/dhcpcd: Fix a -Wconversion warning.
Type cast uint16_t to size_t to prevent implicit type conversion.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.
gcc version 8.3.0

Reviewed by: roy@, kamil@
2020-02-08 12:17:16 +00:00
leot 53a1bd1628 Fix a typo (extra `s') 2020-02-08 11:10:08 +00:00
kamil f342178338 Implement env(1) -0
-0      End each output line with NUL, not newline.

FreeBSD and GNU env(1) implement -0 which is used in 3rd party scripts.

This change is based on the FreeBSD code.
2020-02-08 11:02:07 +00:00