Re: svn commit: r326385 - head/usr.bin/pr

2017-11-30 Thread Eitan Adler
On 30 November 2017 at 07:39, Warner Losh wrote: > > > On Thu, Nov 30, 2017 at 3:44 AM, Ed Schouten wrote: >> >> 2017-11-30 8:08 GMT+01:00 Eitan Adler : >> > Permitted by https://www.freebsd.org/copyright/license.html >> > [...] >> > * Copyright (c) 1991 Keith Muller. >> >> Isn't it the case

svn commit: r326419 - head/usr.bin/pr

2017-11-30 Thread Eitan Adler
Author: eadler Date: Fri Dec 1 03:22:40 2017 New Revision: 326419 URL: https://svnweb.freebsd.org/changeset/base/326419 Log: Revert license change. This isn't identical to the one permitted by UCB since it is copyright multiple people. Modified: head/usr.bin/pr/egetopt.c head/usr.bi

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

2017-11-30 Thread Hartmann, O.
On Wed, 29 Nov 2017 23:28:40 + (UTC) Hans Petter Selasky wrote: > Author: hselasky > Date: Wed Nov 29 23:28:40 2017 > New Revision: 326376 > URL: https://svnweb.freebsd.org/changeset/base/326376 > > Log: > The sched_add() function is not only used when the thread is > initially started, bu

Re: svn commit: r326408 - in head: lib/libfetch sbin/recoverdisk share/examples/BSD_daemon share/examples/libusb20 sys/dev/led sys/dev/md sys/dev/mn sys/dev/ppbus sys/i386/i386 sys/kern sys/sys sys/x8

2017-11-30 Thread Warner Losh
On Thu, Nov 30, 2017 at 2:21 PM, Konstantin Belousov wrote: > On Thu, Nov 30, 2017 at 08:33:45PM +, Pedro F. Giffuni wrote: > > head/usr.sbin/ctm/ctm/ctm.c > > head/usr.sbin/ctm/ctm/ctm_ed.c > > head/usr.sbin/ctm/ctm/ctm_input.c > > head/usr.sbin/ctm/ctm/ctm_pass1.c > > head/usr.sbi

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-11-30 Thread Andriy Gapon
On 30/11/2017 22:47, Jung-uk Kim wrote: > On 11/30/2017 15:31, Conrad Meyer wrote: >> On Thu, Nov 30, 2017 at 12:08 PM, Jung-uk Kim wrote: >>> On 11/30/2017 14:32, Conrad Meyer wrote: Hi, I don't think this answers the second question about the conditional. It seems like PCPU_G

Re: svn commit: r326408 - in head: lib/libfetch sbin/recoverdisk share/examples/BSD_daemon share/examples/libusb20 sys/dev/led sys/dev/md sys/dev/mn sys/dev/ppbus sys/i386/i386 sys/kern sys/sys sys/x8

2017-11-30 Thread Konstantin Belousov
On Thu, Nov 30, 2017 at 08:33:45PM +, Pedro F. Giffuni wrote: > head/usr.sbin/ctm/ctm/ctm.c > head/usr.sbin/ctm/ctm/ctm_ed.c > head/usr.sbin/ctm/ctm/ctm_input.c > head/usr.sbin/ctm/ctm/ctm_pass1.c > head/usr.sbin/ctm/ctm/ctm_pass2.c > head/usr.sbin/ctm/ctm/ctm_pass3.c > head/usr.s

svn commit: r326412 - head/release

2017-11-30 Thread Glen Barber
Author: gjb Date: Thu Nov 30 20:53:57 2017 New Revision: 326412 URL: https://svnweb.freebsd.org/changeset/base/326412 Log: Fix port build flags passed to make(1) after r326315, where it was missed for embedded image builds. MFC after:3 days MFC with: r326315 Sponsored by: The

svn commit: r326411 - head/release/tools

