svn commit: r366005 - head/sys/fs/udf

2020-09-22 Thread Mark Johnston
Author: markj Date: Tue Sep 22 17:05:01 2020 New Revision: 366005 URL: https://svnweb.freebsd.org/changeset/base/366005 Log: udf: Validate the full file entry length Otherwise a corrupted file entry containing invalid extended attribute lengths or allocation descriptor lengths can

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Andriy Gapon
On 22/09/2020 06:06, Conrad Meyer wrote: > Big ol plus one from me. > > On Mon, Sep 21, 2020 at 4:16 PM Cy Schubert wrote: >> >> In message <202009212255.08lmtpsp078...@repo.freebsd.org>, Greg Lehey >> writes: >>> Author: grog >>> Date: Mon Sep 21 22:55:51 2020 >>> New Revision: 365984 >>> URL:

Re: svn commit: r365724 - in head/stand: ficl ficl/powerpc powerpc/ofw

2020-09-22 Thread Brandon Bergren
Yeah, I will be changing it, that exact fix is in my local tree and I will commit it after the next round of tests. > This looks strange. The define should be written as (~(FICL_UNS)0). > The size suffix is superfluous if the value is casted anyway. -- Brandon Bergren bdra...@freebsd.org

Re: svn commit: r365724 - in head/stand: ficl ficl/powerpc powerpc/ofw

2020-09-22 Thread Gunther Nikl
Brandon Bergren wrote: > Author: bdragon > Date: Mon Sep 14 15:48:30 2020 > New Revision: 365724 > URL: https://svnweb.freebsd.org/changeset/base/365724 > > [snip] > > Modified: head/stand/ficl/ficl.h > == > ---

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Steffen Nurpmeso
Greg Lehey wrote in <202009212255.08lmtpsp078...@repo.freebsd.org>: |Author: grog |Date: Mon Sep 21 22:55:51 2020 |New Revision: 365984 |URL: https://svnweb.freebsd.org/changeset/base/365984 | |Log: | Remove claim that Allied Forces created "West Germany" in 1953. I can | find no

svn commit: r365995 - head/sys/riscv/conf

2020-09-22 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 22 13:00:02 2020 New Revision: 365995 URL: https://svnweb.freebsd.org/changeset/base/365995 Log: RISC-V: build SiFive drivers and DTB in GENERIC In the spirit of the GENERIC config, we should include the drivers required to run on most supported platforms.

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Steffen Nurpmeso
Greg Lehey wrote in <202009212255.08lmtpsp078...@repo.freebsd.org>: |Author: grog |Date: Mon Sep 21 22:55:51 2020 |New Revision: 365984 ... | head/usr.bin/calendar/calendars/calendar.history By the way, on DragonFly there was a rewrite of the calendar(1) program, it seems to have improved!

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Kyle Evans
On Fri, Sep 11, 2020 at 3:49 PM Alan Somers wrote: > > Author: asomers > Date: Fri Sep 11 20:49:36 2020 > New Revision: 365643 > URL: https://svnweb.freebsd.org/changeset/base/365643 > > Log: > cp: fall back to read/write if copy_file_range fails > > Even though copy_file_range has a

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Kyle Evans
I'm running a build at the suggestion of mjg to confirm there aren't any others hiding that can be converted, and I will commit after I've verified that this is it. On Tue, Sep 22, 2020 at 4:02 PM Alan Somers wrote: > > LGTM. > > On Tue, Sep 22, 2020 at 2:59 PM Kyle Evans wrote: >> >> Perhaps:

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Kyle Evans
cp is already fixed, people are still feeling the fallout of being within those revisions and needing to bootstrap their own cp. We can reduce the number of components these invocations rely on trivially to shell built-in mechanics, why not do so? On Tue, Sep 22, 2020 at 4:40 PM Warner Losh

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Warner Losh
On Tue, Sep 22, 2020 at 3:55 PM Kyle Evans wrote: > On Tue, Sep 22, 2020 at 4:53 PM Ian Lepore wrote: > > > > On Tue, 2020-09-22 at 15:50 -0600, Warner Losh wrote: > > > I think it's a great leap sideways, but I've done cp /dev/null foo to > > > clear > > > it out for 35 years now... It's why

svn commit: r366019 - head/sys/kern

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 22:23:58 2020 New Revision: 366019 URL: https://svnweb.freebsd.org/changeset/base/366019 Log: Add open2nameif() the helper to calculate namei flags both for open(2) and creat(2). Suggested and reviewed by:markj Tested by:pho Sponsored by: The

