svn commit: r326576 - in head: lib/libc/sys sys/sys

2017-12-05 Thread Ed Maste
Author: emaste Date: Tue Dec 5 20:19:13 2017 New Revision: 326576 URL: https://svnweb.freebsd.org/changeset/base/326576 Log: use @@@ instead of @@ in __sym_default Using .symver foo,foo@@VER causes foo and foo@@VER to be output to the .o file. This requires foo to be weak since t

svn commit: r326596 - head

2017-12-05 Thread Ed Maste
Author: emaste Date: Tue Dec 5 21:42:09 2017 New Revision: 326596 URL: https://svnweb.freebsd.org/changeset/base/326596 Log: Makefile.inc1: map mips MACHINE_/TARGET_ARCH to triples This helps Clang MIPS builds. Reviewed by: bdrewery, jhb (earlier version) Differential Revision:

svn commit: r326597 - head/sys/dev/vnic

2017-12-05 Thread Ed Maste
Author: emaste Date: Tue Dec 5 22:02:46 2017 New Revision: 326597 URL: https://svnweb.freebsd.org/changeset/base/326597 Log: vnic: apply hardware L3 checksum only for IPv4 Previously we set the csum_l3 flag for IPv4 and IPv6, but only IPv4 should have header checksumming applied. Pr

svn commit: r326599 - head/sys/dev/vt

2017-12-05 Thread Ed Maste
Author: emaste Date: Tue Dec 5 22:19:59 2017 New Revision: 326599 URL: https://svnweb.freebsd.org/changeset/base/326599 Log: Implement "vidcontrol -h " for vt(4) PR: 210415 Submitted by: Siva Mahadevan Reviewed by: ray (earlier) MFC after:1 month Relnotes: yes

svn commit: r326613 - head/contrib/tcpdump

2017-12-05 Thread Ed Maste
Author: emaste Date: Wed Dec 6 02:21:11 2017 New Revision: 326613 URL: https://svnweb.freebsd.org/changeset/base/326613 Log: Update tcpdump to 4.9.2 It contains many fixes, including bounds checking, buffer overflows (in SLIP and bittok2str_internal), buffer over-reads, and infinite loop

svn commit: r326628 - head/contrib/tcpdump

2017-12-06 Thread Ed Maste
Author: emaste Date: Wed Dec 6 18:11:56 2017 New Revision: 326628 URL: https://svnweb.freebsd.org/changeset/base/326628 Log: tcpdump: remove undesired svn:keywords property from contrib Reported by: glebius MFC after:6 days MFC with: r326613 Modified: Directory Properties:

svn commit: r326879 - head/contrib/llvm/tools/lld/ELF

2017-12-15 Thread Ed Maste
Author: emaste Date: Fri Dec 15 18:56:12 2017 New Revision: 326879 URL: https://svnweb.freebsd.org/changeset/base/326879 Log: lld: Simplify a boolean expression by De Morgan's laws. Cherry-pick lld r315653 by Rui Ueyama: I don't really understand what exactly this expression means,

svn commit: r326897 - head/contrib/llvm/tools/lld/ELF

2017-12-16 Thread Ed Maste
Author: emaste Date: Sat Dec 16 14:26:11 2017 New Revision: 326897 URL: https://svnweb.freebsd.org/changeset/base/326897 Log: lld: Slightly simplify code and add comment. Cherry-pick lld r315658 by Rui Ueyama: This is not a mechanical transformation. Even though I believe this p

svn commit: r326908 - head/lib/libc/i386

2017-12-16 Thread Ed Maste
Author: emaste Date: Sat Dec 16 15:17:54 2017 New Revision: 326908 URL: https://svnweb.freebsd.org/changeset/base/326908 Log: revert r322589: force use of ld.bfd for linking i386 libc As of r326897 ld.lld can link a working i386 libc.so, so we no longer need to force use of ld.bfd. S

svn commit: r326957 - head/contrib/llvm/tools/lld/ELF

2017-12-18 Thread Ed Maste
Author: emaste Date: Tue Dec 19 03:15:20 2017 New Revision: 326957 URL: https://svnweb.freebsd.org/changeset/base/326957 Log: lld: Don't write preemptible symbol values to the .got. It is not necessary and matches what bfd and gold do. This was a regression from [LLVM] r315658. Ob

svn commit: r326992 - head/sys/tools

2017-12-19 Thread Ed Maste
Author: emaste Date: Tue Dec 19 19:44:06 2017 New Revision: 326992 URL: https://svnweb.freebsd.org/changeset/base/326992 Log: embed_mfs: support embedding mfs into loader The script originally supported embedding an mfs into ELF files or any other type of file, because it searched for mag

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

2017-12-26 Thread Ed Maste
Author: emaste Date: Tue Dec 26 18:10:34 2017 New Revision: 327219 URL: https://svnweb.freebsd.org/changeset/base/327219 Log: readelf: report byte size for DT_PREINIT_ARRAYSZ Sponsored by: The FreeBSD Foundation Modified: head/contrib/elftoolchain/readelf/readelf.c Modified: head/contri

svn commit: r327489 - head/contrib/elftoolchain/elfcopy

2018-01-02 Thread Ed Maste
Author: emaste Date: Tue Jan 2 14:07:55 2018 New Revision: 327489 URL: https://svnweb.freebsd.org/changeset/base/327489 Log: elfcopy: copy raw (untranslated) contents to binary output Previously elfcopy used elf_getdata to obtain data from ELF sections being copied to binary output, but

