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

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 11:23:36 2016 New Revision: 308022 URL: https://svnweb.freebsd.org/changeset/base/308022 Log: Use symbolic name for the value of fully free word in pm_inusemap. Explicitely mention every bit in the value. Sponsored by: The FreeBSD Foundation MFC after:2

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

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 11:26:44 2016 New Revision: 308023 URL: https://svnweb.freebsd.org/changeset/base/308023 Log: If the fatchain() call in chainalloc() returned an error, revert marking the cluster run as in-use. Tested by:pho Sponsored by: The FreeBSD Foundation MFC aft

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

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 11:34:32 2016 New Revision: 308024 URL: https://svnweb.freebsd.org/changeset/base/308024 Log: Ensure that cluster allocations never allocate clusters outside the volume limits. In particular: - Assert that usemap_alloc() and usemap_free() cluster number argument

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

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 11:35:06 2016 New Revision: 308025 URL: https://svnweb.freebsd.org/changeset/base/308025 Log: Enable vn_io_fault() deadlock avoidance for msdosfs. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified: head/

svn commit: r308026 - in head/sys: kern sys ufs/ffs

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 11:43:59 2016 New Revision: 308026 URL: https://svnweb.freebsd.org/changeset/base/308026 Log: Generalize UFS buffer pager to allow it serving other filesystems which also use buffer cache. Most important addition to the code is the handling of filesystems wh

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

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 11:46:15 2016 New Revision: 308027 URL: https://svnweb.freebsd.org/changeset/base/308027 Log: Use buffer pager for msdosfs. Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified: head/sys/fs/msdosfs/msdosfs_vnops.c Modifie

svn commit: r308028 - head/sys/fs/cd9660

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 11:46:39 2016 New Revision: 308028 URL: https://svnweb.freebsd.org/changeset/base/308028 Log: Use buffer pager for cd9660. Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified: head/sys/fs/cd9660/cd9660_vnops.c Modified:

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

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 11:53:22 2016 New Revision: 308029 URL: https://svnweb.freebsd.org/changeset/base/308029 Log: Handle pmap_enter() over an existing 4/2M page in KVA on i386. The userspace case was already handled by pmap_allocpte(). For kernel VA, page table page must exist,

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

2016-10-28 Thread Konstantin Belousov
Author: kib Date: Fri Oct 28 12:27:05 2016 New Revision: 308030 URL: https://svnweb.freebsd.org/changeset/base/308030 Log: Use correct cpu id in the banner. Fix style. Noted by: avg Sponsored by: The FreeBSD Foundation MFC after:9 days Modified: head/sys/x86/x86/cpu_machdep.

Re: svn commit: r307971 - head/sys/mips/include

2016-10-28 Thread Konstantin Belousov
On Thu, Oct 27, 2016 at 03:08:01PM -0700, John Baldwin wrote: > On Wednesday, October 26, 2016 05:37:08 PM John Baldwin wrote: > > Author: jhb > > Date: Wed Oct 26 17:37:08 2016 > > New Revision: 307971 > > URL: https://svnweb.freebsd.org/changeset/base/307971 > > > > Log: > > Correct definition

Re: svn commit: r307971 - head/sys/mips/include

2016-10-28 Thread Konstantin Belousov
On Fri, Oct 28, 2016 at 09:59:26AM -0700, John Baldwin wrote: > Well, we could perhaps patch those to use SA_SIGINFO instead, but if it's > a non-trivial amount of effort I'm not going to bother. I'm surprised that > some of those would use sigcontext. Both mono and go post-date SA_SIGINFO > bein

svn commit: r308094 - head/sys/vm

2016-10-29 Thread Konstantin Belousov
Author: kib Date: Sat Oct 29 18:03:29 2016 New Revision: 308094 URL: https://svnweb.freebsd.org/changeset/base/308094 Log: Add unlock_vp() helper. Trim space. Discussed with: alc Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/vm/vm_fault.c Modif

svn commit: r308108 - head/sys/vm

2016-10-30 Thread Konstantin Belousov
Author: kib Date: Sun Oct 30 18:04:11 2016 New Revision: 308108 URL: https://svnweb.freebsd.org/changeset/base/308108 Log: Split long line instead of unindenting it. Add KASSERT() verifying that a device object with the same handle has the same ops vector. Reviewed by: alc Sponsored b

svn commit: r308109 - head/sys/vm

2016-10-30 Thread Konstantin Belousov
Author: kib Date: Sun Oct 30 18:05:18 2016 New Revision: 308109 URL: https://svnweb.freebsd.org/changeset/base/308109 Log: Remove vnode_locked label and goto, by collapsing vp calculation into the conditional. Suggested and reviewed by:alc Sponsored by: The FreeBSD Foundation MFC

svn commit: r308113 - head/sys/vm

2016-10-30 Thread Konstantin Belousov
Author: kib Date: Sun Oct 30 20:38:57 2016 New Revision: 308113 URL: https://svnweb.freebsd.org/changeset/base/308113 Log: Remove vm_pager_has_page() declaration. It is not too useful since static inline definition appears later in the file. Reviewed by: alc Sponsored by: The FreeBSD

