svn commit: r340228 - head/sys/riscv/riscv

2018-11-07 Thread John Baldwin
Author: jhb Date: Wed Nov 7 18:27:43 2018 New Revision: 340228 URL: https://svnweb.freebsd.org/changeset/base/340228 Log: Enable use of a global shared page for RISC-V. machine/vmparam.h already defines the SHAREDPAGE constant. This change just enables it for ELF executables. The only

svn commit: r340229 - in head/sys: arm64/arm64 riscv/riscv

2018-11-07 Thread John Baldwin
Author: jhb Date: Wed Nov 7 18:28:55 2018 New Revision: 340229 URL: https://svnweb.freebsd.org/changeset/base/340229 Log: Drop the legacy ELF brandinfo for the old rtld from arm64 and riscv. These architectures never shipped binaries with an rtld path of /usr/libexec/ld-elf.so.1.

Re: svn commit: r340187 - head/sys/geom

2018-11-07 Thread Warner Losh
On Wed, Nov 7, 2018 at 1:20 PM Poul-Henning Kamp wrote: > > In message < > canczdfrk-7vbetkhfq9kkm4usrvjvh8ws_ozjidmh5336dt...@mail.gmail.com> > , Warner Losh writes: > > >BIO_FLUSH is primarily done to force ordering points, > > Originally BIO_FLUSH was defined the way it is, to make

svn commit: r340231 - head/sys/kern

2018-11-07 Thread John Baldwin
Author: jhb Date: Wed Nov 7 18:32:02 2018 New Revision: 340231 URL: https://svnweb.freebsd.org/changeset/base/340231 Log: Enable non-executable stacks by default on RISC-V. Reviewed by: markj Sponsored by: DARPA Differential Revision:https://reviews.freebsd.org/D17878

svn commit: r340238 - head/sys/conf

2018-11-07 Thread Ed Maste
Author: emaste Date: Wed Nov 7 20:36:57 2018 New Revision: 340238 URL: https://svnweb.freebsd.org/changeset/base/340238 Log: newvers.sh: avoid regenerating vers.c if content unchanged When reproducible build mode is enabled vers.c may be unchanged between successive builds. In this

Re: svn commit: r339876 - head/libexec/rtld-elf

