svn commit: r220651 - stable/8/sys/amd64/amd64

2011-04-15 Thread Konstantin Belousov
Author: kib Date: Fri Apr 15 10:33:20 2011 New Revision: 220651 URL: http://svn.freebsd.org/changeset/base/220651 Log: MFC r220461: Remove setting of PCB_FULL_IRET at the places where we are going to call update_gdt_{f,g}sbase. The functions set the flag when td == curthread, and sysarch i

svn commit: r220714 - stable/8/sys/compat/freebsd32

2011-04-16 Thread Konstantin Belousov
Author: kib Date: Sat Apr 16 12:41:22 2011 New Revision: 220714 URL: http://svn.freebsd.org/changeset/base/220714 Log: MFC r220280: Provide the structures and ioctl number definition for handling PCIOCGETCONF compat32. Modified: stable/8/sys/compat/freebsd32/freebsd32_ioctl.c stable/8/s

svn commit: r220716 - stable/8/sys/compat/freebsd32

2011-04-16 Thread Konstantin Belousov
Author: kib Date: Sat Apr 16 12:43:04 2011 New Revision: 220716 URL: http://svn.freebsd.org/changeset/base/220716 Log: MFC r220281: Implement compat32 shims for PCIOCGETCONF. Modified: stable/8/sys/compat/freebsd32/freebsd32_ioctl.c Directory Properties: stable/8/sys/ (props changed)

svn commit: r220717 - stable/8/sys/fs/fdescfs

2011-04-16 Thread Konstantin Belousov
Author: kib Date: Sat Apr 16 12:45:09 2011 New Revision: 220717 URL: http://svn.freebsd.org/changeset/base/220717 Log: MFC r220506: Implement a workaround for fdescfs to not panic when ncookies is not NULL. PR: kern/156177 Modified: stable/8/sys/fs/fdescfs/fdesc_vnops.c Directory Pro

svn commit: r220737 - in stable/7/sys: amd64/amd64 amd64/ia32 i386/i386 kern

2011-04-17 Thread Konstantin Belousov
Author: kib Date: Sun Apr 17 11:35:22 2011 New Revision: 220737 URL: http://svn.freebsd.org/changeset/base/220737 Log: MFC r218327: Clear the padding when returning context to the usermode, for MI ucontext_t and x86 MD parts. Tested-by: Oliver Pinter Modified: stable/7/sys/amd64/amd

svn commit: r220803 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include

2011-04-18 Thread Konstantin Belousov
Author: kib Date: Mon Apr 18 21:24:42 2011 New Revision: 220803 URL: http://svn.freebsd.org/changeset/base/220803 Log: Make pmap_invalidate_cache_range() available for consumption on amd64. Add pmap_invalidate_cache_pages() method on x86. It flushes the CPU cache for the set of pages, whi

svn commit: r220977 - head/sys/vm

2011-04-23 Thread Konstantin Belousov
Author: kib Date: Sat Apr 23 21:38:21 2011 New Revision: 220977 URL: http://svn.freebsd.org/changeset/base/220977 Log: Fix two bugs in r218670. Hold the vnode around the region where object lock is dropped, until vnode lock is acquired. Do not drop the vnode reference for a case when

svn commit: r220979 - head/sys/dev/drm

2011-04-23 Thread Konstantin Belousov
Author: kib Date: Sat Apr 23 23:11:44 2011 New Revision: 220979 URL: http://svn.freebsd.org/changeset/base/220979 Log: Fix display of the drm sysctls. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/dev/drm/drm_sysctl.c Modified: head/sys/dev/drm/drm_sysct

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

2011-04-24 Thread Konstantin Belousov
Author: kib Date: Sun Apr 24 10:47:56 2011 New Revision: 220985 URL: http://svn.freebsd.org/changeset/base/220985 Log: VFS sometimes is unable to inactivate a vnode when vnode use count goes to zero. E.g., the vnode might be only shared-locked at the time of vput() call. Such vnodes are kept

svn commit: r220986 - stable/8/sys/ufs/ufs

2011-04-24 Thread Konstantin Belousov
Author: kib Date: Sun Apr 24 11:01:42 2011 New Revision: 220986 URL: http://svn.freebsd.org/changeset/base/220986 Log: Merge the part of r207141 that fixes the locking for ufs_rename() (and r218838 followup). Adopt the SU calls to the stable/8 SU implementation, with the help from Kirk.

svn commit: r220987 - head/sys/sys

2011-04-24 Thread Konstantin Belousov
Author: kib Date: Sun Apr 24 13:22:14 2011 New Revision: 220987 URL: http://svn.freebsd.org/changeset/base/220987 Log: Fix typo. MFC after:3 days Modified: head/sys/sys/systm.h Modified: head/sys/sys/systm.h ===

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