svn commit: r308114 - head/sys/vm

2016-10-30 Thread Konstantin Belousov
Author: kib Date: Sun Oct 30 20:39:38 2016 New Revision: 308114 URL: https://svnweb.freebsd.org/changeset/base/308114 Log: Change remained internal uses of boolean_t to bool in vm/vm_fault.c. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/s

Re: svn commit: r308026 - in head/sys: kern sys ufs/ffs

2016-11-01 Thread Konstantin Belousov
On Mon, Oct 31, 2016 at 05:02:46PM -0700, Gleb Smirnoff wrote: > Hi, > > On Fri, Oct 28, 2016 at 11:43:59AM +, Konstantin Belousov wrote: > K> Author: kib > K> Date: Fri Oct 28 11:43:59 2016 > K> New Revision: 308026 > K> URL: https://svnweb.freebsd.org/cha

svn commit: r308210 - head/sys/kern

2016-11-02 Thread Konstantin Belousov
Author: kib Date: Wed Nov 2 12:02:31 2016 New Revision: 308210 URL: https://svnweb.freebsd.org/changeset/base/308210 Log: Style fixes. Discussed with: emaste Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/vfs_lookup.c Modified: head/sys/kern

svn commit: r308211 - head/sys/kern

2016-11-02 Thread Konstantin Belousov
Author: kib Date: Wed Nov 2 12:10:39 2016 New Revision: 308211 URL: https://svnweb.freebsd.org/changeset/base/308211 Log: Remove tautological casts. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/vfs_lookup.c Modified: head/sys/kern/vfs_lookup.c ===

svn commit: r308212 - in head/sys: fs/nfsserver kern sys

2016-11-02 Thread Konstantin Belousov
Author: kib Date: Wed Nov 2 12:43:15 2016 New Revision: 308212 URL: https://svnweb.freebsd.org/changeset/base/308212 Log: Allow some dotdot lookups in capability mode. If dotdot lookup does not escape from the file descriptor passed as the lookup root, we can allow the component traversa

svn commit: r308228 - head/sys/kern

2016-11-02 Thread Konstantin Belousov
Author: kib Date: Wed Nov 2 20:57:20 2016 New Revision: 308228 URL: https://svnweb.freebsd.org/changeset/base/308228 Log: Remove remnants of the recursive sleep support. Instead assert that we never try to sleep while the thread is on a sleepqueue. Reviewed by: jhb Tested by:pho

svn commit: r308288 - head/sys/vm

2016-11-04 Thread Konstantin Belousov
Author: kib Date: Fri Nov 4 12:58:50 2016 New Revision: 308288 URL: https://svnweb.freebsd.org/changeset/base/308288 Log: Do not sleep in vm_wait() if pagedaemon did not yet started. Panic instead. Requests which cannot be satisfied by allocators at boot time often have unrealizable par

Re: svn commit: r308314 - head/usr.bin/sed

2016-11-05 Thread Konstantin Belousov
On Fri, Nov 04, 2016 at 08:49:59PM +, Pedro F. Giffuni wrote: > Author: pfg > Date: Fri Nov 4 20:49:59 2016 > New Revision: 308314 > URL: https://svnweb.freebsd.org/changeset/base/308314 > > Log: > sed(1): add LEGACY_BSDSED_COMPAT compile-time flag. > > In r297602, which included a __F

svn commit: r308407 - head/sys/kern

2016-11-07 Thread Konstantin Belousov
Author: kib Date: Mon Nov 7 10:55:56 2016 New Revision: 308407 URL: https://svnweb.freebsd.org/changeset/base/308407 Log: vn_fullpath1() checked VV_ROOT and then unreferenced vp->v_mount->mnt_vnodecovered unlocked. This allowed unmount to race. Lock vnode after we noticed the VV_ROOT flag.

svn commit: r308442 - head/sys/kern

2016-11-08 Thread Konstantin Belousov
Author: kib Date: Tue Nov 8 10:10:55 2016 New Revision: 308442 URL: https://svnweb.freebsd.org/changeset/base/308442 Log: Tweaks for the buffer pager. Pass current thread credentials instead of NOCRED. Only allow unmapped buffers for filesystem which proclaimed the support. For all

svn commit: r308538 - head/sys/dev/cpuctl

2016-11-11 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 18:57:41 2016 New Revision: 308538 URL: https://svnweb.freebsd.org/changeset/base/308538 Log: Increase the max allowed size of the microcode update blob for x86. Newer CPUs (SkyLakes) have updates of 100K size, which is bigger than current limit 32K. Increase

Re: svn commit: r307626 - head/sys/ufs/ffs

2016-11-12 Thread Konstantin Belousov
On Sat, Nov 12, 2016 at 03:19:13PM -0800, Adrian Chadd wrote: > hi! > > This broke freebsd on mips24k. > > BAD_PAGE_FAULT: pid 1 tid 11 (init), uid 0: pc 0x4002a4 got a read > fault (type 0x2) at 0 > Trapframe Register Dump: > zero: 0at: 0v0: 0v1: 0 > a0: 0x7fffeecca1:

Re: svn commit: r307626 - head/sys/ufs/ffs

2016-11-12 Thread Konstantin Belousov
y else. > > > > -a > > > On 12 November 2016 at 22:58, Konstantin Belousov wrote: > > On Sat, Nov 12, 2016 at 03:19:13PM -0800, Adrian Chadd wrote: > >> hi! > >> > >> This broke freebsd on mips24k. > >> > >> BAD_PAGE_FAUL

Re: svn commit: r307626 - head/sys/ufs/ffs

2016-11-12 Thread Konstantin Belousov
On Sun, Nov 13, 2016 at 12:12:02AM -0700, Warner Losh wrote: > On Sat, Nov 12, 2016 at 11:58 PM, Konstantin Belousov > wrote: > > On Sat, Nov 12, 2016 at 03:19:13PM -0800, Adrian Chadd wrote: > >> hi! > >> > >> This broke freebsd on mips24k. > >> &

Re: svn commit: r307626 - head/sys/ufs/ffs

2016-11-12 Thread Konstantin Belousov
On Sun, Nov 13, 2016 at 12:33:57AM -0700, Warner Losh wrote: > On Sun, Nov 13, 2016 at 12:19 AM, Konstantin Belousov > wrote: > > On Sun, Nov 13, 2016 at 12:12:02AM -0700, Warner Losh wrote: > >> On Sat, Nov 12, 2016 at 11:58 PM, Konstantin Belousov > >> wrote: >

svn commit: r308617 - head/sys/kern

2016-11-13 Thread Konstantin Belousov
Author: kib Date: Sun Nov 13 21:39:55 2016 New Revision: 308617 URL: https://svnweb.freebsd.org/changeset/base/308617 Log: Move common cleanup code into helper. Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/vfs_mount.c Modified:

svn commit: r308618 - in head/sys: kern ufs/ffs

2016-11-13 Thread Konstantin Belousov
Author: kib Date: Sun Nov 13 21:49:51 2016 New Revision: 308618 URL: https://svnweb.freebsd.org/changeset/base/308618 Log: Provide simple mutual exclusion between mount point update and unmount. Currently mount update keeps vfs_busy(9) reference on the mount point during MNT_UPDATE VFS_MO

svn commit: r308642 - head/sys/kern

2016-11-14 Thread Konstantin Belousov
Author: kib Date: Mon Nov 14 13:20:10 2016 New Revision: 308642 URL: https://svnweb.freebsd.org/changeset/base/308642 Log: Initialize reserved bytes in struct mq_attr and its 32compat counterpart, to avoid kernel stack content leak in kmq_setattr(2) syscall. Also slightly simplify the check

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

2016-11-15 Thread Konstantin Belousov
Author: kib Date: Tue Nov 15 09:40:03 2016 New Revision: 308688 URL: https://svnweb.freebsd.org/changeset/base/308688 Log: Assert that there is no unresolved symbols during rtld linking. Reviewed by: emaste, jhb Sponsored by: The FreeBSD Foundation MFC after:1 week X-Differential

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

2016-11-15 Thread Konstantin Belousov
Author: kib Date: Tue Nov 15 09:43:26 2016 New Revision: 308689 URL: https://svnweb.freebsd.org/changeset/base/308689 Log: Pass CPUID[1] %edx (cpu_feature), %ecx (cpu_feature2) and CPUID[7].%ebx (cpu_stdext_feature), %ecx (cpu_stdext_feature2) to the ifunc resolvers on x86. It is much m

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

2016-11-15 Thread Konstantin Belousov
Author: kib Date: Tue Nov 15 09:37:35 2016 New Revision: 308687 URL: https://svnweb.freebsd.org/changeset/base/308687 Log: Update hint to utilize user variable. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/libexec/rtld-elf/Makefile Modified: head/libexec/rt

svn commit: r308733 - head/sys/vm

2016-11-16 Thread Konstantin Belousov
Author: kib Date: Wed Nov 16 16:34:17 2016 New Revision: 308733 URL: https://svnweb.freebsd.org/changeset/base/308733 Log: Move the fast fault path into the separate function. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/vm/vm_fault.c

Re: svn commit: r308691 - in head/sys: cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs fs/tmpfs kern vm

2016-11-16 Thread Konstantin Belousov
On Wed, Nov 16, 2016 at 01:37:18PM +, Ruslan Bukin wrote: > I have a panic with this on RISC-V. Any ideas ? How did you checked that the revision you replied to, makes the problem ? Note that the backtrace below is not reasonable. > > >

Re: svn commit: r308691 - in head/sys: cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs fs/tmpfs kern vm

2016-11-18 Thread Konstantin Belousov
On Fri, Nov 18, 2016 at 10:22:35AM +, Ruslan Bukin wrote: > On Thu, Nov 17, 2016 at 10:51:40AM -0600, Alan Cox wrote: > > On 11/16/2016 11:52, Ruslan Bukin wrote: > > > On Wed, Nov 16, 2016 at 04:59:39PM +, Ruslan Bukin wrote: > > >> On Wed, Nov 16, 2016 a