svn commit: r366022 - in head/sys: kern sys

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 22:48:12 2020 New Revision: 366022 URL: https://svnweb.freebsd.org/changeset/base/366022 Log: Add O_RESOLVE_BENEATH and AT_RESOLVE_BENEATH to mimic Linux' RESOLVE_BENEATH. It is like O_BENEATH, but disables to walk out of the subtree rooted in the starting

svn commit: r366026 - head/share/man/man4

2020-09-22 Thread Warner Losh
Author: imp Date: Tue Sep 22 23:01:57 2020 New Revision: 366026 URL: https://svnweb.freebsd.org/changeset/base/366026 Log: Document quoting requirements for the devctl protocol Belatedly document the quoting requirements for the devctl protocol. I thought they'd been previously

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Alan Somers
On Tue, Sep 22, 2020 at 2:48 PM Kyle Evans wrote: > On Fri, Sep 11, 2020 at 3:49 PM Alan Somers wrote: > > > > Author: asomers > > Date: Fri Sep 11 20:49:36 2020 > > New Revision: 365643 > > URL: https://svnweb.freebsd.org/changeset/base/365643 > > > > Log: > > cp: fall back to read/write if

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Alan Somers
LGTM. On Tue, Sep 22, 2020 at 2:59 PM Kyle Evans wrote: > Perhaps: > > diff --git a/stand/i386/zfsboot/Makefile b/stand/i386/zfsboot/Makefile > index ff315abc0ef..7e362b43a39 100644 > --- a/stand/i386/zfsboot/Makefile > +++ b/stand/i386/zfsboot/Makefile > @@ -81,7 +81,7 @@ zfsboot.ld:

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Warner Losh
On Tue, Sep 22, 2020 at 3:42 PM Kyle Evans wrote: > cp is already fixed, people are still feeling the fallout of being > within those revisions and needing to bootstrap their own cp. We can > reduce the number of components these invocations rely on trivially to > shell built-in mechanics, why

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Kyle Evans
On Tue, Sep 22, 2020 at 4:53 PM Ian Lepore wrote: > > On Tue, 2020-09-22 at 15:50 -0600, Warner Losh wrote: > > I think it's a great leap sideways, but I've done cp /dev/null foo to > > clear > > it out for 35 years now... It's why it feels like a workaround. > > > > Though it is a legit

svn commit: r366020 - head/sys/kern

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 22:36:02 2020 New Revision: 366020 URL: https://svnweb.freebsd.org/changeset/base/366020 Log: Only clear latch for BENEATH when we walk out of the startdir, not unconditionally on any dotdot component. Reviewed by: markj Tested by:pho Sponsored

svn commit: r366029 - head/stand/ficl

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Tue Sep 22 23:27:09 2020 New Revision: 366029 URL: https://svnweb.freebsd.org/changeset/base/366029 Log: Tweak ficl definition from r365724 I had overthought how to do the FICL_TRUE change. We do not need to explicitly specify how big the 0 is before the cast to the

svn commit: r366030 - head/sys/amd64/amd64

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 23:28:06 2020 New Revision: 366030 URL: https://svnweb.freebsd.org/changeset/base/366030 Log: amd64 pmap: More unification for psind = 1 vs 2 in pmap_enter_largepage(). Move pkru check wait for page alloc wire accounting update asserting allowed

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Mateusz Guzik
Can we instead add a workaround to the build tree? Where is cp /dev/null coming from anyway? Perhaps this can be patched to touch the target file. On 9/22/20, Alan Somers wrote: > On Tue, Sep 22, 2020 at 2:48 PM Kyle Evans wrote: > >> On Fri, Sep 11, 2020 at 3:49 PM Alan Somers wrote: >> > >>

Re: svn commit: r360037 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2020-09-22 Thread Gleb Smirnoff
Kyle, On Thu, Sep 03, 2020 at 12:49:41PM -0500, Kyle Evans wrote: K> > Author: glebius K> > Date: Fri Apr 17 06:05:08 2020 K> > New Revision: 360037 K> > URL: https://svnweb.freebsd.org/changeset/base/360037 K> > K> > Log: K> > Make ZFS depend on xdr.ko only. It doesn't need kernel RPC. K> >

svn commit: r366012 - head/share/man/man4

