Author: kib
Date: Tue Jul 2 19:07:17 2019
New Revision: 349609
URL: https://svnweb.freebsd.org/changeset/base/349609
Log:
Control implicit PROT_MAX() using procctl(2) and the FreeBSD note
feature bit.
In particular, allocate the bit to opt-out the image from implicit
PROTMAX enablement
Author: kib
Date: Tue Jul 2 19:12:02 2019
New Revision: 349610
URL: https://svnweb.freebsd.org/changeset/base/349610
Log:
Add implicit PROT_MAX() knob to proccontrol(1).
Reviewed by: emaste, markj (previous version)
Discussed with: brooks
Sponsored by: The FreeBSD Foundation
D
Author: kib
Date: Tue Jul 2 19:32:48 2019
New Revision: 349611
URL: https://svnweb.freebsd.org/changeset/base/349611
Log:
Style.
Sponsored by: The FreeBSD Foundation
MFC after:3 days
Modified:
head/sys/kern/kern_umtx.c
Modified: head/sys/kern/kern_umtx.c
=
Author: kib
Date: Tue Jul 2 21:03:06 2019
New Revision: 349614
URL: https://svnweb.freebsd.org/changeset/base/349614
Log:
More style.
Re-wrap long lines, reformat comments, remove excessive blank line.
Sponsored by: The FreeBSD Foundation
MFC after:3 days
Modified:
head/sys/k
Author: kib
Date: Sat Jul 6 20:31:37 2019
New Revision: 349794
URL: https://svnweb.freebsd.org/changeset/base/349794
Log:
Document atomicity for read(2) and write(2).
Take part of the text from POSIX 2018 edition and describe the
atomicity requirements for read and write syscalls. See p
Author: kib
Date: Thu Jul 11 16:19:33 2019
New Revision: 349912
URL: https://svnweb.freebsd.org/changeset/base/349912
Log:
Restore ability to pass NULL name argument to pthread_set_name_np(3)
to clear the thread name.
PR: 239142
Submitted by: Lewis Donzis
MFC after:3 days
Modi
Author: kib
Date: Thu Jul 11 16:22:49 2019
New Revision: 349913
URL: https://svnweb.freebsd.org/changeset/base/349913
Log:
Ensure that mds_handler always points to a valid method.
Depending on system configuration, version, and architecture,
mds_handler might be dereferenced from doreti b
Author: kib
Date: Fri Jul 12 18:39:41 2019
New Revision: 349950
URL: https://svnweb.freebsd.org/changeset/base/349950
Log:
Style: avoid long lines by using .Fo instead of .Fn.
Sponsored by: The FreeBSD Foundation
MFC after:3 days
Modified:
head/share/man/man9/casuword.9
Modified:
Author: kib
Date: Fri Jul 12 18:43:24 2019
New Revision: 349951
URL: https://svnweb.freebsd.org/changeset/base/349951
Log:
Provide protection against starvation of the ll/sc loops when accessing
userpace.
Casueword(9) on ll/sc architectures must be prepared for userspace
constantly modif
Author: kib
Date: Fri Jul 12 19:14:52 2019
New Revision: 349953
URL: https://svnweb.freebsd.org/changeset/base/349953
Log:
Fix syntax.
Nod from: jhb
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/amd64/vmm/vmm_dev.c
Modified: head/sys/amd64/vmm/vmm_dev.c
=
Author: kib
Date: Sun Jul 14 21:08:54 2019
New Revision: 349988
URL: https://svnweb.freebsd.org/changeset/base/349988
Log:
PR: 239143
Reported and tested by: Wes Maag
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Modified:
head/sys/x86/iommu/intel_drv.c
Modified: h
On Sun, Jul 14, 2019 at 09:08:54PM +, Konstantin Belousov wrote:
> Author: kib
> Date: Sun Jul 14 21:08:54 2019
> New Revision: 349988
> URL: https://svnweb.freebsd.org/changeset/base/349988
In dmar_find(), refuse to search for DMAR unit for non-PCI device.
Eventually this should
Author: kib
Date: Mon Jul 15 08:38:01 2019
New Revision: 349994
URL: https://svnweb.freebsd.org/changeset/base/349994
Log:
Correctly check for casueword(9) success in do_set_ceiling().
After r349951, the return code must be checked instead of old == new
comparision.
Reviewed by: mar
Author: kib
Date: Mon Jul 15 08:39:52 2019
New Revision: 349995
URL: https://svnweb.freebsd.org/changeset/base/349995
Log:
In do_lock_pi(), do not return prematurely.
If umtxq_check_susp() indicates an exit, we should clean the resources
before returning. Do it by breaking out of the loo
Author: kib
Date: Mon Jul 15 19:18:25 2019
New Revision: 350005
URL: https://svnweb.freebsd.org/changeset/base/350005
Log:
In do_sem2_wait(), balance umtx_key_get() with umtx_key_release() on retry.
Reported by: ler
Bisected and reviewed by: markj
Sponsored by: The FreeBSD Foundati
Author: kib
Date: Wed Jul 17 19:29:55 2019
New Revision: 350091
URL: https://svnweb.freebsd.org/changeset/base/350091
Log:
bsearch.3: Improve the example.
Submitted by: fernape
MFC after:1 week
Differential revision:https://reviews.freebsd.org/D19902
Modified:
head/lib/li
On Thu, Jul 18, 2019 at 09:41:15PM +, Brooks Davis wrote:
> On Thu, Jul 18, 2019 at 09:33:56PM +, Brooks Davis wrote:
> > Author: brooks
> > Date: Thu Jul 18 21:33:55 2019
> > New Revision: 350116
> > URL: https://svnweb.freebsd.org/changeset/base/350116
> >
> > Log:
> > Document that se
Author: kib
Date: Fri Jul 19 20:51:39 2019
New Revision: 350156
URL: https://svnweb.freebsd.org/changeset/base/350156
Log:
Fix leak of memory and file refs with sendmsg(2) over unix domain sockets.
When sendmsg(2) sucessfully internalized one SCM_RIGHTS control
message, but failed to proc
Author: kib
Date: Sun Jul 21 15:07:12 2019
New Revision: 350199
URL: https://svnweb.freebsd.org/changeset/base/350199
Log:
Check and avoid overflow when incrementing fp->f_count in
fget_unlocked() and fhold().
On sufficiently large machine, f_count can be legitimately very large,
e.g. m
Author: kib
Date: Sun Jul 21 16:24:40 2019
New Revision: 350200
URL: https://svnweb.freebsd.org/changeset/base/350200
Log:
Fix userspace build after r350199.
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Modified:
head/sys/sys/refcount.h
Modified: head/sys/sys/refcount.h
=
Author: kib
Date: Sun Jul 21 20:16:48 2019
New Revision: 350204
URL: https://svnweb.freebsd.org/changeset/base/350204
Log:
Switch the rest of the refcount(9) functions to bool return type.
There are some explicit comparisions of refcount_release(9) result
with 0/1, which are fine.
Re
"
+.\" Parts of 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, are permitted provided tha
On Thu, Jul 25, 2019 at 05:46:17AM +, Rick Macklem wrote:
> Author: rmacklem
> Date: Thu Jul 25 05:46:16 2019
> New Revision: 350315
> URL: https://svnweb.freebsd.org/changeset/base/350315
>
> Log:
> Add kernel support for a Linux compatible copy_file_range(2) syscall.
> Modified: head/sys/
On Sat, Jul 27, 2019 at 01:35:06AM +, Rick Macklem wrote:
> Konstantin Belousov wrote:
> >On Thu, Jul 25, 2019 at 05:46:17AM +, Rick Macklem wrote:
> >> Author: rmacklem
> >> Date: Thu Jul 25 05:46:16 2019
> >> New Revision: 350315
> >> URL: htt
On Tue, Jul 30, 2019 at 03:04:57PM -0700, Bryan Drewery wrote:
> On 7/15/2019 12:18 PM, Konstantin Belousov wrote:
> > Author: kib
> > Date: Mon Jul 15 19:18:25 2019
> > New Revision: 350005
> > URL: https://svnweb.freebsd.org/changeset/base/350005
> >
> >
On Wed, Jul 31, 2019 at 02:13:02AM +0300, Konstantin Belousov wrote:
> On Tue, Jul 30, 2019 at 03:04:57PM -0700, Bryan Drewery wrote:
> > On 7/15/2019 12:18 PM, Konstantin Belousov wrote:
> > > Author: kib
> > > Date: Mon Jul 15 19:18:25 2019
> > > N
On Tue, Jul 30, 2019 at 08:40:28PM -0700, Bryan Drewery wrote:
> This 2nd change alone (&& count1 == 0) was sufficient to fix the endless
> loop problem.
Good, thank you.
>
> I am not sure how to test the umtxq_check_susp() change. Do I just need
> to ptrace the process?
No, you should create a
Author: kib
Date: Wed Jul 31 19:16:49 2019
New Revision: 350478
URL: https://svnweb.freebsd.org/changeset/base/350478
Log:
Fix handling of transient casueword(9) failures in do_sem_wait().
In particular, restart should be only done when the failure is
transient. For this, recheck the cou
Author: kib
Date: Wed Jul 31 19:20:39 2019
New Revision: 350480
URL: https://svnweb.freebsd.org/changeset/base/350480
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/
Author: kib
Date: Wed Jul 31 19:20:05 2019
New Revision: 350479
URL: https://svnweb.freebsd.org/changeset/base/350479
Log:
freebsd32 shims for copy_file_range(2).
Reviewed by: brooks, rmacklem (previous version)
Sponsored by: The FreeBSD Foundation
Differential revision:https:/
Author: kib
Date: Wed Jul 31 19:27:20 2019
New Revision: 350481
URL: https://svnweb.freebsd.org/changeset/base/350481
Log:
Avoid conflicts with libc symbols in libthr jump table.
In some corner cases of static linking and unexpected libraries order
on the linker command line, libc symbol
On Wed, Jul 31, 2019 at 10:08:39AM -0700, Bryan Drewery wrote:
> On 7/30/19 10:14 PM, Konstantin Belousov wrote:
> > No, you should create a situation where the python process ends the endless
> > loop, as reported. Then, it should become killable by 9 with the first
> &g
Author: kib
Date: Wed Jul 31 20:04:39 2019
New Revision: 350483
URL: https://svnweb.freebsd.org/changeset/base/350483
Log:
Avoid conflicts with libc symbols in libthr jump table.
In some corner cases of static linking and unexpected libraries order
on the linker command line, libc symbol
Author: kib
Date: Wed Jul 31 20:23:10 2019
New Revision: 350484
URL: https://svnweb.freebsd.org/changeset/base/350484
Log:
Make randomized stack gap between strings and pointers to argv/envs.
This effectively makes the stack base on the csu _start entry
randomized.
The gap is enabled
Author: kib
Date: Thu Aug 1 14:34:27 2019
New Revision: 350502
URL: https://svnweb.freebsd.org/changeset/base/350502
Log:
Make umtxq_check_susp() to correctly handle thread exit requests.
The check for P_SINGLE_EXIT was shadowed by the (P_SHOULDSTOP || traced)
check.
Reported by: bd
Author: kib
Date: Thu Aug 1 14:40:37 2019
New Revision: 350504
URL: https://svnweb.freebsd.org/changeset/base/350504
Log:
Try to decrease the number of bugs in unionfs after the VV_TEXT flag removal.
- Provide unionfs_add_writecount() which passes the writecount to the
lower or upper v
Author: kib
Date: Sat Aug 3 16:57:14 2019
New Revision: 350560
URL: https://svnweb.freebsd.org/changeset/base/350560
Log:
bhyve: Ignore MSI/MSI-X interrupts sent to non-active vCPUs in
physical destination mode.
This is mostly a nop, because the vmm initializes all vCPUs up to
vm_maxcp
Author: kib
Date: Sat Aug 3 17:07:04 2019
New Revision: 350561
URL: https://svnweb.freebsd.org/changeset/base/350561
Log:
amd64: Streamline exceptions and interrupts handlers.
PTI-mode entry points were coded to set up the environment identical
to non-PTI entry and then fall-through to n
Author: kib
Date: Sat Aug 3 18:26:16 2019
New Revision: 350562
URL: https://svnweb.freebsd.org/changeset/base/350562
Log:
Fix format spec for ILP32.
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/usb/usb_hub_acpi.c
Modified: head/sys/dev/usb/usb_hub_acpi.c
Author: kib
Date: Sun Aug 4 21:43:34 2019
New Revision: 350575
URL: https://svnweb.freebsd.org/changeset/base/350575
Log:
rtld-elf: Remove x86 elf_rtld.x linker scripts.
First, amd64 version of the script cannot work at least due to the
wrong architecture specification. Second, kernel c
Author: kib
Date: Mon Aug 5 19:16:33 2019
New Revision: 350607
URL: https://svnweb.freebsd.org/changeset/base/350607
Log:
Fix mis-merge
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Modified:
head/sys/kern/kern_exec.c
Modified: head/sys/kern/kern_exec.c
==
On Mon, Aug 05, 2019 at 07:16:34PM +, Konstantin Belousov wrote:
> Author: kib
> Date: Mon Aug 5 19:16:33 2019
> New Revision: 350607
> URL: https://svnweb.freebsd.org/changeset/base/350607
>
> Log:
> Fix mis-merge
This should have been:
Account for the stack l
Author: kib
Date: Mon Aug 5 19:19:25 2019
New Revision: 350608
URL: https://svnweb.freebsd.org/changeset/base/350608
Log:
Fix mis-merge.
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Modified:
head/sys/kern/imgact_elf.c
Modified: head/sys/kern/imgact_elf.c
===
)
+++ head/share/man/man7/security.7 Tue Aug 6 17:05:58 2019
(r350640)
@@ -1,5 +1,10 @@
.\" Copyright (C) 1998 Matthew Dillon. All rights reserved.
+.\" Copyright (c) 2019 The FreeBSD Foundation, Inc.
.\"
+.\" Parts of this documentation were written by
+.\" K
Author: kib
Date: Tue Aug 6 16:53:25 2019
New Revision: 350639
URL: https://svnweb.freebsd.org/changeset/base/350639
Log:
amd64: prevents speculations over swapgs reload of %gs base.
Such speculations could use user-controlled %gs base, esp. since
FreeBSD supports WRGSBASE instructions.
Author: kib
Date: Wed Aug 7 17:46:07 2019
New Revision: 350683
URL: https://svnweb.freebsd.org/changeset/base/350683
Log:
Clarify the robustness guarantees.
Wording submitted by: Martin Simmons
MFC after:3 days
Modified:
head/share/man/man3/pthread_mutex_lock.3
head/share/man/m
Author: kib
Date: Wed Aug 7 17:51:40 2019
New Revision: 350684
URL: https://svnweb.freebsd.org/changeset/base/350684
Log:
More places to clarify the robustness guarantees.
Wording submitted by: Martin Simmons
MFC after:3 days
Modified:
head/share/man/man3/pthread_cond_wait.3
he
Author: kib
Date: Thu Aug 8 16:42:53 2019
New Revision: 350757
URL: https://svnweb.freebsd.org/changeset/base/350757
Log:
Update comment explaining create_init().
Sponsored by: The FreeBSD Foundation
MFC after:3 days
Modified:
head/sys/kern/init_main.c
Modified: head/sys/kern/ini
Author: kib
Date: Thu Aug 8 16:48:19 2019
New Revision: 350758
URL: https://svnweb.freebsd.org/changeset/base/350758
Log:
Fix stack grow for init.
During early stages of kern_exec(), including strings copyout,
p_textvp for init is NULL. This prevented stack grow from working for
init
On Thu, Aug 08, 2019 at 07:38:28PM -0600, Warner Losh wrote:
> On Thu, Aug 8, 2019, 4:59 PM Gleb Smirnoff wrote:
>
> > Hi,
> >
> > why do we need COMPAT_43 for arm64 at all? I can't imagine an
> > application that would require this compatibility.
> >
> > A more general question is how far in t
On Fri, Aug 09, 2019 at 10:01:31AM -0600, Warner Losh wrote:
> On Fri, Aug 9, 2019 at 12:57 AM Konstantin Belousov
> wrote:
>
> > On Thu, Aug 08, 2019 at 07:38:28PM -0600, Warner Losh wrote:
> > > On Thu, Aug 8, 2019, 4:59 PM Gleb Smirnoff wrote:
> > >
> &
On Fri, Aug 09, 2019 at 02:29:49PM -0700, Rodney W. Grimes wrote:
> > On Fri, Aug 09, 2019 at 10:01:31AM -0600, Warner Losh wrote:
> > > On Fri, Aug 9, 2019 at 12:57 AM Konstantin Belousov
> > > wrote:
> > >
> > > > On Thu, Aug 08, 2019 at 07:38:28
Author: kib
Date: Sun Aug 11 15:44:36 2019
New Revision: 350860
URL: https://svnweb.freebsd.org/changeset/base/350860
Log:
wait(2): split long line by using .Fo/.Fa instead of .Ft.
Sponsored by: The FreeBSD Foundation
MFC after:3 days
Modified:
head/lib/libc/sys/wait.2
Modified: h
Author: kib
Date: Sun Aug 11 15:47:48 2019
New Revision: 350861
URL: https://svnweb.freebsd.org/changeset/base/350861
Log:
wait(2): clarify reparenting of children of the exiting process.
Point to the existence of reapers and mention that init is the default
reaper.
Sponsored by: The
Author: kib
Date: Sun Aug 11 19:16:07 2019
New Revision: 350862
URL: https://svnweb.freebsd.org/changeset/base/350862
Log:
Only enable COMPAT_43 changes for syscalls ABI for a.out processes.
Reviewed by: imp, jhb
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Differential
Author: kib
Date: Sun Aug 11 19:17:29 2019
New Revision: 350863
URL: https://svnweb.freebsd.org/changeset/base/350863
Log:
compat/linux: Remove obsoleted and somewhat confusing comments related to
COMPAT_43.
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Differential revisio
Author: kib
Date: Mon Aug 12 20:27:33 2019
New Revision: 350957
URL: https://svnweb.freebsd.org/changeset/base/350957
Log:
Increase YPMAXRECORD to 16M to be compatible with Linux.
Since YP protocol definition uses the constant to declare
variable-size opaque byte strings, the change shoul
Author: kib
Date: Fri Aug 16 09:43:49 2019
New Revision: 351114
URL: https://svnweb.freebsd.org/changeset/base/351114
Log:
Fix OOM handling of some corner cases.
In addition to pagedaemon initiating OOM, also do it from the
vm_fault() internals. Namely, if the thread waits for a free pag
Author: kib
Date: Sun Aug 18 15:58:44 2019
New Revision: 351190
URL: https://svnweb.freebsd.org/changeset/base/351190
Log:
i386: Implement atomic_load_64(9) and atomic_store_64(9).
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Modified:
head/share/man/man9/atomic.9
head/s
Author: kib
Date: Sun Aug 18 20:24:52 2019
New Revision: 351194
URL: https://svnweb.freebsd.org/changeset/base/351194
Log:
Change locking requirements for VOP_UNSET_TEXT().
Require the vnode to be locked for the VOP_UNSET_TEXT() call. This
will be used by the following bug fix for a tmpf
Author: kib
Date: Sun Aug 18 20:36:11 2019
New Revision: 351195
URL: https://svnweb.freebsd.org/changeset/base/351195
Log:
Fix an issue with executing tmpfs binary.
Suppose that a binary was executed from tmpfs mount, and the text
vnode was reclaimed while the binary was still running. I
On Tue, Jun 16, 2020 at 10:53:56PM +, Conrad Meyer wrote:
> Author: cem
> Date: Tue Jun 16 22:53:56 2020
> New Revision: 362253
> URL: https://svnweb.freebsd.org/changeset/base/362253
>
> Log:
> vm: Drop vm_map_clip_{start,end} macro wrappers
>
> No functional change.
>
> Reviewed
Author: kib
Date: Thu Jun 18 20:49:56 2020
New Revision: 362342
URL: https://svnweb.freebsd.org/changeset/base/362342
Log:
Fix execution of linux binary from multithreaded non-Linux process.
If multithreaded non-Linux process execs Linux binary, then non-Linux
threads different from the o
Author: kib
Date: Thu Jun 18 23:06:05 2020
New Revision: 362346
URL: https://svnweb.freebsd.org/changeset/base/362346
Log:
rtld: Parse own phdr and notes.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Differential revision:https://reviews.freeb
Author: kib
Date: Thu Jun 18 23:07:58 2020
New Revision: 362347
URL: https://svnweb.freebsd.org/changeset/base/362347
Log:
rtld: Apply relro to itself.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Differential revision:https://reviews.freebsd.
On Thu, Jun 18, 2020 at 06:12:06AM +, Andriy Gapon wrote:
> Author: avg
> Date: Thu Jun 18 06:12:06 2020
> New Revision: 362294
> URL: https://svnweb.freebsd.org/changeset/base/362294
>
> Log:
> hdac_intr_handler: keep working until global interrupt status clears
>
> It is plausible tha
On Mon, Jun 22, 2020 at 09:37:15AM +0300, Andriy Gapon wrote:
> On 22/06/2020 00:59, Konstantin Belousov wrote:
> > This commit (or rather, a merge of this commit to stable/12) causes an issue
> > on my Apollo Lake machine. Look:
> > hdac0@pci0:0:14:0: class=0x040300
Author: kib
Date: Sat Jun 27 02:31:39 2020
New Revision: 362670
URL: https://svnweb.freebsd.org/changeset/base/362670
Log:
vm_page_free_prep(): correct description of the required page and object
state.
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential revision:
On Sat, Jun 27, 2020 at 07:09:33PM +, Piotr Pawel Stefaniak wrote:
> Author: pstef
> Date: Sat Jun 27 19:09:33 2020
> New Revision: 362705
> URL: https://svnweb.freebsd.org/changeset/base/362705
>
> Log:
> ps(1): reuse keyword "cpu" to show CPU number
>
> This flag will now show the pro
Author: kib
Date: Sat Jun 27 19:29:07 2020
New Revision: 362706
URL: https://svnweb.freebsd.org/changeset/base/362706
Log:
amd64 pmap: explain ptepindex.
Reviewed by: markj
Discussed with: alc
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Differential revision:
On Sat, Jun 27, 2020 at 09:29:32PM +0200, Piotr P. Stefaniak wrote:
> On 2020-06-27 22:21:02, Konstantin Belousov wrote:
> > On Sat, Jun 27, 2020 at 07:09:33PM +, Piotr Pawel Stefaniak wrote:
> > > Author: pstef
>
> > > @@ -1454,6 +1457,18 @@ pidmax_init(void)
&
Author: kib
Date: Sun Jun 28 00:29:21 2020
New Revision: 362711
URL: https://svnweb.freebsd.org/changeset/base/362711
Log:
top: do not try to use sysctl machdep.smp_active.
The sysctl was removed by r76078 in 2001.
Sponsored by: The FreeBSD Foundation
MFC after:1 week
Modified:
On Wed, Jul 01, 2020 at 08:23:57AM +, Hans Petter Selasky wrote:
> Author: hselasky
> Date: Wed Jul 1 08:23:57 2020
> New Revision: 362829
> URL: https://svnweb.freebsd.org/changeset/base/362829
>
> Log:
> The "pid" field in the LinuxKPI task struct is typically set to the thread
> ID
>
On Wed, Jul 01, 2020 at 11:35:21AM +0200, Hans Petter Selasky wrote:
> On 2020-07-01 11:21, Konstantin Belousov wrote:
> > It should be expressed as pget(pid, 0); instead of duplicating.
>
> Hi,
>
> Currently the LinuxKPI style is to use tdfind() and pfind(). If you look at
On Wed, Jul 01, 2020 at 12:56:12PM +0200, Hans Petter Selasky wrote:
> On 2020-07-01 12:30, Konstantin Belousov wrote:
> > I see no point in repeating the same pfind/tdfind calls, better to convert
> > them to pget(), and have this code in one intended place.
>
> I wonder
Author: kib
Date: Thu Jul 2 10:40:47 2020
New Revision: 362885
URL: https://svnweb.freebsd.org/changeset/base/362885
Log:
Use tdfind() in pget().
Reviewed by: jhb, hselasky
Sponsored by: Mellanox Technologies
MFC after:1 week
Differential revision:https://reviews.freebsd
Author: kib
Date: Thu Jul 2 10:42:58 2020
New Revision: 362886
URL: https://svnweb.freebsd.org/changeset/base/362886
Log:
linuxkpi: improvements for linux_pid_task() and linux_get_pid_task().
Unify functions bodies.
Do not call tdfind() if pid is passed, and do not call pfind() if tid
Author: kib
Date: Thu Jul 2 10:44:45 2020
New Revision: 362887
URL: https://svnweb.freebsd.org/changeset/base/362887
Log:
mlx5_core: remove unneccessary LFENCE instruction.
Use fence instead of barrier, which is optimized to take advantage of
the x86 TSO memory model.
Reviewed by:
Author: kib
Date: Sun Jul 5 20:54:01 2020
New Revision: 362948
URL: https://svnweb.freebsd.org/changeset/base/362948
Log:
Fix typo.
Sponsored by: The FreeBSD Foundation
MFC after:3 days
Modified:
head/sys/kern/vfs_vnops.c
Modified: head/sys/kern/vfs_vnops.c
==
Author: kib
Date: Tue Jul 14 20:23:27 2020
New Revision: 363193
URL: https://svnweb.freebsd.org/changeset/base/363193
Log:
Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE >= 500.
Reported by: jbeich
PR: 247701
Reviewed by: jilles
Sponsored by: The FreeBSD Foundati
Author: kib
Date: Tue Jul 14 20:37:50 2020
New Revision: 363195
URL: https://svnweb.freebsd.org/changeset/base/363195
Log:
amd64: allow parallel shootdown IPIs
Stop using smp_ipi_mtx to protect global shootdown state, and
move/multiply the global state into pcpu. Now each CPU can initiat
Author: kib
Date: Wed Jul 15 09:48:36 2020
New Revision: 363211
URL: https://svnweb.freebsd.org/changeset/base/363211
Log:
Grammar and typo fixes.
Submitted by: alc
MFC after:20 days
Modified:
head/sys/amd64/amd64/mp_machdep.c
Modified: head/sys/amd64/amd64/mp_machdep.c
==
Author: kib
Date: Wed Jul 15 16:12:00 2020
New Revision: 363227
URL: https://svnweb.freebsd.org/changeset/base/363227
Log:
Improve description of the vector argument for i386
smp_targeted_tlb_shootdown().
Submitted by: alc
MFC after:20 days
Modified:
head/sys/i386/i386/mp_machdep.
Author: kib
Date: Sat Jul 18 18:19:57 2020
New Revision: 363311
URL: https://svnweb.freebsd.org/changeset/base/363311
Log:
amd64 pmap: microoptimize local shootdowns for PCID PTI configurations
When pmap operates in PTI mode, we must reload %cr3 on return to
userspace. In non-PCID mode t
On Sat, Jul 18, 2020 at 12:43:11PM +, Kristof Provost wrote:
> Author: kp
> Date: Sat Jul 18 12:43:11 2020
> New Revision: 363308
> URL: https://svnweb.freebsd.org/changeset/base/363308
>
> Log:
> bridge: Don't sleep during epoch
>
> While it doesn't trigger INVARIANTS or WITNESS on hea
Author: kib
Date: Sun Jul 19 17:47:55 2020
New Revision: 363329
URL: https://svnweb.freebsd.org/changeset/base/363329
Log:
Simplify non-pti syscall entry on amd64.
Limit manipulations to use %rax as scratch to the pti portion of the
syscall entry code.
Submitted by: alc
Reviewed by
On Fri, Jul 24, 2020 at 05:34:05PM +, Conrad Meyer wrote:
> Author: cem
> Date: Fri Jul 24 17:34:04 2020
> New Revision: 363482
> URL: https://svnweb.freebsd.org/changeset/base/363482
>
> Log:
> Add unlocked/SMR fast path to getblk()
>
> Convert the bufobj tries to an SMR zone/PCTRIE an
On Thu, Jul 30, 2020 at 03:13:19PM -0700, Conrad Meyer wrote:
> Hi Konstantin,
>
> On Tue, Jul 28, 2020 at 11:42 AM Konstantin Belousov
> wrote:
> >
> > On Fri, Jul 24, 2020 at 05:34:05PM +, Conrad Meyer wrote:
> > > ...
> > > --- head/sys
Author: kib
Date: Mon Aug 3 17:17:17 2020
New Revision: 363801
URL: https://svnweb.freebsd.org/changeset/base/363801
Log:
Provide more correct description for sysctl kern.smp.cores.
Reported by: dewa...@heuristicsystems.com.au
PR: 248454
Sponsored by: The FreeBSD Foundation
MFC af
Author: kib
Date: Mon Aug 3 22:13:02 2020
New Revision: 363813
URL: https://svnweb.freebsd.org/changeset/base/363813
Log:
Add SOL_LOCAL symbolic constant for unix socket option level.
The constant seems to exists on MacOS X >= 10.8.
Requested by: swills
Reviewed by: allanjude, keva
Author: kib
Date: Mon Aug 10 21:41:49 2020
New Revision: 364091
URL: https://svnweb.freebsd.org/changeset/base/364091
Log:
Export scandir_b from libc.
Apparently it was not exported, because scandir_b.c was not included
into libc SRCS. Export it with the CURRENT-13 version.
Also, be
On Tue, Aug 11, 2020 at 08:37:45PM +, Conrad Meyer wrote:
> Author: cem
> Date: Tue Aug 11 20:37:45 2020
> New Revision: 364129
> URL: https://svnweb.freebsd.org/changeset/base/364129
>
> Log:
> Add support for multithreading the inactive queue pageout within a domain.
>
> In very high
Author: kib
Date: Sun Aug 16 20:52:24 2020
New Revision: 364285
URL: https://svnweb.freebsd.org/changeset/base/364285
Log:
Atomically update vm_object vnp_size, where atomic is available.
This will be used later, where it matters on 32bit arches.
Reviewed by: markj
Tested by:pho
Author: kib
Date: Sun Aug 16 20:57:02 2020
New Revision: 364286
URL: https://svnweb.freebsd.org/changeset/base/364286
Log:
vm_object: allow paging_in_progress to be acquired after object termination.
The vm objects are type-stable, and can be accessed even after the
last reference is drop
Author: kib
Date: Sun Aug 16 21:02:45 2020
New Revision: 364287
URL: https://svnweb.freebsd.org/changeset/base/364287
Log:
VMIO read
If possible, i.e. if the requested range is resident valid in the vm
object queue, and some secondary conditions hold, copy data for
read(2) directly from
Author: kib
Date: Sun Aug 16 21:05:56 2020
New Revision: 364288
URL: https://svnweb.freebsd.org/changeset/base/364288
Log:
VMIO reads: enable for nullfs upper vnode if the lower vnode supports it.
Reviewed by: markj
Tested by:pho
Sponsored by: The FreeBSD Foundation
Differential
Author: kib
Date: Sun Aug 16 21:07:19 2020
New Revision: 364289
URL: https://svnweb.freebsd.org/changeset/base/364289
Log:
VMIO reads: enable for UFS
Move v_object creation earlier, so that VIRF_PGREAD is never set if
v_object is NULL. There is no much harm from instantiating v_object
Author: kib
Date: Sun Aug 16 22:50:59 2020
New Revision: 364290
URL: https://svnweb.freebsd.org/changeset/base/364290
Log:
Fix powerpc build.
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/kern/vfs_vnops.c
Modified: head/sys/kern/vfs_vnops.c
Author: kib
Date: Mon Aug 17 19:14:09 2020
New Revision: 364322
URL: https://svnweb.freebsd.org/changeset/base/364322
Log:
scandir-compat11.c: Remove unused declaration for qsort_b().
Sponsored by: The FreeBSD Foundation
MFC after:0 days
Modified:
head/lib/libc/gen/scandir-compat11
On Tue, Aug 18, 2020 at 07:23:47AM +, Peter Grehan wrote:
> +void
> +vmx_msr_guest_exit_tsc_aux(struct vmx *vmx, int vcpuid)
> +{
> + uint64_t guest_tsc_aux = vmx->guest_msrs[vcpuid][IDX_MSR_TSC_AUX];
> + uint32_t cpuid = PCPU_GET(cpuid);
> +
> + if (vmx_have_msr_tsc_aux(vmx) && (gu
701 - 800 of 5077 matches
Mail list logo