Re: svn commit: r308821 - head/sys/i386/i386

2016-11-20 Thread Konstantin Belousov
On Sat, Nov 19, 2016 at 01:36:44AM +, John Baldwin wrote: > Author: jhb > Date: Sat Nov 19 01:36:44 2016 > New Revision: 308821 > URL: https://svnweb.freebsd.org/changeset/base/308821 > > Log: > MFamd64: Various fatal page fault fixes. > > - If a page fault is triggered due to reserved

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

2016-11-21 Thread Konstantin Belousov
Author: kib Date: Mon Nov 21 14:13:57 2016 New Revision: 308925 URL: https://svnweb.freebsd.org/changeset/base/308925 Log: Adjust r308689 to make rtld compilable with either in-tree or (hopefully) stock gcc 4.2.1 on i386 and other arches. In particular: - Do not use %ebx in the asm cons

svn commit: r308969 - head/sys/kern

2016-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 10:06:39 2016 New Revision: 308969 URL: https://svnweb.freebsd.org/changeset/base/308969 Log: Restore vnode pager statistic for buffer pagers. Reviewed by: alc, markj Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week Differenti

svn commit: r308973 - head/sys/fs/nfsclient

2016-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 10:24:59 2016 New Revision: 308973 URL: https://svnweb.freebsd.org/changeset/base/308973 Log: Minor cleanup, remove unneeded XXX comments and unused re-define. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/fs/nfsclient/nfs_clb

svn commit: r308980 - head/sys/fs/nfsclient

2016-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 10:58:24 2016 New Revision: 308980 URL: https://svnweb.freebsd.org/changeset/base/308980 Log: Use buffer pager for NFS. The pager, due to its construction, implements clustering for the page-ins. In particular, buildworld load demonstrates reduction of the

svn commit: r308995 - head/sys/fs/udf

2016-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 13:24:57 2016 New Revision: 308995 URL: https://svnweb.freebsd.org/changeset/base/308995 Log: On error, bread(9) zeroes buffer pointer, do not dereference it. See r294954 for the bread(9) change and r297401 for similar cd9660 fix. Reported and tested by:

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

2016-11-24 Thread Konstantin Belousov
On Wed, Nov 23, 2016 at 11:06:53AM -0800, Bryan Drewery wrote: > On 11/15/2016 1:37 AM, Konstantin Belousov wrote: > > Author: kib > > Date: Tue Nov 15 09:37:35 2016 > > New Revision: 308687 > > URL: https://svnweb.freebsd.org/changeset/base/308687 > > > >

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

2016-11-26 Thread Konstantin Belousov
Author: kib Date: Sat Nov 26 10:33:53 2016 New Revision: 309189 URL: https://svnweb.freebsd.org/changeset/base/309189 Log: Fix automatic eventtimer hardware selection when ARAT (APIC-Timer-always-running) is not implemented. If machine has ncpus >= 8 and non-FSB interrupt routing from HPE

svn commit: r309209 - in head/sys: fs/nfsclient fs/nullfs sys

2016-11-27 Thread Konstantin Belousov
Author: kib Date: Sun Nov 27 09:20:58 2016 New Revision: 309209 URL: https://svnweb.freebsd.org/changeset/base/309209 Log: NFSv4 client tracks opens, and the track records are only dropped when the vnode is inactivated. This contradicts with the nullfs caching which keeps upper vnode around

Re: svn commit: r309035 - in head/lib/libpathconv: . tests

2016-12-02 Thread Konstantin Belousov
On Sat, Dec 03, 2016 at 12:00:01AM +0800, Julian Elischer wrote: > On 28/11/2016 4:43 AM, Jilles Tjoelker wrote: > > On Wed, Nov 23, 2016 at 07:57:52AM +, Julian Elischer wrote: > >> Author: julian > >> Date: Wed Nov 23 07:57:52 2016 > >> New Revision: 309035 > >> URL: https://svnweb.freebsd.or

svn commit: r309539 - head/sys/kern

2016-12-04 Thread Konstantin Belousov
Author: kib Date: Sun Dec 4 20:44:58 2016 New Revision: 309539 URL: https://svnweb.freebsd.org/changeset/base/309539 Log: Restructure the code to handle reporting of non-exited processes from wait(2). - Do not acquire the process spinlock if neither WTRAPPED nor WUNTRACED options were p

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

2016-12-05 Thread Konstantin Belousov
Author: kib Date: Mon Dec 5 11:41:09 2016 New Revision: 309550 URL: https://svnweb.freebsd.org/changeset/base/309550 Log: Rename fast taskqueues used by DMAR to avoid naming conflict of the sleepable and spin mutexes created by the queues. Reported and tested by: hps Sponsored by

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

2016-12-05 Thread Konstantin Belousov
Author: kib Date: Mon Dec 5 11:42:09 2016 New Revision: 309551 URL: https://svnweb.freebsd.org/changeset/base/309551 Log: Release DMAR table after using it. Reported and tested by: hps Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/x86/iommu/intel

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

