svn commit: r325389 - head/lib/libc/stdlib

2017-11-04 Thread Konstantin Belousov
Author: kib Date: Sat Nov 4 10:52:58 2017 New Revision: 325389 URL: https://svnweb.freebsd.org/changeset/base/325389 Log: C++17 requires quick_exit(3) to be async-signal safe. Make it safe, and update man page with the useful information. Sponsored by: The FreeBSD Foundation MFC aft

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

2017-11-05 Thread Konstantin Belousov
On Sun, Nov 05, 2017 at 03:06:22AM +1100, Bruce Evans wrote: > On Sun, 22 Oct 2017, Konstantin Belousov wrote: > > > Author: kib > > Date: Sun Oct 22 08:11:45 2017 > > New Revision: 324853 > > URL: https://svnweb.freebsd.org/changeset/base/324853 > > > &

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

2017-11-05 Thread Konstantin Belousov
ctly fits into this model. > > Best, > Conrad > > On Sat, Nov 4, 2017 at 3:49 AM, Konstantin Belousov wrote: > > Author: kib > > Date: Sat Nov 4 10:49:34 2017 > > New Revision: 325386 > > URL: https://svnweb.freebsd.org/changeset/base/325386 > >

svn commit: r325435 - head/sys/ufs/ffs

2017-11-05 Thread Konstantin Belousov
Author: kib Date: Sun Nov 5 13:28:48 2017 New Revision: 325435 URL: https://svnweb.freebsd.org/changeset/base/325435 Log: Improve the message printed when the cylinder group checksum is wrong. Mention the device path and mount point path, handle snapshots. Tested by:imp Sponsore

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

2017-11-05 Thread Konstantin Belousov
On Mon, Nov 06, 2017 at 01:46:49AM +1100, Bruce Evans wrote: > On Sun, 5 Nov 2017, Konstantin Belousov wrote: > > > On Sun, Nov 05, 2017 at 03:06:22AM +1100, Bruce Evans wrote: > >> On Sun, 22 Oct 2017, Konstantin Belousov wrote: > >> > >>> Author

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

2017-11-05 Thread Konstantin Belousov
On Sun, Nov 05, 2017 at 09:16:28AM -0800, Conrad Meyer wrote: > On Sun, Nov 5, 2017 at 5:06 AM, Konstantin Belousov > wrote: > > On Sat, Nov 04, 2017 at 12:04:56PM -0700, Conrad Meyer wrote: > >> This is a functional change, because MPASS (via KASSERT) is only > >

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