svn commit: r327498 - in head/sys/dev: hptnr hptrr

2018-01-02 Thread Ed Maste
Author: emaste Date: Tue Jan 2 18:31:32 2018 New Revision: 327498 URL: https://svnweb.freebsd.org/changeset/base/327498 Log: hpt{nr,rr}: plug info leak in hpt_ioctl The hpt{nr,rr} ioctl handler allocates a buffer without M_ZERO and calls hpt_do_ioctl(), which might not overwrite the enti

svn commit: r327497 - head/sys/dev/hpt27xx

2018-01-02 Thread Ed Maste
Author: emaste Date: Tue Jan 2 18:29:44 2018 New Revision: 327497 URL: https://svnweb.freebsd.org/changeset/base/327497 Log: hpt27xx: plug info leak in hpt_ioctl The hpt27xx ioctl handler allocates a buffer without M_ZERO and calls hpt_do_ioctl(), which might not overwrite the entire buf

svn commit: r327499 - head/sys/dev/ath

2018-01-02 Thread Ed Maste
Author: emaste Date: Tue Jan 2 19:29:30 2018 New Revision: 327499 URL: https://svnweb.freebsd.org/changeset/base/327499 Log: ath: fix memory disclosure from ath_btcoex_ioctl The ath_btcoex_ioctl handler allocated a buffer without M_ZERO and returned it to userland without writing to it.

svn commit: r327500 - head/sys/dev/ath

2018-01-02 Thread Ed Maste
Author: emaste Date: Tue Jan 2 19:34:23 2018 New Revision: 327500 URL: https://svnweb.freebsd.org/changeset/base/327500 Log: ath: fix possible memory disclosures in ioctl handlers Apply the fix from r327499 to additional ioctl handlers. Reported by: Ilja van Sprundel MFC after:

svn commit: r327503 - head/usr.sbin/kldxref

2018-01-02 Thread Ed Maste
Author: emaste Date: Tue Jan 2 21:31:54 2018 New Revision: 327503 URL: https://svnweb.freebsd.org/changeset/base/327503 Log: kldxref: correct function names in warning messages Sponsored by: The FreeBSD Foundation Modified: head/usr.sbin/kldxref/ef.c head/usr.sbin/kldxref/ef_obj.c Mo

svn commit: r327526 - in head/sys: dev/ath tools

2018-01-03 Thread Ed Maste
Author: emaste Date: Wed Jan 3 19:22:10 2018 New Revision: 327526 URL: https://svnweb.freebsd.org/changeset/base/327526 Log: embed_mfs: correctly test grep return value Reported by: br MFC with: r326992 Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/ath/if_ath_ioct

svn commit: r327527 - head/sys/dev/ath

2018-01-03 Thread Ed Maste
Author: emaste Date: Wed Jan 3 19:24:21 2018 New Revision: 327527 URL: https://svnweb.freebsd.org/changeset/base/327527 Log: ath: revert accidental change committed with r327526 It will be recommitted with the correct commit message. Modified: head/sys/dev/ath/if_ath_ioctl.c Modified:

svn commit: r327529 - head/sys/dev/ath

2018-01-03 Thread Ed Maste
Author: emaste Date: Wed Jan 3 19:28:13 2018 New Revision: 327529 URL: https://svnweb.freebsd.org/changeset/base/327529 Log: ath: fix possible memory disclosure in ioctl handler Submitted by: Domagoj Stolfa MFC after:1 week Modified: head/sys/dev/ath/if_ath_ioctl.c Modified: hea

svn commit: r327770 - head/usr.bin/clang/lld

2018-01-10 Thread Ed Maste
Author: emaste Date: Wed Jan 10 16:01:25 2018 New Revision: 327770 URL: https://svnweb.freebsd.org/changeset/base/327770 Log: lld: introduce basic man page Upstream lld has no man page. Introduce a basic one for FreeBSD based on ld.lld --help, with a brief introduction and additional deta

svn commit: r327778 - head/share/man/man5

2018-01-10 Thread Ed Maste
Author: emaste Date: Wed Jan 10 18:15:00 2018 New Revision: 327778 URL: https://svnweb.freebsd.org/changeset/base/327778 Log: src.conf.5: regen after r325692 and r326888 Sponsored by: The FreeBSD Foundation Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.

svn commit: r327783 - head/share/mk

2018-01-10 Thread Ed Maste
Author: emaste Date: Wed Jan 10 20:28:01 2018 New Revision: 327783 URL: https://svnweb.freebsd.org/changeset/base/327783 Log: Enable ld.lld as bootstrap linker by default on amd64 For some time we have been planning to migrate to LLVM's lld linker. Having a man page was the last blocking

svn commit: r327784 - head/share/man/man5

2018-01-10 Thread Ed Maste
Author: emaste Date: Wed Jan 10 20:36:16 2018 New Revision: 327784 URL: https://svnweb.freebsd.org/changeset/base/327784 Log: regen src.conf.5 after r327783, WITH_LLD_BOOTSTRAP default (I missed the Reviewed by and review link from r327783.) Reviewed by: brooks, dim, bapt Sponsored

svn commit: r327787 - head

