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

2020-05-20 Thread Konstantin Belousov
Author: kib Date: Wed May 20 21:22:25 2020 New Revision: 361299 URL: https://svnweb.freebsd.org/changeset/base/361299 Log: Do not consider CAP_RDCL_NO as an indicator for all MDS vulnerabilities handled by hardware. Reported by: Anthony Steinhauser admbugs: 962 Sponsored by: Th

svn commit: r361302 - in head: share/man/man7 sys/amd64/amd64 sys/i386/i386 sys/x86/include sys/x86/x86

2020-05-20 Thread Konstantin Belousov
Author: kib Date: Wed May 20 22:00:31 2020 New Revision: 361302 URL: https://svnweb.freebsd.org/changeset/base/361302 Log: amd64: Add a knob to flush RSB on context switches if machine has SMEP. The flush is needed to prevent cross-process ret2spec, which is not handled on kernel entry if

Re: svn commit: r361302 - in head: share/man/man7 sys/amd64/amd64 sys/i386/i386 sys/x86/include sys/x86/x86

2020-05-20 Thread Konstantin Belousov
On Wed, May 20, 2020 at 10:00:31PM +, Konstantin Belousov wrote: > Author: kib > Date: Wed May 20 22:00:31 2020 > New Revision: 361302 > URL: https://svnweb.freebsd.org/changeset/base/361302 > > Log: > amd64: Add a knob to flush RSB on context switches if machine h

svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-20 Thread Konstantin Belousov
Author: kib Date: Wed May 20 22:08:26 2020 New Revision: 361303 URL: https://svnweb.freebsd.org/changeset/base/361303 Log: Change the samantic of struct link_map l_addr member. It previously returned the object map base address, while all other ELF operating systems return load offset, i.

Re: svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Konstantin Belousov
On Thu, May 21, 2020 at 03:02:07PM +0200, Antoine Brodin wrote: > On Thu, May 21, 2020 at 12:08 AM Konstantin Belousov wrote: > > > > Author: kib > > Date: Wed May 20 22:08:26 2020 > > New Revision: 361303 > > URL: https://svnweb.freebsd.org/changeset/base/361

Re: svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Konstantin Belousov
On Thu, May 21, 2020 at 09:03:44AM -0700, John Baldwin wrote: > On 5/21/20 8:12 AM, Mark Johnston wrote: > > On Thu, May 21, 2020 at 04:41:52PM +0300, Konstantin Belousov wrote: > >> On Thu, May 21, 2020 at 03:02:07PM +0200, Antoine Brodin wrote: > >>> On Thu, May 2

Re: svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Konstantin Belousov
On Thu, May 21, 2020 at 01:01:24PM -0400, Mark Johnston wrote: > On Thu, May 21, 2020 at 07:56:46PM +0300, Konstantin Belousov wrote: > > On Thu, May 21, 2020 at 09:03:44AM -0700, John Baldwin wrote: > > > On 5/21/20 8:12 AM, Mark Johnston wrote: > > > > On Thu, Ma

Re: svn commit: r361303 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Konstantin Belousov
On Thu, May 21, 2020 at 12:30:47PM -0700, John Baldwin wrote: > On 5/21/20 9:56 AM, Konstantin Belousov wrote: > > On Thu, May 21, 2020 at 09:03:44AM -0700, John Baldwin wrote: > >> On 5/21/20 8:12 AM, Mark Johnston wrote: > >>> On Thu, May 21, 2020 at 04:41:52PM +0

svn commit: r361349 - in head: cddl/contrib/opensolaris/lib/libdtrace/common lib/libc/gen libexec/rtld-elf sys/sys

2020-05-21 Thread Konstantin Belousov
Author: kib Date: Thu May 21 22:24:23 2020 New Revision: 361349 URL: https://svnweb.freebsd.org/changeset/base/361349 Log: Restore the binary compatibility for link_map l_addr. Keep link_map l_addr binary layout compatible, rename l_addr to l_base where rtld returns map base. Provide rel

Re: svn commit: r361352 - in head/sys: amd64/amd64 i386/i386

2020-05-22 Thread Konstantin Belousov
On Fri, May 22, 2020 at 01:18:55AM +, Mark Johnston wrote: > Author: markj > Date: Fri May 22 01:18:55 2020 > New Revision: 361352 > URL: https://svnweb.freebsd.org/changeset/base/361352 > > Log: > Fix the build after r361033 when ACPI is disabled. What is the sense in doing this for amd64 ?

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

2020-05-22 Thread Konstantin Belousov
Author: kib Date: Fri May 22 17:23:09 2020 New Revision: 361394 URL: https://svnweb.freebsd.org/changeset/base/361394 Log: Convert linkmap_add() and linkmap_delete() to style(8). Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/rtld-elf/rtld.c Modified:

svn commit: r361398 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2020-05-22 Thread Konstantin Belousov
Author: kib Date: Fri May 22 17:52:09 2020 New Revision: 361398 URL: https://svnweb.freebsd.org/changeset/base/361398 Log: Implement Solaris-like link_map l_refname member. The implementation is based on the public documentation, in particular dlinfo(3) from Solaris. Sponsored by: Th

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

2020-05-26 Thread Konstantin Belousov
Author: kib Date: Tue May 26 19:22:46 2020 New Revision: 361537 URL: https://svnweb.freebsd.org/changeset/base/361537 Log: Add version indicators to rtld. It is wrong to relate on __FreeBSD_version, either from include/param.h, kernel, or libc, to check for rtld features. Rtld might be

svn commit: r361563 - head/sys/vm

2020-05-27 Thread Konstantin Belousov
Author: kib Date: Wed May 27 21:44:26 2020 New Revision: 361563 URL: https://svnweb.freebsd.org/changeset/base/361563 Log: Simplify the condition to enable superpage mappings in vm_fault_soft_fast(). The list of arches list there matches the list of arches where default VM_NRESERVLEVEL >

Re: svn commit: r361568 - head/sys/powerpc/aim

2020-05-28 Thread Konstantin Belousov
On Wed, May 27, 2020 at 09:41:01PM -0500, Justin Hibbits wrote: > On Thu, 28 May 2020 00:49:03 + (UTC) > Brandon Bergren wrote: > > > Author: bdragon > > Date: Thu May 28 00:49:02 2020 > > New Revision: 361568 > > URL: https://svnweb.freebsd.org/changeset/base/361568 > > > > Log: > > [Powe

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

2020-05-30 Thread Konstantin Belousov
On Sat, May 30, 2020 at 07:57:27PM +, Ed Maste wrote: > Author: emaste > Date: Sat May 30 19:57:26 2020 > New Revision: 361657 > URL: https://svnweb.freebsd.org/changeset/base/361657 > > Log: > elf_common.h: define DF_1_PIE > > DF_1_PIE indicates that the object is a position-independen

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

2020-05-30 Thread Konstantin Belousov
On Sat, May 30, 2020 at 07:28:55PM -0400, Ed Maste wrote: > On Sat, 30 May 2020 at 16:17, Ed Maste wrote: > > > > On Sat, 30 May 2020 at 16:14, Konstantin Belousov > > wrote: > > > > > > On Sat, May 30, 2020 at 07:57:27PM +, Ed Maste wrote: > > &

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

2020-05-31 Thread Konstantin Belousov
Author: kib Date: Sun May 31 21:34:21 2020 New Revision: 361672 URL: https://svnweb.freebsd.org/changeset/base/361672 Log: rtld: Add -p switch to direct exec mode summary line. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/rtld-elf/rtld.c Modified: h

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

2020-05-31 Thread Konstantin Belousov
Author: kib Date: Sun May 31 21:53:15 2020 New Revision: 361675 URL: https://svnweb.freebsd.org/changeset/base/361675 Log: rtld: Add -v switch to print some useful information about the rtld binary. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/rtld-e

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

2020-05-31 Thread Konstantin Belousov
Author: kib Date: Sun May 31 21:56:07 2020 New Revision: 361676 URL: https://svnweb.freebsd.org/changeset/base/361676 Log: rtld: Fix indent in print_usage(). Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/rtld-elf/rtld.c Modified: head/libexec/rtld-el

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

2020-05-31 Thread Konstantin Belousov
Author: kib Date: Sun May 31 22:37:33 2020 New Revision: 361680 URL: https://svnweb.freebsd.org/changeset/base/361680 Log: rtld: Add -b option to allow to specify image name different from arg0. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/rtld-elf/r

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

2020-06-02 Thread Konstantin Belousov
Author: kib Date: Tue Jun 2 16:20:58 2020 New Revision: 361725 URL: https://svnweb.freebsd.org/changeset/base/361725 Log: Do not allow to load ET_DYN object with DF_1_PIE flag set. Linkers are supposed to mark PIE binaries with DF_1_PIE, such binary cannot be correctly and usefully loade

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

2020-06-02 Thread Konstantin Belousov
Author: kib Date: Tue Jun 2 17:33:10 2020 New Revision: 361728 URL: https://svnweb.freebsd.org/changeset/base/361728 Log: Uppercase 'dso' to indicate that it is abbreviation. Suggested by: arichardson Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/r

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

