svn commit: r325736 - in head: lib/libcasper/libcasper sbin/ping

2017-11-11 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Nov 12 07:18:10 2017 New Revision: 325736 URL: https://svnweb.freebsd.org/changeset/base/325736 Log: We return a pointer when we are using cap_init() or cap_service_open() function, so check if cap_chanel_t is NULL is not enough. Casper with a normal libc will

Re: svn commit: r325734 - head/sys/amd64/amd64

2017-11-11 Thread Bruce Evans
On Sun, 12 Nov 2017, Bruce Evans wrote: On Sun, 12 Nov 2017, Mateusz Guzik wrote: Log: amd64: stop nesting preemption counter in spinlock_enter Discussed with:jhb This seems to break it. i386 still has the old code. ... The main broken case is: - both levels initially 0 -

Re: svn commit: r325734 - head/sys/amd64/amd64

2017-11-11 Thread Bruce Evans
On Sun, 12 Nov 2017, Mateusz Guzik wrote: Log: amd64: stop nesting preemption counter in spinlock_enter Discussed with:jhb This seems to break it. i386 still has the old code. It also moves the critical section a little, so that it is inconsistent for enter/exit. I think the

Re: svn commit: r325721 - in head/sys: kern sys

2017-11-11 Thread Mateusz Guzik
On Sun, Nov 12, 2017 at 5:32 AM, Mark Johnston wrote: > On Sat, Nov 11, 2017 at 06:04:40PM +, Mateusz Guzik wrote: > > Author: mjg > > Date: Sat Nov 11 18:04:39 2017 > > New Revision: 325721 > > URL: https://svnweb.freebsd.org/changeset/base/325721 > > > > Log: > > Add

Re: svn commit: r325721 - in head/sys: kern sys

2017-11-11 Thread Mark Johnston
On Sat, Nov 11, 2017 at 06:04:40PM +, Mateusz Guzik wrote: > Author: mjg > Date: Sat Nov 11 18:04:39 2017 > New Revision: 325721 > URL: https://svnweb.freebsd.org/changeset/base/325721 > > Log: > Add pfind_any > > It looks for both regular and zombie processes. This avoids allproc >

svn commit: r325735 - head/lib/libkvm

2017-11-11 Thread Will Andrews
Author: will Date: Sun Nov 12 03:28:47 2017 New Revision: 325735 URL: https://svnweb.freebsd.org/changeset/base/325735 Log: libkvm: fix lib32 build. Modified: head/lib/libkvm/kvm_i386.c Modified: head/lib/libkvm/kvm_i386.c

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

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sun Nov 12 03:13:01 2017 New Revision: 325734 URL: https://svnweb.freebsd.org/changeset/base/325734 Log: amd64: stop nesting preemption counter in spinlock_enter Discussed with: jhb Modified: head/sys/amd64/amd64/machdep.c Modified:

Re: svn commit: r325728 - head/lib/libkvm

2017-11-11 Thread Matt Joras
On 11/11/2017 15:30, Will Andrews wrote: > Author: will > Date: Sat Nov 11 23:30:58 2017 > New Revision: 325728 > URL: https://svnweb.freebsd.org/changeset/base/325728 > > Log: > libkvm: add kvm_walk_pages API. > > This API allows callers to enumerate all known pages, including any >

svn commit: r325733 - head/sys/kern

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sun Nov 12 02:34:33 2017 New Revision: 325733 URL: https://svnweb.freebsd.org/changeset/base/325733 Log: Use passed thread pointer instead of curthread in sys_sched_yield No functional changes. Modified: head/sys/kern/p1003_1b.c Modified: head/sys/kern/p1003_1b.c

svn commit: r325732 - head/lib/libkvm

2017-11-11 Thread Will Andrews
Author: will Date: Sun Nov 12 01:36:48 2017 New Revision: 325732 URL: https://svnweb.freebsd.org/changeset/base/325732 Log: libkvm: fix build failures Modified: head/lib/libkvm/kvm.h head/lib/libkvm/kvm_aarch64.h head/lib/libkvm/kvm_amd64.c head/lib/libkvm/kvm_amd64.h

svn commit: r325731 - stable/10/sys/netpfil/ipfw

2017-11-11 Thread Don Lewis
Author: truckman Date: Sun Nov 12 01:28:20 2017 New Revision: 325731 URL: https://svnweb.freebsd.org/changeset/base/325731 Log: MFC r325008 Fix Dummynet AQM packet marking function ecn_mark() and fq_codel / fq_pie schedulers packet classification functions in layer2 (bridge mode).