2020-09-22 Thread Christian Brueffer
Author: brueffer Date: Tue Sep 22 21:13:26 2020 New Revision: 366012 URL: https://svnweb.freebsd.org/changeset/base/366012 Log: Fix a bunch of mdoc issues found by mandoc -Tlint. Modified: head/share/man/man4/cc_newreno.4 head/share/man/man4/ddb.4 head/share/man/man4/ena.4

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Warner Losh
I think it's a great leap sideways, but I've done cp /dev/null foo to clear it out for 35 years now... It's why it feels like a workaround. Though it is a legit optimization, no matter the feelings. As for clearer, I'm less sure since then I have to remember what the : operator does. Warner On

svn commit: r366017 - in head/sys: kern sys

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 22:06:20 2020 New Revision: 366017 URL: https://svnweb.freebsd.org/changeset/base/366017 Log: Add NIRES_STRICTREL. Stop abusing internal namei flag NI_LCF_STRICTRELATIVE as indicator of cap-restricted lookup. Add designated returned flag NIRES_STRICTREL to

svn commit: r366018 - head/sys/kern

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 22:22:29 2020 New Revision: 366018 URL: https://svnweb.freebsd.org/changeset/base/366018 Log: Add at2cnpflags() the helper to convert AT_ flags for *at() syscalls to namei flags. Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD

svn commit: r366021 - head/sys/kern

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 22:43:32 2020 New Revision: 366021 URL: https://svnweb.freebsd.org/changeset/base/366021 Log: Change O_BENEATH to handle relative paths same as absolute. Do not care if path walks out of the topping directory if it returns back. Requested and reviewed by:

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

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 23:39:14 2020 New Revision: 366031 URL: https://svnweb.freebsd.org/changeset/base/366031 Log: Remove stray line Modified: head/share/man/man9/Makefile Modified: head/share/man/man9/Makefile

svn commit: r366033 - in head/sys/powerpc: aim ofw pseries

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Tue Sep 22 23:55:34 2020 New Revision: 366033 URL: https://svnweb.freebsd.org/changeset/base/366033 Log: [PowerPC64LE] LE bringup work: locore / machdep / platform This is the initial LE changes required in the machdep code to get as far as platform attachment on

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Kyle Evans
On Tue, Sep 22, 2020 at 3:54 PM Mateusz Guzik wrote: > On 9/22/20, Alan Somers wrote: > > On Tue, Sep 22, 2020 at 2:48 PM Kyle Evans wrote: > > > >> On Fri, Sep 11, 2020 at 3:49 PM Alan Somers wrote: > >> > > >> > Author: asomers > >> > Date: Fri Sep 11 20:49:36 2020 > >> > New Revision:

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Alan Somers
+1. On Tue, Sep 22, 2020 at 3:27 PM Kyle Evans wrote: > I'm running a build at the suggestion of mjg to confirm there aren't > any others hiding that can be converted, and I will commit after I've > verified that this is it. > > On Tue, Sep 22, 2020 at 4:02 PM Alan Somers wrote: > > > > LGTM.

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Warner Losh
So why do we need a workaround at all? cp /dev/null has been fixed, and that's way more important to get right. I don't want to paper-over issues with this at all, though if we use the host's (now broken) cp, I suppose that might be OK in the short term. If that's the case, then maybe this is OK.

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Alan Somers
It doesn't feel like a workaround to me. I think Kyle's version is clearer than the original. On Tue, Sep 22, 2020 at 3:45 PM Warner Losh wrote: > > > On Tue, Sep 22, 2020 at 3:42 PM Kyle Evans wrote: > >> cp is already fixed, people are still feeling the fallout of being >> within those

