Re: svn commit: r365787 - head/sys/fs/tmpfs

2021-01-02 Thread Konstantin Belousov
On Sat, Jan 02, 2021 at 04:35:22PM +, Alexey Dokuchaev wrote: > On Sat, Jan 02, 2021 at 04:52:33PM +0200, Konstantin Belousov wrote: > > ... > > Ok. So two questions: > > 1. Do you have core dump? > > I have vmcore.0 and matching kernel.debug, I'll gladly obtain

Re: svn commit: r365787 - head/sys/fs/tmpfs

2021-01-02 Thread Konstantin Belousov
On Sat, Jan 02, 2021 at 06:29:06AM +, Alexey Dokuchaev wrote: > On Sat, Jan 02, 2021 at 12:02:23AM +0200, Konstantin Belousov wrote: > > On Fri, Jan 01, 2021 at 06:44:00PM +, Alexey Dokuchaev wrote: > > > On Tue, Sep 15, 2020 at 10:19:16PM +, Konstantin Belousov

Re: svn commit: r365787 - head/sys/fs/tmpfs

2021-01-01 Thread Konstantin Belousov
On Sat, Jan 02, 2021 at 12:02:29AM +0200, Konstantin Belousov wrote: > On Fri, Jan 01, 2021 at 06:44:00PM +, Alexey Dokuchaev wrote: > > On Tue, Sep 15, 2020 at 10:19:16PM +, Konstantin Belousov wrote: > > > New Revision: 365787 > > > URL: https://svnweb.freebs

Re: svn commit: r365787 - head/sys/fs/tmpfs

2021-01-01 Thread Konstantin Belousov
On Fri, Jan 01, 2021 at 06:44:00PM +, Alexey Dokuchaev wrote: > On Tue, Sep 15, 2020 at 10:19:16PM +0000, Konstantin Belousov wrote: > > New Revision: 365787 > > URL: https://svnweb.freebsd.org/changeset/base/365787 > > > > Log: > >

Re: svn commit: r368789 - head/libexec/rtld-elf/rtld-libc

2020-12-19 Thread Konstantin Belousov
On Sat, Dec 19, 2020 at 08:27:31PM -0800, Ryan Libby wrote: > On a tangent, it might be neat to split out an rtld_bootstrap > (everything through init_rtld()) so that only the bootstrap code needs > to be compiled and linked with no-SSP. I looked at this some but I > figured there might not be

Re: svn commit: r368817 - in head/lib/libc: locale net stdlib sys x86/sys

2020-12-19 Thread Konstantin Belousov
On Sat, Dec 19, 2020 at 02:54:28PM +, Gordon Bergling wrote: > Modified: head/lib/libc/sys/thr_self.2 > == > --- head/lib/libc/sys/thr_self.2 Sat Dec 19 13:56:19 2020 > (r368816) > +++

Re: svn commit: r368714 - head/lib/libc/string

2020-12-19 Thread Konstantin Belousov
On Sat, Dec 19, 2020 at 02:52:25PM +0100, Steffen Nurpmeso wrote: > Kevin Bowling wrote in > : > |On Thu, Dec 17, 2020 at 9:33 AM Ian Lepore wrote: > |> On Thu, 2020-12-17 at 18:22 +0200, Konstantin Belousov wrote: > |>> On Thu, Dec 17, 2020 at 01:01:01PM +00

svn commit: r368775 - head/usr.sbin/pmc

2020-12-18 Thread Konstantin Belousov
Author: kib Date: Sat Dec 19 01:46:47 2020 New Revision: 368775 URL: https://svnweb.freebsd.org/changeset/base/368775 Log: Remove redundand redefinion, fixing build. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/usr.sbin/pmc/cmd_pmc_summary.cc Modified:

svn commit: r368772 - in head: sys/compat/freebsd32 sys/kern sys/sys usr.bin/elfctl

2020-12-18 Thread Konstantin Belousov
Author: kib Date: Fri Dec 18 23:14:39 2020 New Revision: 368772 URL: https://svnweb.freebsd.org/changeset/base/368772 Log: Add ELF flag to disable ASLR stack gap. Also centralize and unify checks to enable ASLR stack gap in a new helper exec_stackgap(). PR: 239873 Sponsored by:

svn commit: r368771 - head/sys/sys

2020-12-18 Thread Konstantin Belousov
Author: kib Date: Fri Dec 18 23:11:27 2020 New Revision: 368771 URL: https://svnweb.freebsd.org/changeset/base/368771 Log: proc.h: Reformat P_ and P2_ definitions. Use traditional explicit leading zero format for hex numbers. Align P2_ hex values. Wrap long lines by splitting comments.

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

2020-12-17 Thread Konstantin Belousov
Author: kib Date: Fri Dec 18 03:46:50 2020 New Revision: 368749 URL: https://svnweb.freebsd.org/changeset/base/368749 Log: pci_iov: When pci_iov_detach(9) is called, destroy VF children instead of bailing out with EBUSY if there are any. If driver module is unloaded, or just device is

svn commit: r368735 - head/sys/kern

2020-12-17 Thread Konstantin Belousov
Author: kib Date: Thu Dec 17 19:51:39 2020 New Revision: 368735 URL: https://svnweb.freebsd.org/changeset/base/368735 Log: Fix a race in tty_signal_sessleader() with unlocked read of s_leader. Since we do not own the session lock, a parallel killjobc() might reset s_leader to NULL after

