svn commit: r328505 - head/stand/fdt

2018-01-27 Thread Kyle Evans
Author: kevans Date: Sun Jan 28 03:07:22 2018 New Revision: 328505 URL: https://svnweb.freebsd.org/changeset/base/328505 Log: stand/fdt: Check /compatible property on overlay if it exists Example overlays seen in other places use a compatible property on root node of an overlay to specify

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Pedro Giffuni
On 01/27/18 20:42, Bruce Evans wrote: On Sat, 27 Jan 2018, Pedro Giffuni wrote: On 01/27/18 18:21, Bruce Evans wrote: On Sat, 27 Jan 2018, Dimitry Andric wrote: On 27 Jan 2018, at 23:20, Ed Schouten wrote: * [... context lost to corruption of spaces which makes it unreadable] Wait.

Re: svn commit: r328474 - head/sys/contrib/libnv

2018-01-27 Thread Cy Schubert
In message <20180127215658.GA75080@jarvis>, Mariusz Zaborski writes: > > > --ew6BAiZeqk4r7MaW > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Sat, Jan 27, 2018 at 07:32:39AM -0800, Cy Schubert wrote: > > In message <20

svn commit: r328506 - head/contrib/opie/libopie

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jan 28 03:16:54 2018 New Revision: 328506 URL: https://svnweb.freebsd.org/changeset/base/328506 Log: Revert r328492: "Fix gcc80 -Wsizeof-pointer-memaccess warning." The warning is bogus: GCC8 only looks at the size of the destination. We shouldn't be fixing imagina

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Bruce Evans
On Sat, 27 Jan 2018, Pedro Giffuni wrote: On 01/27/18 18:21, Bruce Evans wrote: On Sat, 27 Jan 2018, Dimitry Andric wrote: On 27 Jan 2018, at 23:20, Ed Schouten wrote: * [... context lost to corruption of spaces which makes it unreadable] Wait... This may access utmp.ut_host one byte

svn commit: r328504 - in head/stand: efi/fdt fdt uboot/fdt