2020-06-03 Thread Konstantin Belousov
Author: kib Date: Wed Jun 3 20:54:36 2020 New Revision: 361770 URL: https://svnweb.freebsd.org/changeset/base/361770 Log: Add pthread_getname_np() and pthread_setname_np() aliases for pthread_get_name_np() and pthread_set_name_np(), to be compatible with Linux. PR: 238404 Propos

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

2020-06-04 Thread Konstantin Belousov
Author: kib Date: Thu Jun 4 09:06:03 2020 New Revision: 361784 URL: https://svnweb.freebsd.org/changeset/base/361784 Log: Revert r361770 "Add pthread_getname_np() and pthread_setname_np() aliases" for now. It is not compatible enough with Linux. Requested by: antoine, jkim Sponsore

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

2020-06-04 Thread Konstantin Belousov
On Thu, Jun 04, 2020 at 07:51:42AM +0200, Antoine Brodin wrote: > On Thu, Jun 4, 2020 at 4:30 AM Jung-uk Kim wrote: > > > > It broke Firefox build and I found Linux pthread_{get,set}name_np(3) > > returns int. > > > > https://linux.die.net/man/3/pthread_getname_np > > > > I guess you need to write

svn commit: r361785 - in head/sys/ufs: ffs ufs

2020-06-04 Thread Konstantin Belousov
Author: kib Date: Thu Jun 4 12:23:15 2020 New Revision: 361785 URL: https://svnweb.freebsd.org/changeset/base/361785 Log: UFS: write inode block for fdatasync(2) if pointers in inode where allocated The fdatasync() description in POSIX specifies that all I/O operations shall be compl

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

2020-06-10 Thread Konstantin Belousov
Author: kib Date: Wed Jun 10 22:07:57 2020 New Revision: 362031 URL: https://svnweb.freebsd.org/changeset/base/362031 Log: amd64 pmap: reorder IPI send and local TLB flush in TLB invalidations. Right now code first flushes all local TLB entries that needs to be flushed, then signals IPI t

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

2020-06-10 Thread Konstantin Belousov
Author: kib Date: Wed Jun 10 22:13:24 2020 New Revision: 362032 URL: https://svnweb.freebsd.org/changeset/base/362032 Log: Add pthread_getname_np() and pthread_setname_np() aliases for pthread_get_name_np() and pthread_set_name_np(). This re-applies r361770 after compatibility fixes.

svn commit: r362033 - in head/sys: dev/acpica dev/xen/control kern

2020-06-10 Thread Konstantin Belousov
Author: kib Date: Wed Jun 10 22:30:32 2020 New Revision: 362033 URL: https://svnweb.freebsd.org/changeset/base/362033 Log: Remove double-calls to tc_get_timecount() to warm timecounters. It seems that second call does not add any useful state change for all implemented timecounters.

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

2020-06-11 Thread Konstantin Belousov
Author: kib Date: Thu Jun 11 17:25:20 2020 New Revision: 362065 URL: https://svnweb.freebsd.org/changeset/base/362065 Log: Restore TLB invalidations done before smp started. In particular, invalidation of the preloaded modules text to allow execution from it was broken after D25188/r36203

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

2020-06-11 Thread Konstantin Belousov
Author: kib Date: Thu Jun 11 20:26:39 2020 New Revision: 362075 URL: https://svnweb.freebsd.org/changeset/base/362075 Log: Correct comment (this should have been committed with r362065). Sponsored by: The FreeBSD Foundation MFC after:13 days Modified: head/sys/x86/x86/mp_x86.c Mod

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

2020-06-12 Thread Konstantin Belousov
Author: kib Date: Fri Jun 12 22:10:03 2020 New Revision: 362128 URL: https://svnweb.freebsd.org/changeset/base/362128 Log: rtld: set osrel when in the direct exec mode. Rtld itself is a shared object which does not have vendor note, so after the direct exec of ld-elf.so.1 process has p_os

svn commit: r362129 - in head/sys/x86: include x86

2020-06-12 Thread Konstantin Belousov
Author: kib Date: Fri Jun 12 22:12:57 2020 New Revision: 362129 URL: https://svnweb.freebsd.org/changeset/base/362129 Log: x86: add bits definitions for SRBDS mitigation control. See https://software.intel.com/security-software-guidance/insights/deep-dive-special-register-buffer-data-sampl

svn commit: r362130 - in head: share/man/man7 sys/amd64/amd64 sys/dev/cpuctl sys/x86/include sys/x86/x86

2020-06-12 Thread Konstantin Belousov
Author: kib Date: Fri Jun 12 22:14:45 2020 New Revision: 362130 URL: https://svnweb.freebsd.org/changeset/base/362130 Log: Control for Special Register Buffer Data Sampling mitigation. New microcode update for Intel enables mitigation for SRBDS, which slows down RDSEED and related instruc