2011-04-26 Thread Konstantin Belousov
Author: kib Date: Tue Apr 26 11:39:56 2011 New Revision: 221059 URL: http://svn.freebsd.org/changeset/base/221059 Log: Implement the delayed task execution extension to the taskqueue mechanism. The caller may specify a timeout in ticks after which the task will be scheduled. Sponsored b

svn commit: r221060 - head/share/man/man9

2011-04-26 Thread Konstantin Belousov
Author: kib Date: Tue Apr 26 11:43:57 2011 New Revision: 221060 URL: http://svn.freebsd.org/changeset/base/221060 Log: Document timeout_task. While there, fix the type of the func argument of INIT_TASK macro, and use the modern name of the analogous facility from Linux kernel. Sponso

svn commit: r221061 - stable/8/sys/vm

2011-04-26 Thread Konstantin Belousov
Author: kib Date: Tue Apr 26 12:07:07 2011 New Revision: 221061 URL: http://svn.freebsd.org/changeset/base/221061 Log: MFC r220977: Fix two bugs in r218670. Hold the vnode around the region where object lock is dropped, until vnode lock is acquired. Do not drop the vnode reference

svn commit: r221062 - stable/8/sys/dev/drm

2011-04-26 Thread Konstantin Belousov
Author: kib Date: Tue Apr 26 12:25:36 2011 New Revision: 221062 URL: http://svn.freebsd.org/changeset/base/221062 Log: MFC r220979: Fix display of the drm sysctls (nop on stable/8). Sponsored by: The FreeBSD Foundation Modified: stable/8/sys/dev/drm/drm_sysctl.c Directory Properties:

svn commit: r221117 - stable/8/sys/sys

2011-04-27 Thread Konstantin Belousov
Author: kib Date: Wed Apr 27 09:35:40 2011 New Revision: 221117 URL: http://svn.freebsd.org/changeset/base/221117 Log: MFC r220987: Fix typo. Modified: stable/8/sys/sys/systm.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stab

svn commit: r221261 - in head/sys: fs/ext2fs ufs/ffs

2011-04-30 Thread Konstantin Belousov
Author: kib Date: Sat Apr 30 13:49:03 2011 New Revision: 221261 URL: http://svn.freebsd.org/changeset/base/221261 Log: Clarify the comment. MFC after:1 week Modified: head/sys/fs/ext2fs/ext2_readwrite.c head/sys/ufs/ffs/ffs_vnops.c Modified: head/sys/fs/ext2fs/ext2_readwrite.c ===

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

2011-04-30 Thread Konstantin Belousov
Author: kib Date: Sat Apr 30 22:46:02 2011 New Revision: 221281 URL: http://svn.freebsd.org/changeset/base/221281 Log: Fix typos. Noted by: Fabian Keil Pointy hat to:kib MFC after:1 week Modified: head/sys/ufs/ffs/ffs_vnops.c Modified: head/sys/ufs/ffs/ffs_vnops.c =

svn commit: r221943 - in stable/8/sys/ufs: ffs ufs

2011-05-14 Thread Konstantin Belousov
Author: kib Date: Sun May 15 06:42:32 2011 New Revision: 221943 URL: http://svn.freebsd.org/changeset/base/221943 Log: MFC r220985: Move some parts of ufs_reclaim() into helper function ufs_prepare_reclaim(), and call the helper from VOP_RECLAIM and ffs_valloc() to properly prepare the ufs

svn commit: r222086 - head/sys/kern

2011-05-18 Thread Konstantin Belousov
Author: kib Date: Wed May 18 22:36:58 2011 New Revision: 222086 URL: http://svn.freebsd.org/changeset/base/222086 Log: The CDP_ACTIVE flag is cleared at the beginning of destroy_devl(), and destroy_devl() drops dev_mtx. The protection against the race with dev_rel(), introduced in r163328, s

svn commit: r222274 - stable/8/sys/kern

2011-05-24 Thread Konstantin Belousov
Author: kib Date: Wed May 25 03:25:14 2011 New Revision: 74 URL: http://svn.freebsd.org/changeset/base/74 Log: MFC r222086: The protection against the race with dev_rel(), introduced in r163328, should be extended to cover destroy_devl() calls for the children of the destroyed dev.

svn commit: r222296 - stable/7/sys/kern

2011-05-25 Thread Konstantin Belousov
Author: kib Date: Thu May 26 00:09:56 2011 New Revision: 96 URL: http://svn.freebsd.org/changeset/base/96 Log: MFC r222086: The protection against the race with dev_rel(), introduced in r163328, should be extended to cover destroy_devl() calls for the children of the destroyed dev.

svn commit: r222586 - in head/sys: fs/nfsclient fs/nwfs fs/smbfs nfsclient vm

2011-06-01 Thread Konstantin Belousov
Author: kib Date: Wed Jun 1 21:00:28 2011 New Revision: 222586 URL: http://svn.freebsd.org/changeset/base/222586 Log: In the VOP_PUTPAGES() implementations, change the default error from VM_PAGER_AGAIN to VM_PAGER_ERROR for the uwritten pages. Return VM_PAGER_AGAIN for the partially written

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