2016-12-06 Thread Konstantin Belousov
Author: kib Date: Tue Dec 6 17:13:17 2016 New Revision: 309630 URL: https://svnweb.freebsd.org/changeset/base/309630 Log: Do not leak curthread->inact_mtx when cancelling in pthread_cond_wait(3). Leave robust-protected region before checking for cancellation by calling _thr_testcancel().

svn commit: r309708 - head/sys/vm

2016-12-08 Thread Konstantin Belousov
Author: kib Date: Thu Dec 8 10:28:51 2016 New Revision: 309708 URL: https://svnweb.freebsd.org/changeset/base/309708 Log: Style. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/vm/phys_pager.c Modified: head/sys/vm/phys_pager.c ===

svn commit: r309709 - head/sys/vm

2016-12-08 Thread Konstantin Belousov
Author: kib Date: Thu Dec 8 10:29:41 2016 New Revision: 309709 URL: https://svnweb.freebsd.org/changeset/base/309709 Log: Move map_generation snapshot value into struct faultstate. Reviewed by: alc Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week Modified

svn commit: r309710 - head/sys/vm

2016-12-08 Thread Konstantin Belousov
Author: kib Date: Thu Dec 8 11:26:11 2016 New Revision: 309710 URL: https://svnweb.freebsd.org/changeset/base/309710 Log: Add a new populate() pager method and extend device pager ops vector with cdev_pg_populate() to provide device drivers access to it. It gives drivers fine control of th

svn commit: r309711 - head/sys/vm

2016-12-08 Thread Konstantin Belousov
Author: kib Date: Thu Dec 8 11:35:53 2016 New Revision: 309711 URL: https://svnweb.freebsd.org/changeset/base/309711 Log: Implement the populate() pager method for phys pager. It allows to provide configurable agressive prefaulting and useful hints to page daemon about memory allocations

svn commit: r309712 - head/sys/dev/drm2/i915

2016-12-08 Thread Konstantin Belousov
Author: kib Date: Thu Dec 8 11:39:08 2016 New Revision: 309712 URL: https://svnweb.freebsd.org/changeset/base/309712 Log: Use the populate() driver paging method for i915 driver. In particular, the fault access type is accounted for when the aperture page is moved to GTT domain. On the

Re: svn commit: r309745 - in head: share/man/man9 sys/kern sys/sys

2016-12-09 Thread Konstantin Belousov
On Fri, Dec 09, 2016 at 05:58:34PM +, Gleb Smirnoff wrote: > Author: glebius > Date: Fri Dec 9 17:58:34 2016 > New Revision: 309745 > URL: https://svnweb.freebsd.org/changeset/base/309745 > > Log: > Provide counter_ratecheck(), a MP-friendly substitution to ppsratecheck(). > When rated ev

Re: svn commit: r309774 - head/contrib/netbsd-tests/fs/tmpfs

2016-12-10 Thread Konstantin Belousov
On Fri, Dec 09, 2016 at 10:50:43PM +, Ngie Cooper wrote: > Author: ngie > Date: Fri Dec 9 22:50:43 2016 > New Revision: 309774 > URL: https://svnweb.freebsd.org/changeset/base/309774 > > Log: > Only run mdconfig -d -u 3 if /dev/md3 exists on the system > > This will prevent "cleanup f

Re: svn commit: r309745 - in head: share/man/man9 sys/kern sys/sys

2016-12-10 Thread Konstantin Belousov
On Fri, Dec 09, 2016 at 10:56:36AM -0800, Gleb Smirnoff wrote: > Yes, this is expected. The interface isn't designed to be precise. So if > we hit limit, the next second result will be 20345 events exceeded the rate > instead of 20346 events. Note that the interface may legitimately give errors in

svn commit: r309854 - head/sys/x86/acpica

2016-12-11 Thread Konstantin Belousov
Author: kib Date: Sun Dec 11 19:01:27 2016 New Revision: 309854 URL: https://svnweb.freebsd.org/changeset/base/309854 Log: Prefix hex memory addresses with 0x in diagnostic messages from the SRAT parser. Submitted by: Oliver Pinter MFC after:1 week Differential revision:ht

svn commit: r309886 - head/sys/kern

2016-12-12 Thread Konstantin Belousov
Author: kib Date: Mon Dec 12 11:11:50 2016 New Revision: 309886 URL: https://svnweb.freebsd.org/changeset/base/309886 Log: When a zombie gets reparented due to the parent exit, send SIGCHLD to the reaper. The traditional reaper init(8) is aware of zombies silently reparented to it after

svn commit: r309887 - head/sys/kern

2016-12-12 Thread Konstantin Belousov
Author: kib Date: Mon Dec 12 11:12:04 2016 New Revision: 309887 URL: https://svnweb.freebsd.org/changeset/base/309887 Log: Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal. Requested and reviewed by:cem Sponsored by: The FreeBSD Foundation MFC after:2 weeks Differential

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