svn commit: r362150 - head/lib/libc/sys

2020-06-13 Thread Konstantin Belousov
Author: kib Date: Sat Jun 13 18:18:34 2020 New Revision: 362150 URL: https://svnweb.freebsd.org/changeset/base/362150 Log: procctl(2): consistently refer to the data pointer as 'data'. Reviewed by: bcr Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:

svn commit: r362151 - head/lib/libc/sys

2020-06-13 Thread Konstantin Belousov
Author: kib Date: Sat Jun 13 18:19:42 2020 New Revision: 362151 URL: https://svnweb.freebsd.org/changeset/base/362151 Log: procctl(2): document PROC_KPTI Reviewed by: bcr Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:https://reviews.freebsd.o

svn commit: r362152 - head/usr.bin/ldd

2020-06-13 Thread Konstantin Belousov
Author: kib Date: Sat Jun 13 18:21:31 2020 New Revision: 362152 URL: https://svnweb.freebsd.org/changeset/base/362152 Log: Fix ldd for PIE binaries after rtld stopped accepting binaries for dlopen. ldd proclaims ET_DYN objects as shared libraries and tries to dlopen(RTLD_TRACE) them to ge

Re: svn commit: r362152 - head/usr.bin/ldd

2020-06-15 Thread Konstantin Belousov
On Mon, Jun 15, 2020 at 11:45:31AM -0700, John Baldwin wrote: > On 6/13/20 11:21 AM, Konstantin Belousov wrote: > > Author: kib > > Date: Sat Jun 13 18:21:31 2020 > > New Revision: 362152 > > URL: https://svnweb.freebsd.org/changeset/base/362152 > > > > Lo

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

2020-06-16 Thread Konstantin Belousov
Author: kib Date: Tue Jun 16 21:23:39 2020 New Revision: 362249 URL: https://svnweb.freebsd.org/changeset/base/362249 Log: Systematically pass RTLD_LO_TRACE to load_needed_objects(). Which makes all calls to load_object() to observe the flag, except the calls for preloaded DSOs. Spon

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

2020-06-16 Thread Konstantin Belousov
Author: kib Date: Tue Jun 16 21:25:58 2020 New Revision: 362250 URL: https://svnweb.freebsd.org/changeset/base/362250 Log: rtld: Add debug line for dlopen_object(). Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/rtld-elf/rtld.c Modified: head/libexec/

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

2020-06-16 Thread Konstantin Belousov
Author: kib Date: Tue Jun 16 21:29:02 2020 New Revision: 362251 URL: https://svnweb.freebsd.org/changeset/base/362251 Log: rtld: Allow to load ET_DYN && DF_1_PIE when tracing. This makes old ldd to still work on newer tagged PIE binaries. Also move debug line for hashes before both dec

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 11:34:51 2017 New Revision: 324301 URL: https://svnweb.freebsd.org/changeset/base/324301 Log: Update comment to note that we skip LDT reload for kthreads as well. Noted by: bde Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/s

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 11:36:55 2017 New Revision: 324302 URL: https://svnweb.freebsd.org/changeset/base/324302 Log: Reduce default max_ldt_segment value to 512. This makes the LDT to use only one page with default settings, avoiding the need to find contigous 2 pages in KVA. It se

svn commit: r324303 - in head/sys/amd64: amd64 include

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 11:50:01 2017 New Revision: 324303 URL: https://svnweb.freebsd.org/changeset/base/324303 Log: On amd64, mark the set_user_ldt() function as static. On i386, the function is used from the context switch code and needs to be accessible externally. Amd64 MD cont

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 11:56:04 2017 New Revision: 324304 URL: https://svnweb.freebsd.org/changeset/base/324304 Log: Remove useless comments. Requested by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/sys_machdep.c Modified: head

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 12:01:39 2017 New Revision: 324305 URL: https://svnweb.freebsd.org/changeset/base/324305 Log: Correct format specifiers in the debug code. Requested by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/sys_machd

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 12:07:38 2017 New Revision: 324306 URL: https://svnweb.freebsd.org/changeset/base/324306 Log: Use ANSI C declaration for amd64_get_ldt(). Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/sys_machde

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 12:16:45 2017 New Revision: 324307 URL: https://svnweb.freebsd.org/changeset/base/324307 Log: Complete r323772 on amd64. Compilers are allowed to combine plain reads into group operations, e.g. 64bit element copies of one array into another can be legitimate

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 12:19:55 2017 New Revision: 324308 URL: https://svnweb.freebsd.org/changeset/base/324308 Log: Minor style fix. Requested by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/sys_machdep.c Modified: head/sys/amd

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 12:29:34 2017 New Revision: 324310 URL: https://svnweb.freebsd.org/changeset/base/324310 Log: Improve amd64_get_ldt(). Provide consistent snapshot of the requested descriptors by preventing other threads from modifying LDT while we fetch the data, lock dt_lock

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 12:50:03 2017 New Revision: 324313 URL: https://svnweb.freebsd.org/changeset/base/324313 Log: Avoid a race betweem freeing LDT and context switches. cpu_switch.S uses curproc->p_md.md_ldt value as the flag indicating presence of the process LDT. The flag is c

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 13:12:59 2017 New Revision: 324315 URL: https://svnweb.freebsd.org/changeset/base/324315 Log: Ensure that after sucessfull i386_set_ldt() call, other threads can use LDT segments immediately. If the i386_set_ldt() call created a first LDT descriptor (and con

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 18:42:13 2017 New Revision: 324326 URL: https://svnweb.freebsd.org/changeset/base/324326 Log: Style. Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/i386/i386/sys_machdep.c Modified: head/sys/i386/i386/sys_m

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 18:58:28 2017 New Revision: 324330 URL: https://svnweb.freebsd.org/changeset/base/324330 Log: Correct format specifiers in the debug code. Style. Requested by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/i386/i386/sys

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

