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: 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: 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: 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: 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:

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: 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: 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: 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: 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: 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: 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: 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: 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

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

svn commit: r367632 - head/sys/kern

2020-11-13 Thread Konstantin Belousov
Author: kib Date: Fri Nov 13 09:42:32 2020 New Revision: 367632 URL: https://svnweb.freebsd.org/changeset/base/367632 Log: Allow some VOPs to return ERELOOKUP to indicate VFS operation restart at top level. Restart syscalls and some sync operations when filesystem indicated ERELOOKUP

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

2020-11-13 Thread Konstantin Belousov
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 with:pho Reviewed by: mckusick (previous version), markj (previous version) Tested by:markj (syzkaller),

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

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:52:01 2020 New Revision: 367613 URL: https://svnweb.freebsd.org/changeset/base/367613 Log: bhyve: remove a hack to map all 8G BARs 1:1 Suggested and reviewed by:grehan Sponsored by: The FreeBSD Foundation MFC after:2 weeks Differential

svn commit: r367612 - head/sys/dev/mlx5/mlx5_en

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:25:10 2020 New Revision: 367612 URL: https://svnweb.freebsd.org/changeset/base/367612 Log: mlx5en: Set ifmr_current same as ifmr_active. This both: - makes ifconfig media line similar to that of other drivers. - fixes ENXIO in case when paradoxical

svn commit: r367611 - head/sys/dev/mlx5/mlx5_en

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:23:27 2020 New Revision: 367611 URL: https://svnweb.freebsd.org/changeset/base/367611 Log: mlx5en: stop ignoring pauses and flow in the media reqs. Sponsored by: Mellanox Technologies/NVidia Networking MFC after:1 week Modified:

svn commit: r367610 - head/sys/dev/mlx5/mlx5_en

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:22:16 2020 New Revision: 367610 URL: https://svnweb.freebsd.org/changeset/base/367610 Log: mlx5en: Register all combinations of FDX/RXPAUSE/TXPAUSE as valid media types. Sponsored by: Mellanox Technologies/NVidia Networking MFC after:1 week Modified:

svn commit: r367609 - head/sys/dev/mlx5/mlx5_en

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 02:21:14 2020 New Revision: 367609 URL: https://svnweb.freebsd.org/changeset/base/367609 Log: mlx5en: Refactor repeated code to register media type to mlx5e_ifm_add(). Sponsored by: Mellanox Technologies/NVidia Networking MFC after:1 week Modified:

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

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 00:51:53 2020 New Revision: 367607 URL: https://svnweb.freebsd.org/changeset/base/367607 Log: bhyve: increase allowed size for 64bit BAR allocation below 4G from 32 to 128 MB. Reviewed by: grehan Sponsored by: The FreeBSD Foundation MFC after:2 weeks

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

2020-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 12 00:46:53 2020 New Revision: 367606 URL: https://svnweb.freebsd.org/changeset/base/367606 Log: bhyve: avoid allocating BARs above the end of supported physical addresses. Read CPUID leaf 0x808 to determine max supported phys address and create BAR region

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

2020-11-05 Thread Konstantin Belousov
Author: kib Date: Thu Nov 5 20:52:49 2020 New Revision: 367398 URL: https://svnweb.freebsd.org/changeset/base/367398 Log: Suspend all writeable local filesystems on power suspend. This ensures that no writes are pending in memory, either metadata or user data, but not including dirty

Re: svn commit: r367280 - head/lib/libc/gen

2020-11-04 Thread Konstantin Belousov
On Mon, Nov 02, 2020 at 11:51:12PM +0100, Stefan Esser wrote: > Am 02.11.20 um 23:10 schrieb Konstantin Belousov: > > On Mon, Nov 02, 2020 at 10:49:07PM +0100, Emmanuel Vadot wrote: > > > I think that the first question we want to ask is : Do we want to > > > suppor

svn commit: r367296 - head/sys/net

