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

2013-05-27 Thread Konstantin Belousov
Author: kib Date: Mon May 27 18:29:20 2013 New Revision: 251035 URL: http://svnweb.freebsd.org/changeset/base/251035 Log: When reporting the fault details, also print %rsp. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/amd64/amd64/trap.c Modified:

svn commit: r251037 - head/sys/amd64/ia32

2013-05-27 Thread Konstantin Belousov
Author: kib Date: Mon May 27 18:31:15 2013 New Revision: 251037 URL: http://svnweb.freebsd.org/changeset/base/251037 Log: The ia32_get_mcontext() does not need to set PCB_FULL_IRET. The usermode context state is not changed by the get operation, and get_mcontext() does not require full

svn commit: r251038 - head/sys/amd64/ia32

2013-05-27 Thread Konstantin Belousov
Author: kib Date: Mon May 27 18:36:46 2013 New Revision: 251038 URL: http://svnweb.freebsd.org/changeset/base/251038 Log: The _MC_HASFPXSTATE and _MC_IA32_HASFPXSTATE flags have the same bit value on purpose, but the ia32 context handling code is logically more correct to use the

svn commit: r251039 - in head/sys: amd64/amd64 amd64/ia32 i386/i386

2013-05-27 Thread Konstantin Belousov
Author: kib Date: Mon May 27 18:39:39 2013 New Revision: 251039 URL: http://svnweb.freebsd.org/changeset/base/251039 Log: Use slightly more idiomatic expression to get the address of array. Tested by:dim, pgj Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

svn commit: r251047 - in head: lib/libc/amd64/gen lib/libc/arm/gen lib/libc/gen lib/libc/i386/gen lib/libc/ia64/gen lib/libc/mips/gen lib/libc/powerpc/gen lib/libc/powerpc64/gen lib/libc/sparc64/ge...

2013-05-27 Thread Konstantin Belousov
Author: kib Date: Tue May 28 04:54:16 2013 New Revision: 251047 URL: http://svnweb.freebsd.org/changeset/base/251047 Log: The getcontext() from the __fillcontextx() call in the check_deferred_signal() returns twice, since handle_signal() emulates the return from the normal signal handler by

Re: svn commit: r251140 - head

2013-05-30 Thread Konstantin Belousov
On Thu, May 30, 2013 at 10:29:33AM -0500, Brooks Davis wrote: On Thu, May 30, 2013 at 10:53:23AM -0400, John Baldwin wrote: On Thursday, May 30, 2013 10:09:58 am Brooks Davis wrote: Author: brooks Date: Thu May 30 14:09:58 2013 New Revision: 251140 URL:

Re: svn commit: r251140 - head

2013-05-30 Thread Konstantin Belousov
On Thu, May 30, 2013 at 10:45:28AM -0500, Brooks Davis wrote: On Thu, May 30, 2013 at 06:37:51PM +0300, Konstantin Belousov wrote: I disagree with the statement about the useless, at least for WORLDTMP it saves the full buildworld when a change in the usermode headers is done during

svn commit: r251150 - head/sys/vm

2013-05-30 Thread Konstantin Belousov
Author: kib Date: Thu May 30 19:53:31 2013 New Revision: 251150 URL: http://svnweb.freebsd.org/changeset/base/251150 Log: Remove the capitalization in the assertion message. Print the address of the object to get useful information from optimizated kernels dump. Modified:

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

2013-05-30 Thread Konstantin Belousov
Author: kib Date: Thu May 30 19:51:33 2013 New Revision: 251149 URL: http://svnweb.freebsd.org/changeset/base/251149 Log: Assert that OBJ_TMPFS flag on the vm object for the tmpfs node is cleared when the tmpfs node is going away. Tested by:bdrewery, pho Modified:

svn commit: r251151 - head/sys/vm

2013-05-30 Thread Konstantin Belousov
Author: kib Date: Thu May 30 20:00:19 2013 New Revision: 251151 URL: http://svnweb.freebsd.org/changeset/base/251151 Log: After the object lock was dropped, the object' reference count could change. Retest the ref_count and return from the function to not execute the further code which

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

2013-06-02 Thread Konstantin Belousov
Author: kib Date: Mon Jun 3 04:11:42 2013 New Revision: 251281 URL: http://svnweb.freebsd.org/changeset/base/251281 Log: The vm_page lock is not needed around the call to vm_page_insert(). Submitted by: alc MFC after:1 week Modified: head/sys/dev/drm2/i915/i915_gem.c Modified:

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

2013-06-02 Thread Konstantin Belousov
Author: kib Date: Mon Jun 3 04:19:21 2013 New Revision: 251283 URL: http://svnweb.freebsd.org/changeset/base/251283 Log: MFamd64: when printing the trap information, show the %esp value. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/i386/i386/trap.c

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

2013-06-02 Thread Konstantin Belousov
Author: kib Date: Mon Jun 3 04:22:42 2013 New Revision: 251284 URL: http://svnweb.freebsd.org/changeset/base/251284 Log: Since the cause of the problems with the __fillcontextx() was identified, unify the code of check_deferred_signal() for all architectures, making the variant under

svn commit: r251285 - head/sys/kern