svn commit: r368723 - head/include

2020-12-17 Thread Konstantin Belousov
Author: kib Date: Thu Dec 17 17:08:25 2020 New Revision: 368723 URL: https://svnweb.freebsd.org/changeset/base/368723 Log: Change POSIX compliance level for visibility of strerror_l(3). Third-party code tests for strerror_l(3) without specifying _POSIX_SOURCE, and then expects that the

Re: svn commit: r368714 - head/lib/libc/string

2020-12-17 Thread Konstantin Belousov
On Thu, Dec 17, 2020 at 01:01:01PM +, Jessica Clarke wrote: > On 17 Dec 2020, at 12:53, Konstantin Belousov wrote: > > > > On Thu, Dec 17, 2020 at 12:41:47PM +, Mateusz Piotrowski wrote: > >> Author: 0mp (doc,ports committer) > >> Date: Thu Dec 17 12:41:

Re: svn commit: r368692 - in head: include/xlocale lib/libc/include lib/libc/nls lib/libc/string

2020-12-17 Thread Konstantin Belousov
On Thu, Dec 17, 2020 at 04:02:05PM +0100, Antoine Brodin wrote: > On Thu, Dec 17, 2020 at 11:07 AM Konstantin Belousov > wrote: > > Could you please try the following, which might be a right thing to do > > regardless p11-kit quirk. > > Hi, > > This change fix

Re: svn commit: r368714 - head/lib/libc/string

2020-12-17 Thread Konstantin Belousov
On Thu, Dec 17, 2020 at 12:41:47PM +, Mateusz Piotrowski wrote: > Author: 0mp (doc,ports committer) > Date: Thu Dec 17 12:41:47 2020 > New Revision: 368714 > URL: https://svnweb.freebsd.org/changeset/base/368714 > > Log: > strerror.3: Add an example for perror() > > This is a nice and

Re: svn commit: r368692 - in head: include/xlocale lib/libc/include lib/libc/nls lib/libc/string

2020-12-17 Thread Konstantin Belousov
On Thu, Dec 17, 2020 at 10:32:14AM +0100, Antoine Brodin wrote: > On Wed, Dec 16, 2020 at 10:02 AM Konstantin Belousov wrote: > > > > Author: kib > > Date: Wed Dec 16 09:02:09 2020 > > New Revision: 368692 > > URL: https://svnweb.freebsd.org/changeset/base/36

svn commit: r368692 - in head: include/xlocale lib/libc/include lib/libc/nls lib/libc/string

2020-12-16 Thread Konstantin Belousov
Author: kib Date: Wed Dec 16 09:02:09 2020 New Revision: 368692 URL: https://svnweb.freebsd.org/changeset/base/368692 Log: Implement strerror_l(). Only for the arches that provide user-mode TLS. PR: 251651 Requested by: yuri Discussed with: emaste, jilles, tijl Sponsored

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

2020-12-14 Thread Konstantin Belousov
Author: kib Date: Mon Dec 14 22:52:29 2020 New Revision: 368649 URL: https://svnweb.freebsd.org/changeset/base/368649 Log: amd64 pmap: fix PCID mode invalidations When r362031 moved local TLB invalidation after shootdown IPI send, it moved too much. In particular, PCID-mode clearing of

svn commit: r368613 - head/sys/kern

2020-12-13 Thread Konstantin Belousov
Author: kib Date: Sun Dec 13 19:45:42 2020 New Revision: 368613 URL: https://svnweb.freebsd.org/changeset/base/368613 Log: Fix TDP_WAKEUP/thr_wake(curthread->td_tid) after r366428. Reported by: arichardson Reviewed by: arichardson, markj Sponsored by: The FreeBSD Foundation

svn commit: r368612 - head/sys/kern

2020-12-13 Thread Konstantin Belousov
Author: kib Date: Sun Dec 13 19:43:45 2020 New Revision: 368612 URL: https://svnweb.freebsd.org/changeset/base/368612 Log: Correct indent. Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/subr_sleepqueue.c Modified: head/sys/kern/subr_sleepqueue.c

svn commit: r368541 - stable/12/sys/compat/freebsd32

2020-12-10 Thread Konstantin Belousov
Author: kib Date: Fri Dec 11 00:38:08 2020 New Revision: 368541 URL: https://svnweb.freebsd.org/changeset/base/368541 Log: Regen Modified: stable/12/sys/compat/freebsd32/freebsd32_proto.h stable/12/sys/compat/freebsd32/freebsd32_syscall.h

svn commit: r368540 - stable/12/sys/compat/freebsd32

2020-12-10 Thread Konstantin Belousov
Author: kib Date: Fri Dec 11 00:37:51 2020 New Revision: 368540 URL: https://svnweb.freebsd.org/changeset/base/368540 Log: MFC r368343: Fix compat32 for ntp_adjtime(2). Modified: stable/12/sys/compat/freebsd32/freebsd32.h stable/12/sys/compat/freebsd32/freebsd32_misc.c

svn commit: r368539 - in stable/12/sys: kern sys