2009-03-19 Thread Konstantin Belousov
Author: kib Date: Thu Mar 19 10:32:25 2009 New Revision: 190025 URL: http://svn.freebsd.org/changeset/base/190025 Log: Forcibly unlock the malloc() locks in the child process after fork(), by temporary pretending that the process is still multithreaded. Current malloc lock primitives do noth

svn commit: r190140 - head/sys/kern

2009-03-20 Thread Konstantin Belousov
Author: kib Date: Fri Mar 20 10:04:00 2009 New Revision: 190140 URL: http://svn.freebsd.org/changeset/base/190140 Log: Remove unneeded braces to reduce used vertical screen space. Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r190142 - head/sys/kern

2009-03-20 Thread Konstantin Belousov
Author: kib Date: Fri Mar 20 10:59:06 2009 New Revision: 190142 URL: http://svn.freebsd.org/changeset/base/190142 Log: The nc_nlen member of the struct namecache contains the length of the cached name, not the length + 1. PR: 132620, 132542 Reported by: bf2006a yahoo com Tested by:

svn commit: r190145 - head/sys/kern

2009-03-20 Thread Konstantin Belousov
Author: kib Date: Fri Mar 20 11:08:57 2009 New Revision: 190145 URL: http://svn.freebsd.org/changeset/base/190145 Log: Do not underflow the buffer and then report the problem. Check for the condition before the buffer write. Also, since buflen is unsigned, previous check was ignored. Re

svn commit: r190141 - head/sys/kern

2009-03-20 Thread Konstantin Belousov
Author: kib Date: Fri Mar 20 10:47:16 2009 New Revision: 190141 URL: http://svn.freebsd.org/changeset/base/190141 Log: When ktracing namei operations, log a result of the __getcwd(). MFC after:1 week Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c ===

svn commit: r190143 - head/sys/kern

2009-03-20 Thread Konstantin Belousov
Author: kib Date: Fri Mar 20 11:00:39 2009 New Revision: 190143 URL: http://svn.freebsd.org/changeset/base/190143 Log: Do not forget to adjust buflen for the first resolution of the path from namecache. While there, compare pointers for equiality. Reviewed by: marcus Tested by:ph

svn commit: r190144 - head/sys/kern

2009-03-20 Thread Konstantin Belousov
Author: kib Date: Fri Mar 20 11:03:55 2009 New Revision: 190144 URL: http://svn.freebsd.org/changeset/base/190144 Log: Remove unneeded braces to reduce used vertical screen space. The location was missed in r190140. Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c ==

svn commit: r190179 - in stable/6/sys: . contrib/pf dev/cxgb kern

2009-03-20 Thread Konstantin Belousov
Author: kib Date: Fri Mar 20 21:47:26 2009 New Revision: 190179 URL: http://svn.freebsd.org/changeset/base/190179 Log: MFC r185983: The userland_sysctl() function retries sysctl_root() until returned error is not EAGAIN. Several sysctls that inspect another process use p_candebug() for che

svn commit: r190264 - head/sys/kern

2009-03-22 Thread Konstantin Belousov
Author: kib Date: Sun Mar 22 13:42:41 2009 New Revision: 190264 URL: http://svn.freebsd.org/changeset/base/190264 Log: Fix several issues with parsing the notes for ELF objects. Badly formed ELF note may cause the caclulated pointer to the next note to point both after the note region, th

svn commit: r190265 - head/sys/sys

2009-03-22 Thread Konstantin Belousov
Author: kib Date: Sun Mar 22 14:39:37 2009 New Revision: 190265 URL: http://svn.freebsd.org/changeset/base/190265 Log: Bump __FreeBSD_version for dynamic token string support added in ld.so. Requested by: maho Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h ===

svn commit: r190266 - head/lib/libc/string

2009-03-22 Thread Konstantin Belousov
Author: kib Date: Sun Mar 22 15:29:12 2009 New Revision: 190266 URL: http://svn.freebsd.org/changeset/base/190266 Log: 7.2 will be the first release where strndup() appears. Submitted by: Florian Smeets MFC after:3 days Modified: head/lib/libc/string/strdup.3 Modified: head/lib/l

svn commit: r190393 - in stable/7: include lib/libc/gen lib/libc/include lib/libc/stdlib lib/libthr lib/libthr/arch/amd64/include lib/libthr/arch/i386 lib/libthr/thread libexec/rtld-elf sys/kern sy...

2009-03-24 Thread Konstantin Belousov
Author: kib Date: Tue Mar 24 20:57:10 2009 New Revision: 190393 URL: http://svn.freebsd.org/changeset/base/190393 Log: Mostly synchronize lib/libthr and sys/kern/kern_umtx.c with the code from HEAD. Since libkse is still built on RELENG_7, pthread_cleanup_push/pop are left as the funct