2013-06-02 Thread Konstantin Belousov
Author: kib Date: Mon Jun 3 04:32:53 2013 New Revision: 251285 URL: http://svnweb.freebsd.org/changeset/base/251285 Log: Do not map the shared page COW. If the process wired its address space, fork(2) would cause shadowing of the physical object and copying of the shared page into private

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

2013-06-03 Thread Konstantin Belousov
not understand what exactly do you want to do, please describe the algorithm you propose to implement instead of my change. -Alfred On 6/2/13 9:16 PM, Konstantin Belousov wrote: Author: kib Date: Mon Jun 3 04:16:48 2013 New Revision: 251282 URL: http://svnweb.freebsd.org/changeset/base

svn commit: r251318 - head/sys/vm

2013-06-03 Thread Konstantin Belousov
Author: kib Date: Mon Jun 3 17:30:40 2013 New Revision: 251318 URL: http://svnweb.freebsd.org/changeset/base/251318 Log: Remove irrelevant comments. Discussed with: alc MFC after:3 days Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c

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

2013-06-03 Thread Konstantin Belousov
Author: kib Date: Mon Jun 3 17:40:05 2013 New Revision: 251324 URL: http://svnweb.freebsd.org/changeset/base/251324 Log: Assert that interrupts are enabled in the trap handlers on x86 before calling generic code to deliver signals. Discussed with: bde Tested by:pho MFC

svn commit: r251322 - head/sys/kern

2013-06-03 Thread Konstantin Belousov
Author: kib Date: Mon Jun 3 17:36:43 2013 New Revision: 251322 URL: http://svnweb.freebsd.org/changeset/base/251322 Log: Be more generous when donating the current thread time to the owner of the vnode lock while iterating over the free vnode list. Instead of yielding, pause for 1 tick.

Re: svn commit: r251586 - head/sys/arm/ti

2013-06-09 Thread Konstantin Belousov
On Sun, Jun 09, 2013 at 10:51:12PM +, Olivier Houchard wrote: Author: cognet Date: Sun Jun 9 22:51:11 2013 New Revision: 251586 URL: http://svnweb.freebsd.org/changeset/base/251586 Log: Increase the maximum KVM available on TI chips. Not sure why we suddenly need that much, but

Re: svn commit: r251586 - head/sys/arm/ti

2013-06-10 Thread Konstantin Belousov
On Mon, Jun 10, 2013 at 12:02:20PM -0500, Alan Cox wrote: On 06/10/2013 06:08, Olivier Houchard wrote: On Mon, Jun 10, 2013 at 06:55:47AM +0300, Konstantin Belousov wrote: On Sun, Jun 09, 2013 at 10:51:12PM +, Olivier Houchard wrote: Author: cognet Date: Sun Jun 9 22:51:11 2013 New

Re: svn commit: r251586 - head/sys/arm/ti

2013-06-10 Thread Konstantin Belousov
On Tue, Jun 11, 2013 at 01:10:52AM +0200, Olivier Houchard wrote: On Mon, Jun 10, 2013 at 11:13:58PM +0200, Olivier Houchard wrote: On Mon, Jun 10, 2013 at 10:37:36PM +0300, Konstantin Belousov wrote: On Mon, Jun 10, 2013 at 12:02:20PM -0500, Alan Cox wrote: On 06/10/2013 06:08, Olivier

svn commit: r251684 - head/sys/kern

2013-06-13 Thread Konstantin Belousov
Author: kib Date: Thu Jun 13 09:33:22 2013 New Revision: 251684 URL: http://svnweb.freebsd.org/changeset/base/251684 Log: Fix two issues with the spin loops in the umtx(2) implementation. - When looping, check for the pending suspension. Otherwise, other usermode thread which races

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

2013-06-15 Thread Konstantin Belousov
On Tue, Jun 04, 2013 at 06:14:49PM +1000, Bruce Evans wrote: On Tue, 4 Jun 2013, Konstantin Belousov wrote: On Mon, Jun 03, 2013 at 02:24:26AM -0700, Alfred Perlstein wrote: On 6/3/13 12:55 AM, Konstantin Belousov wrote: On Sun, Jun 02, 2013 at 09:27:53PM -0700, Alfred Perlstein wrote

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

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Tue Jun 18 19:56:52 2013 New Revision: 251959 URL: http://svnweb.freebsd.org/changeset/base/251959 Log: Remove stray empty line. MFC after:3 days Modified: head/sys/dev/drm2/i915/i915_gem.c Modified: head/sys/dev/drm2/i915/i915_gem.c

svn commit: r251961 - in head/sys/dev: drm2/i915 syscons

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Tue Jun 18 20:19:09 2013 New Revision: 251961 URL: http://svnweb.freebsd.org/changeset/base/251961 Log: On some generations of the Intel GPU, disabling of the VGA Display stops updating the vertical retrace indicator. The text mouse renderer in syscons is executing from

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

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Wed Jun 19 04:47:41 2013 New Revision: 251985 URL: http://svnweb.freebsd.org/changeset/base/251985 Log: The SUSv4tc1 requires that pthread_setcancelstate() shall be not a cancellation point. When enabling the cancellation, only process the pending cancellation for

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