svn commit: r366032 - in head: . share/mk stand sys/conf sys/modules sys/powerpc/include

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Tue Sep 22 23:49:30 2020 New Revision: 366032 URL: https://svnweb.freebsd.org/changeset/base/366032 Log: [PowerPC64LE] Set up powerpc.powerpc64le architecture This is the initial set up for PowerPC64LE. The current plan is for this arch to remain experimental for

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Shawn Webb
On Tue, Sep 22, 2020 at 09:18:43PM +0200, Gordon Bergling wrote: > On Tue, Sep 22, 2020 at 09:01:46PM +0300, Andriy Gapon wrote: > > On 22/09/2020 06:06, Conrad Meyer wrote: > > > Big ol plus one from me. > > > > > > On Mon, Sep 21, 2020 at 4:16 PM Cy Schubert > > > wrote: > > >> > > >> In

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Alan Somers
Looks like two places in stand. Is there any reason why Mateusz's suggestion wouldn't work? > rg -g Makefile 'cp.*/dev/null' stand/libsa/Makefile 125: [ -f xlocale/$$i ] || cp /dev/null xlocale/$$i; \ stand/i386/zfsboot/Makefile 82: cp /dev/null ${.TARGET} On Tue, Sep 22, 2020 at 2:54 PM

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Kyle Evans
Perhaps: diff --git a/stand/i386/zfsboot/Makefile b/stand/i386/zfsboot/Makefile index ff315abc0ef..7e362b43a39 100644 --- a/stand/i386/zfsboot/Makefile +++ b/stand/i386/zfsboot/Makefile @@ -81,7 +81,7 @@ zfsboot.ld: zfsboot.ldr zfsboot.bin ${BTXKERN} -o ${.TARGET} -P 1 zfsboot.bin

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Ian Lepore
On Tue, 2020-09-22 at 15:50 -0600, Warner Losh wrote: > I think it's a great leap sideways, but I've done cp /dev/null foo to > clear > it out for 35 years now... It's why it feels like a workaround. > > Though it is a legit optimization, no matter the feelings. As for > clearer, > I'm less sure

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Toomas Soome via svn-src-head
> On 23. Sep 2020, at 00:50, Warner Losh wrote: > > I think it's a great leap sideways, but I've done cp /dev/null foo to clear > it out for 35 years now... It's why it feels like a workaround. > > Though it is a legit optimization, no matter the feelings. As for clearer, > I'm less sure

svn commit: r366015 - head/sys/kern

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 21:54:30 2020 New Revision: 366015 URL: https://svnweb.freebsd.org/changeset/base/366015 Log: Improve comment above nameicap_check_dotdot(). Explain why tracker is needed at all. Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Gordon Bergling
On Tue, Sep 22, 2020 at 09:01:46PM +0300, Andriy Gapon wrote: > On 22/09/2020 06:06, Conrad Meyer wrote: > > Big ol plus one from me. > > > > On Mon, Sep 21, 2020 at 4:16 PM Cy Schubert > > wrote: > >> > >> In message <202009212255.08lmtpsp078...@repo.freebsd.org>, Greg Lehey > >> writes: > >>>

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Cy Schubert
In message <20200922192424.mnzunuwnjtwfwilh@mutt-hbsd>, Shawn Webb writes: > > --ftu52o6ib5uewj7t > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Tue, Sep 22, 2020 at 09:18:43PM +0200, Gordon Bergling wrote: > > On

svn commit: r366011 - head/lib/libnetmap

2020-09-22 Thread Vincenzo Maffione
Author: vmaffione Date: Tue Sep 22 20:20:43 2020 New Revision: 366011 URL: https://svnweb.freebsd.org/changeset/base/366011 Log: libnetmap: fix cast from uint64_t to void* We use uintptr_t as an intermediate cast to avoid compiler warnings on 32 bit architectures. Reported by:

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Scott Long
>> >> Does this file still need to be in FreeBSD? It may have been a novel= >> ty back >> in the day but IMO calendar.history has nothing to do with BSD, comp= >> uters >> or anything else of interest to FreeBSD. At the very least this file= >> should >> be moved to ports or

svn commit: r366016 - head/sys/kern

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 21:59:18 2020 New Revision: 366016 URL: https://svnweb.freebsd.org/changeset/base/366016 Log: lookup: Track last lookup component if it is directory. This makes open("/a/../a", O_BENEATH) with cwd == "/a" work. Reviewed by: markj Reported and tested by:

svn commit: r366023 - head/lib/libc/sys

2020-09-22 Thread Konstantin Belousov
Author: kib Date: Tue Sep 22 22:54:54 2020 New Revision: 366023 URL: https://svnweb.freebsd.org/changeset/base/366023 Log: Document {O,AT}_RESOLVE_BENEATH and new O_BENEATH behavior for relative paths. PR: 248335 Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD

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

2020-09-22 Thread Warner Losh
Author: imp Date: Tue Sep 22 23:01:53 2020 New Revision: 366025 URL: https://svnweb.freebsd.org/changeset/base/366025 Log: Document devctl_safe_quote_sb This routine centralizes the knowledge needed for properly quoting 'value' in all key="value" items that appear in devctl messages.

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