2018-01-10 Thread Ed Maste
Author: emaste Date: Wed Jan 10 20:49:01 2018 New Revision: 327787 URL: https://svnweb.freebsd.org/changeset/base/327787 Log: Mention switch to ld.lld for amd64 in UPDATING Sponsored by: The FreeBSD Foundation Modified: head/UPDATING Modified: head/UPDATING =

Re: svn commit: r327783 - head/share/mk

2018-01-10 Thread Ed Maste
On 10 January 2018 at 15:28, Ed Maste wrote: > Author: emaste > Date: Wed Jan 10 20:28:01 2018 > New Revision: 327783 > URL: https://svnweb.freebsd.org/changeset/base/327783 > > Log: > Enable ld.lld as bootstrap linker by default on amd64 >... > This has bee

svn commit: r327823 - head/share/mk

2018-01-11 Thread Ed Maste
Author: emaste Date: Thu Jan 11 14:03:05 2018 New Revision: 327823 URL: https://svnweb.freebsd.org/changeset/base/327823 Log: Enable ld.lld as bootstrap linker by default on i386 Akin to r327783 for amd64. lld has been usable for amd64 for quite some time, but a couple of issues remained

svn commit: r327824 - head/share/man/man5

2018-01-11 Thread Ed Maste
Author: emaste Date: Thu Jan 11 14:21:07 2018 New Revision: 327824 URL: https://svnweb.freebsd.org/changeset/base/327824 Log: regen src.conf.5 after r327823, WITH_LLD_BOOTSTRAP for i386 Sponsored by: The FreeBSD Foundation Modified: head/share/man/man5/src.conf.5 Modified: head/share/ma

svn commit: r327840 - head/sys/i386/conf

2018-01-11 Thread Ed Maste
Author: emaste Date: Thu Jan 11 19:08:43 2018 New Revision: 327840 URL: https://svnweb.freebsd.org/changeset/base/327840 Log: Temporarily disable VIMAGE on i386 An lld-linked i386 kernel hangs on boot, after em(4) starts. This seems similar to the issue that prompted us to disable VIMAGE

svn commit: r327860 - head/sys/vm

2018-01-11 Thread Ed Maste
Author: emaste Date: Fri Jan 12 03:50:44 2018 New Revision: 327860 URL: https://svnweb.freebsd.org/changeset/base/327860 Log: ANSIfy function definitions in sys/vm/ Modified: head/sys/vm/vm_glue.c head/sys/vm/vm_unix.c Modified: head/sys/vm/vm_glue.c ===

svn commit: r327889 - head/contrib/gcc

2018-01-12 Thread Ed Maste
Author: emaste Date: Fri Jan 12 20:03:24 2018 New Revision: 327889 URL: https://svnweb.freebsd.org/changeset/base/327889 Log: Revert r280909 "unwind-d2 build workaround for arm64" We no longer try to build unwind-dw2.c on arm64 so no need for this workaround. Sponsored by: The FreeBS

svn commit: r327890 - head/usr.sbin/bsdinstall/partedit

2018-01-12 Thread Ed Maste
Author: emaste Date: Fri Jan 12 20:25:57 2018 New Revision: 327890 URL: https://svnweb.freebsd.org/changeset/base/327890 Log: bsdinstall: disable SUJ by default SUJ + cg checksums produce spurious warnings after an unclean shutdown (e.g. a crash). For now disable SUJ for UFS installs so

svn commit: r327910 - in head/share: man/man5 mk

2018-01-12 Thread Ed Maste
Author: emaste Date: Sat Jan 13 04:00:55 2018 New Revision: 327910 URL: https://svnweb.freebsd.org/changeset/base/327910 Log: Revert r327823, Enable ld.lld as bootstrap linker by default on i386 There's a report of some regression in ports. Revert for now for an exp run for this change i

Re: svn commit: r327823 - head/share/mk

2018-01-12 Thread Ed Maste
On 12 January 2018 at 17:49, Antoine Brodin wrote: > On Thu, Jan 11, 2018 at 3:03 PM, Ed Maste wrote: >> Author: emaste >> Date: Thu Jan 11 14:03:05 2018 >> New Revision: 327823 >> URL: https://svnweb.freebsd.org/changeset/base/327823 >> >> Log: >>

svn commit: r327969 - head/sys/i386/conf

2018-01-14 Thread Ed Maste
Author: emaste Date: Sun Jan 14 16:04:51 2018 New Revision: 327969 URL: https://svnweb.freebsd.org/changeset/base/327969 Log: Enable VIMAGE in i386 GENERIC (revert r327840) We've switched back to ld.bfd on i386 for now. PR: 225077 Sponsored by: The FreeBSD Foundation Modif

svn commit: r328052 - head/usr.sbin/kldxref

2018-01-16 Thread Ed Maste
Author: emaste Date: Tue Jan 16 18:20:12 2018 New Revision: 328052 URL: https://svnweb.freebsd.org/changeset/base/328052 Log: kldxref: handle modules with md_cval at the end of allocated sections Attempting to retrieve an md_cval string from a kernel module with kldxref would throw a offs

svn commit: r328094 - head/usr.sbin/kldxref

2018-01-17 Thread Ed Maste
Author: emaste Date: Wed Jan 17 19:59:43 2018 New Revision: 328094 URL: https://svnweb.freebsd.org/changeset/base/328094 Log: kldxref: improve style(9) Address style issues including some previously raised in D13923. - Use designated initializers for structs - Always use bracketed re