2017-11-30 Thread Glen Barber
Author: gjb Date: Thu Nov 30 20:52:01 2017 New Revision: 326411 URL: https://svnweb.freebsd.org/changeset/base/326411 Log: Fix an indentation nit. Sponsored by: The FreeBSD Foundation Modified: head/release/tools/vmimage.subr Modified: head/release/tools/vmimage.subr ===

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-11-30 Thread Jung-uk Kim
On 11/30/2017 15:31, Conrad Meyer wrote: > On Thu, Nov 30, 2017 at 12:08 PM, Jung-uk Kim wrote: >> On 11/30/2017 14:32, Conrad Meyer wrote: >>> Hi, >>> >>> I don't think this answers the second question about the conditional. >>> It seems like PCPU_GET() for the initial CPU should be pulled out of

svn commit: r326410 - head/sbin/geom/class/mirror

2017-11-30 Thread Mark Johnston
Author: markj Date: Thu Nov 30 20:37:12 2017 New Revision: 326410 URL: https://svnweb.freebsd.org/changeset/base/326410 Log: Document gmirror sysctls. MFC after:2 weeks Modified: head/sbin/geom/class/mirror/gmirror.8 Modified: head/sbin/geom/class/mirror/gmirror.8 ==

svn commit: r326409 - head/sys/geom/mirror

2017-11-30 Thread Mark Johnston
Author: markj Date: Thu Nov 30 20:36:29 2017 New Revision: 326409 URL: https://svnweb.freebsd.org/changeset/base/326409 Log: Update gmirror metadata less frequently when synchronizing. We periodically record synchronization progress in the metadata block of the disk being synchronized; th

svn commit: r326408 - in head: lib/libfetch sbin/recoverdisk share/examples/BSD_daemon share/examples/libusb20 sys/dev/led sys/dev/md sys/dev/mn sys/dev/ppbus sys/i386/i386 sys/kern sys/sys sys/x86...

2017-11-30 Thread Pedro F. Giffuni
Author: pfg Date: Thu Nov 30 20:33:45 2017 New Revision: 326408 URL: https://svnweb.freebsd.org/changeset/base/326408 Log: SPDX: use the Beerware identifier. Modified: head/lib/libfetch/ftp.c head/sbin/recoverdisk/recoverdisk.c head/share/examples/BSD_daemon/beastie.fig head/share/examp

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-11-30 Thread Conrad Meyer
On Thu, Nov 30, 2017 at 12:08 PM, Jung-uk Kim wrote: > On 11/30/2017 14:32, Conrad Meyer wrote: >> Hi, >> >> I don't think this answers the second question about the conditional. >> It seems like PCPU_GET() for the initial CPU should be pulled out of >> the loop, which binds the thread to a differ

svn commit: r326407 - head/sys/x86/cpufreq

2017-11-30 Thread Jung-uk Kim
Author: jkim Date: Thu Nov 30 20:21:42 2017 New Revision: 326407 URL: https://svnweb.freebsd.org/changeset/base/326407 Log: Properly skip the first CPU. It only accidentally worked because the CPU_FOREACH() loop always starts from BSP (cpu0) and the if condition is always false for APs.

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-11-30 Thread Jung-uk Kim
On 11/30/2017 14:32, Conrad Meyer wrote: > Hi, > > I don't think this answers the second question about the conditional. > It seems like PCPU_GET() for the initial CPU should be pulled out of > the loop, which binds the thread to a different CPU every iteration. Ah, good catch. I'll fix it soon.

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-11-30 Thread Conrad Meyer
Hi, I don't think this answers the second question about the conditional. It seems like PCPU_GET() for the initial CPU should be pulled out of the loop, which binds the thread to a different CPU every iteration. Also, as a side effect of disabling verification, you have fixed PR 221621, 219213, a

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-11-30 Thread Jung-uk Kim
On 11/30/2017 13:57, Conrad Meyer wrote: > Hi Jung-uk, > > I have some questions about this change. > > On Wed, Nov 29, 2017 at 5:40 PM, Jung-uk Kim wrote: >> Author: jkim >> Date: Thu Nov 30 01:40:07 2017 >> New Revision: 326383 >> URL: https://svnweb.freebsd.org/changeset/base/326383 >> >> Log

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-11-30 Thread Conrad Meyer
Hi Jung-uk, I have some questions about this change. On Wed, Nov 29, 2017 at 5:40 PM, Jung-uk Kim wrote: > Author: jkim > Date: Thu Nov 30 01:40:07 2017 > New Revision: 326383 > URL: https://svnweb.freebsd.org/changeset/base/326383 > > Log: > Add a tunable "debug.hwpstate_verify" to check P-st