2020-09-22 Thread Warner Losh
Author: imp Date: Tue Sep 22 23:01:44 2020 New Revision: 366024 URL: https://svnweb.freebsd.org/changeset/base/366024 Log: Add a devctl_process_running man page. Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D26520 Added:

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

2020-09-22 Thread Warner Losh
Author: imp Date: Tue Sep 22 23:02:01 2020 New Revision: 366027 URL: https://svnweb.freebsd.org/changeset/base/366027 Log: Add devctl_notify(9) man page Document the calls to send messages to userland via devctl. devctl_notify will create a message for the specified system, subsystem

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Kyle Evans
On Tue, Sep 22, 2020, 17:02 Warner Losh wrote: > > > On Tue, Sep 22, 2020 at 3:55 PM Kyle Evans wrote: > >> On Tue, Sep 22, 2020 at 4:53 PM Ian Lepore wrote: >> > >> > On Tue, 2020-09-22 at 15:50 -0600, Warner Losh wrote: >> > > I think it's a great leap sideways, but I've done cp /dev/null

svn commit: r366034 - head/sys/powerpc/ofw

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Tue Sep 22 23:59:02 2020 New Revision: 366034 URL: https://svnweb.freebsd.org/changeset/base/366034 Log: [PowerPC64LE] Fix endian dependence of ofw_real.c. Since OFW always runs in big endian in practice, we need to convert several bits back and forth. This is

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Ian Lepore
On Tue, 2020-09-22 at 17:56 +0200, Steffen Nurpmeso wrote: > Ian Lepore wrote in > : > |On Tue, 2020-09-22 at 16:02 +0200, Steffen Nurpmeso wrote: > |> Greg Lehey wrote in > |> <202009212255.08lmtpsp078...@repo.freebsd.org>: > |>|Author: grog > |>|Date: Mon Sep 21 22:55:51 2020 > |>|New

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Ian Lepore
On Tue, 2020-09-22 at 16:02 +0200, Steffen Nurpmeso wrote: > Greg Lehey wrote in > <202009212255.08lmtpsp078...@repo.freebsd.org>: > |Author: grog > |Date: Mon Sep 21 22:55:51 2020 > |New Revision: 365984 > |URL: https://svnweb.freebsd.org/changeset/base/365984 > | > |Log: > | Remove

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Steffen Nurpmeso
Ian Lepore wrote in : |On Tue, 2020-09-22 at 16:02 +0200, Steffen Nurpmeso wrote: |> Greg Lehey wrote in |> <202009212255.08lmtpsp078...@repo.freebsd.org>: |>|Author: grog |>|Date: Mon Sep 21 22:55:51 2020 |>|New Revision: 365984 |>|URL: https://svnweb.freebsd.org/changeset/base/365984

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Steffen Nurpmeso
Ian Lepore wrote in <65448d226d8cf4318c1db49af993a14e54034dab.ca...@freebsd.org>: |And now you're arguing about the factual correctness of your comment in |reply to my comment which wasn't about the facts at all. | |Thank you for proving my point most elequently about why we should not |be

Re: svn commit: r363700 - in head/sys: arm/ti arm/ti/am335x arm/ti/clk arm/ti/cpsw arm/ti/omap4 arm/ti/usb dev/uart modules

2020-09-22 Thread Ed Maste
On Thu, 30 Jul 2020 at 10:45, Michal Meloun wrote: > > Author: mmel > Date: Thu Jul 30 14:45:05 2020 > New Revision: 363700 > URL: https://svnweb.freebsd.org/changeset/base/363700 > > Log: > Move Ti AM335x to dev/extres/clk framework. It looks like BeagleBone Black is indeed broken after this

svn commit: r366002 - head/libexec/tftpd

2020-09-22 Thread Mark Johnston
Author: markj Date: Tue Sep 22 15:54:05 2020 New Revision: 366002 URL: https://svnweb.freebsd.org/changeset/base/366002 Log: tftpd: Check for errors from chdir() MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/libexec/tftpd/tftpd.c Modified:

svn commit: r366003 - head/libexec/ftpd