2016-12-12 Thread Konstantin Belousov
On Mon, Dec 12, 2016 at 03:22:22PM +, Edward Tomasz Napierala wrote: > Author: trasz > Date: Mon Dec 12 15:22:21 2016 > New Revision: 309891 > URL: https://svnweb.freebsd.org/changeset/base/309891 > > Log: > Avoid dereferencing NULL pointers in devtoname(). I've seen it panic, > called fr

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

2016-12-12 Thread Konstantin Belousov
On Mon, Dec 12, 2016 at 08:12:57PM +0100, Edward Tomasz Napierala wrote: > On 1212T1833, Konstantin Belousov wrote: > > On Mon, Dec 12, 2016 at 03:22:22PM +, Edward Tomasz Napierala wrote: > > > Author: trasz > > > Date: Mon Dec 12 15:22:21 2016 > > > N

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

2016-12-13 Thread Konstantin Belousov
On Tue, Dec 13, 2016 at 10:20:30AM +1100, Bruce Evans wrote: > Hrmph. kib didn't like my patch to kill the spam from reentering ddb. > The spam messes up even cases where the ddb command handles errors. > Howver, in most cases the error handling is incomplete. There is always > the outer setjmp/l

svn commit: r310027 - head/sys/dev/drm2/i915

2016-12-13 Thread Konstantin Belousov
Author: kib Date: Tue Dec 13 19:04:05 2016 New Revision: 310027 URL: https://svnweb.freebsd.org/changeset/base/310027 Log: Fix bug in r309712, do not leak gem object pin count in case of error or retry. Reported and tested by: Michael Butler Sponsored by: The FreeBSD Foundation

svn commit: r353033 - head/sys/fs/tmpfs

2019-10-03 Thread Konstantin Belousov
Author: kib Date: Thu Oct 3 08:25:09 2019 New Revision: 353033 URL: https://svnweb.freebsd.org/changeset/base/353033 Log: Remove unnecessary vm/vm_page.h and vm/vm_pager.h includes from tmpfs/tmpfs_vnodes.c. Submitted by: o...@j.email.ne.jp MFC after:1 week Differential revision:

svn commit: r353064 - head/sys/fs/tmpfs

2019-10-03 Thread Konstantin Belousov
Author: kib Date: Thu Oct 3 19:51:56 2019 New Revision: 353064 URL: https://svnweb.freebsd.org/changeset/base/353064 Log: tmpfs_rename: style. Reformat multi-line comments to follow style. Also fix some typos. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

svn commit: r353065 - head/sys/fs/tmpfs

2019-10-03 Thread Konstantin Belousov
Author: kib Date: Thu Oct 3 19:55:05 2019 New Revision: 353065 URL: https://svnweb.freebsd.org/changeset/base/353065 Log: tmpfs_readdir(): unlock the locked node. During readdir() we guarantee that the tn_dir.tn_parent does not go away, but it might be replaced by a parallel rename. Rea

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

2019-10-05 Thread Konstantin Belousov
On Fri, Oct 04, 2019 at 03:24:45PM -0700, John Baldwin wrote: > On 10/4/19 1:48 PM, Kyle Evans wrote: > > On Fri, Oct 4, 2019 at 2:12 PM John Baldwin wrote: > >> > >> On 10/4/19 6:43 AM, Kyle Evans wrote: > >>> Author: kevans > >>> Date: Fri Oct 4 13:43:07 2019 > >>> New Revision: 353103 > >>> UR

Re: svn commit: r353296 - head/sys/powerpc/include

2019-10-08 Thread Konstantin Belousov
On Tue, Oct 08, 2019 at 01:36:34AM +, Justin Hibbits wrote: > Author: jhibbits > Date: Tue Oct 8 01:36:34 2019 > New Revision: 353296 > URL: https://svnweb.freebsd.org/changeset/base/353296 > > Log: > powerpc: Implement atomic_(f)cmpset_ for short and char > | > This adds two implementa

Re: svn commit: r353305 - head/tests/sys/kern

2019-10-08 Thread Konstantin Belousov
On Tue, Oct 08, 2019 at 01:43:05PM +, Eric van Gyzen wrote: > Author: vangyzen > Date: Tue Oct 8 13:43:05 2019 > New Revision: 353305 > URL: https://svnweb.freebsd.org/changeset/base/353305 > > Log: > Fix problems in the kern_maxfiles__increase test > > ATF functions such as ATF_REQUIR

Re: svn commit: r353296 - head/sys/powerpc/include

2019-10-08 Thread Konstantin Belousov
On Tue, Oct 08, 2019 at 09:14:14AM -0500, Justin Hibbits wrote: > On Tue, 8 Oct 2019 11:16:04 +0300 > Konstantin Belousov wrote: > > > On Tue, Oct 08, 2019 at 01:36:34AM +, Justin Hibbits wrote: > > > Author: jhibbits > > > Date: Tue Oct 8 01:36:34 2019 >

Re: svn commit: r353305 - head/tests/sys/kern

2019-10-09 Thread Konstantin Belousov
On Tue, Oct 08, 2019 at 11:22:48PM -0700, Enji Cooper (yaneurabeya) wrote: > > > On Oct 8, 2019, at 08:04, Konstantin Belousov wrote: > > > > On Tue, Oct 08, 2019 at 01:43:05PM +, Eric van Gyzen wrote: > >> Author: vangyzen > >> Date: Tue Oct 8