2013-06-18 Thread Konstantin Belousov
Author: kib Date: Wed Jun 19 05:05:16 2013 New Revision: 251988 URL: http://svnweb.freebsd.org/changeset/base/251988 Log: Some clarifications and updates for the comments, mostly retrieved from Bruce Evans. Trim the trailing spaces. MFC after:1 week Modified:

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

2013-06-20 Thread Konstantin Belousov
Author: kib Date: Thu Jun 20 14:30:04 2013 New Revision: 252032 URL: http://svnweb.freebsd.org/changeset/base/252032 Log: Allow immediate operand. Sponsored by: The FreeBSD Foundation Modified: head/sys/amd64/include/counter.h Modified: head/sys/amd64/include/counter.h

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-21 Thread Konstantin Belousov
On Fri, Jun 21, 2013 at 12:15:24PM +1000, Lawrence Stewart wrote: Hi Kostik, On 06/21/13 00:30, Konstantin Belousov wrote: Author: kib Date: Thu Jun 20 14:30:04 2013 New Revision: 252032 URL: http://svnweb.freebsd.org/changeset/base/252032 Log: Allow immediate operand

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-23 Thread Konstantin Belousov
On Sat, Jun 22, 2013 at 01:37:58PM +1000, Bruce Evans wrote: On Sat, 22 Jun 2013, I wrote: ... Here are considerably expanded tests, with noninline tests dropped. Summary of times on Athlon64: simple increment: 4-7 cycles (1) simple increment preceded

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-23 Thread Konstantin Belousov
On Sat, Jun 22, 2013 at 06:58:15PM +1000, Bruce Evans wrote: So the i386 version be simply addl; adcl to memory. Each store in this is atomic at the per-CPU level. If there is no carry, then the separate stores are equivalent to adding separate nonnegative values and the counter value is

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-24 Thread Konstantin Belousov
On Sun, Jun 23, 2013 at 07:57:57PM +1000, Bruce Evans wrote: The case that can't be fixed by rereading the counters is when fetching code runs in between the stores. If the stores are on a another CPU that is currently executing them, then we can keep checking that the counters don't change

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-25 Thread Konstantin Belousov
On Tue, Jun 25, 2013 at 12:45:36PM +1000, Bruce Evans wrote: On Mon, 24 Jun 2013, Konstantin Belousov wrote: On Sun, Jun 23, 2013 at 07:57:57PM +1000, Bruce Evans wrote: The case that can't be fixed by rereading the counters is when fetching code runs in between the stores. If the stores

Re: svn commit: r252032 - head/sys/amd64/include

2013-06-25 Thread Konstantin Belousov
On Tue, Jun 25, 2013 at 08:14:41PM +1000, Bruce Evans wrote: On Tue, 25 Jun 2013, Konstantin Belousov wrote: Updates to the counter cannot be done from the interrupt context. This is fragile, however. It prevents using counters for things like counting interrupts. Most interrupt

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

2013-06-28 Thread Konstantin Belousov
On Fri, Jun 28, 2013 at 03:03:46AM +0200, Mateusz Guzik wrote: On Thu, Jun 27, 2013 at 07:14:04PM +, Mikolaj Golub wrote: Author: trociny Date: Thu Jun 27 19:14:03 2013 New Revision: 252313 URL: http://svnweb.freebsd.org/changeset/base/252313 Log: To avoid LOR, always drop

Re: svn commit: r252376 - head/lib/libutil

2013-06-29 Thread Konstantin Belousov
On Sat, Jun 29, 2013 at 03:52:49PM +, Tim Kientzle wrote: Author: kientzle Date: Sat Jun 29 15:52:48 2013 New Revision: 252376 URL: http://svnweb.freebsd.org/changeset/base/252376 Log: Fix -Wunsequenced warning What is this ? From the name of the warning, it sounds as if the problem

Re: svn commit: r262411 - head/sys/arm/arm

2014-03-05 Thread Konstantin Belousov
On Sun, Feb 23, 2014 at 10:52:48PM +, Ian Lepore wrote: Author: ian Date: Sun Feb 23 22:52:48 2014 New Revision: 262411 URL: http://svnweb.freebsd.org/changeset/base/262411 Log: If the L2 cache type is PIPT, pass a physical address for a flush. While this is technically more

Re: svn commit: r262411 - head/sys/arm/arm

2014-03-07 Thread Konstantin Belousov
On Wed, Mar 05, 2014 at 06:22:47AM -0700, Ian Lepore wrote: On Wed, 2014-03-05 at 13:54 +0200, Konstantin Belousov wrote: On Sun, Feb 23, 2014 at 10:52:48PM +, Ian Lepore wrote: Author: ian Date: Sun Feb 23 22:52:48 2014 New Revision: 262411 URL: http://svnweb.freebsd.org

svn commit: r263079 - head/sys/kern

2014-03-12 Thread Konstantin Belousov
Author: kib Date: Wed Mar 12 10:23:51 2014 New Revision: 263079 URL: http://svnweb.freebsd.org/changeset/base/263079 Log: The auio structure is only initialized when the vnode is symlink, avoid reading from it otherwise. Submitted by: Conrad Meyer ceme...@uw.edu MFC after:1 week