2020-09-22 Thread Mark Johnston
Author: markj Date: Tue Sep 22 15:54:18 2020 New Revision: 366003 URL: https://svnweb.freebsd.org/changeset/base/366003 Log: ftpd: Add missing braces around a statfd check This was harmless but looked incorrect. No functional change intended. MFC after:1 week Sponsored by: The

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread xtouqh
Steffen Nurpmeso wrote: Ian Lepore wrote in : |On Tue, 2020-09-22 at 16:02 +0200, Steffen Nurpmeso wrote: |> Greg Lehey wrote in |> <202009212255.08lmtpsp078...@repo.freebsd.org>: |>|Author: grog |>|Date: Mon Sep 21 22:55:51 2020 |>|New Revision: 365984 |>|URL:

svn commit: r366004 - in head: crypto/openssl crypto/openssl/apps crypto/openssl/crypto crypto/openssl/crypto/aes crypto/openssl/crypto/asn1 crypto/openssl/crypto/bio crypto/openssl/crypto/bn crypt...

2020-09-22 Thread Jung-uk Kim
Author: jkim Date: Tue Sep 22 16:18:31 2020 New Revision: 366004 URL: https://svnweb.freebsd.org/changeset/base/366004 Log: Merge OpenSSL 1.1.1h. Deleted: head/crypto/openssl/crypto/ec/asm/ecp_nistz256-avx2.pl Modified: head/crypto/openssl/CHANGES head/crypto/openssl/Configure

svn commit: r366048 - head/sys/powerpc/powernv

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:41:51 2020 New Revision: 366048 URL: https://svnweb.freebsd.org/changeset/base/366048 Log: [PowerPC64LE] Endian fix for opal_dev.c. Not much to say here, another missing be64toh() in memory that was written from OPAL. Sponsored by: Tag1

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Alan Somers
Go ahead and commit. Consider it reviewed by me. And if I understand correctly, this commit means there's no need for a special updating procedure, right? On Tue, Sep 22, 2020 at 6:55 PM Warner Losh wrote: > > > On Tue, Sep 22, 2020 at 5:17 PM Kyle Evans wrote: > >> On Tue, Sep 22, 2020,

svn commit: r366038 - head/sys/powerpc/pseries

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 00:13:58 2020 New Revision: 366038 URL: https://svnweb.freebsd.org/changeset/base/366038 Log: [PowerPC64LE] Fix endianness issues in phyp_vscsi. Unlike virtio, which in legacy mode is guest endian, the hypervisor vscsi interface operates in big endian, so

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Warner Losh
On Tue, Sep 22, 2020 at 5:17 PM Kyle Evans wrote: > On Tue, Sep 22, 2020, 17:02 Warner Losh wrote: > >> >> >> On Tue, Sep 22, 2020 at 3:55 PM Kyle Evans wrote: >> >>> On Tue, Sep 22, 2020 at 4:53 PM Ian Lepore wrote: >>> > >>> > On Tue, 2020-09-22 at 15:50 -0600, Warner Losh wrote: >>> > > I

svn commit: r366043 - head/sys/powerpc/conf

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:07:55 2020 New Revision: 366043 URL: https://svnweb.freebsd.org/changeset/base/366043 Log: [PowerPC64LE] Initial GENERIC64LE kernel config. This is slightly stripped down from GENERIC64, as PowerMac G5 machines are incapable of running in LE mode (so

svn commit: r366046 - head/sys/powerpc/aim

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:33:54 2020 New Revision: 366046 URL: https://svnweb.freebsd.org/changeset/base/366046 Log: [PowerPC64LE] Implement endian-independent dword atomic PTE lock. It's much easier to implement this in an endian-independent way when we don't also have to

svn commit: r366057 - head/sys/powerpc/powerpc

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 02:28:19 2020 New Revision: 366057 URL: https://svnweb.freebsd.org/changeset/base/366057 Log: [PowerPC64LE] Fix sleeping on POWER8. Due to enter_idle_powerx fabricating a MSR from scratch, it is necessary for it to care about the endianness, so we don't

svn commit: r366063 - head/sys/powerpc/ofw

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 04:09:02 2020 New Revision: 366063 URL: https://svnweb.freebsd.org/changeset/base/366063 Log: [PowerPC64LE] Fix RTAS LE calls in pseries. Similar to OPAL calls, switch to big endian to do calls to RTAS. (Missed this one when I was doing the bulk commit

svn commit: r366035 - head/sys/powerpc/pseries

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 00:03:35 2020 New Revision: 366035 URL: https://svnweb.freebsd.org/changeset/base/366035 Log: [PowerPC64LE] Tell the hypervisor to switch interrupts to LE at CHRP attach. Since we will need to be able to take traps relatively early in the process, ensure