svn commit: r353413 - head/sys/sys

2019-10-10 Thread Konstantin Belousov
Author: kib Date: Thu Oct 10 18:52:24 2019 New Revision: 353413 URL: https://svnweb.freebsd.org/changeset/base/353413 Log: Typo out->in. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/sys/lockf.h Modified: head/sys/sys/lockf.h

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

2019-10-11 Thread Konstantin Belousov
Author: kib Date: Fri Oct 11 18:37:02 2019 New Revision: 353446 URL: https://svnweb.freebsd.org/changeset/base/353446 Log: Plug the rest of undef behavior places that were missed in r337456. There are three more places in msdosfs_fat.c which might shift one into the sign bit. While there

svn commit: r353447 - head/sys/fs/devfs

2019-10-11 Thread Konstantin Belousov
Author: kib Date: Fri Oct 11 18:41:24 2019 New Revision: 353447 URL: https://svnweb.freebsd.org/changeset/base/353447 Log: devfs_vptocnp(): correct the component name when node is not at top. Node' cdp.si_name is the full path as provided by make_dev(9), it should not be returned by VOP_V

svn commit: r353463 - head/sys/vm

2019-10-12 Thread Konstantin Belousov
Author: kib Date: Sun Oct 13 06:56:45 2019 New Revision: 353463 URL: https://svnweb.freebsd.org/changeset/base/353463 Log: Restore nofaulting operations after r352807 The TDP_NOFAULTING flag should be checked in vm_fault(), not in vm_fault_trap(). Otherwise kernel accesses to userspace,

svn commit: r353622 - in head/sys/powerpc: aim booke include

2019-10-16 Thread Konstantin Belousov
Author: kib Date: Wed Oct 16 07:09:15 2019 New Revision: 353622 URL: https://svnweb.freebsd.org/changeset/base/353622 Log: Fix assert in PowerPC pmaps after introduction of object busy. The VM_PAGE_OBJECT_BUSY_ASSERT() in pmap_enter() implementation should be only asserted when the code i

Re: svn commit: r353625 - in head/cddl/contrib/opensolaris/lib/libzpool/common: . sys

2019-10-16 Thread Konstantin Belousov
On Wed, Oct 16, 2019 at 07:41:34AM +, Andriy Gapon wrote: > Author: avg > Date: Wed Oct 16 07:41:33 2019 > New Revision: 353625 > URL: https://svnweb.freebsd.org/changeset/base/353625 > > Log: > zfs: add a lame emulation of cv_wait_sig(9) in userland to fix r353618 > > Not sure if we ne

svn commit: r353664 - in head/sys: arm/arm arm/include sparc64/include sparc64/sparc64

2019-10-16 Thread Konstantin Belousov
Author: kib Date: Wed Oct 16 21:07:18 2019 New Revision: 353664 URL: https://svnweb.freebsd.org/changeset/base/353664 Log: Port r353622 to sparc64 and arm v4. Noted by: alc Reviewed by: alc, jeff, markj Sponsored by: The FreeBSD Foundation Differential revision:https://re

svn commit: r353681 - head/sys/vm

2019-10-17 Thread Konstantin Belousov
Author: kib Date: Thu Oct 17 13:49:47 2019 New Revision: 353681 URL: https://svnweb.freebsd.org/changeset/base/353681 Log: swapon_check_swzone(): use already calculated static variables. Submitted by: o...@j.email.ne.jp MFC after:1 week Differential revision:https://reviews.

svn commit: r353888 - head/sys/vm

2019-10-22 Thread Konstantin Belousov
Author: kib Date: Tue Oct 22 15:59:16 2019 New Revision: 353888 URL: https://svnweb.freebsd.org/changeset/base/353888 Log: vm_fault(): extract code to lock the vnode into a helper vn_fault_lock_vnode(). Tested by:pho Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC af

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

2019-10-22 Thread Konstantin Belousov
Author: kib Date: Tue Oct 22 16:09:25 2019 New Revision: 353890 URL: https://svnweb.freebsd.org/changeset/base/353890 Log: Add VV_VMSIZEVNLOCK flag. The flag specifies that vm_fault() handler should check the vnode' vm_object size under the vnode lock. It is converted into the object'

svn commit: r353891 - in head/sys/fs: nfs nfsclient

2019-10-22 Thread Konstantin Belousov
Author: kib Date: Tue Oct 22 16:17:38 2019 New Revision: 353891 URL: https://svnweb.freebsd.org/changeset/base/353891 Log: Fix interface between nfsclient and vnode pager. Make the nfsclient always call vnode_pager_setsize() with the vnode exclusively locked. This ensures that page fault

svn commit: r353892 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs sys vm

2019-10-22 Thread Konstantin Belousov
Author: kib Date: Tue Oct 22 16:21:24 2019 New Revision: 353892 URL: https://svnweb.freebsd.org/changeset/base/353892 Log: Assert that vnode_pager_setsize() is called with the vnode exclusively locked except for filesystems that set the MNTK_VMSETSIZE_BUG, Set the flag for ZFS. Tested