2020-11-03 Thread Konstantin Belousov
Author: kib Date: Tue Nov 3 14:33:04 2020 New Revision: 367296 URL: https://svnweb.freebsd.org/changeset/base/367296 Log: if_media.c SIOCGMEDIAX handler: improve loop Stop advancing counter past the current iteration number at the start of iteration. This removes the need of

Re: svn commit: r367280 - head/lib/libc/gen

2020-11-02 Thread Konstantin Belousov
On Mon, Nov 02, 2020 at 11:22:15PM +0100, Emmanuel Vadot wrote: > On Tue, 3 Nov 2020 00:10:39 +0200 > Konstantin Belousov wrote: > > > On Mon, Nov 02, 2020 at 10:49:07PM +0100, Emmanuel Vadot wrote: > > > I think that the first question we want to ask is : Do we want to

Re: svn commit: r367280 - head/lib/libc/gen

2020-11-02 Thread Konstantin Belousov
On Mon, Nov 02, 2020 at 10:49:07PM +0100, Emmanuel Vadot wrote: > I think that the first question we want to ask is : Do we want to > support LOCALBASE being different than /usr/local > I honestly don't see any advantages of making it !=/usr/local/ and > before we start putting a lot of

svn commit: r367285 - head/sbin/ifconfig

2020-11-02 Thread Konstantin Belousov
Author: kib Date: Mon Nov 2 21:47:34 2020 New Revision: 367285 URL: https://svnweb.freebsd.org/changeset/base/367285 Log: ifconfig: properly detect invalid mediaopt keywords. When invalid keyword is specified, ifconfig(8) is silent about it, instead random request is sent to the driver.

svn commit: r367252 - head/sys/net

2020-11-01 Thread Konstantin Belousov
Author: kib Date: Sun Nov 1 16:38:30 2020 New Revision: 367252 URL: https://svnweb.freebsd.org/changeset/base/367252 Log: net/if_media.c: improve IFMEDIA_DEBUG output. Use consistent output format for hex. Print both media and mask where relevant. Reviewed by: hselasky Sponsored

svn commit: r367251 - head/sys/net

2020-11-01 Thread Konstantin Belousov
Author: kib Date: Sun Nov 1 16:36:21 2020 New Revision: 367251 URL: https://svnweb.freebsd.org/changeset/base/367251 Log: Cleanup of net/if_media.c: simplify cleanup loop in ifmedia_removeall(). Reviewed by: hselasky Sponsored by: Mellanox Technologies/NVidia Networking MFC after:

svn commit: r367250 - head/sys/net

2020-11-01 Thread Konstantin Belousov
Author: kib Date: Sun Nov 1 16:30:17 2020 New Revision: 367250 URL: https://svnweb.freebsd.org/changeset/base/367250 Log: Cleanup of net/if_media.c: some style. Reviewed by: hselasky Sponsored by: Mellanox Technologies/NVidia Networking MFC after:1 week Differential revision:

svn commit: r367249 - head/sys/net

2020-11-01 Thread Konstantin Belousov
Author: kib Date: Sun Nov 1 16:25:35 2020 New Revision: 367249 URL: https://svnweb.freebsd.org/changeset/base/367249 Log: Cleanup of net/if_media.c: switch to ANSI C function definitions. Reviewed by: hselasky Sponsored by: Mellanox Technologies/NVidia Networking MFC after:1 week

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

2020-10-30 Thread Konstantin Belousov
On Fri, Oct 30, 2020 at 04:42:39PM +0100, Mateusz Guzik wrote: > On 10/30/20, Konstantin Belousov wrote: > > On Fri, Oct 30, 2020 at 03:08:32PM +0100, Mateusz Guzik wrote: > >> On 10/30/20, Mateusz Guzik wrote: > >> > Author: mjg > >> > Date: Fri Oct 30

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