svn commit: r263080 - in head/sys: dev/cpuctl dev/hwpmc kern

2014-03-12 Thread Konstantin Belousov
Author: kib Date: Wed Mar 12 10:25:26 2014 New Revision: 263080 URL: http://svnweb.freebsd.org/changeset/base/263080 Log: Use correct types for sizeof() in the calculations for the malloc(9) sizes [1]. While there, remove unneeded checks for failed allocations with M_WAITOK flag.

svn commit: r263092 - head/sys/vm

2014-03-12 Thread Konstantin Belousov
Author: kib Date: Wed Mar 12 15:13:57 2014 New Revision: 263092 URL: http://svnweb.freebsd.org/changeset/base/263092 Log: Do not vdrop() the tmpfs vnode until it is unlocked. The hold reference might be the last, and then vdrop() would free the vnode. Reported and tested by:

svn commit: r263095 - head/sys/vm

2014-03-12 Thread Konstantin Belousov
Author: kib Date: Wed Mar 12 16:38:55 2014 New Revision: 263095 URL: http://svnweb.freebsd.org/changeset/base/263095 Log: Initialize paddr to handle the case of zero size. Reported and reviewed by: Conrad Meyer ceme...@uw.edu MFC after:1 week Modified:

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

2014-03-18 Thread Konstantin Belousov
Author: kib Date: Tue Mar 18 15:59:06 2014 New Revision: 263304 URL: http://svnweb.freebsd.org/changeset/base/263304 Log: Trim at EOL. MFC after:3 days Modified: head/sys/x86/iommu/busdma_dmar.c Modified: head/sys/x86/iommu/busdma_dmar.c

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

2014-03-18 Thread Konstantin Belousov
Author: kib Date: Tue Mar 18 16:20:33 2014 New Revision: 263305 URL: http://svnweb.freebsd.org/changeset/base/263305 Log: It is not uncommon for BIOSes to report wrong RMRR entries in DMAR table. Among them, some (old AMI ?) BIOSes report entries with range like (bf7ec000, bf7ebfff).

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

2014-03-18 Thread Konstantin Belousov
Author: kib Date: Tue Mar 18 16:41:32 2014 New Revision: 263306 URL: http://svnweb.freebsd.org/changeset/base/263306 Log: Add support for the PCI(e)-PCI bridges to the Intel VT-d driver. The bridge takes ownership of the transaction, so bsf of the requester is the bridge and not a device

svn commit: r263349 - in head/sys: compat/freebsd32 kern

2014-03-19 Thread Konstantin Belousov
Author: kib Date: Wed Mar 19 12:35:04 2014 New Revision: 263349 URL: http://svnweb.freebsd.org/changeset/base/263349 Log: Make the array pointed to by AT_PAGESIZES auxv properly aligned. Also, remove the expression which calculated the location of the strings for a new image and grown

svn commit: r263471 - head/sys/vm

2014-03-21 Thread Konstantin Belousov
Author: kib Date: Fri Mar 21 13:55:57 2014 New Revision: 263471 URL: http://svnweb.freebsd.org/changeset/base/263471 Log: Initialize vm_map_entry member wiring_thread on the map entry creation. This was missed in r253190. Reported by: hps, peter Tested by:hps Sponsored by: The

svn commit: r263475 - in head/sys: amd64/amd64 kern sys vm

2014-03-21 Thread Konstantin Belousov
Author: kib Date: Fri Mar 21 14:25:09 2014 New Revision: 263475 URL: http://svnweb.freebsd.org/changeset/base/263475 Log: Fix two issues with /dev/mem access on amd64, both causing kernel page faults. First, for accesses to direct map region should check for the limit by which direct

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

2014-03-21 Thread Konstantin Belousov
Author: kib Date: Fri Mar 21 17:17:19 2014 New Revision: 263498 URL: http://svnweb.freebsd.org/changeset/base/263498 Log: Add change forgotten in r263475. Make dmaplimit accessible outside amd64/pmap.c. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

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

2014-03-27 Thread Konstantin Belousov
On Thu, Mar 27, 2014 at 04:05:12PM +0100, Mateusz Guzik wrote: On Thu, Mar 27, 2014 at 03:58:19PM +0100, Mateusz Guzik wrote: On Thu, Mar 27, 2014 at 04:46:57PM +0800, David Xu wrote: On 2014/03/27 16:37, Mateusz Guzik wrote: On Thu, Mar 27, 2014 at 03:45:17PM +0800, David Xu wrote: I

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

2014-03-28 Thread Konstantin Belousov
Author: kib Date: Fri Mar 28 16:07:27 2014 New Revision: 263878 URL: http://svnweb.freebsd.org/changeset/base/263878 Log: Several fixes for the PCID implementation: - When clearing a bit for a cpuid in pmap-pm_save, ensure that the cpuid is not set in pm_active. The pm_save indicates

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

2014-03-28 Thread Konstantin Belousov
On Fri, Mar 28, 2014 at 01:23:06PM -0400, Ed Maste wrote: On 28 March 2014 12:07, Konstantin Belousov k...@freebsd.org wrote: Author: kib Date: Fri Mar 28 16:07:27 2014 New Revision: 263878 URL: http://svnweb.freebsd.org/changeset/base/263878 Log: Several fixes for the PCID

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