svn commit: r353916 - head/sys/vm

2019-10-23 Thread Konstantin Belousov
Author: kib Date: Wed Oct 23 07:36:26 2019 New Revision: 353916 URL: https://svnweb.freebsd.org/changeset/base/353916 Log: Assert that vm_fault_lock_vnode() returns locked saved vnode. Reviewed by: alc, markj Sponsored by: The FreeBSD Foundation MFC after:2 weeks Differential rev

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

2019-10-23 Thread Konstantin Belousov
On Wed, Oct 23, 2019 at 11:18:06PM +1100, Bruce Evans wrote: > On Tue, 22 Oct 2019, Alan Somers wrote: > > > On Wed, Oct 16, 2019 at 7:21 AM Andrew Turner wrote: > > > >> Author: andrew > >> Date: Wed Oct 16 13:21:01 2019 > >> New Revision: 353640 > >> URL: https://svnweb.freebsd.org/changeset/ba

svn commit: r353928 - head/sys/kern

2019-10-23 Thread Konstantin Belousov
Author: kib Date: Wed Oct 23 15:51:26 2019 New Revision: 353928 URL: https://svnweb.freebsd.org/changeset/base/353928 Log: vn_printf(): Decode VI_TEXT_REF. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c =

svn commit: r353930 - head/sys/kern

2019-10-23 Thread Konstantin Belousov
Author: kib Date: Wed Oct 23 16:06:47 2019 New Revision: 353930 URL: https://svnweb.freebsd.org/changeset/base/353930 Log: Fix undefined behavior. Create a sequence point by ending a full expression for call to vspace() and use of the globals which are modified by vspace(). Reported

svn commit: r354095 - in head/sys: amd64/amd64 amd64/include kern

2019-10-25 Thread Konstantin Belousov
Author: kib Date: Fri Oct 25 20:09:42 2019 New Revision: 354095 URL: https://svnweb.freebsd.org/changeset/base/354095 Log: amd64: move pcb out of kstack to struct thread. This saves 320 bytes of the precious stack space. The only negative aspect of the change I can think of is that the

Re: svn commit: r354095 - in head/sys: amd64/amd64 amd64/include kern

2019-10-26 Thread Konstantin Belousov
On Sat, Oct 26, 2019 at 08:24:09AM +0200, Antoine Brodin wrote: > On Fri, Oct 25, 2019 at 10:09 PM Konstantin Belousov wrote: > > > > Author: kib > > Date: Fri Oct 25 20:09:42 2019 > > New Revision: 354095 > > URL: https://svnweb.freebsd.org/changeset/base/3540

Re: svn commit: r354095 - in head/sys: amd64/amd64 amd64/include kern

2019-10-26 Thread Konstantin Belousov
On Sat, Oct 26, 2019 at 02:16:19PM +0200, Antoine Brodin wrote: > On Sat, Oct 26, 2019 at 10:27 AM Konstantin Belousov > wrote: > > On Sat, Oct 26, 2019 at 08:24:09AM +0200, Antoine Brodin wrote: > > > On Fri, Oct 25, 2019 at 10:09 PM Konstantin Belousov > > > wrot

svn commit: r354118 - head/sys/amd64/include

2019-10-26 Thread Konstantin Belousov
Author: kib Date: Sat Oct 26 18:22:52 2019 New Revision: 354118 URL: https://svnweb.freebsd.org/changeset/base/354118 Log: Provide dummy definition of the amd64 struct pcb for -m32 compilation. I do not see a need in the proper x86/include/pcb.h header. Reported and tested by: an

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

2019-10-28 Thread Konstantin Belousov
Author: kib Date: Mon Oct 28 10:50:37 2019 New Revision: 354132 URL: https://svnweb.freebsd.org/changeset/base/354132 Log: Fix reset of the kernel stack pointer in TSS for !PTI case on pmap activation after r354095. Reported and tested by: pho Sponsored by: The FreeBSD Foundation

svn commit: r354194 - head/sys/vm

2019-10-30 Thread Konstantin Belousov
Author: kib Date: Wed Oct 30 17:33:17 2019 New Revision: 354194 URL: https://svnweb.freebsd.org/changeset/base/354194 Log: vm_page_wire_mapped: explain why failure does not affect correctness. Reviewed by: markj (previous version) Sponsored by: The FreeBSD Foundation Differential revis

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

2019-11-03 Thread Konstantin Belousov
Author: kib Date: Sun Nov 3 11:52:50 2019 New Revision: 354281 URL: https://svnweb.freebsd.org/changeset/base/354281 Log: amd64: Store %cr3 into pcpu saved_ucr3 on double fault. Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd6

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

2019-11-03 Thread Konstantin Belousov
Author: kib Date: Sun Nov 3 11:51:53 2019 New Revision: 354280 URL: https://svnweb.freebsd.org/changeset/base/354280 Log: amd64 ddb: Add printing of kernel/user and saved user %cr3 values from pcpu. Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

<    1   2   3   4   5   6   7   8   9   10   >