2020-12-10 Thread Konstantin Belousov
Author: kib Date: Fri Dec 11 00:35:04 2020 New Revision: 368539 URL: https://svnweb.freebsd.org/changeset/base/368539 Log: MFC r368342: Add kern_ntp_adjtime(9). Modified: stable/12/sys/kern/kern_ntptime.c stable/12/sys/sys/syscallsubr.h Directory Properties: stable/12/ (props

svn commit: r368430 - stable/12/sys/kern

2020-12-07 Thread Konstantin Belousov
Author: kib Date: Tue Dec 8 01:47:59 2020 New Revision: 368430 URL: https://svnweb.freebsd.org/changeset/base/368430 Log: MFC r368265: lio_listio(2): send signal even if number of jobs is zero. Modified: stable/12/sys/kern/vfs_aio.c Directory Properties: stable/12/ (props changed)

svn commit: r368429 - stable/12/sys/kern

2020-12-07 Thread Konstantin Belousov
Author: kib Date: Tue Dec 8 01:46:44 2020 New Revision: 368429 URL: https://svnweb.freebsd.org/changeset/base/368429 Log: MFC r368264: vfs_aio.c: style. Modified: stable/12/sys/kern/vfs_aio.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/kern/vfs_aio.c

svn commit: r368428 - stable/12/sys/kern

2020-12-07 Thread Konstantin Belousov
Author: kib Date: Tue Dec 8 01:45:36 2020 New Revision: 368428 URL: https://svnweb.freebsd.org/changeset/base/368428 Log: MFC r368262: vfs_aio.c: correct comment. Modified: stable/12/sys/kern/vfs_aio.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r368427 - in stable/12: libexec/rtld-elf sys/sys

2020-12-07 Thread Konstantin Belousov
Author: kib Date: Tue Dec 8 01:44:16 2020 New Revision: 368427 URL: https://svnweb.freebsd.org/changeset/base/368427 Log: MFC r368260: rtld: bump r_debug.r_version to 1 from current 0. Add r_ldbase. Modified: stable/12/libexec/rtld-elf/rtld.c stable/12/sys/sys/link_elf.h Directory

svn commit: r368403 - stable/11/lib/libthr/thread

2020-12-06 Thread Konstantin Belousov
Author: kib Date: Mon Dec 7 01:09:45 2020 New Revision: 368403 URL: https://svnweb.freebsd.org/changeset/base/368403 Log: MFC r368190: Ensure that threading library is initialized in pthread_mutex_init(). Modified: stable/11/lib/libthr/thread/thr_mutex.c Directory Properties: stable/11/

svn commit: r368402 - stable/12/sys/ufs/ffs

2020-12-06 Thread Konstantin Belousov
Author: kib Date: Mon Dec 7 01:05:39 2020 New Revision: 368402 URL: https://svnweb.freebsd.org/changeset/base/368402 Log: MFC r368191: ffs: do not read full direct blocks if they are going to be overwritten. Modified: stable/12/sys/ufs/ffs/ffs_balloc.c Directory Properties: stable/12/

svn commit: r368401 - stable/12/lib/libthr/thread

2020-12-06 Thread Konstantin Belousov
Author: kib Date: Mon Dec 7 01:02:20 2020 New Revision: 368401 URL: https://svnweb.freebsd.org/changeset/base/368401 Log: MFC r368190: Ensure that threading library is initialized in pthread_mutex_init(). Modified: stable/12/lib/libthr/thread/thr_mutex.c Directory Properties: stable/12/

svn commit: r368393 - head/sys/ufs/ufs

2020-12-06 Thread Konstantin Belousov
Author: kib Date: Sun Dec 6 18:09:14 2020 New Revision: 368393 URL: https://svnweb.freebsd.org/changeset/base/368393 Log: ufs: handle two more cases of possible VNON vnode returned from VFS_VGET(). Reported by: kevans Reviewed by: mckusick, mjg Tested by:pho Sponsored by: The

svn commit: r368361 - in stable/12/lib: libc/gen libc/include libthr/thread

2020-12-05 Thread Konstantin Belousov
Author: kib Date: Sat Dec 5 09:08:26 2020 New Revision: 368361 URL: https://svnweb.freebsd.org/changeset/base/368361 Log: MFC r368125: libc: Add pthread_attr_get_np(3) stub, reporting ESRCH. PR: 251112 Modified: stable/12/lib/libc/gen/Symbol.map

svn commit: r368343 - head/sys/compat/freebsd32

2020-12-04 Thread Konstantin Belousov
Author: kib Date: Fri Dec 4 18:57:58 2020 New Revision: 368343 URL: https://svnweb.freebsd.org/changeset/base/368343 Log: Fix compat32 for ntp_adjtime(2). struct timex is not 32-bit safe, it uses longs for members. Provide translation. Reviewed by: brooks, cy Sponsored by: The

svn commit: r368344 - head/sys/compat/freebsd32

2020-12-04 Thread Konstantin Belousov
Author: kib Date: Fri Dec 4 18:58:27 2020 New Revision: 368344 URL: https://svnweb.freebsd.org/changeset/base/368344 Log: Regen Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c

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

2020-12-04 Thread Konstantin Belousov
Author: kib Date: Fri Dec 4 18:56:44 2020 New Revision: 368342 URL: https://svnweb.freebsd.org/changeset/base/368342 Log: Add kern_ntp_adjtime(9). Reviewed by: brooks, cy Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:

svn commit: r368339 - stable/12/sys/fs/msdosfs

2020-12-04 Thread Konstantin Belousov
Author: kib Date: Fri Dec 4 16:05:31 2020 New Revision: 368339 URL: https://svnweb.freebsd.org/changeset/base/368339 Log: Fix msdosfs suspension. Unlike HEAD, stable/12 still uses the check for vfs_susp_clean != NULL as indicator that fs supports suspension. Satisfy the requirement by

svn commit: r368318 - stable/12/sys/fs/msdosfs

2020-12-03 Thread Konstantin Belousov
Author: kib Date: Fri Dec 4 00:48:11 2020 New Revision: 368318 URL: https://svnweb.freebsd.org/changeset/base/368318 Log: MFC r367895: msdosfs: suspend around unmount or remount rw->ro. Modified: stable/12/sys/fs/msdosfs/msdosfs_vfsops.c Directory Properties: stable/12/ (props

Re: svn commit: r368279 - head/sys/dev/nvme

2020-12-02 Thread Konstantin Belousov
On Wed, Dec 02, 2020 at 11:17:01AM -0700, Warner Losh wrote: > On Wed, Dec 2, 2020 at 10:48 AM Konstantin Belousov > wrote: > > > On Wed, Dec 02, 2020 at 04:54:24PM +, Michal Meloun wrote: > > > Author: mmel > > > Date: Wed Dec 2 16:54:24 2020 > >

Re: svn commit: r368279 - head/sys/dev/nvme

2020-12-02 Thread Konstantin Belousov
On Wed, Dec 02, 2020 at 04:54:24PM +, Michal Meloun wrote: > Author: mmel > Date: Wed Dec 2 16:54:24 2020 > New Revision: 368279 > URL: https://svnweb.freebsd.org/changeset/base/368279 > > Log: > NVME: Multiple busdma related fixes. ... > - in nvme_qpair_submit_tracker(), don't do

svn commit: r368270 - stable/12/lib/libc/gen

2020-12-01 Thread Konstantin Belousov
Author: kib Date: Wed Dec 2 00:45:35 2020 New Revision: 368270 URL: https://svnweb.freebsd.org/changeset/base/368270 Log: MFC r368023: Use designated initializers for libc pthread stubs' jump table. Modified: stable/12/lib/libc/gen/_pthread_stubs.c Directory Properties: stable/12/

svn commit: r368269 - head/sys/cddl/dev/dtrace/i386

2020-12-01 Thread Konstantin Belousov
Author: kib Date: Tue Dec 1 23:51:48 2020 New Revision: 368269 URL: https://svnweb.freebsd.org/changeset/base/368269 Log: Fix syntax Modified: head/sys/cddl/dev/dtrace/i386/dtrace_isa.c Modified: head/sys/cddl/dev/dtrace/i386/dtrace_isa.c

svn commit: r368265 - head/sys/kern

2020-12-01 Thread Konstantin Belousov
Author: kib Date: Tue Dec 1 22:53:33 2020 New Revision: 368265 URL: https://svnweb.freebsd.org/changeset/base/368265 Log: lio_listio(2): send signal even if number of jobs is zero. Right now, if lio registered zero jobs, syscall frees lio job structure, cleaning up queued ksi. As

svn commit: r368264 - head/sys/kern

2020-12-01 Thread Konstantin Belousov
Author: kib Date: Tue Dec 1 22:46:51 2020 New Revision: 368264 URL: https://svnweb.freebsd.org/changeset/base/368264 Log: vfs_aio.c: style. Mostly re-wrap conditions to split after binary ops. Reviewed by: asomers Sponsored by: The FreeBSD Foundation MFC after:1 week

svn commit: r368263 - head/sys/cddl/dev/dtrace/amd64

2020-12-01 Thread Konstantin Belousov
Author: kib Date: Tue Dec 1 22:44:23 2020 New Revision: 368263 URL: https://svnweb.freebsd.org/changeset/base/368263 Log: Fix syntax Modified: head/sys/cddl/dev/dtrace/amd64/dtrace_isa.c Modified: head/sys/cddl/dev/dtrace/amd64/dtrace_isa.c

svn commit: r368262 - head/sys/kern

2020-12-01 Thread Konstantin Belousov
Author: kib Date: Tue Dec 1 22:30:32 2020 New Revision: 368262 URL: https://svnweb.freebsd.org/changeset/base/368262 Log: vfs_aio.c: correct comment. Reviewed by: asomers Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:

svn commit: r368260 - in head: libexec/rtld-elf sys/sys

2020-12-01 Thread Konstantin Belousov
Author: kib Date: Tue Dec 1 22:28:01 2020 New Revision: 368260 URL: https://svnweb.freebsd.org/changeset/base/368260 Log: rtld: bump r_debug.r_version to 1 from current 0. Add r_ldbase. Requested and reviewed by:emaste Sponsored by: The FreeBSD Foundation MFC after:1 week

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

2020-11-30 Thread Konstantin Belousov
Author: kib Date: Mon Nov 30 17:03:26 2020 New Revision: 368191 URL: https://svnweb.freebsd.org/changeset/base/368191 Log: ffs: do not read full direct blocks if they are going to be overwritten. BA_CLRBUF specifies that existing context of the block will be completely overwritten by

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

