Commit Graph

270285 Commits

Author SHA1 Message Date
msaitoh
53a8110974 Use unsigned to avoid undefined behavior in lii_setmulti(). 2019-09-18 00:09:42 +00:00
christos
133b476be9 belatedly bump for execve1 signature change which affects compat modules. 2019-09-17 15:20:05 +00:00
christos
eb654c054f Add a boolean argument to indicate if we have a path/true (execve) or an
fd/false (fexecve). This is needed to differentiate between them because
NULL/-1 can be readily passed from userland.
2019-09-17 15:19:27 +00:00
mrg
3663af43d9 pass new missing fd argument to execve1().
fixes sparc64 build.
2019-09-17 07:58:54 +00:00
mrg
472957cfb8 enable building modules for if_aue(4), if_cdce(4), if_cue(4),
if_kue(4), if_upl(4), if_url(4), and if_urndis(4)
2019-09-17 07:36:51 +00:00
mrg
e0661ac046 build exec_elf32 module on arm64. 2019-09-17 04:43:47 +00:00
mrg
266af95eb4 add modules for all usbnet drivers not present.
only some (axe, axen, ure, cdce) of these are tested.

will link into build in a separate change.
2019-09-17 04:38:08 +00:00
gson
3738f96e99 MKZFS is no longer the default on i386; it was disabled in 2015 in
bsd.own.mk 1.846.
2019-09-16 12:57:10 +00:00
skrll
a58be5d164 Traiing whitespace. 2019-09-16 12:40:40 +00:00
maya
65821bcdff Remove unused definitions, as they are architecture-specific.
Thanks joerg for the heads up.
2019-09-16 11:50:55 +00:00
christos
0e8ea4cdfb PR/54549: ng0: always initialize execname. 2019-09-16 11:11:34 +00:00
christos
26260efb9b merge the two E2BIG entries (wiz) 2019-09-16 11:03:08 +00:00
maya
13480c4fc9 Remove old generated file.
thanks mlelstv for the heads up.
2019-09-16 09:35:20 +00:00
mlelstv
3f34a4a221 Include mount_zfs man pages only for MKZFS builds. 2019-09-16 08:31:05 +00:00
macallan
7e30d9f475 add ktm at adb driver 2019-09-16 07:11:08 +00:00
maya
ba27e0de06 Update expat entry 2019-09-16 06:52:02 +00:00
maya
150a08e8a7 Regenerate the output of expat configure. 2019-09-16 06:34:43 +00:00
maya
314bba07ca Merge expat 2.2.8 2019-09-16 06:30:16 +00:00
maya
9fd04a41bd Import expat 2.2.8
Release 2.2.8 Fri Septemper 13 2019
        Security fixes:
       #317 #318  CVE-2019-15903 -- Fix heap overflow triggered by
                    XML_GetCurrentLineNumber (or XML_GetCurrentColumnNumber),
                    and deny internal entities closing the doctype;
                    fixed in commit c20b758c332d9a13afbbb276d30db1d183a85d43

        Bug fixes:
            #240  Fix cases where XML_StopParser did not have any effect
                    when called from inside of an end element handler
            #341  xmlwf: Fix exit code for operation without "-d DIRECTORY";
                    previously, only "-d DIRECTORY" would give you a proper
                    exit code:
                      # xmlwf -d . <<<'<not well-formed>' 2>/dev/null ; echo $?
                      2
                      # xmlwf <<<'<not well-formed>' 2>/dev/null ; echo $?
                      0
                    Now both cases return exit code 2.

        Other changes:
       #299 #302  Windows: Replace LoadLibrary hack to access
                    unofficial API function SystemFunction036 (RtlGenRandom)
                    by using official API function rand_s (needs WinXP+)
            #325  Windows: Drop support for Visual Studio <=7.1/2003
                    and document supported compilers in README.md
            #286  Windows: Remove COM code from xmlwf; in case it turns
                    out needed later, there will be a dedicated repository
                    below https://github.com/libexpat/ for that code
            #322  Windows: Remove explicit MSVC solution and project files.
                    You can generate Visual Studio solution files through
                    CMake, e.g.: cmake -G"Visual Studio 15 2017" .
            #338  xmlwf: Make "xmlwf -h" help output more friendly
            #339  examples: Improve elements.c
       #244 #264  Autotools: Add argument --enable-xml-attr-info
       #239 #301  Autotools: Add arguments
                    --with-getrandom
                    --without-getrandom
                    --with-sys-getrandom
                    --without-sys-getrandom
       #312 #343  Autotools: Fix linking issues with "./configure LD=clang"
                  Autotools: Fix "make run-xmltest" for out-of-source builds
       #329 #336  CMake: Pull all options from Expat <=2.2.7 into namespace
                    prefix EXPAT_ with the exception of DOCBOOK_TO_MAN:
                    - BUILD_doc            -> EXPAT_BUILD_DOCS (plural)
                    - BUILD_examples       -> EXPAT_BUILD_EXAMPLES
                    - BUILD_shared         -> EXPAT_SHARED_LIBS
                    - BUILD_tests          -> EXPAT_BUILD_TESTS
                    - BUILD_tools          -> EXPAT_BUILD_TOOLS
                    - DOCBOOK_TO_MAN       -> DOCBOOK_TO_MAN (unchanged)
                    - INSTALL              -> EXPAT_ENABLE_INSTALL
                    - MSVC_USE_STATIC_CRT  -> EXPAT_MSVC_STATIC_CRT
                    - USE_libbsd           -> EXPAT_WITH_LIBBSD
                    - WARNINGS_AS_ERRORS   -> EXPAT_WARNINGS_AS_ERRORS
                    - XML_CONTEXT_BYTES    -> EXPAT_CONTEXT_BYTES
                    - XML_DEV_URANDOM      -> EXPAT_DEV_URANDOM
                    - XML_DTD              -> EXPAT_DTD
                    - XML_NS               -> EXPAT_NS
                    - XML_UNICODE          -> EXPAT_CHAR_TYPE=ushort (!)
                    - XML_UNICODE_WCHAR_T  -> EXPAT_CHAR_TYPE=wchar_t (!)
       #244 #264  CMake: Add argument -DEXPAT_ATTR_INFO=(ON|OFF),
                    default OFF
            #326  CMake: Add argument -DEXPAT_LARGE_SIZE=(ON|OFF),
                    default OFF
            #328  CMake: Add argument -DEXPAT_MIN_SIZE=(ON|OFF),
                    default OFF
       #239 #277  CMake: Add arguments
                    -DEXPAT_WITH_GETRANDOM=(ON|OFF|AUTO), default AUTO
                    -DEXPAT_WITH_SYS_GETRANDOM=(ON|OFF|AUTO), default AUTO
            #326  CMake: Install expat_config.h to include directory
            #326  CMake: Generate and install configuration files for
                    future find_package(expat [..] CONFIG [..])
                  CMake: Now produces a summary of applied configuration
                  CMake: Require C++ compiler only when tests are enabled
            #330  CMake: Fix compilation for 16bit character types,
                    i.e. ex -DXML_UNICODE=ON (and ex -DXML_UNICODE_WCHAR_T=ON)
            #265  CMake: Fix linking with MinGW
            #330  CMake: Add full support for MinGW; to enable, use
                    -DCMAKE_TOOLCHAIN_FILE=[expat]/cmake/mingw-toolchain.cmake
            #330  CMake: Port "make run-xmltest" from GNU Autotools to CMake
            #316  CMake: Windows: Make binary postfix match MSVC
                    Old: expat[d].lib
                    New: expat[w][d][MD|MT].lib
                  CMake: Migrate files from Windows to Unix line endings
            #308  CMake: Integrate OSS-Fuzz fuzzers, option
                    -DEXPAT_BUILD_FUZZERS=(ON|OFF), default OFF
             #14  Drop an OpenVMS support leftover
    #235 #268 ..
    #270 #310 ..
  #313 #331 #333  Address compiler warnings
    #282 #283 ..
       #284 #285  Address cppcheck warnings
       #294 #295  Address Clang Static Analyzer warnings
        #24 #293  Mass-apply clang-format 9 (and ensure conformance during CI)
                  Version info bumped from 7:9:6 to 7:10:6

        Special thanks to:
            David Loffredo
            Joonun Jang
            Khajapasha Mohammed
            Kishore Kunche
            Marco Maggi
            Mitch Phillips
            Rolf Ade
            xantares
            Zhongyuan Zhou