2014-03-29 Thread Konstantin Belousov
Author: kib Date: Sat Mar 29 11:56:33 2014 New Revision: 263912 URL: http://svnweb.freebsd.org/changeset/base/263912 Log: Clear the kernel grab of the FPU state on fork. The pcb_save pointer is already correctly reset to the FPU user save area, only PCB_KERNFPU flag might leak from old

Re: svn commit: r264042 - in head: include lib/libc/gen lib/libc/include lib/libc/stdlib

2014-04-02 Thread Konstantin Belousov
On Wed, Apr 02, 2014 at 04:07:48PM +, David Chisnall wrote: Modified: head/lib/libc/gen/Symbol.map == --- head/lib/libc/gen/Symbol.map Wed Apr 2 15:56:11 2014 (r264041) +++

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

2014-04-05 Thread Konstantin Belousov
Author: kib Date: Sat Apr 5 14:09:16 2014 New Revision: 264146 URL: http://svnweb.freebsd.org/changeset/base/264146 Log: When KN_INFLUX is set on the knote due to kqueue_register() or kqueue_scan() unlocking the kqueue to call f_event, knote() or knote_fork() should not skip the knote.

svn commit: r264173 - head/sys/kern

2014-04-05 Thread Konstantin Belousov
Author: kib Date: Sat Apr 5 20:44:52 2014 New Revision: 264173 URL: http://svnweb.freebsd.org/changeset/base/264173 Log: Use realloc(9) instead of doing the reallocation inline. Submitted by: bde MFC after:1 week Modified: head/sys/kern/kern_linker.c Modified:

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

2014-04-13 Thread Konstantin Belousov
On Sun, Apr 13, 2014 at 09:23:16PM +, Christian Brueffer wrote: Author: brueffer Date: Sun Apr 13 21:23:15 2014 New Revision: 264422 URL: http://svnweb.freebsd.org/changeset/base/264422 Log: Free buf after usage. CID:1199377 Found with: Coverity Prevent(tm)

svn commit: r264481 - head/libexec/rtld-elf/amd64

2014-04-14 Thread Konstantin Belousov
Author: kib Date: Mon Apr 14 22:44:50 2014 New Revision: 264481 URL: http://svnweb.freebsd.org/changeset/base/264481 Log: Add dwarf annotations to the amd64 _rtld_bind_start to allow debuggers to unwind around the calls from PLT to binder. Sponsored by: The FreeBSD Foundation MFC

svn commit: r264620 - head/sys/kern

2014-04-17 Thread Konstantin Belousov
Author: kib Date: Thu Apr 17 18:13:23 2014 New Revision: 264620 URL: http://svnweb.freebsd.org/changeset/base/264620 Log: Fix typo. MFC after:3 days Modified: head/sys/kern/subr_fattime.c Modified: head/sys/kern/subr_fattime.c

svn commit: r265002 - head/sys/vm

2014-04-26 Thread Konstantin Belousov
Author: kib Date: Sun Apr 27 05:19:01 2014 New Revision: 265002 URL: http://svnweb.freebsd.org/changeset/base/265002 Log: When vm_fault_copy_entry() is called from vm_map_protect() for a wired entry and performs the upgrade of the entry permissions from read-only to read-write, we must

svn commit: r265003 - head/secure/usr.sbin/sshd

2014-04-26 Thread Konstantin Belousov
Author: kib Date: Sun Apr 27 05:28:14 2014 New Revision: 265003 URL: http://svnweb.freebsd.org/changeset/base/265003 Log: Fix order of libthr and libc in the global dso list for sshd, by explicitely linking main binary with -lpthread. Before, libthr appeared in the list due to dependency

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

2014-04-26 Thread Konstantin Belousov
Author: kib Date: Sun Apr 27 05:37:01 2014 New Revision: 265004 URL: http://svnweb.freebsd.org/changeset/base/265004 Log: Same as it was done in r263878 for invlrng_handler(), fix order of checks for special pcid values in invlpg_pcid_handler(). Forst check for special values, and only

svn commit: r265100 - head/sys/vm

2014-04-29 Thread Konstantin Belousov
Author: kib Date: Tue Apr 29 18:42:37 2014 New Revision: 265100 URL: http://svnweb.freebsd.org/changeset/base/265100 Log: For the VM_PHYSSEG_DENSE case, checking the requested range to fall into the area backed by vm_page_array wrongly compared end with vm_page_array_size. It should be

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

2014-04-29 Thread Konstantin Belousov
Author: kib Date: Tue Apr 29 19:02:34 2014 New Revision: 265102 URL: http://svnweb.freebsd.org/changeset/base/265102 Log: Fix two cases of recursive acquisitions of the vm object lock, only possible in rare failure situations. Sponsored by: The FreeBSD Foundation MFC after:1 week

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

2014-05-03 Thread Konstantin Belousov
Author: kib Date: Sat May 3 16:11:55 2014 New Revision: 265275 URL: http://svnweb.freebsd.org/changeset/base/265275 Log: After r254627, the deupdate() started writing the directory entries to disk. That has a side effect of corrupting the . entries names on rename, since the call to

