Commit Graph

8867 Commits

Author SHA1 Message Date
christos
b0222858ea use the correct header name. 2020-02-18 21:29:30 +00:00
christos
cdabad706d merge conflicts 2020-02-18 21:12:21 +00:00
christos
6f2cbaf607 Last import was 2010 when there was no ChangeLog yet. I've worked
with upstream to merge all our changes and this includes many other
fixes including new operator support etc. The change to pass an
extra "isnew" argument to open was not preserved as none of the
tests supplied with the PR fail.

This also adds the testsuite and all the bugs fixed since then.
2020-02-18 20:50:46 +00:00
uwe
95f8d17abf Fix comments to not break formatting. 2020-02-16 22:38:28 +00:00
gutteridge
e5791ef575 tcpdump.1.in: fix stray line from merge botch 2020-02-16 22:20:31 +00:00
roy
0495ebef35 zpool: The NetBSD specific ioctl needs to include sys/ioctl.h 2020-02-16 14:06:10 +00:00
riastradh
defa864ee7 Teach zfs to revoke vnodes the usual way.
XXX pullup
2020-02-15 19:03:15 +00:00
kamil
93a18a197a jemalloc: Avoid variable length array with length 0
Cherry-pick upstrem patch.

https://github.com/jemalloc/jemalloc/pull/1768
2020-02-15 09:57:30 +00:00
kamil
8f0c4063f2 Fix undefined behavior in hash.h (jemalloc)
Cherry-pick upstream patch:

    Fix Undefined Behavior in hash.h

    hash.h:200:27, left shift of 250 by 24 places cannot be represented in type 'int'

7fd22f7b2e
2020-02-14 01:52:35 +00:00
hannken
2f425cfa36 zfs_netbsd_setattr: ignore size changes on device nodes. 2020-02-13 16:53:32 +00:00
riastradh
6db8251b26 Switch from db_write_bytes to using direct-mapping.
This way there's no dependency on ddb.
2020-02-12 06:05:31 +00:00
riastradh
bfcd8bcf73 Change the address ranges that aarch64 considers toxic for dtrace.
`Toxic' means dtrace forbids D scripts from even attempting to read
or write at them.

Previously we considered [0, VM_MIN_KERNEL_ADDRESS) toxic, but
VM_MIN_KERNEL_ADDRESS is only the minimum address of the kernel map;
the direct-mapped region lies below it, and with PMAP_MAP_POOLPAGE we
allocate virtual pages for pool backing directly from physical pages
through the direct-mapped region.  Also, this did not consider I/O
mappings to be toxic, which they probably should be.

Instead, treat:

[0, AARCH64_KSEG_START)
and
[VM_KERNEL_IO_ADDRESS, 0xfff...ff)

as toxic.  (The upper bound for 0xfff...ff ought to be inclusive, not
exclusive, but I think we'll need another mechanism for expressing
that to dtrace!)
2020-02-12 06:05:23 +00:00
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