2017-10-05 Thread Konstantin Belousov
Author: kib Date: Thu Oct 5 19:11:25 2017 New Revision: 324334 URL: https://svnweb.freebsd.org/changeset/base/324334 Log: Use ANSI C declarations. Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/i386/i386/sys_machdep.c Modified: head/s

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

2017-10-06 Thread Konstantin Belousov
Author: kib Date: Fri Oct 6 10:16:57 2017 New Revision: 324354 URL: https://svnweb.freebsd.org/changeset/base/324354 Log: Style. Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/i386/i386/sys_machdep.c Modified: head/sys/i386/i386/sys_m

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

2017-10-06 Thread Konstantin Belousov
Author: kib Date: Fri Oct 6 10:17:50 2017 New Revision: 324355 URL: https://svnweb.freebsd.org/changeset/base/324355 Log: Remove unneeded cast. Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/i386/i386/sys_machdep.c Modified: head/sys/

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

2017-10-06 Thread Konstantin Belousov
Author: kib Date: Fri Oct 6 14:29:53 2017 New Revision: 324366 URL: https://svnweb.freebsd.org/changeset/base/324366 Log: Improve i386_get_ldt(). Provide consistent snapshot of the requested descriptors by preventing other threads from modifying LDT while we fetch the data, lock dt_lock

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

2017-10-07 Thread Konstantin Belousov
On Sat, Oct 07, 2017 at 01:04:09PM -0700, Don Lewis wrote: > On 5 Oct, Konstantin Belousov wrote: > > Author: kib > > Date: Thu Oct 5 12:50:03 2017 > > New Revision: 324313 > > URL: https://svnweb.freebsd.org/changeset/base/324313 > > > > Log: > >

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

2017-10-08 Thread Konstantin Belousov
On Sat, Oct 07, 2017 at 01:54:05PM -0700, Don Lewis wrote: > On 7 Oct, Konstantin Belousov wrote: > > On Sat, Oct 07, 2017 at 01:04:09PM -0700, Don Lewis wrote: > >> On 5 Oct, Konstantin Belousov wrote: > >> > Author: kib > >> > Date: Thu Oct 5

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

2017-10-09 Thread Konstantin Belousov
Author: kib Date: Mon Oct 9 15:24:18 2017 New Revision: 324432 URL: https://svnweb.freebsd.org/changeset/base/324432 Log: More style. Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/i386/i386/sys_machdep.c Modified: head/sys/i386/i386/

svn commit: r324433 - in head/sys/i386: i386 include

2017-10-09 Thread Konstantin Belousov
Author: kib Date: Mon Oct 9 15:39:43 2017 New Revision: 324433 URL: https://svnweb.freebsd.org/changeset/base/324433 Log: Reset the fs and gs bases on exec(2). The values from the old address space do not make sense for the new program. In particular, gsbase might be the TLS base for th

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

2017-10-09 Thread Konstantin Belousov
Author: kib Date: Mon Oct 9 16:07:27 2017 New Revision: 324437 URL: https://svnweb.freebsd.org/changeset/base/324437 Log: Improvements to set_user_ldt(). Remove mtx_owned() checks from set_user_ldt(). Split the function into _locked() version which requires the dt_lock spinlock owned, a

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

2017-10-09 Thread Konstantin Belousov
Author: kib Date: Mon Oct 9 16:19:26 2017 New Revision: 324438 URL: https://svnweb.freebsd.org/changeset/base/324438 Log: Change i386_get_ldt() to return 'EOF' when the requested range of descriptors does not fit into currently allocated LDT, or trim the return if the range fits partially.

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

