Commit Graph

8855 Commits

Author SHA1 Message Date
christos
b331def536 pppd: Fix bounds check in EAP code
Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>

From:
8d7970b8f3
2020-02-12 01:51:52 +00:00
riastradh
772dd05c6c Count the number of artificial frames in aarch64 fbt probe correctly. 2020-02-12 01:10:25 +00:00
riastradh
21c3f7e27a Teach dtrace about el1_trap_exit frames on aarch64.
Implement dtrace_getarg and dtrace_getreg while here.
2020-02-12 01:10:16 +00:00
riastradh
639e4eee75 Use /dev/ksyms, not /netbsd, for the running kernel's symbols. 2020-02-12 01:10:08 +00:00
riastradh
5fb67fa20d Tidy up a bit: don't set things we won't use; assert nonzeroness. 2020-02-12 01:09:48 +00:00
riastradh
615f7ddec3 Tidy up a bit. No functional change intended.
aarch64 fbt_invop doesn't actually use the argument, but it would
make more sense for it to be the return value and/or first argument
register.  Certainly it's not `eax'!
2020-02-12 01:09:38 +00:00
riastradh
5f49297b68 Use db_write_bytes to overwrite kernel text. 2020-02-12 01:09:27 +00:00
fox
e7f517aadc external/mpl/dhcp: Fix build failure under LLVM.
-Wno-error= flag now only applies to gcc 8 and not to LLVM based builds.

Reviewed by: kamil@
2020-02-12 00:41:50 +00:00
fox
02cd2e9449 external/gpl3/gcc: Fix build failure under LLVM.
-Wno-error= flag now only applies to gcc 8 and not to LLVM based builds.

Reviewed by: kamil@
2020-02-12 00:36:37 +00:00
fox
ac1eb53afb external/bsd/ipf: Fix build failure under LLVM.
-Wno-error= flag now only applies to gcc 8 and not to LLVM based builds.

Reviewed by: kamil@
2020-02-12 00:30:48 +00:00
christos
cb454259c2 When extracting symlinks atomically remove them like we do for hard links. 2020-02-10 15:24:21 +00:00
jmcneill
2a3fb8936a Do not define HAVE_DRI3_H 2020-02-09 12:28:28 +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
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
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
kamil
cc056601a4 Expand the -Wno-macro-redefined usage to MKLIBCSANITIZER
_REENTRANT can be redefined and this is considered as an error.
2020-02-08 00:11:18 +00:00
jmcneill
1f7c381b0d Define HAVE_LIBDRM (required for loader_get_pci_id_for_fd) 2020-02-07 19:00:18 +00:00
kamil
9d306cc429 Install LLVM sanitizers into usr/lib/clang/9.0.0 2020-02-07 19:00:10 +00:00
mrg
86ab731f62 powerpc switched. 2020-02-07 07:16:32 +00:00
roy
ce63da2fc1 Enable syslog support for hostapd 2020-02-03 09:10:47 +00:00
jmcneill
71b3ef8c01 Bump MESA_LLVM_VERSION_STRING 2020-01-31 21:13:40 +00:00
jmcneill
af36371a98 Change HAVE_LLVM from 0x0700 to 0x0900. 2020-01-31 20:58:18 +00:00
jmcneill
bc2c80f256 Build radeonsi driver. 2020-01-31 20:56:03 +00:00
joerg
68f38f2c72 Don't implicitly cast away const char * when using correct C++ string.h
implementations. Those have overloaded string operations that preserve
constness.
2020-01-30 20:38:12 +00:00
christos
2c331b9b96 Hack for clang/powerpc 2020-01-29 23:42:57 +00:00
christos
b5a341d9b0 Hack for clang. 2020-01-29 22:40:44 +00:00
roy
7e3fe3ae49 wpa: reduce diff with upstream 2020-01-29 12:05:08 +00:00
roy
7f802f6689 wpa: Fix the maximum size of a route(4) msg to 2048
This mirrors other programs which parse route(4) messages and will
match upstream.
2020-01-29 11:57:36 +00:00
roy
f4b2e0ff3a wpa: Remove an outdated comment
With interface matching support, wpa_supplicant can wait for an
interface to appear.
2020-01-29 11:46:47 +00:00
roy
921753c4a7 wpa: Don't set or remove IFF_UP
Now that both hostapd and wpa_supplicant react to interface flag
changes, there is no need to set or remove IFF_UP.

It should be an administrative flag only.
2020-01-29 11:45:54 +00:00
roy
aa4ef28151 wpa: Share route(4) processing with hostapd and wpa_supplicant.
There is little point in having both and it brings interface
addition/removal and IFF_UP notifications to hostapd.
2020-01-29 11:44:43 +00:00
roy
289963fd75 wpa: Driver does not need to know about both wpa and hostap contexts
It will either be one or the other.
Fold hapd into ctx to match other drivers.
2020-01-29 11:31:40 +00:00
roy
9cbb0fe2f0 Sync 2020-01-27 21:13:05 +00:00
roy
41bc2f7362 Update to openresolv-3.10.0 with the following change:
Add allow_interfaces and deny_interfaces configuration knobs
2020-01-27 21:11:12 +00:00
roy
9e07ed0a1b Sync 2020-01-27 20:42:56 +00:00
roy
893a5f978a Update to dhcpcd-8.1.6 with the following changes:
* INET6: Support a /128 prefix advertised via RA
 * BSD: More address validation from route(4) messages
 * DHCP: Fix a potential segfault on DaD failure
 * IPv4LL: Fix a potential segfault when dropping IPv4LL addresses
2020-01-27 20:41:58 +00:00
christos
44e2287fc9 prevent coredump when state == NULL 2020-01-26 22:57:52 +00:00
christos
cf46e1c322 try to fix the clang build 2020-01-25 19:05:08 +00:00
uwe
109609bc84 Do not override STACK_BOUNDARY in netbsd.h
sysv4.h already overrides PREFERRED_STACK_BOUNDARY b/c SYSV ABI
requires 16 bytes alignment for %sp anyway and so we already get that
for free.

More importantly this also fixes alloca() in GCC 8, that was somehow
confused by that STACK_BOUNDARY value we had and created a buffer that
overlapped top local variable slots.
2020-01-22 21:39:43 +00:00
mgorny
26a48dd100 Install gcc's unwind.h instead of libexecinfo's
The prototypes in libexecinfo's unwind.h do not match those commonly
used (e.g. by gcc, clang, GNU libunwind, LLVM libunwind...), causing
C++ programs to fail to build on type mismatches (e.g. compiler-rt,
libc++abi).  Rather than providing our own header, reuse the one
included in gcc.
2020-01-22 15:10:31 +00:00
christos
eb89610755 Fix printf formats in tests for the clang build. 2020-01-21 18:33:47 +00:00
jmcneill
6c8891e8fa Build ati driver on evbarm. 2020-01-19 10:45:49 +00:00
martin
bc7415aa33 Fix conditional in previous 2020-01-19 10:44:51 +00:00
jmcneill
c91ab881ac Build radeon and nouveau drivers on evbarm. 2020-01-19 00:58:13 +00:00
ad
f778098a59 Track page dirtyness for ZFS (yamt-pagecache). I had forgotten that it had
its own cache.  Thanks to hannken@ for the repro.
2020-01-18 15:21:32 +00:00
ad
c2e9cb9413 VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode.  Matches
FreeBSD.
2020-01-17 20:08:06 +00:00