2020-11-30 Thread Konstantin Belousov
Author: kib Date: Mon Nov 30 17:00:36 2020 New Revision: 368190 URL: https://svnweb.freebsd.org/changeset/base/368190 Log: Ensure that threading library is initialized in pthread_mutex_init(). We need at least thr_malloc ready. The situation is possible e.g. in case of libthr being

svn commit: r368162 - head/sys/sys

2020-11-29 Thread Konstantin Belousov
Author: kib Date: Sun Nov 29 19:06:32 2020 New Revision: 368162 URL: https://svnweb.freebsd.org/changeset/base/368162 Log: Reduce MAXPHYS back to 128KB on 32bit architectures. Some of them have limited KVA, like arm, which prevents startup from allocating needed number of large pbufs.

Re: svn commit: r368124 - in head/sys: cam cam/ata cam/ctl cam/mmc cam/nvme cam/scsi compat/linprocfs compat/linux conf contrib/openzfs/module/os/freebsd/zfs dev/ahci dev/ata dev/firewire dev/flash de

2020-11-29 Thread Konstantin Belousov
On Sun, Nov 29, 2020 at 02:03:57PM +0100, Michal Meloun wrote: > On 28.11.2020 13:12, Konstantin Belousov wrote: > > Author: kib > > Date: Sat Nov 28 12:12:51 2020 > > New Revision: 368124 > > URL: https://svnweb.freebsd.org/changeset/base/368124 > > > >

svn commit: r368145 - stable/12/lib/libc/gen

2020-11-29 Thread Konstantin Belousov
Author: kib Date: Sun Nov 29 10:36:56 2020 New Revision: 368145 URL: https://svnweb.freebsd.org/changeset/base/368145 Log: MFC r368083: Remove stray semicolumn. Modified: stable/12/lib/libc/gen/_pthread_stubs.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r368144 - stable/12/lib/libthr/thread

2020-11-29 Thread Konstantin Belousov
Author: kib Date: Sun Nov 29 10:34:49 2020 New Revision: 368144 URL: https://svnweb.freebsd.org/changeset/base/368144 Log: MFC r368082: Style. Modified: stable/12/lib/libthr/thread/thr_attr.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r368143 - head/sys/amd64/vmm

2020-11-29 Thread Konstantin Belousov
Author: kib Date: Sun Nov 29 10:32:38 2020 New Revision: 368143 URL: https://svnweb.freebsd.org/changeset/base/368143 Log: bhyve: limit max GPA to VM_MAXUSER_ADDRESS_LA48. We use 4-level EPT pages, correct the upper bound. Reviewed by: grehan Sponsored by: The FreeBSD Foundation

svn commit: r368142 - head/sys/kern

2020-11-29 Thread Konstantin Belousov
Author: kib Date: Sun Nov 29 10:30:56 2020 New Revision: 368142 URL: https://svnweb.freebsd.org/changeset/base/368142 Log: bio aio: Destroy ephemeral mapping before unwiring page. Apparently some architectures, like ppc in its hashed page tables variants, account mappings by

svn commit: r368125 - in head/lib: libc/gen libc/include libthr/thread

2020-11-28 Thread Konstantin Belousov
Author: kib Date: Sat Nov 28 12:19:20 2020 New Revision: 368125 URL: https://svnweb.freebsd.org/changeset/base/368125 Log: libc: Add pthread_attr_get_np(3) stub, reporting ESRCH. This seems to be required by recent clang asan. I do not see other way than put the symbol under FBSD_1.0

svn commit: r368124 - in head/sys: cam cam/ata cam/ctl cam/mmc cam/nvme cam/scsi compat/linprocfs compat/linux conf contrib/openzfs/module/os/freebsd/zfs dev/ahci dev/ata dev/firewire dev/flash dev...

2020-11-28 Thread Konstantin Belousov
Author: kib Date: Sat Nov 28 12:12:51 2020 New Revision: 368124 URL: https://svnweb.freebsd.org/changeset/base/368124 Log: Make MAXPHYS tunable. Bump MAXPHYS to 1M. Replace MAXPHYS by runtime variable maxphys. It is initialized from MAXPHYS by default, but can be also adjusted with the

svn commit: r368123 - in stable/12/sys: kern sys

2020-11-28 Thread Konstantin Belousov
Author: kib Date: Sat Nov 28 10:38:00 2020 New Revision: 368123 URL: https://svnweb.freebsd.org/changeset/base/368123 Log: MFC r367923: Stop using eventhandlers for itimers subsystem exec and exit hooks. Modified: stable/12/sys/kern/kern_exec.c stable/12/sys/kern/kern_exit.c

svn commit: r368122 - in stable/12/sys: kern sys

2020-11-28 Thread Konstantin Belousov
Author: kib Date: Sat Nov 28 10:36:19 2020 New Revision: 368122 URL: https://svnweb.freebsd.org/changeset/base/368122 Log: MFC r367918, r367919: Stop using eventhandler to invoke umtx_exec hook. Modified: stable/12/sys/kern/kern_exec.c stable/12/sys/kern/kern_umtx.c

svn commit: r368103 - stable/12/sys/dev/sound/pcm

2020-11-27 Thread Konstantin Belousov
Author: kib Date: Fri Nov 27 11:51:07 2020 New Revision: 368103 URL: https://svnweb.freebsd.org/changeset/base/368103 Log: MFC r367892: Unlock channels when any of them are locked, when returning for non-busy state. Modified: stable/12/sys/dev/sound/pcm/dsp.c Directory Properties:

svn commit: r368102 - stable/12/sys/fs/msdosfs

2020-11-27 Thread Konstantin Belousov
Author: kib Date: Fri Nov 27 11:48:33 2020 New Revision: 368102 URL: https://svnweb.freebsd.org/changeset/base/368102 Log: MFC r367890: msdosfs: Add trivial support for suspension. Modified: stable/12/sys/fs/msdosfs/msdosfs_vfsops.c stable/12/sys/fs/msdosfs/msdosfs_vnops.c Directory

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

2020-11-26 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 20:27:23 2020 New Revision: 368083 URL: https://svnweb.freebsd.org/changeset/base/368083 Log: Remove stray column. Sponsored by: The FreeBSD Foundation MFC after: 3 days Modified: head/lib/libc/gen/_pthread_stubs.c Modified:

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

2020-11-26 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 20:23:17 2020 New Revision: 368082 URL: https://svnweb.freebsd.org/changeset/base/368082 Log: Style. Sponsored by: The FreeBSD Foundation MFC after: 3 days Modified: head/lib/libthr/thread/thr_attr.c Modified: head/lib/libthr/thread/thr_attr.c

svn commit: r368075 - head/sys/kern

2020-11-26 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 18:08:42 2020 New Revision: 368075 URL: https://svnweb.freebsd.org/changeset/base/368075 Log: More careful handling of the mount failure. - VFS_UNMOUNT() requires vn_start_write() around it [*]. - call VFS_PURGE() before unmount. - do not destroy mp if

svn commit: r368077 - head/sys/fs/nullfs

2020-11-26 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 18:16:32 2020 New Revision: 368077 URL: https://svnweb.freebsd.org/changeset/base/368077 Log: nullfs: provide custom bypass for VOP_READ_PGCACHE(). Normal bypass expects locked vnode, which is not true for VOP_READ_PGCACHE(). Ensure liveness of the lower

svn commit: r368076 - head/sys/kern

2020-11-26 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 18:13:33 2020 New Revision: 368076 URL: https://svnweb.freebsd.org/changeset/base/368076 Log: vn_read_from_obj(): fix handling of doomed vnodes. There is no reason why vp->v_object cannot be NULL. If it is, it's fine, handle it by delegating to VOP_READ().

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

2020-11-26 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 18:03:24 2020 New Revision: 368074 URL: https://svnweb.freebsd.org/changeset/base/368074 Log: clear_inodedeps: handle ERELOOKUP from ffs_syncvnode(). Reported and tested by: pho Sponsored by: The FreeBSD Foundation Modified:

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

2020-11-26 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 18:00:26 2020 New Revision: 368073 URL: https://svnweb.freebsd.org/changeset/base/368073 Log: Make max ticks for pause in vn_lock_pair() adjustable at runtime. Reduce default value from hz / 10 to hz / 100. Reviewed by: markj Tested by:pho

svn commit: r368051 - stable/12/usr.sbin/bhyve

2020-11-25 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 07:31:30 2020 New Revision: 368051 URL: https://svnweb.freebsd.org/changeset/base/368051 Log: MFC r367613: bhyve: remove a hack to map all 8G BARs 1:1 Modified: stable/12/usr.sbin/bhyve/pci_emul.c stable/12/usr.sbin/bhyve/pci_emul.h

svn commit: r368050 - stable/12/usr.sbin/bhyve

2020-11-25 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 07:30:29 2020 New Revision: 368050 URL: https://svnweb.freebsd.org/changeset/base/368050 Log: MFC r367607: bhyve: increase allowed size for 64bit BAR allocation below 4G from 32 to 128 MB. Modified: stable/12/usr.sbin/bhyve/pci_emul.c Directory Properties:

svn commit: r368049 - stable/12/usr.sbin/bhyve

2020-11-25 Thread Konstantin Belousov
Author: kib Date: Thu Nov 26 07:29:28 2020 New Revision: 368049 URL: https://svnweb.freebsd.org/changeset/base/368049 Log: MFC r367606: bhyve: avoid allocating BARs above the end of supported physical addresses. Modified: stable/12/usr.sbin/bhyve/pci_emul.c Directory Properties:

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

2020-11-25 Thread Konstantin Belousov
Author: kib Date: Wed Nov 25 17:12:21 2020 New Revision: 368024 URL: https://svnweb.freebsd.org/changeset/base/368024 Log: ffs_softdep.c: get_parent_vp(): Fix bp lock leak when inum inode was already freed. Reported by: markj, pho Tested by:pho Sponsored by: The FreeBSD

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

2020-11-25 Thread Konstantin Belousov
Author: kib Date: Wed Nov 25 17:04:26 2020 New Revision: 368023 URL: https://svnweb.freebsd.org/changeset/base/368023 Log: Use designated initializers for libc pthread stubs' jump table. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

svn commit: r367983 - stable/12/sys/kern

2020-11-24 Thread Konstantin Belousov
Author: kib Date: Tue Nov 24 13:19:31 2020 New Revision: 367983 URL: https://svnweb.freebsd.org/changeset/base/367983 Log: MFCr367741: vmem: trivial warning and style fixes. Modified: stable/12/sys/kern/subr_vmem.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r367960 - in head/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux

2020-11-23 Thread Konstantin Belousov
Author: kib Date: Mon Nov 23 18:18:16 2020 New Revision: 367960 URL: https://svnweb.freebsd.org/changeset/base/367960 Log: Linuxolator: Replace use of eventhandlers by sysent hooks. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential revision:

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

2020-11-23 Thread Konstantin Belousov
Author: kib Date: Mon Nov 23 17:29:25 2020 New Revision: 367959 URL: https://svnweb.freebsd.org/changeset/base/367959 Log: Provide ABI modules hooks for process exec/exit and thread exit. Exec and exit are same as corresponding eventhandler hooks. Thread exit hook is called somewhat

Re: svn commit: r367928 - in head/sys: compat/freebsd32 kern sys

2020-11-21 Thread Konstantin Belousov
On Sun, Nov 22, 2020 at 05:34:51AM +, Kyle Evans wrote: > Author: kevans > Date: Sun Nov 22 05:34:51 2020 > New Revision: 367928 > URL: https://svnweb.freebsd.org/changeset/base/367928 > > Log: > _umtx_op: move compat32 definitions back in > > These are reasonably compact, and a future

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

2020-11-21 Thread Konstantin Belousov
Author: kib Date: Sat Nov 21 21:43:36 2020 New Revision: 367923 URL: https://svnweb.freebsd.org/changeset/base/367923 Log: Stop using eventhandlers for itimers subsystem exec and exit hooks. While there, do some minor cleanup for kclocks. They are only registered from kern_time.c, make

svn commit: r367919 - head/sys/kern

2020-11-21 Thread Konstantin Belousov
Author: kib Date: Sat Nov 21 10:58:19 2020 New Revision: 367919 URL: https://svnweb.freebsd.org/changeset/base/367919 Log: Remove unused prototype. Missed part of r367918. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/kern_umtx.c Modified:

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

2020-11-21 Thread Konstantin Belousov
Author: kib Date: Sat Nov 21 10:32:40 2020 New Revision: 367918 URL: https://svnweb.freebsd.org/changeset/base/367918 Log: Stop using eventhandler to invoke umtx_exec hook. There is no point in dynamic registration, umtx hook is there always. Reviewed by: mjg Sponsored by: The

svn commit: r367895 - head/sys/fs/msdosfs

2020-11-20 Thread Konstantin Belousov
Author: kib Date: Fri Nov 20 15:19:30 2020 New Revision: 367895 URL: https://svnweb.freebsd.org/changeset/base/367895 Log: msdosfs: suspend around unmount or remount rw->ro. This also eliminates unsafe use of VFS_SYNC(MNT_WAIT). Requested by: mckusick Discussed with: imp

svn commit: r367892 - head/sys/dev/sound/pcm

2020-11-20 Thread Konstantin Belousov
Author: kib Date: Fri Nov 20 14:02:43 2020 New Revision: 367892 URL: https://svnweb.freebsd.org/changeset/base/367892 Log: Unlock channels when any of them are locked, when returning for non-busy state. Reported and tested by: "Wall, Stephen" Sponsored by: The FreeBSD Foundation

svn commit: r367890 - head/sys/fs/msdosfs

2020-11-20 Thread Konstantin Belousov
Author: kib Date: Fri Nov 20 12:31:02 2020 New Revision: 367890 URL: https://svnweb.freebsd.org/changeset/base/367890 Log: msdosfs: Add trivial support for suspension. Tested by:pho (previous version) Sponsored by: The FreeBSD Foundation MFC after:1 week Differential

svn commit: r367840 - stable/12/sys/dev/mlx5/mlx5_en

2020-11-19 Thread Konstantin Belousov
Author: kib Date: Thu Nov 19 09:17:41 2020 New Revision: 367840 URL: https://svnweb.freebsd.org/changeset/base/367840 Log: MFC r367612: mlx5en: Set ifmr_current same as ifmr_active. Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Directory Properties: stable/12/ (props changed)

svn commit: r367839 - stable/12/sys/dev/mlx5/mlx5_en

2020-11-19 Thread Konstantin Belousov
Author: kib Date: Thu Nov 19 09:16:22 2020 New Revision: 367839 URL: https://svnweb.freebsd.org/changeset/base/367839 Log: MFC r367611: mlx5en: stop ignoring pauses and flow in the media reqs. Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Directory Properties: stable/12/

svn commit: r367838 - stable/12/sys/dev/mlx5/mlx5_en

2020-11-19 Thread Konstantin Belousov
Author: kib Date: Thu Nov 19 09:15:04 2020 New Revision: 367838 URL: https://svnweb.freebsd.org/changeset/base/367838 Log: MFC r367610: mlx5en: Register all combinations of FDX/RXPAUSE/TXPAUSE as valid media types. Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Directory

svn commit: r367837 - stable/12/sys/dev/mlx5/mlx5_en

2020-11-19 Thread Konstantin Belousov
Author: kib Date: Thu Nov 19 09:13:23 2020 New Revision: 367837 URL: https://svnweb.freebsd.org/changeset/base/367837 Log: MFC r367609: mlx5en: Refactor repeated code to register media type to mlx5e_ifm_add(). Modified: stable/12/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Directory Properties:

svn commit: r367836 - in stable/12/sys: dev/acpica dev/xen/control kern sys

2020-11-19 Thread Konstantin Belousov
Author: kib Date: Thu Nov 19 09:09:19 2020 New Revision: 367836 URL: https://svnweb.freebsd.org/changeset/base/367836 Log: MFC r367398: Suspend all writeable local filesystems on power suspend. Modified: stable/12/sys/dev/acpica/acpi.c stable/12/sys/dev/xen/control/control.c

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

2020-11-17 Thread Konstantin Belousov
On Tue, Nov 17, 2020 at 03:36:31PM +0100, Mateusz Guzik wrote: > On 11/17/20, Konstantin Belousov wrote: > > On Tue, Nov 17, 2020 at 04:15:12AM +0100, Mateusz Guzik wrote: > >> On 11/17/20, Konstantin Belousov wrote: > >> > On Mon, Nov 16, 2020 at 03:09:1

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

2020-11-16 Thread Konstantin Belousov
On Tue, Nov 17, 2020 at 04:15:12AM +0100, Mateusz Guzik wrote: > On 11/17/20, Konstantin Belousov wrote: > > On Mon, Nov 16, 2020 at 03:09:19AM +, Mateusz Guzik wrote: > >> Author: mjg > >> Date: Mon Nov 16 03:09:18 2020 > >> New Revision: 367713 > >&

svn commit: r367741 - head/sys/kern

2020-11-16 Thread Konstantin Belousov
Author: kib Date: Tue Nov 17 02:18:34 2020 New Revision: 367741 URL: https://svnweb.freebsd.org/changeset/base/367741 Log: vmem: trivial warning and style fixes. Add __unused to some args. Change type of the iterator variables to match loop control. Remove excessive {}. Reviewed

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

2020-11-16 Thread Konstantin Belousov
On Mon, Nov 16, 2020 at 03:09:19AM +, Mateusz Guzik wrote: > Author: mjg > Date: Mon Nov 16 03:09:18 2020 > New Revision: 367713 > URL: https://svnweb.freebsd.org/changeset/base/367713 > > Log: > select: replace reference counting with memory barriers in selfd > > Refcounting was added

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

2020-11-13 Thread Konstantin Belousov
Author: kib Date: Sat Nov 14 05:30:10 2020 New Revision: 367672 URL: https://svnweb.freebsd.org/changeset/base/367672 Log: Handle LoR in flush_pagedep_deps(). When operating in SU or SU+J mode, ffs_syncvnode() might need to instantiate other vnode by inode number while owning syncing

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

2020-11-13 Thread Konstantin Belousov
Author: kib Date: Sat Nov 14 05:19:59 2020 New Revision: 367671 URL: https://svnweb.freebsd.org/changeset/base/367671 Log: Add ffs_inode_bwrite() helper. In collaboration with:pho Reviewed by: mckusick (previous version), markj Tested by:markj (syzkaller), pho Sponsored

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

2020-11-13 Thread Konstantin Belousov
Author: kib Date: Sat Nov 14 05:19:44 2020 New Revision: 367670 URL: https://svnweb.freebsd.org/changeset/base/367670 Log: Revert r367669 to re-commit with proper message Modified: head/sys/ufs/ffs/ffs_inode.c Modified: head/sys/ufs/ffs/ffs_inode.c

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

2020-11-13 Thread Konstantin Belousov
Author: kib Date: Sat Nov 14 05:17:04 2020 New Revision: 367669 URL: https://svnweb.freebsd.org/changeset/base/367669 Log: Add a framework that tracks exclusive vnode lock generation count for UFS. This count is memoized together with the lookup metadata in directory inode, and we assert

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

2020-11-13 Thread Konstantin Belousov
Author: kib Date: Sat Nov 14 05:10:39 2020 New Revision: 367668 URL: https://svnweb.freebsd.org/changeset/base/367668 Log: Add a framework that tracks exclusive vnode lock generation count for UFS. This count is memoized together with the lookup metadata in directory inode, and we assert

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

2020-11-13 Thread Konstantin Belousov
On Fri, Nov 13, 2020 at 07:30:47PM +0100, Mateusz Guzik wrote: > On 11/13/20, Konstantin Belousov wrote: > > +static u_long vn_lock_pair_pause_cnt; > > +SYSCTL_ULONG(_debug, OID_AUTO, vn_lock_pair_pause, CTLFLAG_RD, > > +_lock_pair_pause_cnt, 0, > > +"

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

2020-11-13 Thread Konstantin Belousov
On Fri, Nov 13, 2020 at 08:24:30AM -0800, Conrad Meyer wrote: > Hi Konstantin, > > On Fri, Nov 13, 2020 at 1:32 AM Konstantin Belousov wrote: > > > > Author: kib > > Date: Fri Nov 13 09:31:57 2020 > > New Revision: 367631 > > URL: https://svnweb.freebs

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

2020-11-13 Thread Konstantin Belousov
On Fri, Nov 13, 2020 at 09:31:58AM +, Konstantin Belousov wrote: > Author: kib > Date: Fri Nov 13 09:31:57 2020 > New Revision: 367631 > URL: https://svnweb.freebsd.org/changeset/base/367631 > > Log: > Implement vn_lock_pair(). > > In collaboration

  1   2   3   4   5   6   7   8   9   10   >