Re: svn commit: r326394 - head/sys/fs/devfs

2017-11-30 Thread Conrad Meyer
This moves the M_WAITOK (sleepable) memory allocation under dirlist_mtx, which is an ordinary mutex. If you run this under WITNESS, it will (rightfully) complain. Please revert this change. One possible way to accomplish the goal you have in mind is a fallback path if the devfs_dir_findent_locke

Re: svn commit: r326398 - in head: sys/netpfil/pf sys/sparc64/pci sys/sys sys/x86/isa usr.bin/gencat usr.sbin/ppp usr.sbin/watch

2017-11-30 Thread Pedro Giffuni
On 30/11/2017 12:36, Rodney W. Grimes wrote: [ Charset UTF-8 unsupported, converting... ] Author: pfg Date: Thu Nov 30 15:10:11 2017 New Revision: 326398 URL: https://svnweb.freebsd.org/changeset/base/326398 Log: SPDX: Fix some cases wrongly attributed to MIT. In the cases of BSD-st

Re: svn commit: r326403 - in head/sys: arm64/include ddb dev/fb dev/mc146818 mips/include powerpc/include powerpc/powerpc riscv/include sparc64/include vm

2017-11-30 Thread Pedro Giffuni
... On 30/11/2017 12:44, Rodney W. Grimes wrote: [ Charset UTF-8 unsupported, converting... ] Author: pfg Date: Thu Nov 30 15:48:35 2017 New Revision: 326403 URL: https://svnweb.freebsd.org/changeset/base/326403 Log: SPDX: Consider code from Carnegie-Mellon University. Interesting ca

svn commit: r326406 - in head: share/man/man4 sys/arm64/cloudabi32 sys/conf sys/modules

2017-11-30 Thread Ed Schouten
Author: ed Date: Thu Nov 30 17:58:48 2017 New Revision: 326406 URL: https://svnweb.freebsd.org/changeset/base/326406 Log: Port cloudabi32.ko to FreeBSD/arm64. This change adds an implementation of a sysent for running CloudABI armv6 and armv7 binaries on FreeBSD/arm64. It is a somewhat li

Re: svn commit: r326403 - in head/sys: arm64/include ddb dev/fb dev/mc146818 mips/include powerpc/include powerpc/powerpc riscv/include sparc64/include vm

2017-11-30 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: pfg > Date: Thu Nov 30 15:48:35 2017 > New Revision: 326403 > URL: https://svnweb.freebsd.org/changeset/base/326403 > > Log: > SPDX: Consider code from Carnegie-Mellon University. > > Interesting cases, most likely from CMU Mach sources

Re: svn commit: r326398 - in head: sys/netpfil/pf sys/sparc64/pci sys/sys sys/x86/isa usr.bin/gencat usr.sbin/ppp usr.sbin/watch

2017-11-30 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: pfg > Date: Thu Nov 30 15:10:11 2017 > New Revision: 326398 > URL: https://svnweb.freebsd.org/changeset/base/326398 > > Log: > SPDX: Fix some cases wrongly attributed to MIT. > > In the cases of BSD-style license variants without clause

svn commit: r326405 - head/sys/ddb