svn commit: r328095 - head/usr.sbin/kldxref

2018-01-17 Thread Ed Maste
Author: emaste Date: Wed Jan 17 20:43:30 2018 New Revision: 328095 URL: https://svnweb.freebsd.org/changeset/base/328095 Log: kldxref: additional sytle(9) cleanup Reported by: kib (via comments in D13957) Sponsored by: The FreeBSD Foundation Modified: head/usr.sbin/kldxref/ef.c Modif

Re: svn commit: r328101 - in head: stand/common sys/kern

2018-01-17 Thread Ed Maste
On 17 January 2018 at 17:52, John Baldwin wrote: > Author: jhb > Date: Wed Jan 17 22:51:59 2018 > New Revision: 328101 > URL: https://svnweb.freebsd.org/changeset/base/328101 > > Log: > Require the SHF_ALLOC flag for program sections from kernel object modules. > > The lld linker > does not

svn commit: r328141 - head/contrib/llvm/tools/lld/ELF

2018-01-18 Thread Ed Maste
Author: emaste Date: Thu Jan 18 21:38:21 2018 New Revision: 328141 URL: https://svnweb.freebsd.org/changeset/base/328141 Log: lld: Fix for ld.lld does not accept "AT" syntax for declaring LMA region AT> lma_region expression allows to specify the memory region for section load address.

svn commit: r328143 - head/contrib/llvm/tools/lld/ELF

2018-01-18 Thread Ed Maste
Author: emaste Date: Thu Jan 18 21:39:19 2018 New Revision: 328143 URL: https://svnweb.freebsd.org/changeset/base/328143 Log: lld: Handle parsing AT(ADDR(.foo-bar)). The problem we had with it is that anything inside an AT is an expression, so we failed to parse the section name because o

svn commit: r328144 - head/contrib/llvm/tools/lld/ELF

2018-01-18 Thread Ed Maste
Author: emaste Date: Thu Jan 18 21:39:59 2018 New Revision: 328144 URL: https://svnweb.freebsd.org/changeset/base/328144 Log: lld: Fix incorrect physical address on self-referencing AT command. When a section placement (AT) command references the section itself, the physical address of th

svn commit: r328166 - in head/sys: amd64/amd64 x86/include x86/x86

2018-01-19 Thread Ed Maste
Author: emaste Date: Fri Jan 19 15:42:34 2018 New Revision: 328166 URL: https://svnweb.freebsd.org/changeset/base/328166 Log: Enable KPTI by default on amd64 for non-AMD CPUs Kernel Page Table Isolation (KPTI) was introduced in r328083 as a mitigation for the 'Meltdown' vulnerability. AM

svn commit: r328286 - head/contrib/llvm/tools/lld/ELF

2018-01-23 Thread Ed Maste
Author: emaste Date: Tue Jan 23 17:54:39 2018 New Revision: 328286 URL: https://svnweb.freebsd.org/changeset/base/328286 Log: lld: Don't mark a shared library as needed because of a lazy symbol. Obtained from:LLVM r323221 by Rafael EspĂ­ndola Modified: head/contrib/llvm/tools/lld/

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

2018-01-23 Thread Ed Maste
Author: emaste Date: Tue Jan 23 20:35:43 2018 New Revision: 328299 URL: https://svnweb.freebsd.org/changeset/base/328299 Log: Use BSD-2-Clause-FreeBSD license on linux_support.s These files previously had a 3-clause license and 'THE REGENTS' text. Switch to standard 2-clause text with kib

svn commit: r328300 - head/sys/sys

2018-01-23 Thread Ed Maste
Author: emaste Date: Tue Jan 23 20:38:03 2018 New Revision: 328300 URL: https://svnweb.freebsd.org/changeset/base/328300 Log: copyright.h: Update license text to 'THE AUTHOR' This matches the license text at https://www.freebsd.org/copyright/freebsd-license.html Sponsored by: The Fre

svn commit: r328305 - head/lib/libcxxrt

2018-01-23 Thread Ed Maste
Author: emaste Date: Tue Jan 23 22:41:13 2018 New Revision: 328305 URL: https://svnweb.freebsd.org/changeset/base/328305 Log: libcxxrt: Move mangled symbols out of extern "C++" in Version.map r260553 added a number of mangled C++ symbols to Version.map inside of an existing `extern "C++"`

Re: svn commit: r328305 - head/lib/libcxxrt

2018-01-24 Thread Ed Maste
On 24 January 2018 at 06:51, Dimitry Andric wrote: >> -# C++11 typeinfo not understood by our linker >> -# std::nullptr_t >> -_ZTIDn;_ZTIPDn;_ZTIPKDn; > > Maybe, for readability, we should change these to unmangled form instead? I believe they're mangled because ld.bfd 2.1

svn commit: r328374 - head/share/man/man8

2018-01-24 Thread Ed Maste
t -.Nm -boot support was developed by -.An Benno Rice Aq Mt be...@freebsd.org , -.An \&Ed Maste Aq Mt ema...@freebsd.org , -and -.An Nathan Whitehorn Aq Mt nwhiteh...@freebsd.org . -The -.Fx -Foundation sponsored portions of the work. +boot support for amd64 first appeared in +.Fx 10.1 +and for a

svn commit: r328375 - head/share/man/man8