svn commit: r265824 - head/sys/vm

2014-05-10 Thread Konstantin Belousov
Author: kib Date: Sat May 10 16:30:48 2014 New Revision: 265824 URL: http://svnweb.freebsd.org/changeset/base/265824 Log: Print the entry address in addition to the object. The variable is typically optimized out and debuggers cannot find its value. Sponsored by: The FreeBSD

svn commit: r265825 - head/sys/vm

2014-05-10 Thread Konstantin Belousov
Author: kib Date: Sat May 10 16:36:13 2014 New Revision: 265825 URL: http://svnweb.freebsd.org/changeset/base/265825 Log: When printing the map with the ddb 'show procvm' command, do not dump page queues for the backing objects. The queues are huge and clutter the display, when mostly the

svn commit: r265843 - head/sys/vm

2014-05-10 Thread Konstantin Belousov
Author: kib Date: Sat May 10 17:03:33 2014 New Revision: 265843 URL: http://svnweb.freebsd.org/changeset/base/265843 Log: For the upgrade case in vm_fault_copy_entry(), when the entry does not need COW and is writeable (i.e. becoming writeable due to the mprotect(2) operation), do not

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

2014-05-10 Thread Konstantin Belousov
Author: kib Date: Sat May 10 18:59:09 2014 New Revision: 265845 URL: http://svnweb.freebsd.org/changeset/base/265845 Log: Style. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/lib/libc/gen/sem_new.c Modified: head/lib/libc/gen/sem_new.c

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

2014-05-10 Thread Konstantin Belousov
Author: kib Date: Sat May 10 19:08:07 2014 New Revision: 265847 URL: http://svnweb.freebsd.org/changeset/base/265847 Log: Invalidate the cache for the named posix semaphore when opened and actual file storing the semaphore object is different from the file created on the first open. Store

Re: svn commit: r265861 - in head/sys: arm/include modules

2014-05-11 Thread Konstantin Belousov
On Sun, May 11, 2014 at 12:43:06AM +, Ian Lepore wrote: Author: ian Date: Sun May 11 00:43:06 2014 New Revision: 265861 URL: http://svnweb.freebsd.org/changeset/base/265861 Log: Make the hardware memory and instruction barrier functions work on armv4 and armv5 as well.

svn commit: r265887 - head/sys/vm

2014-05-11 Thread Konstantin Belousov
Author: kib Date: Sun May 11 18:07:07 2014 New Revision: 265887 URL: http://svnweb.freebsd.org/changeset/base/265887 Log: Fix locking. The dst_object must remain locked on the retry of the loop iteration. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC

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

2014-05-18 Thread Konstantin Belousov
Author: kib Date: Sun May 18 17:14:08 2014 New Revision: 266411 URL: http://svnweb.freebsd.org/changeset/base/266411 Log: Fix LD_LIBMAP. The r232862 passed the pointer to end of string to lmc_parse() and free(). Submitted by: Wolfgang Jenkner wjenk...@inode.at MFC after:1 week

svn commit: r266464 - in head/sys: kern sys vm

2014-05-20 Thread Konstantin Belousov
Author: kib Date: Tue May 20 09:19:35 2014 New Revision: 266464 URL: http://svnweb.freebsd.org/changeset/base/266464 Log: When exec_new_vmspace() decides that current vmspace cannot be reused on execve(2), it calls vmspace_exec(), which frees the current vmspace. The thread executing an

Re: svn commit: r266464 - in head/sys: kern sys vm

2014-05-20 Thread Konstantin Belousov
On Tue, May 20, 2014 at 11:35:01PM +0800, Julian Elischer wrote: On 5/20/14, 5:19 PM, Konstantin Belousov wrote: Author: kib Date: Tue May 20 09:19:35 2014 New Revision: 266464 URL: http://svnweb.freebsd.org/changeset/base/266464 Log: When exec_new_vmspace() decides that current

svn commit: r266491 - head/sys/vm

2014-05-21 Thread Konstantin Belousov
Author: kib Date: Wed May 21 08:19:04 2014 New Revision: 266491 URL: http://svnweb.freebsd.org/changeset/base/266491 Log: Remove redundand loop. The inner goto restarts the whole page handling in the situation identical to the loop condition. Sponsored by: The FreeBSD Foundation MFC

Re: svn commit: r266481 - head/sys/x86/x86

2014-05-21 Thread Konstantin Belousov
On Tue, May 20, 2014 at 10:43:18PM +, Scott Long wrote: Author: scottl Date: Tue May 20 22:43:17 2014 New Revision: 266481 URL: http://svnweb.freebsd.org/changeset/base/266481 Log: Old PCIe implementations cannot allow a DMA transfer to cross a 4GB boundary. This was addressed

svn commit: r266609 - in head: lib/libthr/thread libexec/rtld-elf

2014-05-24 Thread Konstantin Belousov
Author: kib Date: Sat May 24 10:23:06 2014 New Revision: 266609 URL: http://svnweb.freebsd.org/changeset/base/266609 Log: Right now, the rtld prefork hook locks the rtld bind lock in the read mode. This allows the binder to be functional in the child after the fork (assuming no lazy