svn commit: r325730 - stable/11/sys/netpfil/ipfw

2017-11-11 Thread Don Lewis
Author: truckman Date: Sun Nov 12 01:26:43 2017 New Revision: 325730 URL: https://svnweb.freebsd.org/changeset/base/325730 Log: MFC r325008 Fix Dummynet AQM packet marking function ecn_mark() and fq_codel / fq_pie schedulers packet classification functions in layer2 (bridge mode).

svn commit: r325729 - head/lib/libkvm

2017-11-11 Thread Will Andrews
Author: will Date: Sun Nov 12 00:00:38 2017 New Revision: 325729 URL: https://svnweb.freebsd.org/changeset/base/325729 Log: libkvm: fix 'index' shadowing. Modified: head/lib/libkvm/kvm_private.c Modified: head/lib/libkvm/kvm_private.c

svn commit: r325728 - head/lib/libkvm

2017-11-11 Thread Will Andrews
Author: will Date: Sat Nov 11 23:30:58 2017 New Revision: 325728 URL: https://svnweb.freebsd.org/changeset/base/325728 Log: libkvm: add kvm_walk_pages API. This API allows callers to enumerate all known pages, including any direct map & kernel map virtual addresses, physical addresses,

svn commit: r325727 - head/usr.sbin/bhyve

2017-11-11 Thread Bartek Rutkowski
Author: robak (ports committer) Date: Sat Nov 11 22:50:14 2017 New Revision: 325727 URL: https://svnweb.freebsd.org/changeset/base/325727 Log: bhyve: avoid applying capsicum capabilities to file that was not opened When using -l option targeting file that can't be opened (ie. nmdm module

svn commit: r325726 - head/sys/kern

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 11 22:39:33 2017 New Revision: 325726 URL: https://svnweb.freebsd.org/changeset/base/325726 Log: Avoid locking and refing in sysctl_kern_proc_args if possible. Turns out the sysctl is called a lot e.g. by pkg-static. Modified: head/sys/kern/kern_proc.c

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

2017-11-11 Thread Hans Petter Selasky
On 11/11/17 22:50, Mateusz Guzik wrote: Author: mjg Date: Sat Nov 11 21:50:36 2017 New Revision: 325725 URL: https://svnweb.freebsd.org/changeset/base/325725 Log: sysctl: try to avoid malloc in name2oid name2oid is called all the time and passed names are almost always very short

svn commit: r325725 - head/sys/kern

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 11 21:50:36 2017 New Revision: 325725 URL: https://svnweb.freebsd.org/changeset/base/325725 Log: sysctl: try to avoid malloc in name2oid name2oid is called all the time and passed names are almost always very short (< 16 characters). Modified:

svn commit: r325724 - head/sys/dev/vt

2017-11-11 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 11 20:12:48 2017 New Revision: 325724 URL: https://svnweb.freebsd.org/changeset/base/325724 Log: Implement missing KDGETMODE IOCTL in VT. Obtained from:Johannes Lundberg Sponsored by: Mellanox Technologies MFC after:1

Re: svn commit: r325702 - in head: . share/man/man5 share/man/man7 usr.bin/mail

2017-11-11 Thread Rodney W. Grimes
> Author: eadler > Date: Sat Nov 11 07:00:40 2017 > New Revision: 325702 > URL: https://svnweb.freebsd.org/changeset/base/325702 > > Log: > mailaddr(7): wave goodbye > > The information here is somewhere between ancient to obsolete. 20% of the information here is somewhat obsolete, 80% of

svn commit: r325723 - head/usr.bin/find

2017-11-11 Thread Xin LI
Author: delphij Date: Sat Nov 11 19:18:47 2017 New Revision: 325723 URL: https://svnweb.freebsd.org/changeset/base/325723 Log: find(1): Don't treat statfs() error as fatal in f_fstype, which can happen when a directory is removed in the middle of find. Instead of a full err(), allow find

svn commit: r325722 - in head/sys: compat/linux kern

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 11 18:10:09 2017 New Revision: 325722 URL: https://svnweb.freebsd.org/changeset/base/325722 Log: Use pfind_any in linux_rt_sigqueueinfo and kern_sigqueue Modified: head/sys/compat/linux/linux_signal.c head/sys/kern/kern_sig.c Modified:

Re: svn commit: r325705 - head/secure

2017-11-11 Thread Eitan Adler
On 11 November 2017 at 09:21, Bryan Drewery wrote: > On 11/10/17 11:21 PM, Eitan Adler wrote: >> Author: eadler >> Date: Sat Nov 11 07:21:49 2017 >> New Revision: 325705 >> URL: https://svnweb.freebsd.org/changeset/base/325705 >> >> Log: >> secure: chase removal of

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

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 11 18:04:39 2017 New Revision: 325721 URL: https://svnweb.freebsd.org/changeset/base/325721 Log: Add pfind_any It looks for both regular and zombie processes. This avoids allproc relocking previously seen with pfind -> zpfind calls. Modified:

svn commit: r325720 - head/sys/kern

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 11 18:03:26 2017 New Revision: 325720 URL: https://svnweb.freebsd.org/changeset/base/325720 Log: Avoid allproc lock in pfind if curproc->pid == pid Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c

svn commit: r325719 - head/sys/kern

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 11 18:02:23 2017 New Revision: 325719 URL: https://svnweb.freebsd.org/changeset/base/325719 Log: Remove useless proc lookup from sysctl_out_proc Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c

Re: svn commit: r325705 - head/secure

2017-11-11 Thread Bryan Drewery
On 11/10/17 11:21 PM, Eitan Adler wrote: > Author: eadler > Date: Sat Nov 11 07:21:49 2017 > New Revision: 325705 > URL: https://svnweb.freebsd.org/changeset/base/325705 > > Log: > secure: chase removal of pkg_install > > Modified: > head/secure/Makefile > > Modified: head/secure/Makefile >

svn commit: r325718 - head/tools/build/options

2017-11-11 Thread Warner Losh
Author: imp Date: Sat Nov 11 16:09:20 2017 New Revision: 325718 URL: https://svnweb.freebsd.org/changeset/base/325718 Log: Fix typo in filename. Noticed by: Shawn Webb Added: head/tools/build/options/WITHOUT_LOADER_GELI (contents, props changed) - copied, changed from r325694,

Re: svn commit: r325693 - in head: . share/mk sys/boot sys/boot/geli sys/boot/i386/gptboot sys/boot/i386/gptzfsboot sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/i386/zfsboot sys/boot/i386/zfslo

2017-11-11 Thread Warner Losh
On Sat, Nov 11, 2017 at 7:47 AM, Shawn Webb wrote: > On Fri, Nov 10, 2017 at 11:54:48PM +, Warner Losh wrote: > > Author: imp > > Date: Fri Nov 10 23:54:48 2017 > > New Revision: 325693 > > URL: https://svnweb.freebsd.org/changeset/base/325693 > > > > Log: > >

svn commit: r325717 - head/usr.bin/rctl

2017-11-11 Thread Baptiste Daroussin
Author: bapt Date: Sat Nov 11 15:18:25 2017 New Revision: 325717 URL: https://svnweb.freebsd.org/changeset/base/325717 Log: Remove __unused attributed on arguments that are actually used MFC after:3 days Modified: head/usr.bin/rctl/rctl.c Modified: head/usr.bin/rctl/rctl.c

Re: svn commit: r325693 - in head: . share/mk sys/boot sys/boot/geli sys/boot/i386/gptboot sys/boot/i386/gptzfsboot sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/i386/zfsboot sys/boot/i386/zfslo

2017-11-11 Thread Shawn Webb
On Fri, Nov 10, 2017 at 11:54:48PM +, Warner Losh wrote: > Author: imp > Date: Fri Nov 10 23:54:48 2017 > New Revision: 325693 > URL: https://svnweb.freebsd.org/changeset/base/325693 > > Log: > Move LOADER_{NO,}_GELI_SUPPORT to MK_LOADER_GELI > > Transition to WITH/WITHOUT_LOADER_GELI

svn commit: r325716 - head/lib/libutil

2017-11-11 Thread Baptiste Daroussin
Author: bapt Date: Sat Nov 11 14:39:13 2017 New Revision: 325716 URL: https://svnweb.freebsd.org/changeset/base/325716 Log: Fix some nroff style issue MFC after:3 days Modified: head/lib/libutil/hexdump.3 Modified: head/lib/libutil/hexdump.3

svn commit: r325715 - head/usr.bin/vmstat