2018-01-24 Thread Ed Maste
Author: emaste Date: Wed Jan 24 21:20:24 2018 New Revision: 328375 URL: https://svnweb.freebsd.org/changeset/base/328375 Log: uefi.8: note that UEFI and EFI are used interchangeably Modified: head/share/man/man8/uefi.8 Modified: head/share/man/man8/uefi.8

svn commit: r328376 - head/share/man/man8

2018-01-24 Thread Ed Maste
Author: emaste Date: Wed Jan 24 21:26:01 2018 New Revision: 328376 URL: https://svnweb.freebsd.org/changeset/base/328376 Log: uefi.8: add .Xr cross references to new efi tools Modified: head/share/man/man8/uefi.8 Modified: head/share/man/man8/uefi.8 ==

svn commit: r328378 - head/share/man/man8

2018-01-24 Thread Ed Maste
Author: emaste Date: Wed Jan 24 21:39:40 2018 New Revision: 328378 URL: https://svnweb.freebsd.org/changeset/base/328378 Log: Add efi.8 as a man page link to uefi.8 FreeBSD and industry has been inconsistent in the use of UEFI and EFI. They are essentially just different versions of the s

svn commit: r328395 - head/share/man/man8

2018-01-25 Thread Ed Maste
Author: emaste Date: Thu Jan 25 13:51:20 2018 New Revision: 328395 URL: https://svnweb.freebsd.org/changeset/base/328395 Log: Install uefi.8 also on arm64 Our standard boot method for arm64 is via UEFI, so install the man page that describes the boot process. MFC after:1 week S

svn commit: r328396 - head/share/man/man8

2018-01-25 Thread Ed Maste
Author: emaste Date: Thu Jan 25 14:36:47 2018 New Revision: 328396 URL: https://svnweb.freebsd.org/changeset/base/328396 Log: uefi.8: describe architecture-specific default path Sponsored by: The FreeBSD Foundation Modified: head/share/man/man8/uefi.8 Modified: head/share/man/man8/uefi.

svn commit: r328410 - head/usr.sbin/bsdinstall/partedit

2018-01-25 Thread Ed Maste
Author: emaste Date: Thu Jan 25 19:57:21 2018 New Revision: 328410 URL: https://svnweb.freebsd.org/changeset/base/328410 Log: bsdinstall: enable SUJ by default (revert r327890) fsck should be fixed as of r328092. PR: 225110 Tested by:dumbbell, Arshan Khanifar Modified

svn commit: r328411 - in head/stand/efi: include loader

2018-01-25 Thread Ed Maste
Author: emaste Date: Thu Jan 25 20:09:51 2018 New Revision: 328411 URL: https://svnweb.freebsd.org/changeset/base/328411 Log: loader.efi: add missing EFI GUIDs These were found during bring-up on a new arm64 platform and in an amd64 VM. Submitted by: Arshan Khanifar Reviewed by:

svn commit: r328412 - head/share/vt/keymaps

2018-01-25 Thread Ed Maste
Author: emaste Date: Thu Jan 25 21:13:42 2018 New Revision: 328412 URL: https://svnweb.freebsd.org/changeset/base/328412 Log: vt: add Ctrl+/ key mapping This matches Xorg's handling of Ctrl+/ and may be useful as a tmux escape. PR: 212197 Submitted by: martin at sugioarto

Re: svn commit: r328437 - in head/stand: i386/gptboot libsa

2018-01-26 Thread Ed Maste
On 26 January 2018 at 12:13, Warner Losh wrote: > Author: imp > Date: Fri Jan 26 17:13:00 2018 > New Revision: 328437 > URL: https://svnweb.freebsd.org/changeset/base/328437 > > Log: > Split panic routine ... > -extern voidexit(int); > +extern voidexit(int) __dead2; MIPS

svn commit: r328526 - head/sys/modules/linux64

2018-01-28 Thread Ed Maste
Author: emaste Date: Mon Jan 29 01:59:04 2018 New Revision: 328526 URL: https://svnweb.freebsd.org/changeset/base/328526 Log: Correct MD patch in linux64 module Makefile Reviewed by: imp Sponsored by: Turing Robotic Industries Inc. Differential Revision:https://reviews.freebsd.

svn commit: r328542 - head/contrib/llvm/tools/lld/ELF

2018-01-29 Thread Ed Maste
Author: emaste Date: Mon Jan 29 13:48:15 2018 New Revision: 328542 URL: https://svnweb.freebsd.org/changeset/base/328542 Log: lld: Use lookup instead of find. NFC, just simpler. Obtained from:LLVM r323395 by Rafael Espindola Modified: head/contrib/llvm/tools/lld/ELF/LinkerScript.

svn commit: r328543 - head/contrib/llvm/tools/lld/ELF

2018-01-29 Thread Ed Maste
Author: emaste Date: Mon Jan 29 13:49:10 2018 New Revision: 328543 URL: https://svnweb.freebsd.org/changeset/base/328543 Log: lld: Only lookup LMARegion once. NFC. This is similar to how we handle MemRegion. Obtained from:LLVM r323396 by Rafael Espindola Modified: head/contr

svn commit: r328544 - head/contrib/llvm/tools/lld/ELF

2018-01-29 Thread Ed Maste
Author: emaste Date: Mon Jan 29 13:50:28 2018 New Revision: 328544 URL: https://svnweb.freebsd.org/changeset/base/328544 Log: lld: Remove MemRegionOffset. NFC. We can just use a member variable in MemoryRegion. Obtained from:LLVM r323399 by Rafael Espindola Modified: head/co