svn commit: r190415 - in stable/7/lib/libc: . string

2009-03-25 Thread Konstantin Belousov
Author: kib Date: Wed Mar 25 15:42:07 2009 New Revision: 190415 URL: http://svn.freebsd.org/changeset/base/190415 Log: MFC r190266: 7.2 will be the first release where strndup() appears. Approved by: re (kensmith) Modified: stable/7/lib/libc/ (props changed) stable/7/lib/libc/stri

svn commit: r190439 - in stable/7/sys: amd64/linux32 i386/linux

2009-03-26 Thread Konstantin Belousov
Author: kib Date: Thu Mar 26 12:13:19 2009 New Revision: 190439 URL: http://svn.freebsd.org/changeset/base/190439 Log: Include linux_misc.h to get the definition for __LINUX_NPXCW__. Approved by: re (kensmith) Modified: stable/7/sys/amd64/linux32/linux32_sysvec.c stable/7/sys/i386/lin

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

2009-03-26 Thread Konstantin Belousov
Author: kib Date: Thu Mar 26 18:07:13 2009 New Revision: 190447 URL: http://svn.freebsd.org/changeset/base/190447 Log: Convert gdt_segs and ldt_segs initialization to C99 style. Reviewed by: jhb Modified: head/sys/amd64/amd64/machdep.c head/sys/i386/i386/machdep.c Modified: head/sys/

svn commit: r190465 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-03-27 Thread Konstantin Belousov
Author: kib Date: Fri Mar 27 13:05:29 2009 New Revision: 190465 URL: http://svn.freebsd.org/changeset/base/190465 Log: MFC r190141: When ktracing namei operations, log a result of the __getcwd(). Approved by: re (kensmith) Modified: stable/7/sys/ (props changed) stable/7/sys/contr

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

2009-03-27 Thread Konstantin Belousov
Author: kib Date: Fri Mar 27 15:46:02 2009 New Revision: 190469 URL: http://svn.freebsd.org/changeset/base/190469 Log: Correct typo. Noted by: kensmith Modified: head/sys/ufs/ffs/ffs_vnops.c Modified: head/sys/ufs/ffs/ffs_vnops.c =

svn commit: r190470 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb ufs/ffs ufs/ufs

2009-03-27 Thread Konstantin Belousov
Author: kib Date: Fri Mar 27 15:57:52 2009 New Revision: 190470 URL: http://svn.freebsd.org/changeset/base/190470 Log: MFC r189737: The non-modifying EA VOPs are executed with only shared vnode lock taken. Provide a custom lock around initializing and tearing down EA area, to prevent both

svn commit: r190480 - svnadmin/conf

2009-03-27 Thread Konstantin Belousov
Author: kib Date: Fri Mar 27 21:41:07 2009 New Revision: 190480 URL: http://svn.freebsd.org/changeset/base/190480 Log: Add Rick Macklem. Approved by: core Modified: svnadmin/conf/access svnadmin/conf/mentors Modified: svnadmin/conf/access =

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

2009-03-28 Thread Konstantin Belousov
Author: kib Date: Sat Mar 28 15:54:08 2009 New Revision: 190505 URL: http://svn.freebsd.org/changeset/base/190505 Log: Do not dereference NULL pointer. refobj is NULL for the objects that are preloaded. Reported and tested by: ed Modified: head/libexec/rtld-elf/rtld.c Modified:

svn commit: r190543 - in head: include libexec/rtld-elf sys/sys

2009-03-30 Thread Konstantin Belousov
Author: kib Date: Mon Mar 30 08:47:28 2009 New Revision: 190543 URL: http://svn.freebsd.org/changeset/base/190543 Log: Implement support for RTLD_NODELETE flag for dlopen() and -z nodelete static linker option. Do it by incrementing reference count on the loaded object and its dependencies.

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

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 12:31:04 2009 New Revision: 190615 URL: http://svn.freebsd.org/changeset/base/190615 Log: Provide convenient definition of the union descriptor, similar to the i386 one. Fully enumerate system segments and gate types. In collaboration with:pho Review

svn commit: r190616 - in head/sys: amd64/include compat/ia32 i386/include

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 12:44:17 2009 New Revision: 190616 URL: http://svn.freebsd.org/changeset/base/190616 Log: Add all segment registers for the amd64 CPU to struct reg and mcontext. To keep these structures ABI-compatible, half the size of r_trapno, r_err, mc_trapno, mc_flags.

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

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 12:46:05 2009 New Revision: 190617 URL: http://svn.freebsd.org/changeset/base/190617 Log: Fill the fsbase and gsbase fields of the mcontext structure on i386. In collaboration with:pho Discussed with: peter Reviewed by: jhb Modified: head/s

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

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 12:48:17 2009 New Revision: 190618 URL: http://svn.freebsd.org/changeset/base/190618 Log: Fully enumerate all i386 sysarch commands an amd64 include file. Provides i386/freebsd API-compatible definitions for the argument structures of the above sysarch command

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

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 12:53:01 2009 New Revision: 190619 URL: http://svn.freebsd.org/changeset/base/190619 Log: Add separate gdt descriptors for %fs and %gs on amd64. Reorder amd64 gdt descriptors so that user-accessible selectors are the same as on i386. At least Wine hard-codes this