2020-10-30 Thread Konstantin Belousov
On Fri, Oct 30, 2020 at 03:08:32PM +0100, Mateusz Guzik wrote: > On 10/30/20, Mateusz Guzik wrote: > > Author: mjg > > Date: Fri Oct 30 14:07:25 2020 > > New Revision: 367165 > > URL: https://svnweb.freebsd.org/changeset/base/367165 > > > > Log: > > tmpfs: change tmpfs dirent zone into a malloc

svn commit: r367120 - head/sys/kern

2020-10-28 Thread Konstantin Belousov
Author: kib Date: Wed Oct 28 22:12:47 2020 New Revision: 367120 URL: https://svnweb.freebsd.org/changeset/base/367120 Log: Check for process group change in tty_wait_background(). The calling process's process group can change between PROC_UNLOCK(p) and PGRP_LOCK(pg) in

Re: svn commit: r366993 - head/sys/net

2020-10-27 Thread Konstantin Belousov
On Tue, Oct 27, 2020 at 02:52:38PM -0400, Ed Maste wrote: > On Sat, 24 Oct 2020 at 06:46, Konstantin Belousov wrote: > > > > > -#include > > sys/systm.h should come right after sys/param.h. These two headers are > > exceptions to the normal alphabetical rule.

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

2020-10-24 Thread Konstantin Belousov
On Sat, Oct 24, 2020 at 01:30:37PM +, Mateusz Guzik wrote: > Author: mjg > Date: Sat Oct 24 13:30:37 2020 > New Revision: 366997 > URL: https://svnweb.freebsd.org/changeset/base/366997 > > Log: > vfs: fix a race where reclaim vholds freed vnodes A description of the race in the commit

Re: svn commit: r366993 - head/sys/net

2020-10-24 Thread Konstantin Belousov
On Sat, Oct 24, 2020 at 10:23:22AM +, Hans Petter Selasky wrote: > Author: hselasky > Date: Sat Oct 24 10:23:21 2020 > New Revision: 366993 > URL: https://svnweb.freebsd.org/changeset/base/366993 > > Log: > Run code through "clang-format -style=file" with some additional fixes. > No

svn commit: r366978 - head/sys/dev/usb/controller

2020-10-23 Thread Konstantin Belousov
Author: kib Date: Fri Oct 23 18:18:45 2020 New Revision: 366978 URL: https://svnweb.freebsd.org/changeset/base/366978 Log: xhci: Handle the case when MSI-X BAR is the same as IO BAR. PCIe allows for MSI-X BAR to be either dedicated, or MSI-X Table may be co-located in some functional

Re: svn commit: r366936 - head/sys/net

2020-10-23 Thread Konstantin Belousov
On Fri, Oct 23, 2020 at 01:26:04PM +0200, Hans Petter Selasky wrote: > On 2020-10-23 11:46, Konstantin Belousov wrote: > > On Fri, Oct 23, 2020 at 10:04:12AM +0200, Hans Petter Selasky wrote: > > > On 2020-10-22 19:54, Hans Petter Selasky wrote: > > > > On 2020-10

Re: svn commit: r366936 - head/sys/net

2020-10-23 Thread Konstantin Belousov
On Fri, Oct 23, 2020 at 10:04:12AM +0200, Hans Petter Selasky wrote: > On 2020-10-22 19:54, Hans Petter Selasky wrote: > > On 2020-10-22 18:48, Konstantin Belousov wrote: > > > sys/systm.h already includes sys/param.h.  Also, sys/param.h already > > > includes > >

Re: svn commit: r366936 - head/sys/net

2020-10-22 Thread Konstantin Belousov
On Thu, Oct 22, 2020 at 12:22:08PM +, Hans Petter Selasky wrote: > Author: hselasky > Date: Thu Oct 22 12:22:08 2020 > New Revision: 366936 > URL: https://svnweb.freebsd.org/changeset/base/366936 > > Log: > Compile fix for MIPS, MIPS64, POWERPC and POWERPC64. > Add missing include files.

  1   2   3   4   5   6   7   8   9   10   >