svn commit: r328545 - head/contrib/llvm/tools/lld/ELF

2018-01-29 Thread Ed Maste
Author: emaste Date: Mon Jan 29 13:51:13 2018 New Revision: 328545 URL: https://svnweb.freebsd.org/changeset/base/328545 Log: lld: Simplify. NFC. Obtained from:LLVM r323440 by Rafael Espindola Modified: head/contrib/llvm/tools/lld/ELF/LinkerScript.cpp head/contrib/llvm/tools/ll

svn commit: r328546 - head/contrib/llvm/tools/lld/ELF

2018-01-29 Thread Ed Maste
Author: emaste Date: Mon Jan 29 13:52:42 2018 New Revision: 328546 URL: https://svnweb.freebsd.org/changeset/base/328546 Log: lld: Improve LMARegion handling. This fixes the crash reported at [LLVM] PR36083. The issue is that we were trying to put all the sections in the same PT_LOAD

svn commit: r328547 - head/contrib/llvm/tools/lld/ELF

2018-01-29 Thread Ed Maste
Author: emaste Date: Mon Jan 29 13:54:51 2018 New Revision: 328547 URL: https://svnweb.freebsd.org/changeset/base/328547 Log: lld: Move LMAOffset from the OutputSection to the PhdrEntry. NFC. If two sections are in the same PT_LOAD, their relatives offsets, virtual address and physical ad

svn commit: r328548 - head/contrib/llvm/tools/lld/ELF

2018-01-29 Thread Ed Maste
Author: emaste Date: Mon Jan 29 13:55:50 2018 New Revision: 328548 URL: https://svnweb.freebsd.org/changeset/base/328548 Log: lld: Put the header in the first PT_LOAD even if that PT_LOAD has a LMAExpr The root problem is that we were creating a PT_LOAD just for the header. That was techn

svn commit: r331327 - head/sys/i386/ibcs2

2018-03-21 Thread Ed Maste
Author: emaste Date: Wed Mar 21 23:17:26 2018 New Revision: 331327 URL: https://svnweb.freebsd.org/changeset/base/331327 Log: Add ) missing from r330297 Sponsored by: The FreeBSD Foundation Modified: head/sys/i386/ibcs2/ibcs2_ipc.c Modified: head/sys/i386/ibcs2/ibcs2_ipc.c =

svn commit: r331329 - head/sys/i386/ibcs2

2018-03-21 Thread Ed Maste
Author: emaste Date: Wed Mar 21 23:26:42 2018 New Revision: 331329 URL: https://svnweb.freebsd.org/changeset/base/331329 Log: Fix kernel memory disclosure in ibcs2_getdents ibcs2_getdents() copies a dirent structure to userland. The ibcs2 dirent structure contains a 2 byte pad element.

svn commit: r331333 - head/sys/dev/drm

2018-03-21 Thread Ed Maste
Author: emaste Date: Wed Mar 21 23:51:14 2018 New Revision: 331333 URL: https://svnweb.freebsd.org/changeset/base/331333 Log: Fix kernel memory disclosure in drm_infobufs drm_infobufs() has a structure on the stack, fills it out and copies it to userland. There are 2 elements in the stru

svn commit: r331339 - head/sys/dev/drm

2018-03-21 Thread Ed Maste
Author: emaste Date: Thu Mar 22 01:00:55 2018 New Revision: 331339 URL: https://svnweb.freebsd.org/changeset/base/331339 Log: Correct signedness bug in drm_modeset_ctl drm_modeset_ctl() takes a signed in from userland, does a boundscheck, and then uses it to index into a structure and wri

Re: svn commit: r331339 - head/sys/dev/drm

2018-03-21 Thread Ed Maste
On 21 March 2018 at 21:00, Ed Maste wrote: > Author: emaste > Date: Thu Mar 22 01:00:55 2018 > New Revision: 331339 > URL: https://svnweb.freebsd.org/changeset/base/331339 > > Log: > Correct signedness bug in drm_modeset_ctl > > Reported by: Ilja Van Sprundel

svn commit: r331356 - in head: lib/libsysdecode sys/amd64/linux sys/amd64/linux32 sys/compat/linux sys/i386/linux sys/modules/linux_common

2018-03-22 Thread Ed Maste
Author: emaste Date: Thu Mar 22 12:58:49 2018 New Revision: 331356 URL: https://svnweb.freebsd.org/changeset/base/331356 Log: Share Linux errno table with libsysdecode Requested by: jhb Reviewed by: jhb Sponsored by: Turing Robotic Industries Inc. Added: head/sys/compat/linux/linux_

Re: svn commit: r331356 - in head: lib/libsysdecode sys/amd64/linux sys/amd64/linux32 sys/compat/linux sys/i386/linux sys/modules/linux_common

2018-03-22 Thread Ed Maste
On 22 March 2018 at 08:58, Ed Maste wrote: > Author: emaste > Date: Thu Mar 22 12:58:49 2018 > New Revision: 331356 > URL: https://svnweb.freebsd.org/changeset/base/331356 > > Log: > Share Linux errno table with libsysdecode I had a question about using ".inc"

svn commit: r331426 - head/sys/compat/linux