svn commit: r190620 - in head/sys: amd64/acpica amd64/amd64 amd64/ia32 amd64/include amd64/linux32 conf

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 13:09:26 2009 New Revision: 190620 URL: http://svn.freebsd.org/changeset/base/190620 Log: Save and restore segment registers on amd64 when entering and leaving the kernel on amd64. Fill and read segment registers for mcontext and signals. Handle traps caused by r

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

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 13:11:50 2009 New Revision: 190621 URL: http://svn.freebsd.org/changeset/base/190621 Log: Rename implementation function for freebsd32 sysarch(2) to allow for the arguments translations. Provide ABI-compatible definition of the struct i386_ldt_args for freebsd32

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

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 13:12:40 2009 New Revision: 190622 URL: http://svn.freebsd.org/changeset/base/190622 Log: Regen Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sys/compat

svn commit: r190623 - in head/sys: amd64/include i386/include

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 13:44:28 2009 New Revision: 190623 URL: http://svn.freebsd.org/changeset/base/190623 Log: Sync definitions for struct sigcontext for i386 and amd64 architectures to struct mcontext. Modified: head/sys/amd64/include/signal.h head/sys/i386/include/signal.h Modi

svn commit: r190624 - in head: lib/libc/gen libexec/rtld-elf

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 14:38:20 2009 New Revision: 190624 URL: http://svn.freebsd.org/changeset/base/190624 Log: Document RTLD_NODELETE, -z nodelete and -z origin support. Modified: head/lib/libc/gen/dlopen.3 head/libexec/rtld-elf/rtld.1 Modified: head/lib/libc/gen/dlopen.3 =

svn commit: r190631 - in head/sys: conf ia64/ia32