2017-11-05 Thread Konstantin Belousov
On Sun, Nov 05, 2017 at 11:42:51AM -0700, Warner Losh wrote: > On Sun, Nov 5, 2017 at 11:32 AM, Conrad Meyer wrote: > > > E.g., > > > > --- a/sys/ufs/ffs/ffs_alloc.c > > +++ b/sys/ufs/ffs/ffs_alloc.c > > @@ -304,8 +304,7 @@ retry: > > } > > > > if (bp->b_blkno == bp->b_lblkno) { >

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

2017-11-05 Thread Konstantin Belousov
Author: kib Date: Sun Nov 5 20:03:57 2017 New Revision: 325447 URL: https://svnweb.freebsd.org/changeset/base/325447 Log: Zero the structure instead of the pointer to it. Reported by: Don Morris MFC after:4 days Modified: head/sys/amd64/amd64/pmap.c Modified: head/sys/amd64/amd

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

2017-11-05 Thread Konstantin Belousov
On Sun, Nov 05, 2017 at 12:37:50PM -0700, Ian Lepore wrote: > IMO, the only reason ASSERT-style macros exist is to hide the > conditional-on-build-type part of the operation.  That is, to avoid > having #ifdef INVARIANTS scattered everywhere. bde' point is that KASSERT() is badly designed, and I ag

svn commit: r325452 - in head: . rescue/rescue sbin sbin/badsect sys/mips/rmi usr.sbin/crunch/examples

2017-11-05 Thread Konstantin Belousov
Author: kib Date: Sun Nov 5 22:00:54 2017 New Revision: 325452 URL: https://svnweb.freebsd.org/changeset/base/325452 Log: Remove badsect(8). Failure modes of the modern (that is, produced in the last 25 years) hard drives and SSDs made the utility outdated. Since the kernel interface

svn commit: r325506 - in head: sbin/ifconfig sys/net sys/sys

2017-11-07 Thread Konstantin Belousov
Author: kib Date: Tue Nov 7 09:29:14 2017 New Revision: 325506 URL: https://svnweb.freebsd.org/changeset/base/325506 Log: Add a place for a driver to report rx timestamps in nanoseconds from boot for the received packets. The rcv_tstmp field overlaps the place of Ln header length indicat

svn commit: r325507 - in head/sys: netinet netinet6 sys

2017-11-07 Thread Konstantin Belousov
Author: kib Date: Tue Nov 7 09:46:26 2017 New Revision: 325507 URL: https://svnweb.freebsd.org/changeset/base/325507 Log: Use hardware timestamps to report packet timestamps for SO_TIMESTAMP and other similar socket options. Provide new control message SCM_TIME_INFO to supply information

svn commit: r325509 - head/sys/sys

2017-11-07 Thread Konstantin Belousov
Author: kib Date: Tue Nov 7 09:47:54 2017 New Revision: 325509 URL: https://svnweb.freebsd.org/changeset/base/325509 Log: Bump __FreeBSD_version after struct mbuf KBI breakage in r325506. Sponsored by: Mellanox Technologies Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

Re: svn commit: r325506 - in head: sbin/ifconfig sys/net sys/sys

2017-11-07 Thread Konstantin Belousov
On Tue, Nov 07, 2017 at 09:06:52AM -0800, John Baldwin wrote: > On Tuesday, November 07, 2017 09:29:15 AM Konstantin Belousov wrote: > > Author: kib > > Date: Tue Nov 7 09:29:14 2017 > > New Revision: 325506 > > URL: https://svnweb.freebsd.org/changeset/base/325506 >

Re: svn commit: r325506 - in head: sbin/ifconfig sys/net sys/sys

2017-11-07 Thread Konstantin Belousov
On Tue, Nov 07, 2017 at 07:39:26PM +0200, Konstantin Belousov wrote: > On Tue, Nov 07, 2017 at 09:06:52AM -0800, John Baldwin wrote: > > On Tuesday, November 07, 2017 09:29:15 AM Konstantin Belousov wrote: > > > Author: kib > > > Date: Tue Nov 7 09:29:14 2017 > >

Re: svn commit: r325506 - in head: sbin/ifconfig sys/net sys/sys

2017-11-07 Thread Konstantin Belousov
On Tue, Nov 07, 2017 at 11:00:33AM -0800, John Baldwin wrote: > On Tuesday, November 07, 2017 07:44:31 PM Konstantin Belousov wrote: > > On Tue, Nov 07, 2017 at 07:39:26PM +0200, Konstantin Belousov wrote: > > > On Tue, Nov 07, 2017 at 09:06:52AM -0800, John Baldwin wrote:

svn commit: r325553 - head/sys/i386/i386

2017-11-08 Thread Konstantin Belousov
Author: kib Date: Wed Nov 8 13:05:14 2017 New Revision: 325553 URL: https://svnweb.freebsd.org/changeset/base/325553 Log: Remove useless DEBUG printfs in i386 sendsig() implementations. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/i386/i386/machdep.c M

Re: svn commit: r325530 - in head/sys: amd64/amd64 arm64/arm64 fs/tmpfs kern mips/mips powerpc/aim powerpc/powerpc sparc64/sparc64 vm x86/iommu

2017-11-08 Thread Konstantin Belousov
On Wed, Nov 08, 2017 at 11:41:15PM +0100, Emmanuel Vadot wrote: > > Hello Jeff, > > On Wed, 8 Nov 2017 02:39:37 + (UTC) > Jeff Roberson wrote: > > > Author: jeff > > Date: Wed Nov 8 02:39:37 2017 > > New Revision: 325530 > > URL: https://svnweb.freebsd.org/changeset/base/325530 > > > > L

svn commit: r325566 - head/sys/vm

2017-11-08 Thread Konstantin Belousov
Author: kib Date: Wed Nov 8 23:25:05 2017 New Revision: 325566 URL: https://svnweb.freebsd.org/changeset/base/325566 Log: Fix operator priority. Sponsored by: The FreeBSD Foundation Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c ==

svn commit: r325567 - head/sys/kern

2017-11-08 Thread Konstantin Belousov
Author: kib Date: Wed Nov 8 23:32:56 2017 New Revision: 325567 URL: https://svnweb.freebsd.org/changeset/base/325567 Log: Zero whole struct ptrace_lwpinfo to not leak kernel stack data. Reported by: Ilja Van Sprundel Discussed with: secteam Reviewed by: jhb Sponsored by: The

svn commit: r325588 - head/sys/x86/iommu

2017-11-09 Thread Konstantin Belousov
Author: kib Date: Thu Nov 9 13:09:07 2017 New Revision: 325588 URL: https://svnweb.freebsd.org/changeset/base/325588 Log: Correct operators precedence. Also keep the calculated vm_page_alloc_contig() flags in the variable to not re-evaluate it on the loop iteration. Noted by: alc

svn commit: r325671 - head/sys/dev/hwpmc

2017-11-10 Thread Konstantin Belousov
Author: kib Date: Fri Nov 10 19:10:14 2017 New Revision: 325671 URL: https://svnweb.freebsd.org/changeset/base/325671 Log: Check that the pmc index is less than the number of hardware PMCs, instead of asserting the condition. The row index is directly supplied by userspace, the kernel mus

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

2017-11-12 Thread Konstantin Belousov
On Sun, Nov 12, 2017 at 12:16:22AM -0800, Eitan Adler wrote: > On 11 November 2017 at 11:21, Rodney W. Grimes > wrote: > >> Author: eadler > >> Date: Sat Nov 11 07:00:40 2017 > >> New Revision: 325702 > >> URL: https://svnweb.freebsd.org/changeset/base/325702 > >> > >> Log: > >> mailaddr(7): wav

svn commit: r325758 - head/sys/dev/hwpmc

2017-11-13 Thread Konstantin Belousov
Author: kib Date: Mon Nov 13 10:43:31 2017 New Revision: 325758 URL: https://svnweb.freebsd.org/changeset/base/325758 Log: Style bug. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/dev/hwpmc/hwpmc_logging.c Modified: head/sys/dev/hwpmc/hwpmc_logging.c ===

svn commit: r325759 - head/sys/dev/hwpmc

2017-11-13 Thread Konstantin Belousov
Author: kib Date: Mon Nov 13 10:45:31 2017 New Revision: 325759 URL: https://svnweb.freebsd.org/changeset/base/325759 Log: Do not leak PMC_PO_OWNS_LOGFILE on error. Note that PMCLOG_RESERVE_WITH_ERROR() macro contains goto error; statement and executed after the flag is set. Reported

svn commit: r325852 - in head/sys: sys vm

2017-11-15 Thread Konstantin Belousov
Author: kib Date: Wed Nov 15 13:41:03 2017 New Revision: 325852 URL: https://svnweb.freebsd.org/changeset/base/325852 Log: vmtotal: extend memory counters to accomodate for current and future hardware sizes. 32bit counters already overflow on approachable virtual memory page counts, and

svn commit: r325892 - in head/sys: conf i386/conf i386/i386 i386/include i386/pci i386/xbox isa x86/x86

2017-11-16 Thread Konstantin Belousov
Author: kib Date: Thu Nov 16 14:27:02 2017 New Revision: 325892 URL: https://svnweb.freebsd.org/changeset/base/325892 Log: Remove i386 XBOX support. It is for console presented at 2001 and featuring Pentium III processor. Even if any of them are still alive and run FreeBSD, we do not h

svn commit: r325893 - in head: . etc/mtree share/man/man7 share/man/man9 targets/pseudo/hosttools targets/pseudo/userland usr.bin usr.bin/xlint

2017-11-16 Thread Konstantin Belousov
Author: kib Date: Thu Nov 16 14:37:18 2017 New Revision: 325893 URL: https://svnweb.freebsd.org/changeset/base/325893 Log: Remove xlint(1). xlint is currently a fossil. We have much more useful and alive tools to do now what xlint did twenty years ago. I did not cleared some stuff w

svn commit: r325956 - in head/share/man: man7 man9

2017-11-17 Thread Konstantin Belousov
Author: kib Date: Fri Nov 17 19:10:10 2017 New Revision: 325956 URL: https://svnweb.freebsd.org/changeset/base/325956 Log: Bump dates after lint removal. Noted by: wblock Sponsored by: The FreeBSD Foundation Modified: head/share/man/man7/hier.7 head/share/man/man9/style.9 Modifi

Re: svn commit: r325965 - head/libexec/rtld-elf

2017-11-18 Thread Konstantin Belousov
On Sat, Nov 18, 2017 at 01:21:22PM +, Edward Tomasz Napierala wrote: > Author: trasz > Date: Sat Nov 18 13:21:22 2017 > New Revision: 325965 > URL: https://svnweb.freebsd.org/changeset/base/325965 > > Log: > Increase rtld initial memory pool size from 32kB to 128kB. > > The old value wa

Re: svn commit: r325638 - in head/sys: conf dev/mlx5 dev/mlx5/mlx5_core dev/mlx5/mlx5_en modules/mlx5

2017-11-18 Thread Konstantin Belousov
On Fri, Nov 10, 2017 at 09:49:08AM +, Hans Petter Selasky wrote: > Author: hselasky > Date: Fri Nov 10 09:49:08 2017 > New Revision: 325638 > URL: https://svnweb.freebsd.org/changeset/base/325638 > > Log: > Refactor the flowsteering APIs used by mlx5en(4). This change is needed by > the co

svn commit: r325995 - head/sys/net

2017-11-19 Thread Konstantin Belousov
Author: kib Date: Sun Nov 19 11:21:16 2017 New Revision: 325995 URL: https://svnweb.freebsd.org/changeset/base/325995 Log: Fix build. Sponsored by: The FreeBSD Foundation Modified: head/sys/net/if_fddisubr.c Modified: head/sys/net/if_fddisubr.c ==

svn commit: r326073 - head/usr.bin/systat

2017-11-21 Thread Konstantin Belousov
Author: kib Date: Tue Nov 21 19:55:32 2017 New Revision: 326073 URL: https://svnweb.freebsd.org/changeset/base/326073 Log: systat: use and correctly display 64bit counters. Following struct vmtotal changes, make systat use and correctly display 64-bit counters. Switch to humanize_number(

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-22 Thread Konstantin Belousov
On Wed, Nov 22, 2017 at 08:59:21AM +1100, Bruce Evans wrote: > On Tue, 21 Nov 2017, Konstantin Belousov wrote: > > > Log: > > systat: use and correctly display 64bit counters. > > > > Following struct vmtotal changes, make systat use and correctly > >

svn commit: r326098 - head/sys/vm

2017-11-22 Thread Konstantin Belousov
Author: kib Date: Wed Nov 22 16:45:27 2017 New Revision: 326098 URL: https://svnweb.freebsd.org/changeset/base/326098 Log: Return different error code for the guard page layout violation. On KERN_NO_SPACE error, as it is returned now, vm_map_find() continues the loop searching for the sui

svn commit: r326108 - head/usr.bin/systat

2017-11-22 Thread Konstantin Belousov
Author: kib Date: Wed Nov 22 22:04:27 2017 New Revision: 326108 URL: https://svnweb.freebsd.org/changeset/base/326108 Log: Order declarations alphabetically. Match signess of the format and the value. Noted by: bde Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/systa

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-22 Thread Konstantin Belousov
On Thu, Nov 23, 2017 at 04:24:13AM +1100, Bruce Evans wrote: > sysctl/sysctl.c: >sysctl(8) has bogus support for prettyprinting struct vmtotal (sysctl >shouldn't have any prettyprinting, especially not for structs that have >specialized programs to print them and much more). This uses

svn commit: r326122 - in head: lib/libc/sys sys/kern sys/sys

2017-11-23 Thread Konstantin Belousov
Author: kib Date: Thu Nov 23 11:25:11 2017 New Revision: 326122 URL: https://svnweb.freebsd.org/changeset/base/326122 Log: Kill all descendants of the reaper, even if they are descendants of a subordinate reaper. Also, mark reapers when listing pids. Reported by: Michael Zuo PR:

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

2017-11-23 Thread Konstantin Belousov
Author: kib Date: Thu Nov 23 11:40:16 2017 New Revision: 326123 URL: https://svnweb.freebsd.org/changeset/base/326123 Log: Remove lint support from system headers and MD x86 headers. Reviewed by: dim, jhb Discussed with: imp Sponsored by: The FreeBSD Foundation Differential rev

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-23 Thread Konstantin Belousov
On Fri, Nov 24, 2017 at 12:10:09AM +1100, Bruce Evans wrote: > On Thu, 23 Nov 2017, Konstantin Belousov wrote: > > > On Thu, Nov 23, 2017 at 04:24:13AM +1100, Bruce Evans wrote: > >> sysctl/sysctl.c: > >>sysctl(8) has bogus support for prettyprinting struct vmt

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

2017-11-23 Thread Konstantin Belousov
Author: kib Date: Thu Nov 23 19:06:44 2017 New Revision: 326138 URL: https://svnweb.freebsd.org/changeset/base/326138 Log: Use C standard spelling uint64_t for u_int64_t. Submitted by: Pawel Biernacki Sponsored by: Mysterious Code Ltd. X-Differential revision: https://reviews.free

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

2017-11-23 Thread Konstantin Belousov
Author: kib Date: Thu Nov 23 19:10:09 2017 New Revision: 326139 URL: https://svnweb.freebsd.org/changeset/base/326139 Log: vmstat: use 64-bit counters from struct vmtotal. Consistently print counters using unsigned intmax type. Submitted by: Pawel Biernacki Sponsored by: Mysterious

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-24 Thread Konstantin Belousov
On Fri, Nov 24, 2017 at 08:15:06PM +1100, Bruce Evans wrote: > On Thu, 23 Nov 2017, Konstantin Belousov wrote: > > > On Fri, Nov 24, 2017 at 12:10:09AM +1100, Bruce Evans wrote: > >> On Thu, 23 Nov 2017, Konstantin Belousov wrote: > >* ... > >>> Below is th

Re: svn commit: r326073 - head/usr.bin/systat

2017-11-24 Thread Konstantin Belousov
On Sat, Nov 25, 2017 at 12:14:10AM +1100, Bruce Evans wrote: > On Fri, 24 Nov 2017, Konstantin Belousov wrote: > > > On Fri, Nov 24, 2017 at 08:15:06PM +1100, Bruce Evans wrote: > >> On Thu, 23 Nov 2017, Konstantin Belousov wrote: > >* ... > >>>&g

svn commit: r326226 - head/sbin/sysctl

2017-11-26 Thread Konstantin Belousov
Author: kib Date: Sun Nov 26 10:02:43 2017 New Revision: 326226 URL: https://svnweb.freebsd.org/changeset/base/326226 Log: Improve sysctl(8) pretty printing of some structures. S_vmtotal: Use unsigned format to print unsigned memory counters from struct vmtotal. Remove unneeded cast,

Re: svn commit: r326227 - in head/sys/arm64: arm64 include

2017-11-26 Thread Konstantin Belousov
On Sun, Nov 26, 2017 at 02:28:27PM +, Ed Schouten wrote: > Author: ed > Date: Sun Nov 26 14:28:27 2017 > New Revision: 326227 > URL: https://svnweb.freebsd.org/changeset/base/326227 > > Log: > Make 32-bit system calls end up in svc_handler(). > > The nice thing about ARM64 is that it's

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

2020-02-06 Thread Konstantin Belousov
On Thu, Feb 06, 2020 at 05:41:52PM +0100, Hans Petter Selasky wrote: > On 2020-02-06 13:45, Pawel Biernacki wrote: > > +#ifdef notyet > > +#defineSYSCTL_ENFORCE_FLAGS(x) > > \ > > +_Static_assert(((CTLFLAG_MPSAFE ^ CTLFLAG_NEEDGIANT) & (x)), \ > >

svn commit: r357668 - head/sys/compat/linux

2020-02-07 Thread Konstantin Belousov
Author: kib Date: Fri Feb 7 22:21:44 2020 New Revision: 357668 URL: https://svnweb.freebsd.org/changeset/base/357668 Log: linux futex_put(): do not touch futex after dropping our reference. Reported and tested by: Steve Roome Sponsored by: The FreeBSD Foundation MFC after:1

svn commit: r357669 - head/sys/dev/acpica

2020-02-07 Thread Konstantin Belousov
Author: kib Date: Fri Feb 7 22:26:11 2020 New Revision: 357669 URL: https://svnweb.freebsd.org/changeset/base/357669 Log: acpi_hpet: Add Hygon Dhyana support. Submitted by: Pu Wen MFC after:1 week Differential revision:https://reviews.freebsd.org/D23555 Modified: head/s

svn commit: r357670 - in head: lib/libpmc lib/libpmc/pmu-events/arch/x86 sys/dev/hwpmc

2020-02-07 Thread Konstantin Belousov
Author: kib Date: Fri Feb 7 22:28:04 2020 New Revision: 357670 URL: https://svnweb.freebsd.org/changeset/base/357670 Log: pmc: Add Hygon Dhyana support. To make the PMC tool pmcstat working properly on Hygon platform, add support for Hygon Dhyana family 18h by using the PMC initializatio

svn commit: r357678 - head/sys/kern

2020-02-08 Thread Konstantin Belousov
Author: kib Date: Sat Feb 8 15:06:06 2020 New Revision: 357678 URL: https://svnweb.freebsd.org/changeset/base/357678 Log: Correct the function name in the comment. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/kern/kern_thread.c Modified: head/sys/kern/

svn commit: r357694 - in head/sys: compat/freebsd32 kern sys

2020-02-09 Thread Konstantin Belousov
Author: kib Date: Sun Feb 9 11:53:37 2020 New Revision: 357694 URL: https://svnweb.freebsd.org/changeset/base/357694 Log: Regen. Modified: head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sys/compat/freebsd32/freebsd32_sysent.c head/sys/

svn commit: r357693 - in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys

2020-02-09 Thread Konstantin Belousov
right (c) 2016 The FreeBSD Foundation, Inc. +.\" +.\" This documentation was written by +.\" Konstantin Belousov under sponsorship +.\" from the FreeBSD Foundation. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, a

svn commit: r357695 - in head: sys/kern sys/sys usr.bin/procstat

2020-02-09 Thread Konstantin Belousov
Author: kib Date: Sun Feb 9 12:10:37 2020 New Revision: 357695 URL: https://svnweb.freebsd.org/changeset/base/357695 Log: Add AT_BSDFLAGS auxv entry. The intent is to provide bsd-specific flags relevant to interpreter and C runtime. I did not want to reuse AT_FLAGS which is common ELF

svn commit: r357696 - head/lib/libc/gen

2020-02-09 Thread Konstantin Belousov
Author: kib Date: Sun Feb 9 12:12:03 2020 New Revision: 357696 URL: https://svnweb.freebsd.org/changeset/base/357696 Log: Add AT_BSDFLAGS support to _elf_aux_info(3). Tested by:pho Disscussed with: cem, emaste, jilles Sponsored by: The FreeBSD Foundation Differential revisio

svn commit: r357697 - in head/libexec/rtld-elf: . rtld-libc

2020-02-09 Thread Konstantin Belousov
Author: kib Date: Sun Feb 9 12:22:43 2020 New Revision: 357697 URL: https://svnweb.freebsd.org/changeset/base/357697 Log: Use sigfastblock(2) in rtld. This allows for rtld to not issue two sigprocmask(2) syscalls for each symbol binding operation in single-threaded processes. Rtld needs

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

2020-02-09 Thread Konstantin Belousov
Author: kib Date: Sun Feb 9 12:27:22 2020 New Revision: 357698 URL: https://svnweb.freebsd.org/changeset/base/357698 Log: Use sigfastblock(2) for masking signals in libthr. Ensure proper handshake to transfer sigfastblock(2) blocking word ownership from rtld to libthr. Unfortunately

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

2020-02-09 Thread Konstantin Belousov
Author: kib Date: Sun Feb 9 12:29:51 2020 New Revision: 357700 URL: https://svnweb.freebsd.org/changeset/base/357700 Log: Add sysctl kern.proc.sigfastblk for reporting sigfastblock word address. Tested by:pho Disscussed with: cem, emaste, jilles Sponsored by: The FreeBSD Found

svn commit: r357701 - head/usr.bin/procstat

2020-02-09 Thread Konstantin Belousov
Author: kib Date: Sun Feb 9 12:30:50 2020 New Revision: 357701 URL: https://svnweb.freebsd.org/changeset/base/357701 Log: Add procstat(1) sigfastblock command to show process sigfastblock word address. Tested by:pho Disscussed with: cem, emaste, jilles Sponsored by: The FreeB

Re: svn commit: r357695 - in head: sys/kern sys/sys usr.bin/procstat

2020-02-10 Thread Konstantin Belousov
On Mon, Feb 10, 2020 at 10:11:43AM -0800, John Baldwin wrote: > On 2/9/20 4:10 AM, Konstantin Belousov wrote: > > Author: kib > > Date: Sun Feb 9 12:10:37 2020 > > New Revision: 357695 > > URL: https://svnweb.freebsd.org/changeset/base/357695 > > > >

svn commit: r357763 - head/sys/net

2020-02-11 Thread Konstantin Belousov
Author: kib Date: Tue Feb 11 17:41:45 2020 New Revision: 357763 URL: https://svnweb.freebsd.org/changeset/base/357763 Log: if_media.c: use __FBSDID(). Reviewed by: hselasky Sponsored by: Mellanox Technologies Differential revision:https://reviews.freebsd.org/D23620 Modified:

svn commit: r357764 - head/sys/net

2020-02-11 Thread Konstantin Belousov
Author: kib Date: Tue Feb 11 17:45:01 2020 New Revision: 357764 URL: https://svnweb.freebsd.org/changeset/base/357764 Log: if_media.c: staticize and constify ifmedia description structures used under IFMEDIA_DEBUG. The reason for this change is to make it clear the scope of the in-kernel

svn commit: r357765 - head/sys/net

2020-02-11 Thread Konstantin Belousov
Author: kib Date: Tue Feb 11 18:03:45 2020 New Revision: 357765 URL: https://svnweb.freebsd.org/changeset/base/357765 Log: if_media.h: Add 50G KR4 ethernet media type. Submitted by: Adam Peace Reviewed by: hselasky Differential revision:https://reviews.freebsd.org/D23620 Modi

svn commit: r357813 - head/libexec/rtld-elf

2020-02-12 Thread Konstantin Belousov
Author: kib Date: Wed Feb 12 12:23:46 2020 New Revision: 357813 URL: https://svnweb.freebsd.org/changeset/base/357813 Log: Fix indent. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/libexec/rtld-elf/rtld.c Modified: head/libexec/rtld-elf/rtld.c ==

svn commit: r357865 - in head/sys/amd64/vmm: . io

2020-02-13 Thread Konstantin Belousov
Author: kib Date: Thu Feb 13 19:03:12 2020 New Revision: 357865 URL: https://svnweb.freebsd.org/changeset/base/357865 Log: vmm: Add Hygon Dhyana support. Submitted by: Pu Wen Discussed with: grehan Reviewed by: jhb (previous version) MFC after:1 week Differential revisio

svn commit: r357866 - in head/usr.sbin: bhyve bhyvectl

2020-02-13 Thread Konstantin Belousov
Author: kib Date: Thu Feb 13 19:05:14 2020 New Revision: 357866 URL: https://svnweb.freebsd.org/changeset/base/357866 Log: bhyve, bhyvectl: Add Hygon Dhyana support. Submitted by: Pu Wen Reviewed by: jhb MFC after:1 week Differential revision:https://reviews.freebsd.org/

svn commit: r357868 - head/sys/dev/amdpm

2020-02-13 Thread Konstantin Belousov
Author: kib Date: Thu Feb 13 19:07:42 2020 New Revision: 357868 URL: https://svnweb.freebsd.org/changeset/base/357868 Log: amdpm: Add Hygon Dhyana support. Submitted by: Pu Wen MFC after:1 week Differential revision:https://reviews.freebsd.org/D23557 Modified: head/sys/d

svn commit: r357869 - in head/sys/dev: amdsbwd intpm

2020-02-13 Thread Konstantin Belousov
Author: kib Date: Thu Feb 13 19:09:24 2020 New Revision: 357869 URL: https://svnweb.freebsd.org/changeset/base/357869 Log: amdsbwd, intpm: Add Hygon Dhyana support. Initialize the FCH SMBus controller for Hygon Dhyana CPU. Set the vendor of the FCH description via the exact CPU vendor.

svn commit: r357870 - head/sys/dev/amd_ecc_inject

2020-02-13 Thread Konstantin Belousov
Author: kib Date: Thu Feb 13 19:10:51 2020 New Revision: 357870 URL: https://svnweb.freebsd.org/changeset/base/357870 Log: ecc_inject: Add Hygon Dhyana support. Submitted by: Pu Wen MFC after:1 week Differential revision:https://reviews.freebsd.org/D23561 Modified: head/

svn commit: r357871 - head/sys/dev/hyperv/vmbus/amd64

2020-02-13 Thread Konstantin Belousov
Author: kib Date: Thu Feb 13 19:12:07 2020 New Revision: 357871 URL: https://svnweb.freebsd.org/changeset/base/357871 Log: hyperv: Add Hygon Dhyana support. Submitted by: Pu Wen MFC after:1 week Differential revision:https://reviews.freebsd.org/D23563 Modified: head/sys/

Re: svn commit: r357867 - head/tests/sys/net

2020-02-13 Thread Konstantin Belousov
On Thu, Feb 13, 2020 at 07:05:19PM +, Li-Wen Hsu wrote: > Author: lwhsu > Date: Thu Feb 13 19:05:19 2020 > New Revision: 357867 > URL: https://svnweb.freebsd.org/changeset/base/357867 > > Log: > Fix GCC build. > > Sponsored by: The FreeBSD Foundation > > Modified: > head/tests/

Re: svn commit: r357865 - in head/sys/amd64/vmm: . io

2020-02-13 Thread Konstantin Belousov
On Thu, Feb 13, 2020 at 01:49:09PM -0800, Ravi Pokala wrote: > Why "svm"? Because this is how AMD calls its virtualization extensions. Secure Virtual Machine. > > -Ravi (rpokala@) > > -Original Message----- > From: on behalf of Konstantin Belousov > > D

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

2020-02-13 Thread Konstantin Belousov
Author: kib Date: Thu Feb 13 23:22:12 2020 New Revision: 357894 URL: https://svnweb.freebsd.org/changeset/base/357894 Log: Return success, instead of ESRCH, from pthread_cancel(3) applied to the exited but not yet joined thread. Before, if the thread exited but was not yet joined, we retu

svn commit: r357895 - in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips powerpc powerpc64 riscv sparc64

2020-02-13 Thread Konstantin Belousov
Author: kib Date: Thu Feb 13 23:42:09 2020 New Revision: 357895 URL: https://svnweb.freebsd.org/changeset/base/357895 Log: Handle non-plt IRELATIVE relocations, at least for x86. lld 10.0 seems to generate this relocation for rdtsc_mb() ifunc in our libc. Reported, reviewed, and tested

Re: svn commit: r357895 - in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips powerpc powerpc64 riscv sparc64

2020-02-14 Thread Konstantin Belousov
On Fri, Feb 14, 2020 at 11:17:12AM +0100, Antoine Brodin wrote: > On Fri, Feb 14, 2020 at 12:42 AM Konstantin Belousov wrote: > > > > Author: kib > > Date: Thu Feb 13 23:42:09 2020 > > New Revision: 357895 > > URL: https://svnweb.freebsd.org/changeset/base/357895

svn commit: r357910 - head/libexec/rtld-elf/i386

2020-02-14 Thread Konstantin Belousov
Author: kib Date: Fri Feb 14 12:59:27 2020 New Revision: 357910 URL: https://svnweb.freebsd.org/changeset/base/357910 Log: r357895: fix typo in the relocation name for i386 IRELATIVE. Reported by: antoine Sponsored by: The FreeBSD Foundation MFC after:6 days Modified: head/libexe

Re: svn commit: r357895 - in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips powerpc powerpc64 riscv sparc64

2020-02-14 Thread Konstantin Belousov
On Fri, Feb 14, 2020 at 01:37:40PM +0100, Antoine Brodin wrote: > On Fri, Feb 14, 2020 at 12:51 PM Konstantin Belousov > wrote: > > > > On Fri, Feb 14, 2020 at 11:17:12AM +0100, Antoine Brodin wrote: > > > On Fri, Feb 14, 2020 at 12:42 AM Konstantin Belousov > >

svn commit: r357948 - head/sys/kern

2020-02-14 Thread Konstantin Belousov
Author: kib Date: Fri Feb 14 23:27:45 2020 New Revision: 357948 URL: https://svnweb.freebsd.org/changeset/base/357948 Log: Consolidate read code for timecounters and fix possible overflow in bintime()/binuptime(). The algorithm to read the consistent snapshot of current timehand is repe

svn commit: r357982 - head/sys/kern

2020-02-15 Thread Konstantin Belousov
Author: kib Date: Sat Feb 15 23:15:42 2020 New Revision: 357982 URL: https://svnweb.freebsd.org/changeset/base/357982 Log: Use designated initializers for seminfo. Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD Foundation (kib) MFC after:1 week Differential revi

svn commit: r357983 - head/sys/kern

2020-02-15 Thread Konstantin Belousov
Author: kib Date: Sat Feb 15 23:18:02 2020 New Revision: 357983 URL: https://svnweb.freebsd.org/changeset/base/357983 Log: sem_remove(): add some asserts. Assert that sema[idx] allocation from sem[] is sane. Also assert that sem_mtx is owned, it protects the SEM_ALLOC flag. Reviewed

svn commit: r357984 - head/sys/kern

2020-02-15 Thread Konstantin Belousov
Author: kib Date: Sat Feb 15 23:19:23 2020 New Revision: 357984 URL: https://svnweb.freebsd.org/changeset/base/357984 Log: sem_remove(): fix the loop that compacts sem array on semaphores removal. As written now, it copies random kernel memory from beyond the bounds of the array. Rep

svn commit: r357985 - in head: include lib/libthr lib/libthr/thread share/man/man3

2020-02-15 Thread Konstantin Belousov
Author: kib Date: Sat Feb 15 23:25:39 2020 New Revision: 357985 URL: https://svnweb.freebsd.org/changeset/base/357985 Log: Add pthread_peekjoin_np(3). The function allows to peek at the thread exit status and even see return value, without joining (and thus finally destroying) the target

svn commit: r358002 - head/sys/modules

2020-02-16 Thread Konstantin Belousov
Author: kib Date: Sun Feb 16 15:43:28 2020 New Revision: 358002 URL: https://svnweb.freebsd.org/changeset/base/358002 Log: Fix build of some modules for some kernel configs. Namely, vmm.ko cannot be compiled without 'option SMP', the code uses IPIs and LAPIC. Recently systrace was force

Re: svn commit: r357989 - head/sys/sys

2020-02-16 Thread Konstantin Belousov
On Sun, Feb 16, 2020 at 03:14:55AM +, Mateusz Guzik wrote: > Author: mjg > Date: Sun Feb 16 03:14:55 2020 > New Revision: 357989 > URL: https://svnweb.freebsd.org/changeset/base/357989 > > Log: > refcount: add missing release fence to refcount_release_if_gt I think you should update comment

svn commit: r358021 - head/sys/dev/pci

2020-02-17 Thread Konstantin Belousov
Author: kib Date: Mon Feb 17 13:26:36 2020 New Revision: 358021 URL: https://svnweb.freebsd.org/changeset/base/358021 Log: Fix typo. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/dev/pci/pcireg.h Modified: head/sys/dev/pci/pcireg.h ==

svn commit: r358022 - head/usr.sbin/pciconf

2020-02-17 Thread Konstantin Belousov
Author: kib Date: Mon Feb 17 13:31:30 2020 New Revision: 358022 URL: https://svnweb.freebsd.org/changeset/base/358022 Log: pciconf: List names of all known extended PCIe capabilities. Some ids are redundand because the list_ecaps() function decodes them by explicit switch case. But listi

Re: svn commit: r358062 - in head: contrib/ncurses contrib/ncurses/doc contrib/ncurses/doc/html contrib/ncurses/form contrib/ncurses/include contrib/ncurses/man contrib/ncurses/menu contrib/ncurses/mi

2020-02-19 Thread Konstantin Belousov
On Wed, Feb 19, 2020 at 10:41:27AM +0100, Baptiste Daroussin wrote: > On Wed, Feb 19, 2020 at 11:02:11AM +0300, Yuri Pankov wrote: > > On 18 Feb 2020, at 11:11, Baptiste Daroussin wrote: > > > > > > Author: bapt > > > Date: Tue Feb 18 08:11:52 2020 > > > New Revision: 358062 > > > URL: https://sv

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

2020-02-20 Thread Konstantin Belousov
Author: kib Date: Thu Feb 20 15:34:02 2020 New Revision: 358168 URL: https://svnweb.freebsd.org/changeset/base/358168 Log: Do not read sigfastblock word on syscall entry. On machines with SMAP, fueword executes two serializing instructions which can be seen in microbenchmarks. As a m

svn commit: r358174 - head/sys/dev/pci

2020-02-20 Thread Konstantin Belousov
Author: kib Date: Thu Feb 20 17:08:52 2020 New Revision: 358174 URL: https://svnweb.freebsd.org/changeset/base/358174 Log: Add more values for PCI capabilities, PCIe extended capabilities, and subclasses. Taken from https://pcisig.com/sites/default/files/files/PCI_Code-ID_r_1_11__v24_Ja

svn commit: r358175 - head/usr.sbin/pciconf

2020-02-20 Thread Konstantin Belousov
Author: kib Date: Thu Feb 20 17:10:25 2020 New Revision: 358175 URL: https://svnweb.freebsd.org/changeset/base/358175 Log: Print out some newly added PCIe extended capabilities and subclasses. Taken from https://pcisig.com/sites/default/files/files/PCI_Code-ID_r_1_11__v24_Jan_2019.pdf

svn commit: r358182 - head/sys/kern

2020-02-20 Thread Konstantin Belousov
Author: kib Date: Thu Feb 20 21:25:12 2020 New Revision: 358182 URL: https://svnweb.freebsd.org/changeset/base/358182 Log: Fix a bug in r358168, do not call sigfastblock_setpend() under a mutex. PR: 244250 Reported and tested by: lwhsu Sponsored by: The FreeBSD Foundation Modif

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

2020-02-21 Thread Konstantin Belousov
Author: kib Date: Fri Feb 21 16:41:17 2020 New Revision: 358225 URL: https://svnweb.freebsd.org/changeset/base/358225 Log: print_svm_info: decode a CPUID 0x800a.edx bit 20. This is SVM features word, the bit is defined in "PPR for AMD Family 17h Model 31h B0", document 55803 Rev 0.54.

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

2020-02-21 Thread Konstantin Belousov
Author: kib Date: Fri Feb 21 16:55:28 2020 New Revision: 358226 URL: https://svnweb.freebsd.org/changeset/base/358226 Log: x86/identcpu.c whitespace cleanup. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/x86/x86/identcpu.c Modified: head/sys/x86/x86/iden

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

2020-02-22 Thread Konstantin Belousov
Author: kib Date: Sat Feb 22 20:43:04 2020 New Revision: 358251 URL: https://svnweb.freebsd.org/changeset/base/358251 Log: Add td_pflags2, yet another thread-private flags word. There is no more free bits in td_pflags. Tested by:pho Sponsored by: The FreeBSD Foundation MFC afte

svn commit: r358252 - in head/sys: fs/nfsclient sys

2020-02-22 Thread Konstantin Belousov
Author: kib Date: Sat Feb 22 20:50:30 2020 New Revision: 358252 URL: https://svnweb.freebsd.org/changeset/base/358252 Log: Fix NFS client deadlock when read reports truncated node. If node attribute returned in the reply for read rpc indicate truncation, and it happens that the vnode is e

svn commit: r358315 - in head/sys: amd64/amd64 dev/cpuctl i386/i386 x86/acpica x86/include x86/x86

2020-02-25 Thread Konstantin Belousov
Author: kib Date: Tue Feb 25 17:26:10 2020 New Revision: 358315 URL: https://svnweb.freebsd.org/changeset/base/358315 Log: Fix IBRS for machines with IBRS_ALL capability. When turning IBRS mitigation using sysctl, as opposed to loader tunable, send IPI to tweak MSR on all cores. Right no

Re: svn commit: r358392 - head/share/man/man9

2020-02-28 Thread Konstantin Belousov
On Thu, Feb 27, 2020 at 10:54:21PM -0700, Warner Losh wrote: > On Thu, Feb 27, 2020, 9:55 AM John Baldwin wrote: > > > On 2/27/20 7:30 AM, Warner Losh wrote: > > > Author: imp > > > Date: Thu Feb 27 15:30:13 2020 > > > New Revision: 358392 > > > URL: https://svnweb.freebsd.org/changeset/base/3583

Re: svn commit: r358439 - head/sys/amd64/include

2020-03-02 Thread Konstantin Belousov
On Mon, Mar 02, 2020 at 09:13:53AM -0800, Ryan Libby wrote: > On Mon, Mar 2, 2020 at 12:45 AM Alexander V. Chernikov > wrote: > > > > 28.02.2020, 18:32, "Ryan Libby" : > > > Author: rlibby > > > Date: Fri Feb 28 18:32:36 2020 > > > New Revision: 358439 > > > URL: https://svnweb.freebsd.org/change

svn commit: r358624 - in head/sys/dev/mlx5: . mlx5_en mlx5_ib

2020-03-04 Thread Konstantin Belousov
Author: kib Date: Wed Mar 4 17:13:35 2020 New Revision: 358624 URL: https://svnweb.freebsd.org/changeset/base/358624 Log: mlx5en: Support 50GBase-KR4 media type in mlx5en driver. Submitted by: Adam Peace Reviewed by: hselasky Sponsored by: Mellanox Technologies MFC after:1 week

svn commit: r358676 - head/sys/kern

2020-03-05 Thread Konstantin Belousov
Author: kib Date: Thu Mar 5 15:52:34 2020 New Revision: 358676 URL: https://svnweb.freebsd.org/changeset/base/358676 Log: buffer pager: deref ucred immediately after read. Ucred is passed to bread(9) so that non-local filesystems use proper credentials. But, since clean buffer might be

<    7   8   9   10   11   12   13   14   15   16   >