2017-11-11 Thread Allan Jude
Author: allanjude Date: Sat Nov 11 14:02:21 2017 New Revision: 325715 URL: https://svnweb.freebsd.org/changeset/base/325715 Log: vmstat: fix duplicate key in libxo output In the libxo output from vmstat, the number of pages that have been paged out uses the same key name as the number of

svn commit: r325714 - head/lib/libzstd

2017-11-11 Thread Baptiste Daroussin
Author: bapt Date: Sat Nov 11 13:57:30 2017 New Revision: 325714 URL: https://svnweb.freebsd.org/changeset/base/325714 Log: Follow up on zstd update Modified: head/lib/libzstd/Makefile Modified: head/lib/libzstd/Makefile

svn commit: r325713 - in head/contrib/zstd: . contrib/gen_html contrib/pzstd contrib/pzstd/test contrib/pzstd/utils contrib/pzstd/utils/test contrib/seekable_format doc doc/educational_decoder lib ...

2017-11-11 Thread Baptiste Daroussin
Author: bapt Date: Sat Nov 11 13:54:37 2017 New Revision: 325713 URL: https://svnweb.freebsd.org/changeset/base/325713 Log: Update to zstd 1.3.2 Added: head/contrib/zstd/COPYING - copied unchanged from r325712, vendor/zstd/dist/COPYING head/contrib/zstd/contrib/seekable_format/ -

svn commit: r325712 - stable/11/lib/libc/stdlib

2017-11-11 Thread Konstantin Belousov
Author: kib Date: Sat Nov 11 12:16:19 2017 New Revision: 325712 URL: https://svnweb.freebsd.org/changeset/base/325712 Log: MFC r325389: C++17 requires quick_exit(3) to be async-signal safe. Modified: stable/11/lib/libc/stdlib/quick_exit.3 stable/11/lib/libc/stdlib/quick_exit.c Directory

svn commit: r325711 - in stable/11/sys: amd64/amd64 i386/i386

2017-11-11 Thread Konstantin Belousov
Author: kib Date: Sat Nov 11 12:12:26 2017 New Revision: 325711 URL: https://svnweb.freebsd.org/changeset/base/325711 Log: MFC r325388: x86: Do not emit unused TD_TID symbols. Modified: stable/11/sys/amd64/amd64/genassym.c stable/11/sys/i386/i386/genassym.c Directory Properties:

svn commit: r325710 - stable/11/sys/i386/i386

2017-11-11 Thread Konstantin Belousov
Author: kib Date: Sat Nov 11 12:09:33 2017 New Revision: 325710 URL: https://svnweb.freebsd.org/changeset/base/325710 Log: MFC r325387: Eliminate unused load. Modified: stable/11/sys/i386/i386/swtch.s Directory Properties: stable/11/ (props changed) Modified:

svn commit: r325709 - stable/11/sys/kern

2017-11-11 Thread Konstantin Belousov
Author: kib Date: Sat Nov 11 12:08:07 2017 New Revision: 325709 URL: https://svnweb.freebsd.org/changeset/base/325709 Log: MFC r325386: Convert explicit panic() call to assert. Modified: stable/11/sys/kern/kern_umtx.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r325708 - in head/sys/compat/linuxkpi/common: include/linux src

2017-11-11 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 11 11:01:50 2017 New Revision: 325708 URL: https://svnweb.freebsd.org/changeset/base/325708 Log: Remove release and acquire semantics when accessing the "state" field of the LinuxKPI task struct. Change type of "state" variable from "int" to "atomic_t" to

svn commit: r325707 - head/sys/compat/linuxkpi/common/include/linux

2017-11-11 Thread Hans Petter Selasky
Author: hselasky Date: Sat Nov 11 10:46:12 2017 New Revision: 325707 URL: https://svnweb.freebsd.org/changeset/base/325707 Log: Mask away return codes from del_timer() and del_timer_sync() because they are not the same like in Linux. MFC after:1 week Sponsored by: Mellanox

svn commit: r325706 - head/sys/kern

2017-11-11 Thread Mateusz Guzik
Author: mjg Date: Sat Nov 11 09:34:11 2017 New Revision: 325706 URL: https://svnweb.freebsd.org/changeset/base/325706 Log: rwlock: use fcmpset for setting RW_LOCK_WRITE_SPINNER Modified: head/sys/kern/kern_rwlock.c Modified: head/sys/kern/kern_rwlock.c