2017-11-30 Thread Pedro F. Giffuni
Author: pfg Date: Thu Nov 30 15:58:38 2017 New Revision: 326405 URL: https://svnweb.freebsd.org/changeset/base/326405 Log: SPDX: oops .. not from CMU. Modified: head/sys/ddb/db_capture.c Modified: head/sys/ddb/db_capture.c =

svn commit: r326403 - in head/sys: arm64/include ddb dev/fb dev/mc146818 mips/include powerpc/include powerpc/powerpc riscv/include sparc64/include vm

2017-11-30 Thread Pedro F. Giffuni
Author: pfg Date: Thu Nov 30 15:48:35 2017 New Revision: 326403 URL: https://svnweb.freebsd.org/changeset/base/326403 Log: SPDX: Consider code from Carnegie-Mellon University. Interesting cases, most likely from CMU Mach sources. Modified: head/sys/arm64/include/profile.h head/sys/ddb/

svn commit: r326402 - head/sys/vm

2017-11-30 Thread Pedro F. Giffuni
Author: pfg Date: Thu Nov 30 15:45:42 2017 New Revision: 326402 URL: https://svnweb.freebsd.org/changeset/base/326402 Log: SPDX: wrong license. Modified: head/sys/vm/default_pager.c Modified: head/sys/vm/default_pager.c

Re: svn commit: r326385 - head/usr.bin/pr

2017-11-30 Thread Warner Losh
On Thu, Nov 30, 2017 at 3:44 AM, Ed Schouten wrote: > 2017-11-30 8:08 GMT+01:00 Eitan Adler : > > Permitted by https://www.freebsd.org/copyright/license.html > > [...] > > * Copyright (c) 1991 Keith Muller. > > Isn't it the case that this only allows us to remove this clause from > code that

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

2017-11-30 Thread Alan Somers
Author: asomers Date: Thu Nov 30 15:36:06 2017 New Revision: 326401 URL: https://svnweb.freebsd.org/changeset/base/326401 Log: Fix assertion when ZFS fails to open certain devices "panic: vdev_geom_close_locked: cp->private is NULL" This panic will result if ZFS fails to open a device due

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

2017-11-30 Thread Alan Somers
Author: asomers Date: Thu Nov 30 15:34:55 2017 New Revision: 326400 URL: https://svnweb.freebsd.org/changeset/base/326400 Log: Revert r326399 Accidentally committed wrong file Pointy hat to:asomers Sponsored by: Spectra Logic Corp Modified: head/sys/cddl/contrib/opensolari

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

2017-11-30 Thread Alan Somers
Crap. Committed the wrong file. Fix coming shortly. On Thu, Nov 30, 2017 at 8:28 AM, Alan Somers wrote: > Author: asomers > Date: Thu Nov 30 15:28:29 2017 > New Revision: 326399 > URL: https://svnweb.freebsd.org/changeset/base/326399 > > Log: > Fix assertion when ZFS fails to open certain dev

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

2017-11-30 Thread Alan Somers
Author: asomers Date: Thu Nov 30 15:28:29 2017 New Revision: 326399 URL: https://svnweb.freebsd.org/changeset/base/326399 Log: Fix assertion when ZFS fails to open certain devices "panic: vdev_geom_close_locked: cp->private is NULL" This panic will result if ZFS fails to open a device due

svn commit: r326398 - in head: sys/netpfil/pf sys/sparc64/pci sys/sys sys/x86/isa usr.bin/gencat usr.sbin/ppp usr.sbin/watch

2017-11-30 Thread Pedro F. Giffuni
Author: pfg Date: Thu Nov 30 15:10:11 2017 New Revision: 326398 URL: https://svnweb.freebsd.org/changeset/base/326398 Log: SPDX: Fix some cases wrongly attributed to MIT. In the cases of BSD-style license variants without clauses, use 0BSD for the time being in lack of a better descriptio

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