2018-03-23 Thread Ed Maste
Author: emaste Date: Fri Mar 23 14:39:34 2018 New Revision: 331426 URL: https://svnweb.freebsd.org/changeset/base/331426 Log: Rationalize license text on Linuxolator files Many licenses on Linuxolator files contained small variations from the standard FreeBSD license text. To avoid licen

svn commit: r331433 - in head/sys/compat/linuxkpi/common: include/asm include/linux include/net src

2018-03-23 Thread Ed Maste
Author: emaste Date: Fri Mar 23 15:50:01 2018 New Revision: 331433 URL: https://svnweb.freebsd.org/changeset/base/331433 Log: linuxkpi whitespace cleanup Reviewed by: hselasky, markj MFC after:1 week Differential Revision:https://reviews.freebsd.org/D14807 Modified: head

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

2018-03-23 Thread Ed Maste
Author: emaste Date: Fri Mar 23 17:16:36 2018 New Revision: 331439 URL: https://svnweb.freebsd.org/changeset/base/331439 Log: Sort headers in MD Linuxulator files Bring #includes closer to style(9) and reduce differences between the (three) MD versions of linux_machdep.c and linux_sysvec.

svn commit: r331442 - in head/sys/amd64: linux linux32

2018-03-23 Thread Ed Maste
Author: emaste Date: Fri Mar 23 17:28:04 2018 New Revision: 331442 URL: https://svnweb.freebsd.org/changeset/base/331442 Log: Fixup return style(9) in amd64 linux*_sysvec.c Sponsored by: Turing Robotic Industries Inc. Modified: head/sys/amd64/linux/linux_sysvec.c head/sys/amd64/linux32

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

2018-03-23 Thread Ed Maste
Author: emaste Date: Fri Mar 23 20:32:54 2018 New Revision: 331462 URL: https://svnweb.freebsd.org/changeset/base/331462 Log: Remove redundant cast from Linuxulator SYSINITs Modified: head/sys/amd64/linux/linux_sysvec.c head/sys/amd64/linux32/linux32_sysvec.c head/sys/i386/linux/linux_sys

svn commit: r331757 - head/sys/dev/hyperv/vmbus

2018-03-29 Thread Ed Maste
Author: emaste Date: Fri Mar 30 02:25:12 2018 New Revision: 331757 URL: https://svnweb.freebsd.org/changeset/base/331757 Log: Correct comment typo in Hyper-V PR: 226665 Submitted by: Ryo ONODERA MFC after:3 days Modified: head/sys/dev/hyperv/vmbus/hyperv.c Modified: he

svn commit: r331758 - head/usr.sbin/makefs

2018-03-29 Thread Ed Maste
Author: emaste Date: Fri Mar 30 03:38:08 2018 New Revision: 331758 URL: https://svnweb.freebsd.org/changeset/base/331758 Log: makefs: sync fragment and block size with newfs r222319 in newfs raised the default blocksize for UFS/FFS filesystems from 16K to 32K and the default fragment size

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

2018-04-03 Thread Ed Maste
Author: emaste Date: Tue Apr 3 18:43:00 2018 New Revision: 331935 URL: https://svnweb.freebsd.org/changeset/base/331935 Log: vtfontcvt: allow .bdf characters less than full height Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/vtfontcvt/vtfontcvt.c Modified: head/usr.bin/v

svn commit: r332034 - head/sys/compat/linux

2018-04-04 Thread Ed Maste
Author: emaste Date: Wed Apr 4 14:41:48 2018 New Revision: 332034 URL: https://svnweb.freebsd.org/changeset/base/332034 Log: linux_ioctl_hdio: fix kernel memory disclosure Stack-allocated struct linux_hd_big_geometry has undeclared padding copied to userland. admbugs: 765 Rep

svn commit: r332042 - head/sys/compat/linux

2018-04-04 Thread Ed Maste
Author: emaste Date: Wed Apr 4 19:58:25 2018 New Revision: 332042 URL: https://svnweb.freebsd.org/changeset/base/332042 Log: Fix kernel memory disclosure in linux_ioctl_socket strlcpy is used to copy a string into a buffer to be copied to userland, previously leaving uninitialized data a

svn commit: r332045 - head/sys/netinet

2018-04-04 Thread Ed Maste
Author: emaste Date: Wed Apr 4 21:12:35 2018 New Revision: 332045 URL: https://svnweb.freebsd.org/changeset/base/332045 Log: Fix kernel memory disclosure in tcp_ctloutput strcpy was used to copy a string into a buffer copied to userland, which left uninitialized data after the terminatin

svn commit: r332057 - head

2018-04-04 Thread Ed Maste
Author: emaste Date: Thu Apr 5 03:26:42 2018 New Revision: 332057 URL: https://svnweb.freebsd.org/changeset/base/332057 Log: remove special handling for stale ptrace dependencies r318957 added special handling for stale ptrace dependency files to support a -DNO_CLEAN build in a tree last

svn commit: r332090 - head/stand/i386

2018-04-05 Thread Ed Maste
Author: emaste Date: Fri Apr 6 02:57:58 2018 New Revision: 332090 URL: https://svnweb.freebsd.org/changeset/base/332090 Log: stand: pass --no-rosegment for i386 bits when linking with lld btxld does not correctly handle input with other than 2 PT_LOAD segments. Passing --no-rosegment le