svn commit: r266780 - head/sys/vm

2014-05-27 Thread Konstantin Belousov
Author: kib Date: Wed May 28 00:45:35 2014 New Revision: 266780 URL: http://svnweb.freebsd.org/changeset/base/266780 Log: Remove the assert which can be triggered by the userspace. The situation checked by assert is verified to not take place in vm_map_wire(), and protection permissions on

Re: svn commit: r266553 - head/release/scripts

2014-05-28 Thread Konstantin Belousov
On Wed, May 28, 2014 at 08:26:58AM -0600, Warner Losh wrote: Then we disagree on this point. However, the disagreement here is kinda foundational: to build a set of libraries or sys root, you have to have a MACHINE_ARCH to make it work. Even in our current system, we set MACHINE_ARCH to i386

Re: svn commit: r266553 - head/release/scripts

2014-05-28 Thread Konstantin Belousov
On Wed, May 28, 2014 at 09:35:27AM -0600, Warner Losh wrote: On May 28, 2014, at 9:28 AM, Konstantin Belousov kostik...@gmail.com wrote: On Wed, May 28, 2014 at 08:26:58AM -0600, Warner Losh wrote: Then we disagree on this point. However, the disagreement here is kinda foundational

Re: svn commit: r266553 - head/release/scripts

2014-05-28 Thread Konstantin Belousov
On Wed, May 28, 2014 at 01:53:28PM -0600, Warner Losh wrote: On May 28, 2014, at 9:47 AM, Konstantin Belousov kostik...@gmail.com wrote: On Wed, May 28, 2014 at 09:35:27AM -0600, Warner Losh wrote: On May 28, 2014, at 9:28 AM, Konstantin Belousov kostik...@gmail.com wrote

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

2014-05-29 Thread Konstantin Belousov
Author: kib Date: Thu May 29 16:18:31 2014 New Revision: 266846 URL: http://svnweb.freebsd.org/changeset/base/266846 Log: When usermode loaded non-default segment selector into the %gs, correctly prepare KGSBASE msr to restore the user descriptor base on the last swapgs during return to

svn commit: r266848 - head/sys/dev/mfi

2014-05-29 Thread Konstantin Belousov
Author: kib Date: Thu May 29 16:20:34 2014 New Revision: 266848 URL: http://svnweb.freebsd.org/changeset/base/266848 Log: Add support for the unmapped i/o to mfi(4). Tested by:Nicholas Esborn n...@desert.net Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

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

2014-06-04 Thread Konstantin Belousov
Author: kib Date: Wed Jun 4 15:30:49 2014 New Revision: 267060 URL: http://svnweb.freebsd.org/changeset/base/267060 Log: Allow shared locking for the tmpfs vnodes. Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/fs/tmpfs/tmpfs_subr.c

svn commit: r267062 - in head: lib/libpmc sys/dev/hwpmc sys/sys

2014-06-04 Thread Konstantin Belousov
Author: kib Date: Wed Jun 4 16:06:38 2014 New Revision: 267062 URL: http://svnweb.freebsd.org/changeset/base/267062 Log: For Xeon 7500 and 48XX (Nehalem EX and Westmere EX) variants of the Core i7 and Westmere processors, the uncore PMC subsystem is completely different from the uncore PMC

svn commit: r267067 - head/usr.bin/yes

2014-06-04 Thread Konstantin Belousov
Author: kib Date: Wed Jun 4 17:17:30 2014 New Revision: 267067 URL: http://svnweb.freebsd.org/changeset/base/267067 Log: Cross-reference jot(1) and seq(1). MFC after:3 days Modified: head/usr.bin/yes/yes.1 Modified: head/usr.bin/yes/yes.1

svn commit: r267226 - in head/sys: conf kern modules/ufs ufs/ffs

2014-06-08 Thread Konstantin Belousov
Author: kib Date: Sun Jun 8 10:55:06 2014 New Revision: 267226 URL: http://svnweb.freebsd.org/changeset/base/267226 Log: Initialize the pbuf counter for directio using SYSINIT, instead of using a direct hook called from kern_vfs_bio_buffer_alloc(). Mark ffs_rawread.c as requiring both ffs

svn commit: r267227 - head/sys/kern

2014-06-08 Thread Konstantin Belousov
Author: kib Date: Sun Jun 8 10:56:25 2014 New Revision: 267227 URL: http://svnweb.freebsd.org/changeset/base/267227 Log: Remove write-only local variable. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/sched_ule.c Modified:

Re: svn commit: r267233 - in head: . bin/rmail gnu/usr.bin/binutils/addr2line gnu/usr.bin/binutils/nm gnu/usr.bin/binutils/objcopy gnu/usr.bin/binutils/objdump gnu/usr.bin/binutils/readelf gnu/usr.bin

2014-06-08 Thread Konstantin Belousov
On Sun, Jun 08, 2014 at 05:38:49PM +, Bjoern A. Zeeb wrote: On 08 Jun 2014, at 17:29 , Bryan Drewery bdrew...@freebsd.org wrote: Author: bdrewery Date: Sun Jun 8 17:29:31 2014 New Revision: 267233 URL: http://svnweb.freebsd.org/changeset/base/267233 Log: In preparation