svn commit: r366042 - in head/stand: i386/zfsboot libsa

2020-09-22 Thread Warner Losh
Author: imp Date: Wed Sep 23 01:04:25 2020 New Revision: 366042 URL: https://svnweb.freebsd.org/changeset/base/366042 Log: Work around cp breakage in current from last week There was a small window cp was broken. Work around this by using :> instead of cp /dev/null. Ideally, we'd keep

svn commit: r366049 - head/sys/powerpc/powernv

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:49:37 2020 New Revision: 366049 URL: https://svnweb.freebsd.org/changeset/base/366049 Log: [PowerPC64LE] Get XIVE up and running. More endian conversion. * Install TCEs correctly (i.e. in big endian) * Convert to big endian and back when

svn commit: r366053 - in head/sys/powerpc: aim include

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:56:26 2020 New Revision: 366053 URL: https://svnweb.freebsd.org/changeset/base/366053 Log: [PowerPC64LE] Fix AP spinup on powernv. OPAL unconditionally enters secondary CPUs with only HV and SF set. I tried writing a secondary entry point instead,

svn commit: r366054 - in head/lib/libc: powerpc/softfloat powerpc64

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 02:05:44 2020 New Revision: 366054 URL: https://svnweb.freebsd.org/changeset/base/366054 Log: [PowerPC64LE] Fix gdtoa configurations on LE. gdtoa wins the award for "most outdated endianness naming convention" with its IEEE_8087 vs IEEE_MC68k defines. I

svn commit: r366055 - head/lib/libkvm

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 02:11:24 2020 New Revision: 366055 URL: https://svnweb.freebsd.org/changeset/base/366055 Log: [PowerPC64LE] libkvm powerpc64le support. * Add missing _kvm16toh() function. * Teach libkvm about powerpc64le. Sponsored by: Tag1 Consulting, Inc.

svn commit: r366058 - head/usr.sbin/ntp

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 02:37:27 2020 New Revision: 366058 URL: https://svnweb.freebsd.org/changeset/base/366058 Log: [PowerPC] Fix multiple ntp configuration issues * powerpc time_t is 64 bit, not 32 bit. * Add definition for powerpc64le. With this, powerpc64le ntpd and

svn commit: r366061 - head/share/man/man7

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 03:12:58 2020 New Revision: 366061 URL: https://svnweb.freebsd.org/changeset/base/366061 Log: arch(7): PowerPC64LE architecture definition Document the new powerpc64le arch's initial specifications. Certain things are subject to change while this is

svn commit: r366037 - in head/sys: conf powerpc/conf powerpc/ofw powerpc/powernv

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 00:09:29 2020 New Revision: 366037 URL: https://svnweb.freebsd.org/changeset/base/366037 Log: [PowerPC64LE] Work around qemu TCG bug in mtmsrd emulation. The TCG implementation of mtmsrd in qemu blindly copies the entire register to the MSR, instead of

svn commit: r366040 - head/sys/powerpc/powernv

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 00:28:47 2020 New Revision: 366040 URL: https://svnweb.freebsd.org/changeset/base/366040 Log: [PowerPC64LE] LE opal_call() implementation OPAL runs in big endian, so we need to rfid into it to switch endian atomically when branching to it, and we need to

svn commit: r366044 - head/release/powerpc

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:13:29 2020 New Revision: 366044 URL: https://svnweb.freebsd.org/changeset/base/366044 Log: [PowerPC64LE] Add release building script for powerpc64le. This was originally part of the initial commit, but after discussion in D26399, I split it out into

svn commit: r366045 - head/sys/powerpc/aim

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:29:33 2020 New Revision: 366045 URL: https://svnweb.freebsd.org/changeset/base/366045 Log: [PowerPC64LE] Fix endian conversion bugs in moea64. For a body of code that had its endian conversion bits written blind without the ability to test, moea64 was

svn commit: r366047 - head/sys/powerpc/powernv

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:37:01 2020 New Revision: 366047 URL: https://svnweb.freebsd.org/changeset/base/366047 Log: [PowerPC64LE] Endian fixes for opal_pci.c. Since OPAL runs in big endian, any data being passed back and forth via memory instead of registers needs to be