2018-01-27 Thread Kyle Evans
Author: kevans Date: Sun Jan 28 01:22:15 2018 New Revision: 328504 URL: https://svnweb.freebsd.org/changeset/base/328504 Log: stand/fdt: Consolidate overlay handling a little further This should have been done as part of r327350, but due to lack of foresight it came later. In the differen

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Pedro Giffuni
On 01/27/18 18:21, Bruce Evans wrote: On Sat, 27 Jan 2018, Dimitry Andric wrote: On 27 Jan 2018, at 23:20, Ed Schouten wrote: 2018-01-27 23:16 GMT+01:00 Pedro F. Giffuni :    char host[sizeof(utmp.ut_host) + 1];    insecure = 1; -   strncpy(host, utmp.ut_host, sizeof(utmp.ut_

Re: svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Pedro Giffuni
On 01/27/18 18:08, Ian Lepore wrote: On Sat, 2018-01-27 at 22:56 +, Conrad Meyer wrote: I donļæ½t think dragonfly has anything to do with this?ļæ½ļæ½If youļæ½re converting bool increments to setting true values in FreeBSD, use ļæ½true.ļæ½ļæ½ļæ½Thatļæ½s all there is to it. Best, Conrad st

Re: svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Bruce Evans
On Sat, 27 Jan 2018, Ian Lepore wrote: On Sat, 2018-01-27 at 22:56 +, Conrad Meyer wrote: I don?t think dragonfly has anything to do with this???If you?re converting bool increments to setting true values in FreeBSD, use ?true.???That?s all there is to it. style(9) emphasizes internal con

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Poul-Henning Kamp
In message , Warner Losh writes: >> The moment the correct infrastructure appears on the RPi platform, >> if it ever does, I will change my driver to use that infrastructure. > >The root of the problem is that we have the right infrastructure... >Everywhere except RPi. It needs a proper

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Warner Losh
On Sat, Jan 27, 2018 at 4:14 PM, Poul-Henning Kamp wrote: > > The moment the correct infrastructure appears on the RPi platform, > if it ever does, I will change my driver to use that infrastructure. > The root of the problem is that we have the right infrastructure... Everywhere except RPi. It n

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Bruce Evans
On Sat, 27 Jan 2018, Dimitry Andric wrote: On 27 Jan 2018, at 23:20, Ed Schouten wrote: 2018-01-27 23:16 GMT+01:00 Pedro F. Giffuni : char host[sizeof(utmp.ut_host) + 1]; insecure = 1; - strncpy(host, utmp.ut_host, sizeof(utmp.ut_host)); - host[sizeof(utmp.ut_host)

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Poul-Henning Kamp
In message <20180127210801.37b8001125dd0a2c92372...@bidouilliste.com>, Emmanuel Vadot writes: > - We have a commiter that commited something for his own need: he >wanted to use the pwm on his rpi, coded a driver (this part is good) >but feel that the standard we were using was crap and c

Re: svn commit: r328489 - head/sys/conf

2018-01-27 Thread Jason Harmening
On Sat, Jan 27, 2018 at 12:47 PM, O. Hartmann wrote: > Am Sat, 27 Jan 2018 20:13:36 + (UTC) > "Jason A. Harmening" schrieb: > > > Author: jah > > Date: Sat Jan 27 20:13:36 2018 > > New Revision: 328489 > > URL: https://svnweb.freebsd.org/changeset/base/328489 > > > > Log: > > Remove system

Re: svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Ian Lepore
On Sat, 2018-01-27 at 22:56 +, Conrad Meyer wrote: > I don’t think dragonfly has anything to do with this?  If you’re > converting > bool increments to setting true values in FreeBSD, use > “true.”  That’s all > there is to it. > > Best, > Conrad style(9) emphasizes internal consistancy in se

Re: svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Pedro Giffuni
On 01/27/18 17:56, Conrad Meyer wrote: I don’t think dragonfly has anything to do with this?  If you’re converting bool increments to setting true values in FreeBSD, use “true.”  That’s all there is to it. s/TRUE/true/ s/FALSE/false/ Then remove the two #defines for TRUE and FALSE, but I

Re: svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Conrad Meyer
I don’t think dragonfly has anything to do with this? If you’re converting bool increments to setting true values in FreeBSD, use “true.” That’s all there is to it. Best, Conrad On Sat, Jan 27, 2018 at 1:44 PM Pedro Giffuni wrote: > Hi; > > > On 01/27/18 14:56, Conrad Meyer wrote: > > We can

Re: svn commit: r328493 - head/lib/libthr/thread

2018-01-27 Thread Pedro Giffuni
For the record ... On 01/27/18 17:27, Pedro F. Giffuni wrote: Author: pfg Date: Sat Jan 27 22:27:55 2018 New Revision: 328493 URL: https://svnweb.freebsd.org/changeset/base/328493 Log: libthr: Fix missing break in switch. Hmm.. There is no "missing break" I just copy/pasted the Coverity

svn commit: r328498 - head/lib/libcasper/services/cap_random

2018-01-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 27 22:57:06 2018 New Revision: 328498 URL: https://svnweb.freebsd.org/changeset/base/328498 Log: Add cap_random.3 to build system. This should be done with r328494. Modified: head/lib/libcasper/services/cap_random/Makefile Modified: head/lib/libcasper/services

svn commit: r328497 - head/sbin/pfctl

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 22:57:01 2018 New Revision: 328497 URL: https://svnweb.freebsd.org/changeset/base/328497 Log: pfctl(8): Fix two wrong conditions. Caught by gcc80's -Wtautological-compare option. MFC after:5 days Approved by: kp Obtained from:DragonFlyBSD (

svn commit: r328496 - head/lib/libcasper/libcasper

2018-01-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 27 22:53:29 2018 New Revision: 328496 URL: https://svnweb.freebsd.org/changeset/base/328496 Log: Fix caspermock - the cap_recv_nvlist should return nvlist. Modified: head/lib/libcasper/libcasper/libcasper.h Modified: head/lib/libcasper/libcasper/libcasper.h

svn commit: r328494 - head/lib/libcasper/services/cap_random

2018-01-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 27 22:49:34 2018 New Revision: 328494 URL: https://svnweb.freebsd.org/changeset/base/328494 Log: Document the random Casper service. Reviewed by: bcr@ Differential Revision:https://reviews.freebsd.org/D14072 Added: head/lib/libcasper/services/cap_

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Ed Schouten
2018-01-27 23:31 GMT+01:00 Dimitry Andric : > On 27 Jan 2018, at 23:20, Ed Schouten wrote: >> >> 2018-01-27 23:16 GMT+01:00 Pedro F. Giffuni : >>>char host[sizeof(utmp.ut_host) + 1]; >>>insecure = 1; >>> >>> - strncpy(host, utmp.ut_host, sizeof(utmp.ut_host)); >>> - hos

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Dimitry Andric
On 27 Jan 2018, at 23:20, Ed Schouten wrote: > > 2018-01-27 23:16 GMT+01:00 Pedro F. Giffuni : >>char host[sizeof(utmp.ut_host) + 1]; >>insecure = 1; >> >> - strncpy(host, utmp.ut_host, sizeof(utmp.ut_host)); >> - host[sizeof(utmp.ut_host)] = 0; >> + strncpy(hos

svn commit: r328493 - head/lib/libthr/thread

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 22:27:55 2018 New Revision: 328493 URL: https://svnweb.freebsd.org/changeset/base/328493 Log: libthr: Fix missing break in switch. This is also a warning in recent GCC with -Wimplicit-fallthrough. CID: 1356262 Obtained from:DragonFly (git 0f037c7

Re: svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Ed Schouten
Hi Pedro, 2018-01-27 23:16 GMT+01:00 Pedro F. Giffuni : > char host[sizeof(utmp.ut_host) + 1]; > insecure = 1; > > - strncpy(host, utmp.ut_host, sizeof(utmp.ut_host)); > - host[sizeof(utmp.ut_host)] = 0; > + strncpy(host, utmp.ut_host, sizeof(host)); Wait... This

svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 22:16:19 2018 New Revision: 328492 URL: https://svnweb.freebsd.org/changeset/base/328492 Log: Fix gcc80 -Wsizeof-pointer-memaccess warning. Obtained from:DragonFlyBSD (git 56267d362d5769c8df07bf26d5e322610e0d24b4) Modified: head/contrib/opie/libopie/

Re: svn commit: r328474 - head/sys/contrib/libnv

2018-01-27 Thread Mariusz Zaborski
On Sat, Jan 27, 2018 at 07:32:39AM -0800, Cy Schubert wrote: > In message <201801271258.w0rcwml0078...@repo.freebsd.org>, Mariusz Zaborski > wri > tes: > > Author: oshogbo > > Date: Sat Jan 27 12:58:21 2018 > > New Revision: 328474 > > URL: https://svnweb.freebsd.org/changeset/base/328474 > > > >

Re: svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Pedro Giffuni
Hi; On 01/27/18 14:56, Conrad Meyer wrote: We can use 'true' and 'false' now. (style(9) also suggests using the C99 names instead of TRUE/FALSE.) Yes, I noticed that change in DragonflyBSD but it is conceptually a different change and it deserves a different commit. Pedro. On Sat, Jan 2

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Warner Losh
On Jan 27, 2018 2:32 PM, "Rodney W. Grimes" wrote: > On Sat, 27 Jan 2018 12:13:57 -0800 > Adrian Chadd wrote: > > > Hi, > > > > Find the middle ground. Don't dissuade the developer too much. > > This is what happened two years ago when I started hacking on the > allwinner SoCs : > > - I asked

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Rodney W. Grimes
> On Sat, 27 Jan 2018 12:13:57 -0800 > Adrian Chadd wrote: > > > Hi, > > > > Find the middle ground. Don't dissuade the developer too much. > > This is what happened two years ago when I started hacking on the > allwinner SoCs : > > - I asked what should be done for bringing a new board > -

svn commit: r328491 - head/sys/contrib/libfdt

2018-01-27 Thread Kyle Evans
Author: kevans Date: Sat Jan 27 21:25:45 2018 New Revision: 328491 URL: https://svnweb.freebsd.org/changeset/base/328491 Log: MFV r328490: Update libfdt to github:f1879e1 Pulls in a patch, now upstreamed, from nwhitehorn to add limited read-only support for older (v2 and v3) FDT blobs.

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Oleksandr Tymoshenko
Adrian Chadd (adrian.ch...@gmail.com) wrote: > Hi, > > Find the middle ground. Don't dissuade the developer too much. > > Here's an example: > > Make the driver follow DTS, allow a tunable/kenv check for it to > override whether it needs to be in the DTS or not (the "keep phk happy > for now" co

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Emmanuel Vadot
On Sat, 27 Jan 2018 12:13:57 -0800 Adrian Chadd wrote: > Hi, > > Find the middle ground. Don't dissuade the developer too much. This is what happened two years ago when I started hacking on the allwinner SoCs : - I asked what should be done for bringing a new board - andrew@ told me that we

Re: svn commit: r328489 - head/sys/conf

2018-01-27 Thread O. Hartmann
Am Sat, 27 Jan 2018 20:13:36 + (UTC) "Jason A. Harmening" schrieb: > Author: jah > Date: Sat Jan 27 20:13:36 2018 > New Revision: 328489 > URL: https://svnweb.freebsd.org/changeset/base/328489 > > Log: > Remove system makefile path directives from env passed to PORTS_MODULES step > >

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Adrian Chadd
Hi, Find the middle ground. Don't dissuade the developer too much. Here's an example: Make the driver follow DTS, allow a tunable/kenv check for it to override whether it needs to be in the DTS or not (the "keep phk happy for now" compromise) and have it default to obeying the device tree. That

svn commit: r328489 - head/sys/conf

2018-01-27 Thread Jason A. Harmening
Author: jah Date: Sat Jan 27 20:13:36 2018 New Revision: 328489 URL: https://svnweb.freebsd.org/changeset/base/328489 Log: Remove system makefile path directives from env passed to PORTS_MODULES step Previously, MAKESYSPATH as well as '-m' directives in MAKEFLAGS would cause any port rebu

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-27 Thread Emmanuel Vadot
So, almost a week after this commit, let's recap. - phk@ commit an hack to allow the pwm driver on rpi to always attach even if it's not enabled in the dts. - I say to him that it's a really bad move and that he should use dtb overlays (which thanks to kevans@ are in a really better state now)

Re: svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Conrad Meyer
We can use 'true' and 'false' now. (style(9) also suggests using the C99 names instead of TRUE/FALSE.) On Sat, Jan 27, 2018 at 9:43 AM, Pedro F. Giffuni wrote: > Author: pfg > Date: Sat Jan 27 17:43:09 2018 > New Revision: 328486 > URL: https://svnweb.freebsd.org/changeset/base/328486 > > Log: >

svn commit: r328488 - in head: contrib/traceroute usr.sbin/traceroute6

2018-01-27 Thread Michael Tuexen
Author: tuexen Date: Sat Jan 27 19:23:42 2018 New Revision: 328488 URL: https://svnweb.freebsd.org/changeset/base/328488 Log: When using SCTP for sending probe packets, use INIT chunks for payloads larger than or equal to 32 bytes. For smaller probe packets, keep using SHUTDOWN-ACK chunks, p

svn commit: r328487 - head/bin/pax

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 18:24:13 2018 New Revision: 328487 URL: https://svnweb.freebsd.org/changeset/base/328487 Log: pax(1): Honour the restrict in sigaction(). Use a setup_sig() helper and make it fail when either of sigaction fails. While there, do not leak fds for "." + minor

svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 17:43:09 2018 New Revision: 328486 URL: https://svnweb.freebsd.org/changeset/base/328486 Log: fortune(6): Fix gcc80 -Wbool-operation warnings. Hinted by:Dragonfly (git 4d1086765752f0569497d06460d95117c74f33ac) Modified: head/usr.bin/fortune/fortune/fortun

Re: svn commit: r328479 - in head/sys: fs/ext2fs ufs/ufs

2018-01-27 Thread Bruce Evans
On Sat, 27 Jan 2018, Konstantin Belousov wrote: On Sat, Jan 27, 2018 at 03:33:52PM +, Pedro F. Giffuni wrote: Log: {ext2|ufs}_readdir: Set limit on valid ncookies values. Sanitize the values that will be assigned to ncookies so that we ensure they are sane and we can handle them.

Re: svn commit: r328346 - in head/sys: fs/ext2fs ufs/ffs ufs/ufs

2018-01-27 Thread Pedro Giffuni
On 01/27/18 11:14, Warner Losh wrote: On Jan 27, 2018 8:17 AM, "Pedro Giffuni" > wrote: On 01/26/18 06:36, Bruce Evans wrote: On Thu, 25 Jan 2018, Pedro Giffuni wrote: On 25/01/2018 14:24, Bruce Evans wrote: ...

Re: svn commit: r328479 - in head/sys: fs/ext2fs ufs/ufs

2018-01-27 Thread Pedro Giffuni
On 01/27/18 11:03, Konstantin Belousov wrote: On Sat, Jan 27, 2018 at 03:33:52PM +, Pedro F. Giffuni wrote: Author: pfg Date: Sat Jan 27 15:33:52 2018 New Revision: 328479 URL: https://svnweb.freebsd.org/changeset/base/328479 Log: {ext2|ufs}_readdir: Set limit on valid ncookies values.

svn commit: r328480 - in head/sys: fs/ext2fs ufs/ufs

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 16:34:00 2018 New Revision: 328480 URL: https://svnweb.freebsd.org/changeset/base/328480 Log: Revert r328479: {ext2|ufs}_readdir: Set limit on valid ncookies values. We aren't allowed to set resid like this. Pointed out by: kib, imp Modified: hea

Re: svn commit: r328479 - in head/sys: fs/ext2fs ufs/ufs

2018-01-27 Thread Warner Losh
You aren't allowed to set resid like this. Changes in resid indicate amount of I/O done. If you think it's bogus, you need to either return EINVAL or use a smaller value to figure out your buffer sizes. Thi s is bogus, please back it out. Warner On Jan 27, 2018 8:34 AM, "Pedro F. Giffuni" wrote:

Re: svn commit: r328346 - in head/sys: fs/ext2fs ufs/ffs ufs/ufs

2018-01-27 Thread Warner Losh
On Jan 27, 2018 8:17 AM, "Pedro Giffuni" wrote: On 01/26/18 06:36, Bruce Evans wrote: > On Thu, 25 Jan 2018, Pedro Giffuni wrote: > > On 25/01/2018 14:24, Bruce Evans wrote: >> >>> ... >>> This code only works because (if?) nfs is the only caller and nfs never >>> passes insane values. >>> >>>

Re: svn commit: r328479 - in head/sys: fs/ext2fs ufs/ufs

2018-01-27 Thread Konstantin Belousov
On Sat, Jan 27, 2018 at 03:33:52PM +, Pedro F. Giffuni wrote: > Author: pfg > Date: Sat Jan 27 15:33:52 2018 > New Revision: 328479 > URL: https://svnweb.freebsd.org/changeset/base/328479 > > Log: > {ext2|ufs}_readdir: Set limit on valid ncookies values. > > Sanitize the values that wil

Re: svn commit: r328474 - head/sys/contrib/libnv

2018-01-27 Thread Pedro Giffuni
On 01/27/18 10:32, Cy Schubert wrote: In message <201801271258.w0rcwml0078...@repo.freebsd.org>, Mariusz Zaborski wri tes: Author: oshogbo Date: Sat Jan 27 12:58:21 2018 New Revision: 328474 URL: https://svnweb.freebsd.org/changeset/base/328474 Log: Add SPDX tags for nv(9). MFC afte

svn commit: r328479 - in head/sys: fs/ext2fs ufs/ufs

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 15:33:52 2018 New Revision: 328479 URL: https://svnweb.freebsd.org/changeset/base/328479 Log: {ext2|ufs}_readdir: Set limit on valid ncookies values. Sanitize the values that will be assigned to ncookies so that we ensure they are sane and we can handle them.

Re: svn commit: r328474 - head/sys/contrib/libnv

2018-01-27 Thread Cy Schubert
In message <201801271258.w0rcwml0078...@repo.freebsd.org>, Mariusz Zaborski wri tes: > Author: oshogbo > Date: Sat Jan 27 12:58:21 2018 > New Revision: 328474 > URL: https://svnweb.freebsd.org/changeset/base/328474 > > Log: > Add SPDX tags for nv(9). > > MFC after: 2 weeks > > Modified: >

Re: svn commit: r328346 - in head/sys: fs/ext2fs ufs/ffs ufs/ufs

2018-01-27 Thread Pedro Giffuni
On 01/26/18 06:36, Bruce Evans wrote: On Thu, 25 Jan 2018, Pedro Giffuni wrote: On 25/01/2018 14:24, Bruce Evans wrote: ... This code only works because (if?) nfs is the only caller and nfs never passes insane values. I am starting to think that we should simply match uio_resid and set i

svn commit: r328478 - head/sys/netinet

2018-01-27 Thread Michael Tuexen
Author: tuexen Date: Sat Jan 27 13:46:55 2018 New Revision: 328478 URL: https://svnweb.freebsd.org/changeset/base/328478 Log: Add constant for the PAD chunk as defined in RFC 4820. This will be used by traceroute and traceroute6 soon. MFC after:1 week Modified: head/sys/netinet/sct

svn commit: r328477 - head/sys/netinet

2018-01-27 Thread Michael Tuexen
Author: tuexen Date: Sat Jan 27 13:43:03 2018 New Revision: 328477 URL: https://svnweb.freebsd.org/changeset/base/328477 Log: Update references in comments, since the IDs have become an RFC long time ago. Also cleanup whitespaces. No functional change. MFC after:1 week Modified: he

svn commit: r328474 - head/sys/contrib/libnv

2018-01-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 27 12:58:21 2018 New Revision: 328474 URL: https://svnweb.freebsd.org/changeset/base/328474 Log: Add SPDX tags for nv(9). MFC after:2 weeks Modified: head/sys/contrib/libnv/cnvlist.c head/sys/contrib/libnv/dnvlist.c head/sys/contrib/libnv/nv_impl.h

svn commit: r328473 - in head/lib/libcasper: libcasper services/cap_dns services/cap_dns/tests services/cap_grp services/cap_grp/tests services/cap_pwd services/cap_pwd/tests services/cap_random se...

2018-01-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 27 12:55:34 2018 New Revision: 328473 URL: https://svnweb.freebsd.org/changeset/base/328473 Log: Add SPDX tags for libcasper(3) and services. MFC after:2 weeks Modified: head/lib/libcasper/libcasper/libcasper.c head/lib/libcasper/libcasper/libcasper.h

svn commit: r328472 - head/sys/geom/label

2018-01-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 27 12:28:52 2018 New Revision: 328472 URL: https://svnweb.freebsd.org/changeset/base/328472 Log: Don't truncate name of glabel. If it's to long just report that. Reviewed by: trasz@ Differential Revision:https://reviews.freebsd.org/D13746 Modified

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

2018-01-27 Thread Dexuan-BSD Cui
Hi, Today I found the KPTI patch broke FreeBSD VM running on Hyper-V: the VM can't boot due to: vmbus0: cannot find free IDT vector This is the related snippet: dev/hyperv/vmbus/vmbus.c: vmbus_intr_setup() -> lapic_ipi_alloc() fails: /* * All Hyper-V ISR required resources are

Re: svn commit: r328346 - in head/sys: fs/ext2fs ufs/ffs ufs/ufs

2018-01-27 Thread Bruce Evans
On Fri, 26 Jan 2018, Pedro Giffuni wrote: On 01/26/18 06:36, Bruce Evans wrote: On Thu, 25 Jan 2018, Pedro Giffuni wrote: On 25/01/2018 14:24, Bruce Evans wrote: ... This code only works because (if?) nfs is the only caller and nfs never passes insane values. I am starting to think that w

svn commit: r328471 - head/lib/libcasper/services/cap_grp

2018-01-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 27 11:54:51 2018 New Revision: 328471 URL: https://svnweb.freebsd.org/changeset/base/328471 Log: Document the grp Casper service. Reviewed by: brueffer@, bcr@ Differential Revision:https://reviews.freebsd.org/D13821 Added: head/lib/libcasper/servi

svn commit: r328470 - in head/sys: amd64/amd64 amd64/include i386/i386 x86/include x86/x86

2018-01-27 Thread Konstantin Belousov
Author: kib Date: Sat Jan 27 11:49:37 2018 New Revision: 328470 URL: https://svnweb.freebsd.org/changeset/base/328470 Log: Use PCID to optimize PTI. Use PCID to avoid complete TLB shootdown when switching between user and kernel mode with PTI enabled. I use the model close to what I

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

2018-01-27 Thread Konstantin Belousov
On Sat, Jan 27, 2018 at 12:56:47AM -0800, Dexuan-BSD Cui wrote: > Hi, > Today I found the KPTI patch broke FreeBSD VM running on Hyper-V: the VM > can't boot due to: > > vmbus0: cannot find free IDT vector > > This is the related snippet: > > dev/hyperv/vmbus/vmbus.c: vmbus_intr_setup() -> lapic

svn commit: r328468 - head/sys/x86/x86

2018-01-27 Thread Konstantin Belousov
Author: kib Date: Sat Jan 27 11:33:21 2018 New Revision: 328468 URL: https://svnweb.freebsd.org/changeset/base/328468 Log: Fix native_lapic_ipi_alloc(). When PTI is enabled, empty IDT slots point to rsvd_pti. Reported by: Dexuan-BSD Cui Sponsored by: The FreeBSD Foundation MFC af

svn commit: r328467 - in head/sys/arm: arm include

2018-01-27 Thread Michal Meloun
Author: mmel Date: Sat Jan 27 11:19:41 2018 New Revision: 328467 URL: https://svnweb.freebsd.org/changeset/base/328467 Log: Implement mitigation for Spectre version 2 attacks on ARMv7. Similarly as we already do for arm64, for mitigation is necessary to flush branch predictor when we: -

svn commit: r328466 - head/sys/arm64/arm64

2018-01-27 Thread Michal Meloun
Author: mmel Date: Sat Jan 27 09:49:47 2018 New Revision: 328466 URL: https://svnweb.freebsd.org/changeset/base/328466 Log: Fix pmap_fault(). - special fault handling for break-before-make mechanism should be also applied for instruction translation faults, not only for data translation

Re: svn commit: r328456 - head/share/man/man7

2018-01-27 Thread Edward Tomasz Napierala
Indeed - but that one has been documented earlier, in r326502, by markj@. On 0126T1633, Conrad Meyer wrote: > This isn't quite right — it's now located in src/stand. > > On Fri, Jan 26, 2018 at 4:09 PM, Edward Tomasz Napierala > wrote: > > Author: trasz > > Date: Sat Jan 27 00:09:43 2018 > > New

svn commit: r328465 - head/sys/crypto/ccp

2018-01-27 Thread Conrad Meyer
Author: cem Date: Sat Jan 27 07:41:31 2018 New Revision: 328465 URL: https://svnweb.freebsd.org/changeset/base/328465 Log: ccp(4): Store IV in output buffer in GCM software fallback when requested Apply r328361 to duplicate copy of ccr_gcm_soft in ccp(4). Properly honor the lack of the

svn commit: r328464 - head/sys/cam/scsi

2018-01-27 Thread Scott Long
Author: scottl Date: Sat Jan 27 07:18:02 2018 New Revision: 328464 URL: https://svnweb.freebsd.org/changeset/base/328464 Log: Finish the incomplete move of CAM_PERIPH_PRINT(). Reported by: kevans Modified: head/sys/cam/scsi/scsi_da.c Modified: head/sys/cam/scsi/scsi_da.c ==

Re: svn commit: r328455 - in head/sys/cam: . scsi

2018-01-27 Thread Kyle Evans
On Fri, Jan 26, 2018 at 5:56 PM, Scott Long wrote: > Author: scottl > Date: Fri Jan 26 23:56:07 2018 > New Revision: 328455 > URL: https://svnweb.freebsd.org/changeset/base/328455 > > Log: > Move CAM_PERIPH_PRINT() to cam_periph.h > > Modified: > head/sys/cam/cam_periph.h > head/sys/cam/scsi