2019-09-16 06:19:03 +00:00
maya
df3b56cb7d Define XML_POOR_ENTROPY in preparation of importing a new expat.
This is the tool fc-cache built as a native binary on the host
during the build.
The host might be non-netbsd, and we don't run configure, so we can't
know what kind of random functions it supports.
2019-09-16 06:16:42 +00:00
wiz
5a2de753fb Sort errors. 2019-09-16 04:59:32 +00:00
wiz
67060edf74 Use more markup. 2019-09-16 04:57:12 +00:00
wiz
4799815d98 Add missing word, add comma in enumeration. 2019-09-16 04:54:23 +00:00
wiz
6cc77413c5 Add missing word, fix typo, remove trailing whitespace. 2019-09-16 04:49:46 +00:00
manu
3f984dd2cd Remove obsoeolete BUGS note that UEFI bootloader does not support multiboot 2019-09-16 01:57:58 +00:00
kamil
889b81b138 Remove _INCOMPLETE_XOPEN_C063, no longer needed 2019-09-16 01:25:16 +00:00
manu
d45bbebabd Accept root device specification as NAME=label 2019-09-16 00:01:16 +00:00
kamil
d3dd6160fd Stop passing -D_INCOMPLETE_XOPEN_C063 (obsolete define) 2019-09-16 00:00:56 +00:00
manu
a351ce9f52 Rollback change to accept NAME=label root device specification
As suggested by Michael van Elst, the operation should be done
int getwedgename()
2019-09-15 23:59:33 +00:00
kamil
597efdbfe5 Drop -D_INCOMPLETE_XOPEN_C063 from dd(1) 2019-09-15 23:58:31 +00:00
manu
cd863801a8 Remove debug define.
It remained there unseen because it was misspelled!
2019-09-15 23:55:26 +00:00
christos
ffff95d50b more _INCOMPLETE_XOPEN_C063 (kamil) 2019-09-15 23:55:22 +00:00
christos
06dda90b75 remove comment for incomplete x/open impl (kamil) 2019-09-15 23:52:59 +00:00
christos
e33ef9b983 one fexecve declaration should be enough. 2019-09-15 23:41:41 +00:00
christos
9dd780b230 Remove the _INCOMPLETE_XOPEN_C063 stuff. 2019-09-15 23:41:00 +00:00
christos
3f24065918 Remove the incomplete define. 2019-09-15 23:39:13 +00:00
christos
cedcb5f35f Declare fexecve 2019-09-15 22:32:48 +00:00
bad
c296e4670d Also don't add a sysroot at all if a rumpkernel build. 2019-09-15 21:17:08 +00:00
christos
a5a5a01f84 Fix type and remove cast (Yuichiro NAITO/FreeBSD). 2019-09-15 21:09:11 +00:00
bouyer
06ee3e618c Inlcude external/bsd/sljit/conf/files.sljit, so that it's possible to build
a kernel with options SLJIT
2019-09-15 21:04:41 +00:00
gutteridge
4b9e0a77d2 fstab.5: add mention of zfs 2019-09-15 21:04:40 +00:00
bouyer
183863f5f8 Packet filters can return an mbuf chain with fragmented headers, so
m_pullup() it if needed and remove the KASSERT()s.
2019-09-15 21:00:15 +00:00
christos
6f91a43aa9 Document O_EXEC, and add some extra explanation for O_CREAT from FreeBSD. 2019-09-15 20:53:24 +00:00
gutteridge
a55674ceb3 mount_zfs.8: add xref to fstab(5) 2019-09-15 20:51:52 +00:00
christos
9246f6c782 Prevent O_EXEC for mq_open(2), and O_EXEC with a writable fd for open(2). 2019-09-15 20:51:03 +00:00
christos
df668d1f3a fix fexecve 2019-09-15 20:26:51 +00:00
christos
d80924824c - Adjust function signatures
- whitespace
2019-09-15 20:26:27 +00:00
christos
2ce1a98e82 - Add O_EXEC, FEXEC.
- Fix typo.
2019-09-15 20:25:48 +00:00
christos
5c0785385f set VEXEC if FEXEC is set. 2019-09-15 20:24:25 +00:00
christos
35de5f3a54 - Add support for fexecve
- get the vnode from the fd passed instead of calling namei() on the
	  path
	- try to reverse resolve the vnode to extract the pathname
	- deal with not having a resolved path available
- rename variable that was not a pathbuf
2019-09-15 20:23:50 +00:00