svn commit: r345889 - head/sys/dev/usb/net

2019-09-03 Thread Ed Maste
Author: emaste Date: Thu Apr 4 19:59:31 2019 New Revision: 345889 URL: https://svnweb.freebsd.org/changeset/base/345889 Log: if_muge: use NULL not 0 for DRIVER_MODULE pointer args Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/usb/net/if_muge.c Modified: head/sys/dev/usb/n

svn commit: r346054 - head/lib/libc/string

2019-09-03 Thread Ed Maste
Author: emaste Date: Tue Apr 9 15:52:18 2019 New Revision: 346054 URL: https://svnweb.freebsd.org/changeset/base/346054 Log: libc: update strstr implementation to match musl musl commits: 122d67f846cb0be2c9e1c3880db9eb9545bbe38c 0239cd0681e889a269fb7691f60e81ef8d081e6b 8f5a820d147da3

svn commit: r346080 - head/tools/boot

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 10 13:41:34 2019 New Revision: 346080 URL: https://svnweb.freebsd.org/changeset/base/346080 Log: Add a smoke test QEMU boot script for CI Reviewed by: imp, lwhsu (earlier) Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.fr

svn commit: r346085 - head

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 10 15:38:53 2019 New Revision: 346085 URL: https://svnweb.freebsd.org/changeset/base/346085 Log: Add Cirrus CI config file to support CI builds (in downstream projects) Make use of the CI smoke test script added in r346080. Reviewed by: imp, lwhsu Sponso

svn commit: r346079 - head/usr.bin/ar

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 10 13:13:34 2019 New Revision: 346079 URL: https://svnweb.freebsd.org/changeset/base/346079 Log: ar: implement support for /SYM64/ 64-bit archives PR: 234454 Submitted by: Gerald Aryeetey Reviewed by: imp (earlier) MFC after:3 weeks Spons

svn commit: r346121 - head

2019-09-03 Thread Ed Maste
Author: emaste Date: Thu Apr 11 13:01:26 2019 New Revision: 346121 URL: https://svnweb.freebsd.org/changeset/base/346121 Log: Cirrus-CI: pass OVMF env var to test script for upcoming changes In review D19876 ian@ has some proposed improvements to the tools/boot/ci-qemu-test.sh script. St

svn commit: r346228 - head/sys/dev/uart

2019-09-03 Thread Ed Maste
Author: emaste Date: Mon Apr 15 13:41:53 2019 New Revision: 346228 URL: https://svnweb.freebsd.org/changeset/base/346228 Log: Add quirk for ignoring SPCR AccessWidth values on the PL011 UART The SPCR table on the Lenovo HR330A Ampere eMAG server indicates 8-bit access, but 32-bit access i

Re: svn commit: r345562 - in head/sys: amd64/amd64 i386/i386

2019-09-03 Thread Ed Maste
On Tue, 26 Mar 2019 at 18:45, Conrad Meyer wrote: > > Author: cem > Date: Tue Mar 26 22:45:41 2019 > New Revision: 345562 > URL: https://svnweb.freebsd.org/changeset/base/345562 > > Log: > x86: Use XSAVEOPT for fpusave(), when available > > Remove redundant npxsave_core definition while here.

Re: svn commit: r346250 - in head: share/man/man4 share/man/man9 sys/dev/random sys/kern sys/libkern sys/sys

2019-09-03 Thread Ed Maste
On Mon, 15 Apr 2019 at 14:40, Conrad Meyer wrote: > > Author: cem > Date: Mon Apr 15 18:40:36 2019 > New Revision: 346250 > URL: https://svnweb.freebsd.org/changeset/base/346250 > > Log: > random(4): Block read_random(9) on initial seeding Because Gerald (one of the FreeBSD Foundation's co-op s

svn commit: r346299 - head/share/man/man9

2019-09-03 Thread Ed Maste
Author: emaste Date: Tue Apr 16 20:41:04 2019 New Revision: 346299 URL: https://svnweb.freebsd.org/changeset/base/346299 Log: iflibtxrx.9: update function descriptions to match implementation isc_rxd_refill, isc_rxd_flush return nothing, not void *. isc_txd_credits_update, isc_rxd_avai

svn commit: r346313 - head/lib/libcasper/services/cap_fileargs

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 15:48:33 2019 New Revision: 346313 URL: https://svnweb.freebsd.org/changeset/base/346313 Log: cap_fileargs.3: correct 'filerags' typo Submitted by: Bora Özarslan" MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/lib/libcasper/s

svn commit: r346273 - in head/sys: compat/freebsd32 kern

2019-09-03 Thread Ed Maste
Author: emaste Date: Tue Apr 16 13:26:31 2019 New Revision: 346273 URL: https://svnweb.freebsd.org/changeset/base/346273 Log: correct readlinkat(2) return type r176215 corrected readlink(2)'s return type and the type of the last argument. readlink(2) was introduced in r177788 after being

