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

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

svn commit: r328503 - stable/11/lib/libiconv_modules/ISO2022

2018-01-27 Thread Eitan Adler
Author: eadler Date: Sun Jan 28 00:27:51 2018 New Revision: 328503 URL: https://svnweb.freebsd.org/changeset/base/328503 Log: MFC r328222: iconv: adding missing break break is probably intended and correct, but has no correctness implications due to is94 => is96 Modified: stable/1

svn commit: r328502 - stable/11/usr.bin/limits

2018-01-27 Thread Eitan Adler
Author: eadler Date: Sun Jan 28 00:26:05 2018 New Revision: 328502 URL: https://svnweb.freebsd.org/changeset/base/328502 Log: MFC r328212: limits(1): fix always true condition Modified: stable/11/usr.bin/limits/limits.c Directory Properties: stable/11/ (props changed) Modified: stab

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

svn commit: r328501 - stable/11/usr.bin/limits

2018-01-27 Thread Eitan Adler
Author: eadler Date: Sat Jan 27 23:40:41 2018 New Revision: 328501 URL: https://svnweb.freebsd.org/changeset/base/328501 Log: MFC r328206: limits(1): add missing break Modified: stable/11/usr.bin/limits/limits.c Directory Properties: stable/11/ (props changed) Modified: stable/11/us

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)

svn commit: r328500 - in stable/11/usr.bin/hexdump: . tests

2018-01-27 Thread Kyle Evans
Author: kevans Date: Sat Jan 27 23:20:01 2018 New Revision: 328500 URL: https://svnweb.freebsd.org/changeset/base/328500 Log: MFC r328188,r328189,r328200: Fix wrong output for multibyte corner cases MFC r328188: od(1): Fix wrong output for corner cases in multibyte locales. Restore the

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

svn commit: r328499 - in stable/11: etc/mtree share/man/man7 sys/boot/arm/uboot sys/boot/mips/uboot

2018-01-27 Thread Kyle Evans
Author: kevans Date: Sat Jan 27 23:13:34 2018 New Revision: 328499 URL: https://svnweb.freebsd.org/changeset/base/328499 Log: MFC (conceptually) r328107: Add /boot/overlays This is a direct commit to stable/11, due to path changes in HEAD. Diffs have been applied on top of stable/11, with

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: r328495 - stable/11/usr.bin/dtc

2018-01-27 Thread Kyle Evans
Author: kevans Date: Sat Jan 27 22:50:26 2018 New Revision: 328495 URL: https://svnweb.freebsd.org/changeset/base/328495 Log: MFC r320296, r328173: Update dtc(1) MFC r320296 (manu): dtc: Update to upstream 9ce35ff8 - Add "compatible with gpl dtc X.Y.Z" to version output so U-Boot does

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: 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: 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 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.

svn commit: r328490 - vendor-sys/libfdt/dist

2018-01-27 Thread Kyle Evans
Author: kevans Date: Sat Jan 27 21:22:10 2018 New Revision: 328490 URL: https://svnweb.freebsd.org/changeset/base/328490 Log: 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. Modified: ve

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

svn commit: r328485 - stable/10/sys/dev/atkbdc

2018-01-27 Thread Jean-Sébastien Pédron
Author: dumbbell Date: Sat Jan 27 17:24:59 2018 New Revision: 328485 URL: https://svnweb.freebsd.org/changeset/base/328485 Log: psm: Log syncmask[1], not syncmask[0] twice MFC of: r328208 Modified: stable/10/sys/dev/atkbdc/psm.c Directory Properties: stable/10/ (props c

svn commit: r328484 - stable/11/sys/dev/atkbdc

2018-01-27 Thread Jean-Sébastien Pédron
Author: dumbbell Date: Sat Jan 27 17:24:27 2018 New Revision: 328484 URL: https://svnweb.freebsd.org/changeset/base/328484 Log: psm: Log syncmask[1], not syncmask[0] twice MFC of: r328208 Modified: stable/11/sys/dev/atkbdc/psm.c Directory Properties: stable/11/ (props c

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 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.

svn commit: r328483 - stable/11/share/termcap

2018-01-27 Thread Eitan Adler
Author: eadler Date: Sat Jan 27 16:56:54 2018 New Revision: 328483 URL: https://svnweb.freebsd.org/changeset/base/328483 Log: MFC r328209: termcap: add xterm-termite Modified: stable/11/share/termcap/termcap Directory Properties: stable/11/ (props changed) Modified: stable/11/share/

svn commit: r328482 - stable/11/sys/dev/atkbdc

2018-01-27 Thread Jean-Sébastien Pédron
Author: dumbbell Date: Sat Jan 27 16:48:29 2018 New Revision: 328482 URL: https://svnweb.freebsd.org/changeset/base/328482 Log: psm: Don't try to detect trackpoint packets if the Elantech device has none This fixes a panic when `EVDEV_SUPPORT` is enabled: if a trackpoint packet was detect

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: r328481 - stable/11/sys/dev/atkbdc

2018-01-27 Thread Jean-Sébastien Pédron
Author: dumbbell Date: Sat Jan 27 16:36:06 2018 New Revision: 328481 URL: https://svnweb.freebsd.org/changeset/base/328481 Log: psm: Skip sync check when `PSM_CONFIG_NOCHECKSYNC` is set In psmprobe(), we set the initial `syncmask` to the vendor default value if the `PSM_CONFIG_NOCHECKSYNC

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: r328476 - stable/10/contrib/tzdata

2018-01-27 Thread Philip Paeps
Author: philip Date: Sat Jan 27 13:34:14 2018 New Revision: 328476 URL: https://svnweb.freebsd.org/changeset/base/328476 Log: MFC r328055: Import tzdata 2018a MFC r328318: Import tzdata 2018c Replaced: stable/10/contrib/tzdata/pacificnew - copied unchanged from r328318, head/contrib/tz

svn commit: r328475 - stable/11/contrib/tzdata

2018-01-27 Thread Philip Paeps
Author: philip Date: Sat Jan 27 13:29:55 2018 New Revision: 328475 URL: https://svnweb.freebsd.org/changeset/base/328475 Log: MFC r328055: Import tzdata 2018a MFC r328318: Import tzdata 2018c Replaced: stable/11/contrib/tzdata/pacificnew - copied unchanged from r328318, head/contrib/tz

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: 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

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

svn commit: r328469 - stable/11/sys/vm

2018-01-27 Thread Konstantin Belousov
Author: kib Date: Sat Jan 27 11:40:46 2018 New Revision: 328469 URL: https://svnweb.freebsd.org/changeset/base/328469 Log: MFC r328192: Assign map->header values to avoid boundary checks. Modified: stable/11/sys/vm/vm_map.c stable/11/sys/vm/vm_map.h stable/11/sys/vm/vm_mmap.c Directory

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: -

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: 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

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 ==

svn commit: r328462 - stable/11/usr.bin/patch

2018-01-27 Thread Kyle Evans
Author: kevans Date: Sat Jan 27 06:20:27 2018 New Revision: 328462 URL: https://svnweb.freebsd.org/changeset/base/328462 Log: MFC r327826: patch(1): Don't check for NUL bytes in Plan A Plan A mmap()'s the entire input file and operates on it in memory. The map(2) call succeeded, so we sho

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