2018-11-07 Thread Mark Millard via svn-src-head
[I trace code associated with bl <1322.plt_call.getenv> in the two contexts and extend the range over which things appear to match: up to some point after the branch b <__glink_PLTresolve> .] On 2018-Nov-6, at 19:12, Mark Millard wrote: > [I've present a little information about the

Re: svn commit: r340187 - head/sys/geom

2018-11-07 Thread Warner Losh
On Wed, Nov 7, 2018 at 9:07 AM Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: > > On Tue, 2018-11-06 at 16:17 -0800, Rodney W. Grimes wrote: > > > > > > > > Rodney, this was actually my original intention, however then I > noticed in > > > > the GEOM code there is at least one case

svn commit: r340236 - head/sys/net

2018-11-07 Thread Stephen Hurd
Author: shurd Date: Wed Nov 7 19:31:48 2018 New Revision: 340236 URL: https://svnweb.freebsd.org/changeset/base/340236 Log: Fix rxcsum issue introduced in r338838 r338838 attempted to fix issues with rxcsum and rxcsum6. However, the rxcsum bits were set as though if_setcapenablebit()

Re: svn commit: r340187 - head/sys/geom

2018-11-07 Thread Poul-Henning Kamp
In message , Warner Losh writes: >BIO_FLUSH is primarily done to force ordering points, Originally BIO_FLUSH was defined the way it is, to make it possible to flush an isolated specified range on providers which support that so that fsync(2) could be implemented that way. I can't

Re: svn commit: r340231 - head/sys/kern

2018-11-07 Thread Ed Schouten
Op wo 7 nov. 2018 om 19:32 schreef John Baldwin : > Modified: head/sys/kern/imgact_elf.c > == > --- head/sys/kern/imgact_elf.c Wed Nov 7 18:29:54 2018(r340230) > +++ head/sys/kern/imgact_elf.c Wed Nov 7

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

2018-11-07 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Nov 7 21:01:14 2018 New Revision: 340239 URL: https://svnweb.freebsd.org/changeset/base/340239 Log: bspatch: simplify capsicumization Assume that user wants to run with capsicum support if he builds the software with HAVE_CAPSICUM. Treat running application

Re: svn commit: r339609 - in head/release: amd64 i386 powerpc sparc64

2018-11-07 Thread Oliver Pinter
This fixes a build for us: https://github.com/HardenedBSD/hardenedBSD/commit/c1a6f17c2a62ca9d1d0f4d788d8d832e9e909b6b On Sunday, November 4, 2018, Oliver Pinter wrote: > On 10/22/18, Ed Maste wrote: > > Author: emaste > > Date: Mon Oct 22 19:39:20 2018 > > New Revision: 339609 > > URL:

Re: svn commit: r340231 - head/sys/kern

2018-11-07 Thread John Baldwin
On 11/7/18 1:01 PM, Ed Schouten wrote: > Op wo 7 nov. 2018 om 19:32 schreef John Baldwin : >> Modified: head/sys/kern/imgact_elf.c >> == >> --- head/sys/kern/imgact_elf.c Wed Nov 7 18:29:54 2018(r340230) >> +++

svn commit: r340240 - head/stand/common

2018-11-07 Thread Toomas Soome
Author: tsoome Date: Wed Nov 7 21:36:52 2018 New Revision: 340240 URL: https://svnweb.freebsd.org/changeset/base/340240 Log: loader: ptable_open() check for ptable_cd9660read result is wrong The ptable_*read() functions return NULL on read errors (and partition table closed as an side

Re: svn commit: r339876 - head/libexec/rtld-elf

2018-11-07 Thread Mark Millard via svn-src-head
[I note what I've failed to find a way to investigate.] On 2018-Nov-7, at 11:53, Mark Millard wrote: > [I trace code associated with bl <1322.plt_call.getenv> > in the two contexts and extend the range over which things > appear to match: up to some point after the branch > b

Re: svn commit: r340231 - head/sys/kern

2018-11-07 Thread Konstantin Belousov
On Wed, Nov 07, 2018 at 01:35:57PM -0800, John Baldwin wrote: > On 11/7/18 1:01 PM, Ed Schouten wrote: > > Op wo 7 nov. 2018 om 19:32 schreef John Baldwin : > >> Modified: head/sys/kern/imgact_elf.c > >> == > >> ---

Re: svn commit: r340231 - head/sys/kern

2018-11-07 Thread Mark Millard via svn-src-head
John Baldwin jhb at FreeBSD.org wrote on Wed Nov 7 21:36:02 UTC 2018 : > On 11/7/18 1:01 PM, Ed Schouten wrote: > > Op wo 7 nov. 2018 om 19:32 schreef John Baldwin : > >> Modified: head/sys/kern/imgact_elf.c > >> == > >>

svn commit: r340241 - head/sys/vm

2018-11-07 Thread Mark Johnston
Author: markj Date: Wed Nov 7 23:28:11 2018 New Revision: 340241 URL: https://svnweb.freebsd.org/changeset/base/340241 Log: Fix a use-after-free in swp_pager_meta_free(). This was introduced in r326329 and explains the crashes mentioned in the commit log message for r339934. In

svn commit: r340242 - head

2018-11-07 Thread Brooks Davis
Author: brooks Date: Thu Nov 8 00:35:00 2018 New Revision: 340242 URL: https://svnweb.freebsd.org/changeset/base/340242 Log: Add a top-level make target to rebuild all sysent files. The sysent target is useful when changing makesyscalls.sh, when making paired changes to syscalls.master

Re: svn commit: r340242 - head

2018-11-07 Thread Bjoern A. Zeeb
On 8 Nov 2018, at 0:35, Brooks Davis wrote: Author: brooks Date: Thu Nov 8 00:35:00 2018 New Revision: 340242 URL: https://svnweb.freebsd.org/changeset/base/340242 Log: Add a top-level make target to rebuild all sysent files. The sysent target is useful when changing makesyscalls.sh,

svn commit: r340215 - in head/stand: common i386/libi386

2018-11-07 Thread Toomas Soome
Author: tsoome Date: Wed Nov 7 11:14:22 2018 New Revision: 340215 URL: https://svnweb.freebsd.org/changeset/base/340215 Log: loader: always set media size from partition. The disk access is validated by using partition table definitions, therefore we have no need for if statements, just

svn commit: r340213 - in head: lib/csu/mips lib/csu/sparc64 share/mk

2018-11-07 Thread Andrew Turner
Author: andrew Date: Wed Nov 7 09:49:25 2018 New Revision: 340213 URL: https://svnweb.freebsd.org/changeset/base/340213 Log: Add the (untested) mips and sparc64 .init call sequences. The BSD crtbegin/crtend code now builds on all architectures, however further work is needed to check if

svn commit: r340216 - head/tools/tools/syscall_timing

2018-11-07 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Nov 7 11:46:12 2018 New Revision: 340216 URL: https://svnweb.freebsd.org/changeset/base/340216 Log: Add benchmarks for lstat(2) and readlink(2). MFC after:2 weeks Sponsored by: DARPA, AFRL Modified: head/tools/tools/syscall_timing/syscall_timing.c

svn commit: r340212 - head/sys/dev/usb/controller

2018-11-07 Thread Hans Petter Selasky
Author: hselasky Date: Wed Nov 7 08:25:44 2018 New Revision: 340212 URL: https://svnweb.freebsd.org/changeset/base/340212 Log: Sometimes the complete split packet may be queued too early and the transaction translator will return a NAK. Ignore this message and retry the complete split

svn commit: r340218 - in head: libexec/rtld-elf sys/sys

2018-11-07 Thread Alex Richardson
Author: arichardson Date: Wed Nov 7 15:04:41 2018 New Revision: 340218 URL: https://svnweb.freebsd.org/changeset/base/340218 Log: Handle the DT_MIPS_RLD_MAP_REL dynamic tag in RTLD This dynamic tag contains the location of the .rld_map section relative to the location of the dynamic

Re: svn commit: r340187 - head/sys/geom

2018-11-07 Thread Maxim Sobolev
Reverted, sorry. Turns out that i/o into last_sector+1 is handled differently. I'll probably have to use different strategy to properly fail out-of-bound ioctl(DIOCGDELETE) or otherwise indicate its result to the userland app. To my defense, this patch has been out for 3 weeks on freebsd-geom, and

Re: svn commit: r340220 - head/sys/geom

2018-11-07 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: sobomax > Date: Wed Nov 7 16:28:09 2018 > New Revision: 340220 > URL: https://svnweb.freebsd.org/changeset/base/340220 > > Log: > Revert r340187, it breaks EOD (end-of-device) detection logic. Turns out, > i/o into last_sector+N is

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

2018-11-07 Thread Brooks Davis
Author: brooks Date: Wed Nov 7 16:55:04 2018 New Revision: 340221 URL: https://svnweb.freebsd.org/changeset/base/340221 Log: makesyscalls.sh: allow pointer return types. The previous code required that the return type be a single word. This allows it to be a pointer without using a

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

2018-11-07 Thread Brooks Davis
Author: brooks Date: Wed Nov 7 16:56:07 2018 New Revision: 340222 URL: https://svnweb.freebsd.org/changeset/base/340222 Log: Regen after r340221: allow pointer return types. Sponsored by: DARPA, AFRL Differential Revision:https://reviews.freebsd.org/D17873 Modified:

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

2018-11-07 Thread Mateusz Piotrowski
Author: 0mp (ports committer) Date: Wed Nov 7 16:56:32 2018 New Revision: 340223 URL: https://svnweb.freebsd.org/changeset/base/340223 Log: rc.subr(8): Document when required_* variables are processed At the moment rc.subr(8) supports the following required_* variables: required_dirs,

Re: svn commit: r340187 - head/sys/geom

2018-11-07 Thread Rodney W. Grimes
> Reverted, sorry. Turns out that i/o into last_sector+1 is handled > differently. I'll probably have to use different strategy to properly fail > out-of-bound ioctl(DIOCGDELETE) or otherwise indicate its result to the > userland app. To my defense, this patch has been out for 3 weeks on >

Re: svn commit: r340187 - head/sys/geom

2018-11-07 Thread Rodney W. Grimes
> On Tue, 2018-11-06 at 16:17 -0800, Rodney W. Grimes wrote: > > > > > > Rodney, this was actually my original intention, however then I noticed in > > > the GEOM code there is at least one case when BIO_FLUSH request is being > > > generated internally with bio_offset == mediasize and bio_lenth

svn commit: r340220 - head/sys/geom

2018-11-07 Thread Maxim Sobolev
Author: sobomax Date: Wed Nov 7 16:28:09 2018 New Revision: 340220 URL: https://svnweb.freebsd.org/changeset/base/340220 Log: Revert r340187, it breaks EOD (end-of-device) detection logic. Turns out, i/o into last_sector+N is handled differently for N==1 and N>1 cases to accomodate that,

Re: svn commit: r340187 - head/sys/geom

2018-11-07 Thread Ian Lepore
On Tue, 2018-11-06 at 16:17 -0800, Rodney W. Grimes wrote: > > > > Rodney, this was actually my original intention, however then I noticed in > > the GEOM code there is at least one case when BIO_FLUSH request is being > > generated internally with bio_offset == mediasize and bio_lenth == 0, so I

Re: svn commit: r340187 - head/sys/geom

2018-11-07 Thread Maxim Sobolev
Li-Wen, thanks for pointing out. I will investigate in the next few hours and follow-up then. Perhaps I need to treat out-of-the bounds BIO_DELETE differently, which was the original issue at hand. -Max On Tue, Nov 6, 2018 at 9:51 PM Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: > >