svn commit: r346323 - head/contrib/elftoolchain/readelf

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 17:00:16 2019 New Revision: 346323 URL: https://svnweb.freebsd.org/changeset/base/346323 Log: readelf: speed up readelf -wo Use an array instead of STAILQ, and sort at the end instead of while adding new elements. PR: 212539 Submitted by: B

Re: svn commit: r346263 - head/contrib/tcpdump

2019-09-03 Thread Ed Maste
On Tue, 16 Apr 2019 at 11:38, Conrad Meyer wrote: > > I don't think documenting that makes much sense in general. It would > be extremely burdensome to fully document and quickly become > desynchronized from the code. It's comparable to OpenBSD pledging > differently in different paths of progra

svn commit: r346327 - head/contrib/elftoolchain/readelf

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 17:50:44 2019 New Revision: 346327 URL: https://svnweb.freebsd.org/changeset/base/346327 Log: readelf: use size_t for object counts PR: 212539 Reported by: cem Sponsored by: The FreeBSD Foundation Modified: head/contrib/elftoolchain/readelf/

svn commit: r346330 - head/tools/boot

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 19:24:41 2019 New Revision: 346330 URL: https://svnweb.freebsd.org/changeset/base/346330 Log: Put QEMU CI smoke test boot log in /tmp if TMPDIR not set Sponsored by: The FreeBSD Foundation Modified: head/tools/boot/ci-qemu-test.sh Modified: head/tools/boo

svn commit: r346329 - head/tools/boot

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 19:16:26 2019 New Revision: 346329 URL: https://svnweb.freebsd.org/changeset/base/346329 Log: Install some entropy for QEMU CI smoke test See r346250 and followup commits and mailing list discussion. We currently fail to boot properly in the absense of boot

svn commit: r346315 - head/lib/libcasper/services/cap_fileargs

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 16:02:57 2019 New Revision: 346315 URL: https://svnweb.freebsd.org/changeset/base/346315 Log: cap_fileargs: add fileargs_lstat service Add fileargs_lstat function to cap_fileargs casper service to be able to lstat files while in capability mode. It can onl

svn commit: r346314 - head/lib/libcasper/services/cap_fileargs

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 16:00:33 2019 New Revision: 346314 URL: https://svnweb.freebsd.org/changeset/base/346314 Log: cap_fileargs.3: typo and markup corrections Submitted by: Bora Özarslan" MFC after:1 week MFC with: r346313 Sponsored by: The FreeBSD Foundation Modi

svn commit: r346318 - head/lib/libcasper/services/cap_fileargs

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 16:31:30 2019 New Revision: 346318 URL: https://svnweb.freebsd.org/changeset/base/346318 Log: cap_fileargs: fix GCC build, don't shadow 'stat' Reported by: ci.freebsd.org MFC after:3 weeks MFC with: r346315 Sponsored by: The FreeBSD Foundation

svn commit: r346321 - head/lib/libcasper/services/cap_fileargs

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 16:45:42 2019 New Revision: 346321 URL: https://svnweb.freebsd.org/changeset/base/346321 Log: cap_fileargs: fix test after r346318 Reported by: danfe, mjg MFC after:3 weeks MFC with: r346315 Sponsored by: The FreeBSD Foundation Modified: hea

svn commit: r346316 - in head: contrib/elftoolchain/strings sbin/savecore usr.bin/brandelf usr.bin/head usr.bin/wc

2019-09-03 Thread Ed Maste
Author: emaste Date: Wed Apr 17 16:18:14 2019 New Revision: 346316 URL: https://svnweb.freebsd.org/changeset/base/346316 Log: cap_fileargs: chase r346315, update fileargs_init in consumers Reported by: ci.freebsd.org (8 times so far) MFC after:3 weeks MFC with: r346315 Sponso

Re: svn commit: r346316 - in head: contrib/elftoolchain/strings sbin/savecore usr.bin/brandelf usr.bin/head usr.bin/wc

2019-09-03 Thread Ed Maste
On Wed, 17 Apr 2019 at 21:17, Cy Schubert wrote: > > This only tests for the FA_OPEN. It will miss any new macro definitions > should there be any at some point in the future. Yes, this should be replaced with a more holistic approach to addressing includes.

Re: svn commit: r346316 - in head: contrib/elftoolchain/strings sbin/savecore usr.bin/brandelf usr.bin/head usr.bin/wc

2019-09-03 Thread Ed Maste
On Wed, 17 Apr 2019 at 20:50, Ed Maste wrote: > > On Wed, 17 Apr 2019 at 15:42, Cy Schubert wrote: > > > > -.if !exists(/usr/include/casper/cap_fileargs.h) > > CASPERINC+=${SRCTOP}/lib/libcasper/services/cap_fileargs/cap_fileargs. > > h > > -.endif >

Re: svn commit: r346316 - in head: contrib/elftoolchain/strings sbin/savecore usr.bin/brandelf usr.bin/head usr.bin/wc