2017-11-30 Thread Hartmann, O.
On Wed, 29 Nov 2017 23:28:40 + (UTC) Hans Petter Selasky wrote: > Author: hselasky > Date: Wed Nov 29 23:28:40 2017 > New Revision: 326376 > URL: https://svnweb.freebsd.org/changeset/base/326376 > > Log: > The sched_add() function is not only used when the thread is > initially started, bu

svn commit: r326395 - head/sys/fs/devfs

2017-11-30 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 30 14:06:54 2017 New Revision: 326395 URL: https://svnweb.freebsd.org/changeset/base/326395 Log: r326394 is calling malloc with M_WAITOK under a lock, revert for now Reported by: andrew Modified: head/sys/fs/devfs/devfs_dir.c Modified: head/sys/fs/devfs/devfs

svn commit: r326394 - head/sys/fs/devfs

2017-11-30 Thread Emmanuel Vadot
Author: manu Date: Thu Nov 30 12:38:42 2017 New Revision: 326394 URL: https://svnweb.freebsd.org/changeset/base/326394 Log: devfs: Avoid a malloc/free if we just need to increment the refcount MFC after:1 week Sponsored by: Gandi.net Modified: head/sys/fs/devfs/devfs_dir.c Modifie

svn commit: r326393 - head/sys/ddb

2017-11-30 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Nov 30 12:22:15 2017 New Revision: 326393 URL: https://svnweb.freebsd.org/changeset/base/326393 Log: Make the ddb(4) "set" command list variables when called without parameters. Obtained from:CheriBSD MFC after:2 weeks Sponsored by: DARPA, AFRL Modif

Re: svn commit: r326314 - in head/sys: ddb kern sys

2017-11-30 Thread Edward Napierala
2017-11-28 17:04 GMT+00:00 Bruce Evans : > On Tue, 28 Nov 2017, Edward Tomasz Napierala wrote: > > Log: >> Make kdb_reenter() silent when explicitly called from db_error(). >> This removes the useless backtrace on various ddb(4) user errors. >> >> Reviewed by: jhb@ >> Obtained from: CheriBSD

svn commit: r326392 - head/sys/net

2017-11-30 Thread Hans Petter Selasky
Author: hselasky Date: Thu Nov 30 11:35:22 2017 New Revision: 326392 URL: https://svnweb.freebsd.org/changeset/base/326392 Log: Properly define the VLAN_XXX() function macros to avoid miscompilation when used inside "if" statements comparing with another value. Detailed explanation: "if

Re: svn commit: r326385 - head/usr.bin/pr

2017-11-30 Thread Ed Schouten
2017-11-30 8:08 GMT+01:00 Eitan Adler : > Permitted by https://www.freebsd.org/copyright/license.html > [...] > * Copyright (c) 1991 Keith Muller. Isn't it the case that this only allows us to remove this clause from code that has the university as the sole copyright holder? In this case we sh

svn commit: r326391 - head/sbin/fsck_msdosfs

2017-11-30 Thread Xin LI
Author: delphij Date: Thu Nov 30 08:28:17 2017 New Revision: 326391 URL: https://svnweb.freebsd.org/changeset/base/326391 Log: Prevent OOB access on corrupted msdos directories. Submitted by: Veo Zhang MFC after:2 weeks Modified: head/sbin/fsck_msdosfs/dir.c Modified: head/sbin/f

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

2017-11-30 Thread Fabien Thomas
Author: fabient Date: Thu Nov 30 08:28:04 2017 New Revision: 326390 URL: https://svnweb.freebsd.org/changeset/base/326390 Log: Update man page for r325354. Reported by: bjk Modified: head/share/man/man9/crypto.9 Modified: head/share/man/man9/crypto.9 ===

svn commit: r326389 - head/usr.bin/pr

2017-11-30 Thread Eitan Adler
Author: eadler Date: Thu Nov 30 08:23:40 2017 New Revision: 326389 URL: https://svnweb.freebsd.org/changeset/base/326389 Log: Finish cleaning up license :\ Modified: head/usr.bin/pr/extern.h Modified: head/usr.bin/pr/extern.h ==