Re: svn commit: r332090 - head/stand/i386

2018-04-09 Thread Ed Maste
On 6 April 2018 at 13:54, John Baldwin wrote: > On Friday, April 06, 2018 02:57:58 AM Ed Maste wrote: >> Author: emaste >> Date: Fri Apr 6 02:57:58 2018 >> New Revision: 332090 >> URL: https://svnweb.freebsd.org/changeset/base/332090 >> >> Log: >>

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

2018-04-09 Thread Ed Maste
Author: emaste Date: Mon Apr 9 17:24:01 2018 New Revision: 332333 URL: https://svnweb.freebsd.org/changeset/base/332333 Log: linuxulator: deduplicate linux_exec_imgact_try Previously linuxulator had three identical copies of linux_exec_imgact_try. Deduplicate before adding another arch

svn commit: r332335 - head/sys/amd64/linux32

2018-04-09 Thread Ed Maste
Author: emaste Date: Mon Apr 9 19:11:24 2018 New Revision: 332335 URL: https://svnweb.freebsd.org/changeset/base/332335 Log: linuxulator: add else case braces to reduce diffs between archs Sponsored by: Turing Robotic Industries Inc. Modified: head/sys/amd64/linux32/linux32_sysvec.c Mo

Re: svn commit: r332090 - head/stand/i386

2018-04-09 Thread Ed Maste
On 9 April 2018 at 15:28, John Baldwin wrote: > > I do think we are likely to have far fewer conditional LDFLAGS rather > than CFLAGS though. I think if we are only going to have 1 or 2 > instances in the tree then LDFLAGS.LINKER_TYPE might perhaps be > overkill, but if we think there will be sev

svn commit: r332390 - in head/release: amd64 arm64 i386 powerpc

2018-04-10 Thread Ed Maste
Author: emaste Date: Tue Apr 10 19:49:04 2018 New Revision: 332390 URL: https://svnweb.freebsd.org/changeset/base/332390 Log: make-memstick.sh: put partition args on separate lines This makes it easier to identify the individual partition types and facilitates comparisons across architect

svn commit: r332396 - head/bin/setfacl

2018-04-10 Thread Ed Maste
Author: emaste Date: Tue Apr 10 23:29:57 2018 New Revision: 332396 URL: https://svnweb.freebsd.org/changeset/base/332396 Log: setfacl: add recursive functionality Add a -R option to setfacl to operate recursively on directories, along with the accompanying flags -H, -L, and -P (whose beha

svn commit: r332405 - head/bin/setfacl

2018-04-11 Thread Ed Maste
Author: emaste Date: Wed Apr 11 13:33:12 2018 New Revision: 332405 URL: https://svnweb.freebsd.org/changeset/base/332405 Log: setfacl: minor man page edit to appease igor(1) Modified: head/bin/setfacl/setfacl.1 Modified: head/bin/setfacl/setfacl.1

svn commit: r332421 - head/sys/dev/vt/hw/vga

2018-04-11 Thread Ed Maste
Author: emaste Date: Thu Apr 12 02:10:01 2018 New Revision: 332421 URL: https://svnweb.freebsd.org/changeset/base/332421 Log: vt: add three more cp437 mappings for vga textmode In UTF-8 locales mandoc uses a number of characters outside of the Basic Latin group, e.g. from general punctuat

svn commit: r332446 - head/release/i386

2018-04-12 Thread Ed Maste
Author: emaste Date: Thu Apr 12 19:00:22 2018 New Revision: 332446 URL: https://svnweb.freebsd.org/changeset/base/332446 Log: switch i386 memstick installer images to MBR Some BIOSes have trouble booting from GPT in non-UEFI mode. This is commonly reported with Lenovo laptops, including

svn commit: r332452 - head/sys/dev/vt/font

2018-04-12 Thread Ed Maste
Author: emaste Date: Thu Apr 12 20:21:04 2018 New Revision: 332452 URL: https://svnweb.freebsd.org/changeset/base/332452 Log: Update vt(4) "Terminus BSD Console" font to v4.46 "Terminus BSD Console" is a derivative of Terminus that is provided by Mr. Dimitar Zhekov under the 2-clause BSD

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

2018-04-13 Thread Ed Maste
Author: emaste Date: Fri Apr 13 16:54:49 2018 New Revision: 332478 URL: https://svnweb.freebsd.org/changeset/base/332478 Log: Add tom-thumb, a tiny (4x6) vt font Obtained from: https://robey.lag.net/2010/01/23/tiny-monospace-font.html MFC after:2 weeks Added: head/share/vt/

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

2018-04-13 Thread Ed Maste
Author: emaste Date: Fri Apr 13 17:37:39 2018 New Revision: 332480 URL: https://svnweb.freebsd.org/changeset/base/332480 Log: Correct tom-thumb vt font glyphs A few glyphs were converted incorrectly: U+00A6 broken bar - center U+2022 bullet - center U+2026 horizontal ellipsis - move t

Re: svn commit: r332509 - head/sys/i386/i386

2018-04-14 Thread Ed Maste
On 14 April 2018 at 18:14, Warner Losh wrote: > Author: imp > Date: Sat Apr 14 22:14:18 2018 > New Revision: 332509 > URL: https://svnweb.freebsd.org/changeset/base/332509 > > ... > even though we should eventually migrate to bool > and true/false (though the tables they are in are nicely pack

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