2009-04-01 Thread Konstantin Belousov
00:00:00 1970 (empty, because file is newly added) +++ head/sys/ia64/ia32/ia32_misc.c Wed Apr 1 19:23:07 2009 (r190631) @@ -0,0 +1,50 @@ +/*- + * Copyright (c) 2009 Konstantin Belousov + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without

svn commit: r190632 - head/lib/libc/i386/sys

2009-04-01 Thread Konstantin Belousov
Author: kib Date: Wed Apr 1 19:23:46 2009 New Revision: 190632 URL: http://svn.freebsd.org/changeset/base/190632 Log: Unconditionally build wrappers for i386_get_ioperm(), i386_set_ioperm(), i386_get_ldt() and i386_set_ldt(). In collaboration with:pho Reviewed by: jhb Modifie

svn commit: r190673 - in head: lib/libc/gen libexec/rtld-elf

2009-04-03 Thread Konstantin Belousov
Author: kib Date: Fri Apr 3 19:17:23 2009 New Revision: 190673 URL: http://svn.freebsd.org/changeset/base/190673 Log: Allow the NULL, RTLD_SELF and RTLD_NEXT handles to work with dlfunc(3). dlfunc() called dlsym() to do the work, and dlsym() determines the dso that originating the call by t

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

2009-04-04 Thread Konstantin Belousov
Author: kib Date: Sat Apr 4 12:19:52 2009 New Revision: 190690 URL: http://svn.freebsd.org/changeset/base/190690 Log: When removing or renaming snaphost, do not delve into request_cleanup(). The later may need blocks from the underlying device that belongs to normal files, that should not b

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

2009-04-10 Thread Konstantin Belousov
Author: kib Date: Fri Apr 10 09:52:42 2009 New Revision: 190883 URL: http://svn.freebsd.org/changeset/base/190883 Log: Update comment to the reality, rtld supports any number of loadable segments. Fix spacing. Reviewed by: kan Modified: head/libexec/rtld-elf/map_object.c Modified: he

svn commit: r190886 - head/sys/vm

2009-04-10 Thread Konstantin Belousov
Author: kib Date: Fri Apr 10 10:16:03 2009 New Revision: 190886 URL: http://svn.freebsd.org/changeset/base/190886 Log: When vm_map_wire(9) is allowed to skip holes in the wired region, skip the mappings without any of read and execution rights, in particular, the PROT_NONE entries. This make

svn commit: r190887 - in head/sys: kern nfsclient

2009-04-10 Thread Konstantin Belousov
Author: kib Date: Fri Apr 10 10:22:44 2009 New Revision: 190887 URL: http://svn.freebsd.org/changeset/base/190887 Log: Cache_lookup() for DOTDOT drops dvp vnode lock, allowing dvp to be reclaimed. Check the condition and return ENOENT then. In nfs_lookup(), respect ENOENT return from cach

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

2009-04-10 Thread Konstantin Belousov
Author: kib Date: Fri Apr 10 10:14:04 2009 New Revision: 190885 URL: http://svn.freebsd.org/changeset/base/190885 Log: Currently, when mapping an object, rtld reserves the whole address space for the mapping by the object' file with the protection and mode of the first loadable segment over

svn commit: r190942 - head/sys/kern

2009-04-11 Thread Konstantin Belousov
Author: kib Date: Sat Apr 11 16:12:20 2009 New Revision: 190942 URL: http://svn.freebsd.org/changeset/base/190942 Log: When zapping v_cache_dd for !MAKEENTRY case in cache_lookup(), we shall lock cache as writer. Reviewed by: kan Modified: head/sys/kern/vfs_cache.c Modified: head/sys

svn commit: r191011 - in head/sys: amd64/amd64 arm/arm i386/i386 ia64/ia64

2009-04-13 Thread Konstantin Belousov
Author: kib Date: Mon Apr 13 19:20:32 2009 New Revision: 191011 URL: http://svn.freebsd.org/changeset/base/191011 Log: The bus_dmamap_load_uio(9) shall use pmap of the thread recorded in the uio_td to extract pages from, instead of unconditionally use kernel pmap. Submitted by: Jason Ha

svn commit: r191013 - head/sys/nfsclient

2009-04-13 Thread Konstantin Belousov
Author: kib Date: Mon Apr 13 19:54:33 2009 New Revision: 191013 URL: http://svn.freebsd.org/changeset/base/191013 Log: Remove trailing spaces Modified: head/sys/nfsclient/nfs_socket.c Modified: head/sys/nfsclient/nfs_socket.c ==

svn commit: r191136 - head/sys/kern

2009-04-16 Thread Konstantin Belousov
Author: kib Date: Thu Apr 16 09:37:48 2009 New Revision: 191136 URL: http://svn.freebsd.org/changeset/base/191136 Log: In flushbufqueues(), do not allocate sentinel buffer on the stack, struct buf is large. Use sleeping malloc(9) call, and zero the allocated buf as a debugging feature. Modi

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

2009-04-16 Thread Konstantin Belousov
Author: kib Date: Thu Apr 16 09:57:08 2009 New Revision: 191137 URL: http://svn.freebsd.org/changeset/base/191137 Log: Verify that '..' still exists with the same inode number after VFS_VGET() has returned in ufs_lookup(). If the '..' lookup started immediately before the parent directory wa

svn commit: r191135 - head/sys/kern

2009-04-16 Thread Konstantin Belousov
Author: kib Date: Thu Apr 16 09:33:52 2009 New Revision: 191135 URL: http://svn.freebsd.org/changeset/base/191135 Log: Export the number of times bufdaemon got help from the normal threads. Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio.c ==

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

2009-04-18 Thread Konstantin Belousov
Author: kib Date: Sun Apr 19 05:34:07 2009 New Revision: 191260 URL: http://svn.freebsd.org/changeset/base/191260 Log: When verifying '..' after VFS_VGET() in ufs_lookup(), do not return error if '..' is still there but changed between lookup and check. Start relookup instead. Rename is supp

svn commit: r191277 - head/sys/vm

2009-04-19 Thread Konstantin Belousov
Author: kib Date: Sun Apr 19 20:53:47 2009 New Revision: 191277 URL: http://svn.freebsd.org/changeset/base/191277 Log: In both pageout oom handler and vm_daemon, acquire the reference to the vmspace of the examined process instead of directly accessing its vmspace, that may change. Also, as

svn commit: r191313 - head/sys/kern

2009-04-20 Thread Konstantin Belousov
Author: kib Date: Mon Apr 20 14:34:55 2009 New Revision: 191313 URL: http://svn.freebsd.org/changeset/base/191313 Log: On the exit of the child process which parent either set SA_NOCLDWAIT or ignored SIGCHLD, unconditionally wake up the parent instead of doing this only when the child is a l

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

2009-04-20 Thread Konstantin Belousov
Author: kib Date: Mon Apr 20 14:36:01 2009 New Revision: 191315 URL: http://svn.freebsd.org/changeset/base/191315 Log: In ufs_checkpath(), recheck that '..' still points to the inode with the same inode number after VFS_VGET() and relock of the vp. If '..' changed, redo the lookup. To reduce

svn commit: r191319 - head/sys/kern

2009-04-20 Thread Konstantin Belousov
Author: kib Date: Mon Apr 20 15:10:03 2009 New Revision: 191319 URL: http://svn.freebsd.org/changeset/base/191319 Log: Fix typo. Noted by: jhb MFC after:2 weeks Modified: head/sys/kern/kern_exit.c Modified: head/sys/kern/kern_exit.c

svn commit: r191439 - head/sys/vm

2009-04-23 Thread Konstantin Belousov
Author: kib Date: Thu Apr 23 21:09:47 2009 New Revision: 191439 URL: http://svn.freebsd.org/changeset/base/191439 Log: Do not call vm_page_lookup() from the ddb routine, namely from "show vmopag" implementation. The vm_page_lookup() code modifies splay tree of the object pages, and asserts t

svn commit: r191625 - head/sys/vm

2009-04-28 Thread Konstantin Belousov
Author: kib Date: Tue Apr 28 11:43:35 2009 New Revision: 191625 URL: http://svn.freebsd.org/changeset/base/191625 Log: Fix typo. Modified: head/sys/vm/swap_pager.c Modified: head/sys/vm/swap_pager.c == --- head/sys/v

svn commit: r191626 - head/sys/vm

2009-04-28 Thread Konstantin Belousov
Author: kib Date: Tue Apr 28 11:45:36 2009 New Revision: 191626 URL: http://svn.freebsd.org/changeset/base/191626 Log: Use the acquired reference to the vmspace instead of direct dereferencing of p->p_vmspace in a place where it was missed in r191277. Noted by: pluknet gmail com Modifie

svn commit: r191767 - in stable/7/lib/libc: . stdlib string

2009-05-03 Thread Konstantin Belousov
Author: kib Date: Sun May 3 17:51:38 2009 New Revision: 191767 URL: http://svn.freebsd.org/changeset/base/191767 Log: MFC r185514 (by jasone): Fix a lock order reversal bug that could cause deadlock during fork(2). Reported and tested by: makc Approved by: re (kensmith) Modifie

svn commit: r191809 - in stable/7/sys: . amd64/amd64 arm/arm contrib/pf dev/ath/ath_hal dev/cxgb i386/i386 ia64/ia64

2009-05-05 Thread Konstantin Belousov
Author: kib Date: Tue May 5 09:08:37 2009 New Revision: 191809 URL: http://svn.freebsd.org/changeset/base/191809 Log: MFC r191011: The bus_dmamap_load_uio(9) shall use pmap of the thread recorded in the uio_td to extract pages from, instead of unconditionally use kernel pmap. Modified:

svn commit: r191810 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb vm

2009-05-05 Thread Konstantin Belousov
Author: kib Date: Tue May 5 09:16:57 2009 New Revision: 191810 URL: http://svn.freebsd.org/changeset/base/191810 Log: MFC r190886: When vm_map_wire(9) is allowed to skip holes in the wired region, skip the mappings without any of read and execution rights, in particular, the PROT_NONE ent

svn commit: r191811 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb ufs/ffs

2009-05-05 Thread Konstantin Belousov
Author: kib Date: Tue May 5 09:20:07 2009 New Revision: 191811 URL: http://svn.freebsd.org/changeset/base/191811 Log: MFC r190690: When removing or renaming snaphost, do not delve into request_cleanup(). The later may need blocks from the underlying device that belongs to normal files, th

svn commit: r191812 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-05-05 Thread Konstantin Belousov
Author: kib Date: Tue May 5 09:24:20 2009 New Revision: 191812 URL: http://svn.freebsd.org/changeset/base/191812 Log: MFC r191313: On the exit of the child process which parent either set SA_NOCLDWAIT or ignored SIGCHLD, unconditionally wake up the parent instead of doing this only when t

svn commit: r191813 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb gnu/fs/xfs/FreeBSD kern sys ufs/ffs

2009-05-05 Thread Konstantin Belousov
Author: kib Date: Tue May 5 10:34:43 2009 New Revision: 191813 URL: http://svn.freebsd.org/changeset/base/191813 Log: MFC r189878: Fix two issues with bufdaemon, often causing the processes to hang in the "nbufkv" sleep. Do not retry request for the new block from ffs_bufwrite() when w

svn commit: r191814 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-05-05 Thread Konstantin Belousov
Author: kib Date: Tue May 5 10:43:14 2009 New Revision: 191814 URL: http://svn.freebsd.org/changeset/base/191814 Log: MFC r191135: Export the number of times bufdaemon got help from the normal threads. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed)

svn commit: r191815 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-05-05 Thread Konstantin Belousov
Author: kib Date: Tue May 5 10:46:49 2009 New Revision: 191815 URL: http://svn.freebsd.org/changeset/base/191815 Log: MFC r191136: In flushbufqueues(), do not allocate sentinel buffer on the stack, struct buf is large. Use sleeping malloc(9) call, and zero the allocated buf as a debugging

svn commit: r191878 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb vm

2009-05-07 Thread Konstantin Belousov
Author: kib Date: Thu May 7 10:37:22 2009 New Revision: 191878 URL: http://svn.freebsd.org/changeset/base/191878 Log: MFC r191439: Do not call vm_page_lookup() from the ddb routine, namely from "show vmopag" implementation. Iterate over memq to calculate the runs. Make the code slightly m

svn commit: r191895 - head/sys/kern

2009-05-07 Thread Konstantin Belousov
Author: kib Date: Thu May 7 18:14:21 2009 New Revision: 191895 URL: http://svn.freebsd.org/changeset/base/191895 Log: Eliminate the loop and the call to pause(9) in vfs_vget_ino(). If vfs_busy(MBF_NOWAIT) failed, unlock the vnode and sleep in vfs_busy(). Suggested and reviewed by:jef

svn commit: r263470 - stable/10/sys/x86/iommu

2014-03-21 Thread Konstantin Belousov
Author: kib Date: Fri Mar 21 13:31:56 2014 New Revision: 263470 URL: http://svnweb.freebsd.org/changeset/base/263470 Log: MFC r263304: Trim at EOL. Modified: stable/10/sys/x86/iommu/busdma_dmar.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/x86/iommu/busdma_

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 Fr

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 ma

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: head/sys/amd

svn commit: r263685 - stable/9/sys/vm

2014-03-24 Thread Konstantin Belousov
Author: kib Date: Mon Mar 24 12:41:00 2014 New Revision: 263685 URL: http://svnweb.freebsd.org/changeset/base/263685 Log: MFC r263471: Initialize vm_map_entry member wiring_thread on the map entry creation. Modified: stable/9/sys/vm/vm_map.c Directory Properties: stable/9/sys/ (props ch

svn commit: r263684 - stable/10/sys/vm

2014-03-24 Thread Konstantin Belousov
Author: kib Date: Mon Mar 24 12:40:53 2014 New Revision: 263684 URL: http://svnweb.freebsd.org/changeset/base/263684 Log: MFC r263471: Initialize vm_map_entry member wiring_thread on the map entry creation. Modified: stable/10/sys/vm/vm_map.c Directory Properties: stable/10/ (props chan

svn commit: r263746 - stable/10/sys/x86/iommu

2014-03-25 Thread Konstantin Belousov
Author: kib Date: Tue Mar 25 20:16:28 2014 New Revision: 263746 URL: http://svnweb.freebsd.org/changeset/base/263746 Log: MFC r263305: Provide a workaround by identity mapping the 32 pages after the bogus entry start, which seems to be enough for the reported BIOS. Modified: stable/10/sys

svn commit: r263747 - stable/10/sys/x86/iommu

2014-03-25 Thread Konstantin Belousov
Author: kib Date: Tue Mar 25 20:17:57 2014 New Revision: 263747 URL: http://svnweb.freebsd.org/changeset/base/263747 Log: MFC r263306: Add some support for the PCI(e)-PCI bridges to the Intel VT-d driver. Modified: stable/10/sys/x86/iommu/busdma_dmar.c stable/10/sys/x86/iommu/intel_ctx.c

svn commit: r263770 - in stable/10/sys: compat/freebsd32 kern

2014-03-26 Thread Konstantin Belousov
Author: kib Date: Wed Mar 26 16:59:28 2014 New Revision: 263770 URL: http://svnweb.freebsd.org/changeset/base/263770 Log: MFC r263349: Make the array pointed to by AT_PAGESIZES auxv properly aligned. Modified: stable/10/sys/compat/freebsd32/freebsd32_misc.c stable/10/sys/kern/kern_exec.c

svn commit: r263771 - in stable/9/sys: compat/freebsd32 kern

2014-03-26 Thread Konstantin Belousov
Author: kib Date: Wed Mar 26 17:00:37 2014 New Revision: 263771 URL: http://svnweb.freebsd.org/changeset/base/263771 Log: MFC r263349: Make the array pointed to by AT_PAGESIZES auxv properly aligned. Modified: stable/9/sys/compat/freebsd32/freebsd32_misc.c stable/9/sys/kern/kern_exec.c Di

Re: svn commit: r263355 - stable/9/sys/kern

2014-03-27 Thread Konstantin Belousov
On Thu, Mar 27, 2014 at 09:40:03AM +, Alexey Dokuchaev wrote: > On Wed, Mar 19, 2014 at 12:57:13PM +0000, Konstantin Belousov wrote: > > New Revision: 263355 > > URL: http://svnweb.freebsd.org/changeset/base/263355 > > > > Log: > > MFC r263079: > >

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 wro

svn commit: r263875 - in stable/10/sys: amd64/amd64 amd64/include kern sys vm

2014-03-28 Thread Konstantin Belousov
Author: kib Date: Fri Mar 28 15:38:38 2014 New Revision: 263875 URL: http://svnweb.freebsd.org/changeset/base/263875 Log: MFC r263475: 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

svn commit: r263876 - in stable/9/sys: amd64/amd64 amd64/include kern sys vm

2014-03-28 Thread Konstantin Belousov
Author: kib Date: Fri Mar 28 15:38:54 2014 New Revision: 263876 URL: http://svnweb.freebsd.org/changeset/base/263876 Log: MFC r263475: 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

<    3   4   5   6   7   8   9   10   11   12   >