2017-10-09 Thread Konstantin Belousov
Author: kib Date: Mon Oct 9 16:20:39 2017 New Revision: 324439 URL: https://svnweb.freebsd.org/changeset/base/324439 Log: Change amd64_get_ldt() to return 'EOF' when the LDT is not yet allocated, when requested range of descriptors does not fit into currently allocated LDT, or trim the retu

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

2017-10-10 Thread Konstantin Belousov
On Mon, Oct 09, 2017 at 04:20:52PM -0700, Gleb Smirnoff wrote: > Sean & Jason, > > On Sat, Oct 07, 2017 at 11:30:57PM +, Sean Bruno wrote: > S> Author: sbruno > S> Date: Sat Oct 7 23:30:57 2017 > S> New Revision: 324405 > S> URL: https://svnweb.freebsd.org/changeset/base/324405 > S> > S> L

svn commit: r324528 - head/sys/kern

2017-10-11 Thread Konstantin Belousov
Author: kib Date: Wed Oct 11 11:03:11 2017 New Revision: 324528 URL: https://svnweb.freebsd.org/changeset/base/324528 Log: The th_bintime, th_microtime and th_nanotime members of the timehand all cache the last system time (uptime + boottime). Only the format differs. Do not re-calculate t

Re: svn commit: r324560 - in head: lib/libc/sys sys/kern

2017-10-12 Thread Konstantin Belousov
On Thu, Oct 12, 2017 at 03:45:53PM +, Ed Maste wrote: > Author: emaste > Date: Thu Oct 12 15:45:53 2017 > New Revision: 324560 > URL: https://svnweb.freebsd.org/changeset/base/324560 > > Log: > allow posix_fallocate in capability mode > > posix_fallocate is logically equivalent to writi

svn commit: r324600 - head/sys/vm

2017-10-13 Thread Konstantin Belousov
Author: kib Date: Fri Oct 13 16:23:05 2017 New Revision: 324600 URL: https://svnweb.freebsd.org/changeset/base/324600 Log: Evaluate the real size of the sblk_zone. Submitted by: o...@j.email.ne.jp PR: 221356 Reviewed by: alc, markj MFC after:1 week Differential revision:

svn commit: r324665 - in head/sys/amd64: amd64 include

2017-10-16 Thread Konstantin Belousov
Author: kib Date: Mon Oct 16 15:16:24 2017 New Revision: 324665 URL: https://svnweb.freebsd.org/changeset/base/324665 Log: Fix the pv_chunks pc_lru tailq handling in reclaim_pv_chunk(). For processing, reclaim_pv_chunk() removes the pv_chunk from the lru list, which makes pc_lru linkage i

svn commit: r324669 - head/sys/kern

2017-10-16 Thread Konstantin Belousov
Author: kib Date: Mon Oct 16 20:11:29 2017 New Revision: 324669 URL: https://svnweb.freebsd.org/changeset/base/324669 Log: Style. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ===

svn commit: r324670 - head/sys/kern

2017-10-16 Thread Konstantin Belousov
Author: kib Date: Mon Oct 16 20:15:19 2017 New Revision: 324670 URL: https://svnweb.freebsd.org/changeset/base/324670 Log: Improve assertion that an ignored or blocked signal is not delivered. Split two conditions into separate asserts. Print additional details, like the signal number an

svn commit: r324671 - head/sys/kern

2017-10-16 Thread Konstantin Belousov
Author: kib Date: Mon Oct 16 20:21:51 2017 New Revision: 324671 URL: https://svnweb.freebsd.org/changeset/base/324671 Log: Re-evaluate thread' signal mask after ptracestop(). The stop drops process lock, which allows the signal mask to be changed and our selected signal might become block

svn commit: r324716 - head/sys/vm

2017-10-18 Thread Konstantin Belousov
Author: kib Date: Wed Oct 18 07:27:43 2017 New Revision: 324716 URL: https://svnweb.freebsd.org/changeset/base/324716 Log: Do not report reduction of swap zone if it was not. After r324600 we see the actual reservation. Reported by: jkim Sponsored by: The FreeBSD Foundation MFC af

svn commit: r324793 - head/sys/vm

2017-10-20 Thread Konstantin Belousov
Author: kib Date: Fri Oct 20 08:25:49 2017 New Revision: 324793 URL: https://svnweb.freebsd.org/changeset/base/324793 Log: In vm_page_free_phys_pglist(), do not take vm_page_queue_free_mtx if there is nothing to do. Suggested by: mjg Reviewed by: alc Sponsored by: The FreeBSD Foundat

svn commit: r324794 - head/sys/vm