svn commit: r366051 - head/sys/powerpc/powernv

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 01:51:01 2020 New Revision: 366051 URL: https://svnweb.freebsd.org/changeset/base/366051 Log: [PowerPC64LE] Endian fix for opal_hmi.c Another boring one. We need to endian swap before checking flags. Sponsored by: Tag1 Consulting, Inc. Modified:

svn commit: r366062 - head/sys/sys

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 03:19:20 2020 New Revision: 366062 URL: https://svnweb.freebsd.org/changeset/base/366062 Log: __FreeBSD_version bump for introduction of the powerpc64le arch. Although this is technically not a breaking change, I believe it is best to have a fresh version

svn commit: r366036 - in head/sys/powerpc: powernv pseries

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 00:06:48 2020 New Revision: 366036 URL: https://svnweb.freebsd.org/changeset/base/366036 Log: [PowerPC64LE] Fix endianness issues in phyp and opal consoles. This applies to both pseries and powernv, which were tested at different points during the

svn commit: r366039 - in head: lib/csu lib/libc lib/libc/powerpc64/string libexec/rtld-elf libexec/rtld-elf/rtld-libc

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 00:21:51 2020 New Revision: 366039 URL: https://svnweb.freebsd.org/changeset/base/366039 Log: [PowerPC64LE] Use a shared LIBC_ARCH for powerpc64le. Given that we have converted to ELFv2 for BE already, endianness is the only difference between the two

svn commit: r366041 - in head/sys/powerpc: include powernv

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 00:32:50 2020 New Revision: 366041 URL: https://svnweb.freebsd.org/changeset/base/366041 Log: [PowerPC64LE] powernv ILE setup code. When running without a hypervisor, we need to set the ILE bit in the LPCR ourselves. For the boot processor, handle it

svn commit: r366056 - head/lib/libsqlite3

2020-09-22 Thread Brandon Bergren
Author: bdragon Date: Wed Sep 23 02:17:44 2020 New Revision: 366056 URL: https://svnweb.freebsd.org/changeset/base/366056 Log: [PowerPC64LE] Pass our byte order to the sqlite3 build. Due to the sqlite3 endian detection code preferring to check platform defines instead of checking endian

Re: svn commit: r366032 - in head: . share/mk stand sys/conf sys/modules sys/powerpc/include

2020-09-22 Thread Pedro Giffuni
On 22/09/2020 18:49, Brandon Bergren wrote: Author: bdragon Date: Tue Sep 22 23:49:30 2020 New Revision: 366032 URL: https://svnweb.freebsd.org/changeset/base/366032 Log: [PowerPC64LE] Set up powerpc.powerpc64le architecture This is the initial set up for PowerPC64LE. The

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Warner Losh
I already committed... There's no need for a special upgrade process... Warner On Tue, Sep 22, 2020 at 8:59 PM Alan Somers wrote: > Go ahead and commit. Consider it reviewed by me. And if I understand > correctly, this commit means there's no need for a special updating > procedure, right? >

svn commit: r366060 - head/bin/cp/tests

2020-09-22 Thread Kyle Evans
Author: kevans Date: Wed Sep 23 03:02:45 2020 New Revision: 366060 URL: https://svnweb.freebsd.org/changeset/base/366060 Log: cp: tests: fix weird 20 insertion This slipped in at the last moment. =( Modified: head/bin/cp/tests/cp_test.sh Modified: head/bin/cp/tests/cp_test.sh

svn commit: r366059 - in head: bin/cp bin/cp/tests etc/mtree

2020-09-22 Thread Kyle Evans
Author: kevans Date: Wed Sep 23 03:01:14 2020 New Revision: 366059 URL: https://svnweb.freebsd.org/changeset/base/366059 Log: cp: add some basic tests There are some tests available in the NetBSD test suite, but we don't currently pass all of those; further investigation will go into

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Kyle Evans
Correct- we're good now. Thanks! On Tue, Sep 22, 2020 at 9:59 PM Alan Somers wrote: > > Go ahead and commit. Consider it reviewed by me. And if I understand > correctly, this commit means there's no need for a special updating > procedure, right? > > On Tue, Sep 22, 2020 at 6:55 PM Warner

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Andriy Gapon
On 22/09/2020 23:40, Scott Long wrote: > Second, there’s a vibe in parts of this thread that are passive-aggressively > disrespectful to Greg. I encourage those who might feel some personal > frustration towards Greg to talk to him directly. The Core team can help with > that communication if