Re: svn commit: r267233 - in head: . bin/rmail gnu/usr.bin/binutils/addr2line gnu/usr.bin/binutils/nm gnu/usr.bin/binutils/objcopy gnu/usr.bin/binutils/objdump gnu/usr.bin/binutils/readelf gnu/usr.bin

2014-06-08 Thread Konstantin Belousov
On Sun, Jun 08, 2014 at 11:30:42AM -0700, Alfred Perlstein wrote: On 6/8/14 11:27 AM, Konstantin Belousov wrote: On Sun, Jun 08, 2014 at 05:38:49PM +, Bjoern A. Zeeb wrote: On 08 Jun 2014, at 17:29 , Bryan Drewery bdrew...@freebsd.org wrote: Author: bdrewery Date: Sun Jun 8 17:29

Re: svn commit: r267233 - in head: . bin/rmail gnu/usr.bin/binutils/addr2line gnu/usr.bin/binutils/nm gnu/usr.bin/binutils/objcopy gnu/usr.bin/binutils/objdump gnu/usr.bin/binutils/readelf gnu/usr.bin

2014-06-08 Thread Konstantin Belousov
On Sun, Jun 08, 2014 at 12:14:15PM -0700, Alfred Perlstein wrote: On 6/8/14 11:44 AM, Konstantin Belousov wrote: On Sun, Jun 08, 2014 at 11:30:42AM -0700, Alfred Perlstein wrote: On 6/8/14 11:27 AM, Konstantin Belousov wrote: On Sun, Jun 08, 2014 at 05:38:49PM +, Bjoern A. Zeeb wrote

svn commit: r267254 - head/sys/vm

2014-06-08 Thread Konstantin Belousov
Author: kib Date: Mon Jun 9 03:37:41 2014 New Revision: 267254 URL: http://svnweb.freebsd.org/changeset/base/267254 Log: Make mmap(MAP_STACK) search for the available address space, similar to !MAP_STACK mapping requests. For MAP_STACK | MAP_FIXED, clear any mappings which could

svn commit: r267255 - head/sys/kern

2014-06-08 Thread Konstantin Belousov
Author: kib Date: Mon Jun 9 03:38:03 2014 New Revision: 267255 URL: http://svnweb.freebsd.org/changeset/base/267255 Log: Change the nblock mutex, protecting the needsbuffer buffer deficit flags, to rwlock. Lock it in read mode when used from subroutines called from buffer release code

svn commit: r267264 - head/sys/kern

2014-06-09 Thread Konstantin Belousov
Author: kib Date: Mon Jun 9 09:10:31 2014 New Revision: 267264 URL: http://svnweb.freebsd.org/changeset/base/267264 Log: Devolatile as needed. Sponsored by: The FreeBSD Foundation MFC after:13 days Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio.c

svn commit: r267491 - head/sys/kern

2014-06-14 Thread Konstantin Belousov
/vfs_vnops.c Sun Jun 15 03:54:23 2014(r267490) +++ head/sys/kern/vfs_vnops.c Sun Jun 15 04:51:53 2014(r267491) @@ -8,7 +8,7 @@ * the permission of UNIX System Laboratories, Inc. * * Copyright (c) 2012 Konstantin Belousov k...@freebsd.org - * Copyright (c) 2013 The FreeBSD

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

2014-06-14 Thread Konstantin Belousov
Author: kib Date: Sun Jun 15 05:01:35 2014 New Revision: 267492 URL: http://svnweb.freebsd.org/changeset/base/267492 Log: Fix some cosmetic issues with the use of kmem_malloc() in the i386 LDT sysarch(2) code. Use M_ZERO instead of explicit bzero(9). Do not check for failed allocation

Re: svn commit: r267526 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include x86/include x86/x86 x86/xen

2014-06-17 Thread Konstantin Belousov
On Mon, Jun 16, 2014 at 08:43:03AM +, Roger Pau Monnц╘ wrote: Author: royger Date: Mon Jun 16 08:43:03 2014 New Revision: 267526 URL: http://svnweb.freebsd.org/changeset/base/267526 Log: amd64/i386: introduce APIC hooks for different APIC implementations. This is needed for

svn commit: r267564 - in head/sys: fs/devfs fs/msdosfs fs/tmpfs kern sys ufs/ufs

2014-06-17 Thread Konstantin Belousov
Author: kib Date: Tue Jun 17 07:11:00 2014 New Revision: 267564 URL: http://svnweb.freebsd.org/changeset/base/267564 Log: In msdosfs_setattr(), add a check for result of the utimes(2) permissions test, forgotten in r164033. Refactor the permission checks for utimes(2) into vnode helper

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

2014-06-17 Thread Konstantin Belousov
Author: kib Date: Tue Jun 17 09:33:22 2014 New Revision: 267575 URL: http://svnweb.freebsd.org/changeset/base/267575 Log: Do not reference native_lapic_ipi_*() functions in the UP build. The functions' definitions are protected by #ifdef SMP. Keeping apic_ops.ipi_*() methods NULL would

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