2017-10-20 Thread Konstantin Belousov
Author: kib Date: Fri Oct 20 08:32:37 2017 New Revision: 324794 URL: https://svnweb.freebsd.org/changeset/base/324794 Log: Do not overwrite clean blocks on pageout. If filesystem block size is less than the page size, it is possible that the page-out run contains partially clean pages. E

svn commit: r324795 - in head/sys: conf sys vm

2017-10-20 Thread Konstantin Belousov
Author: kib Date: Fri Oct 20 09:10:49 2017 New Revision: 324795 URL: https://svnweb.freebsd.org/changeset/base/324795 Log: Move swapout code into vm/vm_swapout.c. There is no NO_SWAPPING #ifdef left in the code. Requested by: alc Reviewed by: alc, markj Sponsored by: The FreeBSD F

svn commit: r324807 - head/sys/vm

2017-10-20 Thread Konstantin Belousov
Author: kib Date: Fri Oct 20 18:40:29 2017 New Revision: 324807 URL: https://svnweb.freebsd.org/changeset/base/324807 Log: Take the vm object lock in read mode in vnode_generic_putpages(). Only upgrade it to write mode if we need to clear dirty bits of the partially valid page after EOF.

svn commit: r324824 - head/sys/vm

2017-10-21 Thread Konstantin Belousov
Author: kib Date: Sat Oct 21 17:28:12 2017 New Revision: 324824 URL: https://svnweb.freebsd.org/changeset/base/324824 Log: Check that the page which is freed as zeroed, indeed has all-zero content. This catches some rare mysterious failures at the source. The check is only performed on a

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

2017-10-22 Thread Konstantin Belousov
Author: kib Date: Sun Oct 22 08:11:45 2017 New Revision: 324853 URL: https://svnweb.freebsd.org/changeset/base/324853 Log: Remove the support for mknod(S_IFMT), which created dummy vnodes with VBAD type. FFS ffs_write() VOP catches such vnodes and panics, other VOPs do not check for the

Re: svn commit: r324911 - head/share/mk

2017-10-23 Thread Konstantin Belousov
On Mon, Oct 23, 2017 at 07:56:56AM +, Ngie Cooper wrote: > Author: ngie > Date: Mon Oct 23 07:56:56 2017 > New Revision: 324911 > URL: https://svnweb.freebsd.org/changeset/base/324911 > > Log: > Fix an omission in a comment > > Soft float API support applies to armv7 too after r324340 D

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

2017-10-23 Thread Konstantin Belousov
On Mon, Oct 23, 2017 at 09:31:42AM -0400, Steve Wills wrote: > Hi, > > On 10/21/2017 18:55, Allan Jude wrote: > > On 2017-10-21 18:45, Steven Hartland wrote: > >> Personally I hate that idea as like being able to see all the processes > >> from the host. > >> > >> I have a similar hate of Linux co

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

2017-10-23 Thread Konstantin Belousov
Author: kib Date: Mon Oct 23 16:14:55 2017 New Revision: 324926 URL: https://svnweb.freebsd.org/changeset/base/324926 Log: Expand explanation of atomicity. Mention per-location total order, out of thin air, and torn writes guarantees. Mention C11 standard' memory model and one most impor

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

2017-10-23 Thread Konstantin Belousov
On Mon, Oct 23, 2017 at 10:28:22AM -0600, Ian Lepore wrote: > On Mon, 2017-10-23 at 16:14 +0000, Konstantin Belousov wrote: > > Author: kib > > Date: Mon Oct 23 16:14:55 2017 > > New Revision: 324926 > > URL: https://svnweb.freebsd.org/changeset/base/324926 > >

svn commit: r324972 - head/usr.bin/top

2017-10-25 Thread Konstantin Belousov
Author: kib Date: Wed Oct 25 11:44:46 2017 New Revision: 324972 URL: https://svnweb.freebsd.org/changeset/base/324972 Log: Limit top display of total swap size by the max swap size system can handle. Keep both pagesize and the new swap_maxpages in the static variables to save sysctl cal

Re: svn commit: r324938 - head/contrib/jemalloc/include/jemalloc/internal

2017-10-27 Thread Konstantin Belousov
On Fri, Oct 27, 2017 at 02:53:26PM +0200, Michal Meloun wrote: > Sorry for top posting > That's pity, we have clear problem in rtld code :( > See: > - > RESCUE WITHOUT JEMALLOC_ALIGNED(16); > - >

Re: svn commit: r324938 - head/contrib/jemalloc/include/jemalloc/internal