2019-09-03 Thread Ed Maste
On Wed, 17 Apr 2019 at 15:42, Cy Schubert wrote: > > -.if !exists(/usr/include/casper/cap_fileargs.h) > CASPERINC+=${SRCTOP}/lib/libcasper/services/cap_fileargs/cap_fileargs. > h > -.endif Yes I think this change is correct as an immediate workaround for this issue (until we sort out header

Re: svn commit: r346341 - head/tools/build

2019-09-03 Thread Ed Maste
On Wed, 17 Apr 2019 at 21:07, Rodney W. Grimes wrote: > > Also a pathname rooted at / without ${DESTDIR} is almost certainly a mistake. It's not in fact; strings is being built for the host here, and the headers in /usr/include are the appropriate ones. In this specific case the Capsicum change

Re: svn commit: r346341 - head/tools/build

2019-09-03 Thread Ed Maste
On Thu, 18 Apr 2019 at 10:03, Kyle Evans wrote: > > Keep in mind that this is bootstrap; it's being built for the host > system, but it will link against a version of libcasper that's been > built in an earlier stage with the proper featureset. Not exactly the case here: if building on a system w

svn commit: r346445 - in head/sys/compat/linuxkpi/common: include/linux src

2019-09-03 Thread Ed Maste
Author: emaste Date: Sat Apr 20 15:57:05 2019 New Revision: 346445 URL: https://svnweb.freebsd.org/changeset/base/346445 Log: Enable ioremap for aarch64 in the LinuxKPI Required for Mellanox drivers (e.g. on Ampere eMAG at Packet.com). PR: 237055 Submitted by: Greg V Rev

svn commit: r346569 - head/usr.bin/ar

2019-09-03 Thread Ed Maste
Author: emaste Date: Mon Apr 22 17:29:26 2019 New Revision: 346569 URL: https://svnweb.freebsd.org/changeset/base/346569 Log: ar: use array notation to access s_so This is somewhat more readable than pointer arithmetic. Also remove an unnecessary cast while here. MFC after:1 wee

svn commit: r346582 - head/usr.bin/ar

2019-09-03 Thread Ed Maste
Author: emaste Date: Mon Apr 22 19:55:47 2019 New Revision: 346582 URL: https://svnweb.freebsd.org/changeset/base/346582 Log: ar: shuffle symbol offsets during conversion for 32-bit ar archives During processing we maintain symbol offsets in the 64-bit s_so array, and when writing the arc

svn commit: r346598 - head/sys/modules

2019-09-03 Thread Ed Maste
Author: emaste Date: Tue Apr 23 15:11:01 2019 New Revision: 346598 URL: https://svnweb.freebsd.org/changeset/base/346598 Log: Enable Mellanox drivers (modules) on AArch64 Tested by Greg V with mlx5en on an Ampere eMAG instance at Packet.com on c2.large.arm (with some additional uncommitte

svn commit: r346568 - head/usr.bin/ar

2019-09-03 Thread Ed Maste
Author: emaste Date: Mon Apr 22 17:25:00 2019 New Revision: 346568 URL: https://svnweb.freebsd.org/changeset/base/346568 Log: ar: test for writing 64-bit format only if symbol count is nonzero This is a minor simplification; if we do not have any symbols the empty symbol table can be in 3

Re: svn commit: r346315 - head/lib/libcasper/services/cap_fileargs

2019-09-03 Thread Ed Maste
On Tue, 23 Apr 2019 at 00:07, Yoshihiro Ota wrote: > > It looks this change is causing 'make xdev TARGET=mips TARGET_ARCH=mips' to > fail as the following with HEAD checked out under "/usr/obj/freebsd": Hello Hiro-san, sorry about that. I tried `make xdev TARGET=mips TARGET_ARCH=mips` on HEAD j

svn commit: r351867 - head/sys/dev/pci

2019-09-05 Thread Ed Maste
Author: emaste Date: Thu Sep 5 15:45:21 2019 New Revision: 351867 URL: https://svnweb.freebsd.org/changeset/base/351867 Log: pcie: return an error if a matching resource is not found Submitted by: markj Reviewed by: manu Event:vBSDCon FreeBSD hackathon Sponsored by:

svn commit: r352063 - head/tools/boot

2019-09-09 Thread Ed Maste
Author: emaste Date: Mon Sep 9 14:51:25 2019 New Revision: 352063 URL: https://svnweb.freebsd.org/changeset/base/352063 Log: ci-qemu-test: if firmware is not available, hint at pkg to install uefi-edk2-qemu-x86_64 provides the firmware ci-qemu-test.sh expects to use. Sponsored by: T

svn commit: r352095 - head/contrib/compiler-rt/lib/sanitizer_common

2019-09-09 Thread Ed Maste
Author: emaste Date: Mon Sep 9 18:32:29 2019 New Revision: 352095 URL: https://svnweb.freebsd.org/changeset/base/352095 Log: compiler-rt: use more __sanitizer_time_t on FreeBSD A few structs were using long for time_t members. Obtained from:LLVM r370755 Modified: head/cont

svn commit: r352096 - head/contrib/compiler-rt/lib/sanitizer_common

2019-09-09 Thread Ed Maste
Author: emaste Date: Mon Sep 9 18:33:15 2019 New Revision: 352096 URL: https://svnweb.freebsd.org/changeset/base/352096 Log: compiler-rt: use 64-bit time_t for all FreeBSD archs except i386 Obtained from:LLVM r370756 Modified: head/contrib/compiler-rt/lib/sanitizer_common/sanit

svn commit: r352097 - head/sys/fs/msdosfs

2019-09-09 Thread Ed Maste
Author: emaste Date: Mon Sep 9 18:35:17 2019 New Revision: 352097 URL: https://svnweb.freebsd.org/changeset/base/352097 Log: msdosfsmount.h: fix ifdef comment Modified: head/sys/fs/msdosfs/msdosfsmount.h Modified: head/sys/fs/msdosfs/msdosfsmount.h ==

svn commit: r352208 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2019-09-11 Thread Ed Maste
Author: emaste Date: Wed Sep 11 12:58:06 2019 New Revision: 352208 URL: https://svnweb.freebsd.org/changeset/base/352208 Log: make linux_renameat2 args consistent with linux_renameat Use 'dfd' consistently for a directory fd. Modified: head/sys/amd64/linux/syscalls.master head/sys/amd6

svn commit: r352209 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2019-09-11 Thread Ed Maste
Author: emaste Date: Wed Sep 11 12:58:53 2019 New Revision: 352209 URL: https://svnweb.freebsd.org/changeset/base/352209 Log: regen linuxulator sysent after r352208 Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_systrace_args.c head/sys/amd64/linux32/linux32_proto

svn commit: r352210 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux

2019-09-11 Thread Ed Maste
Author: emaste Date: Wed Sep 11 13:01:59 2019 New Revision: 352210 URL: https://svnweb.freebsd.org/changeset/base/352210 Log: linux: add trivial renameat2 implementation Just return EINVAL if flags != 0. The Linux man page documents one case of EINVAL as "The filesystem does not support

svn commit: r352213 - head/sys/tools

2019-09-11 Thread Ed Maste
Author: emaste Date: Wed Sep 11 13:35:22 2019 New Revision: 352213 URL: https://svnweb.freebsd.org/changeset/base/352213 Log: fw_stub.awk: use @generated tag in generated files Multiple tools use @generated to identify generated files (for example, in a review Phabricator will by default

svn commit: r352221 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2019-09-11 Thread Ed Maste
Author: emaste Date: Wed Sep 11 17:04:13 2019 New Revision: 352221 URL: https://svnweb.freebsd.org/changeset/base/352221 Log: linuxulator: seccomp syscall first appeared in Linux 3.17 Reference: http://man7.org/linux/man-pages/man2/seccomp.2.html Modified: head/sys/amd64/linux/linux_dumm

svn commit: r352222 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2019-09-11 Thread Ed Maste
Author: emaste Date: Wed Sep 11 17:05:49 2019 New Revision: 35 URL: https://svnweb.freebsd.org/changeset/base/35 Log: linuxulator: memfd_create first appeared in Linux 3.17 Reference: http://man7.org/linux/man-pages/man2/memfd_create.2.html Modified: head/sys/amd64/linux/linux_du

svn commit: r352223 - head/sys/arm64/linux

2019-09-11 Thread Ed Maste
Author: emaste Date: Wed Sep 11 17:29:44 2019 New Revision: 352223 URL: https://svnweb.freebsd.org/changeset/base/352223 Log: linuxulator: add stub arm64 linux_genassym.c This will be fleshed out in the future but allows us to build the arm64 linuxulator using the same infrastructure as x

svn commit: r352224 - in head/sys: amd64/linux amd64/linux32 arm64/linux i386/linux

2019-09-11 Thread Ed Maste
Author: emaste Date: Wed Sep 11 17:56:48 2019 New Revision: 352224 URL: https://svnweb.freebsd.org/changeset/base/352224 Log: Update comments and ordering in linux*_dummy.c - sort alphabetically - getcpu arrived in Linux 2.6.19 - fanotify_* arrived in 2.6.36 Modified: head/sys/amd64/

svn commit: r352259 - head/sys/modules

2019-09-12 Thread Ed Maste
Author: emaste Date: Thu Sep 12 18:14:44 2019 New Revision: 352259 URL: https://svnweb.freebsd.org/changeset/base/352259 Log: arm64: connect Linuxulator to the build More work needs to be done, but it is capable of running basic statically or dynamically linked Linux/arm64 binaries.

svn commit: r352513 - head/usr.sbin/freebsd-update

2019-09-19 Thread Ed Maste
Author: emaste Date: Thu Sep 19 11:34:35 2019 New Revision: 352513 URL: https://svnweb.freebsd.org/changeset/base/352513 Log: freebsd-update.8: appease igor igor follows American style guides in the belief that abbreviations i.e. and e.g. are always followed by a comma. Make that change

svn commit: r352514 - head/usr.sbin/freebsd-update

2019-09-19 Thread Ed Maste
Author: emaste Date: Thu Sep 19 11:46:43 2019 New Revision: 352514 URL: https://svnweb.freebsd.org/changeset/base/352514 Log: freebsd-update: make usage output consistent Drop trailing . which appeared only on description of IDS. Submitted by: grembo Event:EuroBSDCon

svn commit: r352551 - head/sys/sys

2019-09-20 Thread Ed Maste
Author: emaste Date: Fri Sep 20 09:04:52 2019 New Revision: 352551 URL: https://svnweb.freebsd.org/changeset/base/352551 Log: elf_common: add ELF note names r348628 added a definition of NT_GNU_BUILD_ID. Some software (Valgrind) also expects a #define for the note name (ELF_NOTE_GNU) in

Re: svn commit: r352661 - head/sys/netinet/tcp_stacks

2019-09-25 Thread Ed Maste
On Tue, 24 Sep 2019 at 17:39, Bruce Evans wrote: > > On i386, these types have different sizes, so > gcc detects the type mismatch. clang is too broken to report this type > mismatch. Interesting, it seems Clang doesn't even warn in the case of casting a uint64_t to a 32-bit pointer. Looks like

Re: svn commit: r351700 - head/lib/libc/string

2019-09-25 Thread Ed Maste
On Fri, 20 Sep 2019 at 08:14, Bruce Evans wrote: > > Optimizing this function [memchr] is especially unimportant, Why? Really, we should provide optimized assembly implementations of string functions deemed important, but it will take time for that to happen on all architectures. > and this ver

Re: svn commit: r351659 - in head: contrib/libc++/include contrib/netbsd-tests/lib/libc/ssp gnu/lib/libssp include lib/libc/stdio

2019-09-25 Thread Ed Maste
On Fri, 13 Sep 2019 at 08:00, Bruce Evans wrote: > > C11 removed gets(), but POSIX.1-2017 (Issue 7) still has it (marked as > obsolescent). Thus this change breaks support for all versions of POSIX. Yes, and intentionally so. If there is a compelling reason to restore it I'll add the #ifdef-ery

Re: svn commit: r351700 - head/lib/libc/string

2019-09-25 Thread Ed Maste
On Wed, 25 Sep 2019 at 10:11, Ed Maste wrote: > > Functionally equivalent, although I compared the compiled output of > both cases and what's currently there is somewhat smaller. Note that > it's not an #else case, the equivalent loop is used in both cases - > handling

Re: svn commit: r351700 - head/lib/libc/string

2019-09-25 Thread Ed Maste
On Wed, 25 Sep 2019 at 11:46, Bruce Evans wrote: > > On Wed, 25 Sep 2019, Ed Maste wrote: > > > On Fri, 20 Sep 2019 at 08:14, Bruce Evans wrote: > >> > >> Optimizing this function [memchr] is especially unimportant, > > > > Why? > > Becaus

svn commit: r352689 - head/lib/libc/i386/string

2019-09-25 Thread Ed Maste
Author: emaste Date: Wed Sep 25 16:49:22 2019 New Revision: 352689 URL: https://svnweb.freebsd.org/changeset/base/352689 Log: remove obsolete i386 MD memchr implementation bde reports (in a reply to r351700 commit mail): This uses scasb, which was last optimal on the 8086, or perhaps

Re: svn commit: r351319 - in head/usr.sbin/makefs: ffs msdos

2019-09-25 Thread Ed Maste
On Fri, 30 Aug 2019 at 00:29, Bruce Evans wrote: > > On Wed, 21 Aug 2019, Ed Maste wrote: > > > Author: emaste > > Date: Wed Aug 21 01:45:29 2019 > > New Revision: 351319 > > URL: https://svnweb.freebsd.org/changeset/base/351319 > > > > Log: > >

Re: svn commit: r352661 - head/sys/netinet/tcp_stacks

2019-09-25 Thread Ed Maste
On Wed, 25 Sep 2019 at 17:13, Dimitry Andric wrote: > > > Interesting, it seems Clang doesn't even warn in the case of casting a > > uint64_t to a 32-bit pointer. Looks like there are some useful > > warnings that ought to be implemented. > > There is -Wconversion for this, or the more specific -W

svn commit: r352742 - head/usr.bin/bsdiff/bspatch

2019-09-26 Thread Ed Maste
Author: emaste Date: Thu Sep 26 13:27:25 2019 New Revision: 352742 URL: https://svnweb.freebsd.org/changeset/base/352742 Log: bspatch: add integer overflow checks Introduce a new add_off_t static function that exits with an error message if there's an overflow, otherwise returns their sum

svn commit: r352792 - head/contrib/compiler-rt/lib/sanitizer_common

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 13:14:36 2019 New Revision: 352792 URL: https://svnweb.freebsd.org/changeset/base/352792 Log: compiler-rt: correct RISC-V struct_kernel_stat64_sz The value of struct_kernel_stat64_sz introduced by review D5021 for RISC-V was incorrect. Also add a __ris

svn commit: r352797 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 16:27:52 2019 New Revision: 352797 URL: https://svnweb.freebsd.org/changeset/base/352797 Log: Add tool to modify ELF binary feature control bits This will allow feature control bits (e.g. for ASLR, PROT_MAX) to be inspected or modified. Some clean-up a

svn commit: r352799 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 16:35:08 2019 New Revision: 352799 URL: https://svnweb.freebsd.org/changeset/base/352799 Log: controlelf: clean up warnings - use explicit ELF note name when not found - no trailing . on warnings - no \n Sponsored by: The FreeBSD Foundation Modified

svn commit: r352801 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 16:44:29 2019 New Revision: 352801 URL: https://svnweb.freebsd.org/changeset/base/352801 Log: controlelf: install standard BSD 2 clause license Reported by: kaktus Sponsored by: The FreeBSD Foundation Modified: head/tools/tools/controlelf/controlelf.c

svn commit: r352803 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 16:57:32 2019 New Revision: 352803 URL: https://svnweb.freebsd.org/changeset/base/352803 Log: controlelf: some style(9) cleanup Submitted by: clang-format Modified: head/tools/tools/controlelf/controlelf.c Modified: head/tools/tools/controlelf/controlelf.

svn commit: r352805 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 17:28:25 2019 New Revision: 352805 URL: https://svnweb.freebsd.org/changeset/base/352805 Log: controlelf: add protmax control Sponsored by: The FreeBSD Foundation Modified: head/tools/tools/controlelf/controlelf.c Modified: head/tools/tools/controlelf/con

svn commit: r352806 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 18:39:05 2019 New Revision: 352806 URL: https://svnweb.freebsd.org/changeset/base/352806 Log: controlelf: tidy up option parsing Sponsored by: The FreeBSD Foundation Modified: head/tools/tools/controlelf/controlelf.c Modified: head/tools/tools/controlelf/

svn commit: r352808 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 18:49:13 2019 New Revision: 352808 URL: https://svnweb.freebsd.org/changeset/base/352808 Log: controlelf: simplify feature string parsing Also add error handling on failure to seek/write updated value. Modified: head/tools/tools/controlelf/controlelf.c Mo

svn commit: r352809 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 19:07:11 2019 New Revision: 352809 URL: https://svnweb.freebsd.org/changeset/base/352809 Log: controlelf: exit with error if file endianness does not match host We need to add support for cross-endian operation, but until that's done just exit with an error

svn commit: r352815 - head/tools/tools/controlelf

2019-09-27 Thread Ed Maste
Author: emaste Date: Fri Sep 27 19:26:52 2019 New Revision: 352815 URL: https://svnweb.freebsd.org/changeset/base/352815 Log: controlelf: update man page Some minor corrections, clarifications or rewording. Modified: head/tools/tools/controlelf/controlelf.1 Modified: head/tools/tools/co

svn commit: r352931 - head/sys/kern

2019-10-01 Thread Ed Maste
Author: emaste Date: Tue Oct 1 17:05:21 2019 New Revision: 352931 URL: https://svnweb.freebsd.org/changeset/base/352931 Log: sysalls.master: remove superfluous ellipsis in comment A single period is sufficient in this comment, and making this change lets us find references to varargs sys

Re: svn commit: r352795 - head/lib/libc/sys

2019-10-01 Thread Ed Maste
On Tue, 1 Oct 2019 at 12:23, Brooks Davis wrote: > > This isn't true with CHERI and as a result I've moved the variadic > argument handling (except for syscall() and __syscall()) into libc. My grep found: open, openat, fcntl, semsys, msgsys, shmsys Is that the full list? _

Re: svn commit: r352795 - head/lib/libc/sys

2019-10-01 Thread Ed Maste
On Tue, 1 Oct 2019 at 14:13, Brooks Davis wrote: > > Also ioctl. I didn't handle the *sys() ones since they are internal only. Ah, yes - I didn't notice ioctl because syscalls.master lacked a XXX or ... comment. ___ svn-src-head@freebsd.org mailing lis

svn commit: r348456 - head/sys/conf

2019-05-31 Thread Ed Maste
Author: emaste Date: Fri May 31 13:54:01 2019 New Revision: 348456 URL: https://svnweb.freebsd.org/changeset/base/348456 Log: newvers.sh correct typo from r348175 Modified: head/sys/conf/newvers.sh Modified: head/sys/conf/newvers.sh ===

svn commit: r348497 - head/sys/mips/cavium/usb

2019-06-01 Thread Ed Maste
Author: emaste Date: Sat Jun 1 18:19:16 2019 New Revision: 348497 URL: https://svnweb.freebsd.org/changeset/base/348497 Log: octusb: fix detach loop over USB ports MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/mips/cavium/usb/octusb_octeon.c Modified:

svn commit: r348498 - head/lib/atf/libatf-c/tests

2019-06-01 Thread Ed Maste
Author: emaste Date: Sat Jun 1 18:26:07 2019 New Revision: 348498 URL: https://svnweb.freebsd.org/changeset/base/348498 Log: libatf: remove workaround not required after atf >= 0.18 update lib/atf/libatf-c/tests/Makefile added the -Wno-duplicate-decl-specifier due to an issue with an old

svn commit: r348609 - head

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 12:56:20 2019 New Revision: 348609 URL: https://svnweb.freebsd.org/changeset/base/348609 Log: Makefile.inc1: clean up stale dependency hacks Carrying on from r339607, remove ad-hoc dependency cleanup for changes prior to June 2018. Sponsored by: The Fr

svn commit: r348610 - in head: lib/clang/libllvm usr.bin/clang

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 13:00:49 2019 New Revision: 348610 URL: https://svnweb.freebsd.org/changeset/base/348610 Log: build llvm-ar and llvm-nm with Clang (promote out of CLANG_EXTRAS) To facilitate experimentation with LTO we require an ar that supports LLVM IR, and to a lesser d

svn commit: r348611 - in head/sys: conf kern

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 13:07:10 2019 New Revision: 348611 URL: https://svnweb.freebsd.org/changeset/base/348611 Log: Expose the kernel's build-ID through sysctl After our migration (of certain architectures) to lld the kernel is built with a unique build-ID. Make it available vi

svn commit: r348612 - head/sys/kern

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 13:45:30 2019 New Revision: 348612 URL: https://svnweb.freebsd.org/changeset/base/348612 Log: style(9) / tidying for r348611 MFC with: r348611 Event:Waterloo Hackathon 2019 Modified: head/sys/kern/kern_mib.c Modified: head/sys/kern/k

svn commit: r348628 - head/sys/sys

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 15:44:31 2019 New Revision: 348628 URL: https://svnweb.freebsd.org/changeset/base/348628 Log: elf_common: add GNU note types and NT_GNU_PROPERTY_TYPE_0 bits To support Intel CET IBT/Shadow Stack. Reviewed by: markj MFC after:1 week Sponsored by:

Re: svn commit: r348611 - in head/sys: conf kern

2019-06-04 Thread Ed Maste
On Tue, 4 Jun 2019 at 10:58, Ian Lepore wrote: > > On Tue, 2019-06-04 at 13:07 +0000, Ed Maste wrote: > > Author: emaste > > Date: Tue Jun 4 13:07:10 2019 > > New Revision: 348611 > > URL: https://svnweb.freebsd.org/changeset/base/348611 > > > > Log:

svn commit: r348653 - head/usr.bin/vtfontcvt

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 18:26:42 2019 New Revision: 348653 URL: https://svnweb.freebsd.org/changeset/base/348653 Log: vtfontcvt: use VFNT_MAP_{NORMAL|BOL}_RH symbolic constants PR: 205707 Reported by: Dmitry Wagin MFC after:1 month Modified: head/usr.bin/vtfont

svn commit: r348656 - head/usr.bin/vtfontcvt

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 18:31:52 2019 New Revision: 348656 URL: https://svnweb.freebsd.org/changeset/base/348656 Log: vtfontcvt: unwrap a line per style(9) PR: 205707 Submitted by: Dmitry Wagin Modified: head/usr.bin/vtfontcvt/vtfontcvt.c Modified: head/usr.bin/vtfon

Re: svn commit: r348611 - in head/sys: conf kern

2019-06-04 Thread Ed Maste
On Tue, 4 Jun 2019 at 13:44, Enji Cooper wrote: > > This is awesome! One minor critique is that I would have mentioned that the > sysctl is `kern.build_id`. You mean including the sysctl name in the commit message? > How is this linked into uname(1) though? I don’t see any additional options >

svn commit: r348661 - head/usr.bin/vtfontcvt

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 18:49:49 2019 New Revision: 348661 URL: https://svnweb.freebsd.org/changeset/base/348661 Log: vtfontcvt: rework height/width setting Introduce VFNT_MAXDIMENSION to replace bare 128, add set_height, and consistently use set_height and set_width. PR:

svn commit: r348662 - head/usr.bin/vtfontcvt

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 18:55:02 2019 New Revision: 348662 URL: https://svnweb.freebsd.org/changeset/base/348662 Log: vtfontcvt: include width and height in verbose info PR: 205707 Submitted by: Dmitry Wagin Modified: head/usr.bin/vtfontcvt/vtfontcvt.c Modified: head

svn commit: r348668 - head/usr.bin/vtfontcvt

2019-06-04 Thread Ed Maste
Author: emaste Date: Tue Jun 4 19:39:06 2019 New Revision: 348668 URL: https://svnweb.freebsd.org/changeset/base/348668 Log: vtfontcvt: zero memory allocated by xmalloc PR: 205707 Submitted by: Dmitry Wagin Modified: head/usr.bin/vtfontcvt/vtfontcvt.c Modified: head/usr.bin

svn commit: r348677 - head/tools/build/mk

2019-06-04 Thread Ed Maste
Author: emaste Date: Wed Jun 5 00:55:22 2019 New Revision: 348677 URL: https://svnweb.freebsd.org/changeset/base/348677 Log: move llvm-ar and llvm-nm to appropriate location in OptionalObsoleteFiles.inc After r348610 `make delete-old` was still removing llvm-ar and llvm-nm (and associate

svn commit: r348689 - head/tools/build/mk

2019-06-05 Thread Ed Maste
Author: emaste Date: Wed Jun 5 14:08:39 2019 New Revision: 348689 URL: https://svnweb.freebsd.org/changeset/base/348689 Log: Use CLANG knob to remove llvm-symbolizer man page r348504 moved llvm-symbolizer from the CLANG_EXTRAS knob to CLANG, but the man page was still in the CLANG_EXTRAS

Re: svn commit: r348610 - in head: lib/clang/libllvm usr.bin/clang

2019-06-05 Thread Ed Maste
On Tue, 4 Jun 2019 at 21:35, Kyle Evans wrote: > > Just to confirm... the commit for llvm-symbolizer included the move > from MK_CLANG_EXTRAS to MK_CLANG in OptionalObsoleteFiles. Not the man page though, it turns out - I moved it now in r348689. ___ sv

svn commit: r348692 - head/usr.bin/vtfontcvt

2019-06-05 Thread Ed Maste
Author: emaste Date: Wed Jun 5 15:23:48 2019 New Revision: 348692 URL: https://svnweb.freebsd.org/changeset/base/348692 Log: vtfontcvt: exit on error if the input font has too many glyphs The kernel has a limit of 131072 glyphs in a font; add the same check to vtfontcvt so that we won't

svn commit: r348796 - head/usr.bin/vtfontcvt

2019-06-08 Thread Ed Maste
Author: emaste Date: Sat Jun 8 08:25:43 2019 New Revision: 348796 URL: https://svnweb.freebsd.org/changeset/base/348796 Log: vtfontcvt: allow out-of-order glyphs PR: 205707 Reported by: mi MFC after:2 weeks Event:Vienna Hackathon 2019 Sponsored by: Th

svn commit: r349049 - head/usr.bin/vtfontcvt

2019-06-15 Thread Ed Maste
Author: emaste Date: Sat Jun 15 09:15:58 2019 New Revision: 349049 URL: https://svnweb.freebsd.org/changeset/base/349049 Log: vtfontcvt: add comments in add_glyph During review for PR 205707. Event:Berlin Devsummit 2019 Modified: head/usr.bin/vtfontcvt/vtfontcvt.c M

svn commit: r349100 - head/usr.bin/vtfontcvt

2019-06-16 Thread Ed Maste
Author: emaste Date: Sun Jun 16 09:17:26 2019 New Revision: 349100 URL: https://svnweb.freebsd.org/changeset/base/349100 Log: vtfontcvt: improve BDF and hex font parsing Support larger font sizes. PR: 205707 Submitted by: Dmitry Wagin (original version) MFC after:2 we

svn commit: r349101 - head/usr.bin/vtfontcvt

2019-06-16 Thread Ed Maste
Author: emaste Date: Sun Jun 16 10:43:18 2019 New Revision: 349101 URL: https://svnweb.freebsd.org/changeset/base/349101 Log: vtfontcvt: initialize bbwbytes to avoid GCC 4.2.1 uninitialized warning PR: 205707 MFC with: 349100 Event:Berlin Devsummit 2019 S

svn commit: r349105 - head/usr.bin/vtfontcvt

2019-06-16 Thread Ed Maste
Author: emaste Date: Sun Jun 16 12:26:46 2019 New Revision: 349105 URL: https://svnweb.freebsd.org/changeset/base/349105 Log: vtfontcvt: initialize another variable to quiet GCC warning I believe this case could be triggered by a broken .bdf font. PR: 205707 Reported by: c

svn commit: r349106 - head/share/vt/fonts

2019-06-16 Thread Ed Maste
Author: emaste Date: Sun Jun 16 12:44:49 2019 New Revision: 349106 URL: https://svnweb.freebsd.org/changeset/base/349106 Log: allow vt(4) fonts to be built from .bdf files vtfontcvt(8) can convert both .bdf and .hex inputs to binary vt(4) .fnt files. Event:Berlin Devs

svn commit: r349107 - head/usr.bin/vtfontcvt

2019-06-16 Thread Ed Maste
Author: emaste Date: Sun Jun 16 13:35:53 2019 New Revision: 349107 URL: https://svnweb.freebsd.org/changeset/base/349107 Log: vtfontcvt: improve .bdf verification Previously we would crash if the BBX y-offset was outside of the font bounding box. Reported by: afl MFC with: r34

svn commit: r349108 - head/usr.bin/vtfontcvt

2019-06-16 Thread Ed Maste
Author: emaste Date: Sun Jun 16 13:51:45 2019 New Revision: 349108 URL: https://svnweb.freebsd.org/changeset/base/349108 Log: vtfontcvt: improve .bdf validation Previously if we had a BBX entry that had invalid values (e.g. bounding box outside of font bounding box) and failed sscanf (e.g

svn commit: r349111 - head/usr.bin/vtfontcvt

2019-06-16 Thread Ed Maste
Author: emaste Date: Sun Jun 16 15:14:49 2019 New Revision: 349111 URL: https://svnweb.freebsd.org/changeset/base/349111 Log: vtfontcvt: correct typo in hex parsing update PR: 205707 Submitted by: Dmitry Wagin MFC with: 349100 Event:Berlin Devsummit 2019

<    1   2   3   4   5   6   7   8   9   10   >