2017-10-27 Thread Konstantin Belousov
On Fri, Oct 27, 2017 at 07:48:43PM +0200, Michal Meloun wrote: > But there is something what's still missing me. > The rescue binary is statically linked, so whole program have only one > TLS section and full TLS layout is determined by linker. > The problematic structure, tsd_tls, is first one in

Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-31 Thread Konstantin Belousov
On Tue, Oct 31, 2017 at 09:56:15AM +0100, Baptiste Daroussin wrote: > On Mon, Oct 30, 2017 at 10:33:20AM -0700, Eitan Adler wrote: > > On 30 October 2017 at 08:15, Baptiste Daroussin wrote: > > >> > > >> - Prefer UTF-8 over ISO-8859-1 > > >> - Remove some references to printing man pages > > >

svn commit: r325270 - in head/sys: amd64/amd64 i386/i386 i386/isa

2017-11-01 Thread Konstantin Belousov
Author: kib Date: Wed Nov 1 10:32:44 2017 New Revision: 325270 URL: https://svnweb.freebsd.org/changeset/base/325270 Log: Consistently ensure that we do not load MXCSR with reserved bits set. Some callers of fpusetregs()/npxsetregs(), most importantly set_fpcontext(), clear reserved bits

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

2017-11-01 Thread Konstantin Belousov
Author: kib Date: Wed Nov 1 10:49:41 2017 New Revision: 325271 URL: https://svnweb.freebsd.org/changeset/base/325271 Log: Use designated initializers for pmc sysent and module data. Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week X-Di

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

2017-11-01 Thread Konstantin Belousov
Author: kib Date: Wed Nov 1 11:05:47 2017 New Revision: 325273 URL: https://svnweb.freebsd.org/changeset/base/325273 Log: Minor style tweaks. Sponsored by: The FreeBSD Foundation MFC after:1 week X-Differential revision: https://reviews.freebsd.org/D12882 Modified: head/sys

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

2017-11-01 Thread Konstantin Belousov
Author: kib Date: Wed Nov 1 11:16:18 2017 New Revision: 325274 URL: https://svnweb.freebsd.org/changeset/base/325274 Log: There is no use for dropping Giant in the pmc syscall. Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week X-Differe

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

2017-11-01 Thread Konstantin Belousov
Author: kib Date: Wed Nov 1 11:32:52 2017 New Revision: 325275 URL: https://svnweb.freebsd.org/changeset/base/325275 Log: In hwpmc, do not double-close the logging file. hwpmc(4) must not voluntarily call fo_close(), doing this causes double-close of the file. It seems to almost avoid b

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

2017-11-01 Thread Konstantin Belousov
Author: kib Date: Wed Nov 1 11:37:45 2017 New Revision: 325276 URL: https://svnweb.freebsd.org/changeset/base/325276 Log: Be protective and check the po_file validity before dropping the ref. Reported and tested by: pho Reviewed by: markj Sponsored by: The FreeBSD Foundation M

svn commit: r325277 - in head/sys: dev/hwpmc sys

2017-11-01 Thread Konstantin Belousov
Author: kib Date: Wed Nov 1 11:43:39 2017 New Revision: 325277 URL: https://svnweb.freebsd.org/changeset/base/325277 Log: Do not run pmclog_configure_log() without pmc_sx protection. The r195005 unlocked pmc_sx before calling into pmclog_configure_log() to avoid the LOR, but it allows fl

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

2017-11-01 Thread Konstantin Belousov
Author: kib Date: Wed Nov 1 18:06:44 2017 New Revision: 325285 URL: https://svnweb.freebsd.org/changeset/base/325285 Log: Restore an optimization that was temporary disabled by r324665. In reclaim_pv_chunk(), rotate the pv chunks list so that next invocations of the reclaim do not scan t

svn commit: r325386 - head/sys/kern

2017-11-04 Thread Konstantin Belousov
Author: kib Date: Sat Nov 4 10:49:34 2017 New Revision: 325386 URL: https://svnweb.freebsd.org/changeset/base/325386 Log: Convert explicit panic() call to assert. Based on github pull request: #113 Submitted by: pmarillo@github MFC after:1 week Modified: head/sys/kern/kern_umtx.

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

2017-11-04 Thread Konstantin Belousov
Author: kib Date: Sat Nov 4 10:50:47 2017 New Revision: 325387 URL: https://svnweb.freebsd.org/changeset/base/325387 Log: Eliminate unused load. Based on github pull request: #117 Submitted by: Wuyang-Chung@github MFC after:1 week Modified: head/sys/i386/i386/swtch.s Modified:

svn commit: r325388 - in head/sys: amd64/amd64 i386/i386

2017-11-04 Thread Konstantin Belousov
Author: kib Date: Sat Nov 4 10:51:52 2017 New Revision: 325388 URL: https://svnweb.freebsd.org/changeset/base/325388 Log: x86: Do not emit unused TD_TID symbols. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/genassym.c head/sys/i386/i386/ge

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