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

2010-09-13 Thread Konstantin Belousov
Author: kib Date: Mon Sep 13 08:49:08 2010 New Revision: 212545 URL: http://svn.freebsd.org/changeset/base/212545 Log: MFC r211998: Make the syscalls reserved for AFS usable by OpenAFS port. The 'NOTSTATIC' flag is removed on merge, since corresponding functionality is not implemented i

svn commit: r212546 - in stable/8/sys: kern sys

2010-09-13 Thread Konstantin Belousov
Author: kib Date: Mon Sep 13 08:49:51 2010 New Revision: 212546 URL: http://svn.freebsd.org/changeset/base/212546 Log: Regen Modified: stable/8/sys/kern/init_sysent.c stable/8/sys/kern/syscalls.c stable/8/sys/kern/systrace_args.c stable/8/sys/sys/syscall.h stable/8/sys/sys/syscall.mk

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

2010-09-13 Thread Konstantin Belousov
Author: kib Date: Mon Sep 13 20:29:09 2010 New Revision: 212583 URL: http://svn.freebsd.org/changeset/base/212583 Log: MFC r211213: The buffers b_vflags field is not always properly protected by bufobj lock. If b_bufobj is not NULL, then bufobj lock should be held when manipulating the fla

svn commit: r212618 - head/sys/sys

2010-09-14 Thread Konstantin Belousov
Author: kib Date: Tue Sep 14 18:58:51 2010 New Revision: 212618 URL: http://svn.freebsd.org/changeset/base/212618 Log: Rename the field to not confuse readers. The bytes are actually used. Discussed with: rmacklem MFC after:1 week Modified: head/sys/sys/mount.h Modified: hea

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

2010-09-15 Thread Konstantin Belousov
Author: kib Date: Wed Sep 15 07:28:31 2010 New Revision: 212637 URL: http://svn.freebsd.org/changeset/base/212637 Log: MFC r212499: Fix typo. Modified: stable/8/sys/sys/elf_common.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed)

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

2010-09-15 Thread Konstantin Belousov
Author: kib Date: Wed Sep 15 07:30:27 2010 New Revision: 212638 URL: http://svn.freebsd.org/changeset/base/212638 Log: MFC r212501: Add DF_1_LOADFLTR. Modified: stable/8/sys/sys/elf_common.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props c

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

2010-09-18 Thread Konstantin Belousov
Author: kib Date: Sat Sep 18 15:03:31 2010 New Revision: 212824 URL: http://svn.freebsd.org/changeset/base/212824 Log: Adopt the deferring of object deallocation for the deleted map entries on map unlock to the lock downgrade and later read unlock operation. System map entries cannot be b

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

2010-09-21 Thread Konstantin Belousov
Author: kib Date: Tue Sep 21 09:33:44 2010 New Revision: 212960 URL: http://svn.freebsd.org/changeset/base/212960 Log: MFC r212618: Rename the field to not confuse readers. The bytes are actually used. Modified: stable/8/sys/sys/mount.h Directory Properties: stable/8/sys/ (props changed

svn commit: r212998 - head/sys/sparc64/sparc64

2010-09-22 Thread Konstantin Belousov
Author: kib Date: Wed Sep 22 12:52:12 2010 New Revision: 212998 URL: http://svn.freebsd.org/changeset/base/212998 Log: For sparc64 relocations that directly put bits of the symbol value into the location, apply elf_relocaddr to the symbol value to have right values for the symbols from dpcpu

svn commit: r213246 - head/sys/compat/linprocfs

2010-09-28 Thread Konstantin Belousov
Author: kib Date: Tue Sep 28 11:32:17 2010 New Revision: 213246 URL: http://svn.freebsd.org/changeset/base/213246 Log: In linprocfs_doargv(): - handle compat32 processes; - remove the checks for copied in addresses to belong into valid usermode range, proc_rwmem() does this; - simplify

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

2010-09-29 Thread Konstantin Belousov
Author: kib Date: Wed Sep 29 07:40:11 2010 New Revision: 213259 URL: http://svn.freebsd.org/changeset/base/213259 Log: Fix typo in comment. Modified: head/sys/ufs/ffs/ffs_softdep.c Modified: head/sys/ufs/ffs/ffs_softdep.c ==

svn commit: r213354 - head/sys/dev/ciss

2010-10-02 Thread Konstantin Belousov
Author: kib Date: Sat Oct 2 08:18:19 2010 New Revision: 213354 URL: http://svn.freebsd.org/changeset/base/213354 Log: Cosmetic: make it less confusing when displaying RAID 1 level, that might be 1+0 as well. PR: kern/150936 MFC after:2 weeks Modified: head/sys/dev/ciss/ciss.c

svn commit: r213359 - head/sys/kern

2010-10-02 Thread Konstantin Belousov
Author: kib Date: Sat Oct 2 16:04:50 2010 New Revision: 213359 URL: http://svn.freebsd.org/changeset/base/213359 Log: Release the vnode lock and close the linker file vnode earlier in the linker_load_file methods. The change is that the consequent linker_file_unload() call is not under the

svn commit: r213362 - in stable/8/sys: kern sys vm

2010-10-02 Thread Konstantin Belousov
Author: kib Date: Sat Oct 2 17:41:47 2010 New Revision: 213362 URL: http://svn.freebsd.org/changeset/base/213362 Log: MFC r212824: Adopt the deferring of object deallocation for the deleted map entries on map unlock to the lock downgrade and later read unlock operation. MFC r212868 (by

svn commit: r213380 - stable/8/sys/nfsclient

2010-10-03 Thread Konstantin Belousov
Author: kib Date: Sun Oct 3 08:57:02 2010 New Revision: 213380 URL: http://svn.freebsd.org/changeset/base/213380 Log: MFC r212506: Do not fork nfsiod directly from the vop methods. Schedule the task that performs fork to be executed in the taskqueue context. Modified: stable/8/sys/nfsc

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

2010-10-03 Thread Konstantin Belousov
Author: kib Date: Sun Oct 3 13:52:17 2010 New Revision: 213382 URL: http://svn.freebsd.org/changeset/base/213382 Log: The makectx() function, used by kdb_trap() to reconstruct pcb from trap frame when trap initiated kdb entry, incorrectly calculated the value of %rsp for trapped thread.

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

2010-10-05 Thread Konstantin Belousov
Author: kib Date: Tue Oct 5 15:31:56 2010 New Revision: 213452 URL: http://svn.freebsd.org/changeset/base/213452 Log: Display PCID capability of CPU and add CPUID define for it. MFC after:1 week Modified: head/sys/amd64/amd64/identcpu.c head/sys/amd64/include/specialreg.h head/s

svn commit: r213476 - head/lib/libc/stdlib

2010-10-06 Thread Konstantin Belousov
Author: kib Date: Wed Oct 6 09:05:47 2010 New Revision: 213476 URL: http://svn.freebsd.org/changeset/base/213476 Log: Add cross-references to lrand48(3) and arc4random(3) from rand(3) and random(3). Submitted by: Valentin Nechayev MFC after:1 week Modified: head/lib/libc/stdlib

svn commit: r213477 - head/lib/libc/stdlib

2010-10-06 Thread Konstantin Belousov
Author: kib Date: Wed Oct 6 09:24:33 2010 New Revision: 213477 URL: http://svn.freebsd.org/changeset/base/213477 Log: Missed space. Submitted by: brueffer MFC after:1 week Modified: head/lib/libc/stdlib/rand.3 Modified: head/lib/libc/stdlib/rand.3

svn commit: r213478 - stable/8/sys/sparc64/sparc64

2010-10-06 Thread Konstantin Belousov
Author: kib Date: Wed Oct 6 10:00:37 2010 New Revision: 213478 URL: http://svn.freebsd.org/changeset/base/213478 Log: MFC r212998: For sparc64 relocations that directly put bits of the symbol value into the location, apply elf_relocaddr to the symbol value to have right values for the sym

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

2010-10-07 Thread Konstantin Belousov
Author: kib Date: Thu Oct 7 08:36:02 2010 New Revision: 213508 URL: http://svn.freebsd.org/changeset/base/213508 Log: The msdosfs lookup is case insensitive. Several aliases may be inserted for a single directory entry. As a consequnce, name cache purge done by lookup for fvp when DELETE op

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

2010-10-08 Thread Konstantin Belousov
Author: kib Date: Fri Oct 8 07:17:22 2010 New Revision: 213543 URL: http://svn.freebsd.org/changeset/base/213543 Log: Add a comment describing the reason for calling cache_purge(fvp). Requested by: danfe MFC after:6 days Modified: head/sys/fs/msdosfs/msdosfs_vnops.c Modified: hea

svn commit: r213544 - head/sys/amd64/linux32

2010-10-08 Thread Konstantin Belousov
Author: kib Date: Fri Oct 8 07:18:44 2010 New Revision: 213544 URL: http://svn.freebsd.org/changeset/base/213544 Log: Fix typo. Submitted by: arundel MFC after:3 days Modified: head/sys/amd64/linux32/syscalls.master Modified: head/sys/amd64/linux32/syscalls.master ===

svn commit: r213545 - head/sys/amd64/linux32

2010-10-08 Thread Konstantin Belousov
Author: kib Date: Fri Oct 8 07:19:05 2010 New Revision: 213545 URL: http://svn.freebsd.org/changeset/base/213545 Log: Regen. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_sysent.c Modified: head/sys/amd64/linux32

svn commit: r213664 - in head/sys: fs/cd9660 fs/hpfs fs/msdosfs fs/ntfs gnu/fs/reiserfs kern sys ufs/ffs ufs/ufs

2010-10-10 Thread Konstantin Belousov
Author: kib Date: Sun Oct 10 07:05:47 2010 New Revision: 213664 URL: http://svn.freebsd.org/changeset/base/213664 Log: The r184588 changed the layout of struct export_args, causing an ABI breakage for old mount(2) syscall, since most struct _args embed export_args. The mount(2) is supposed t

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

2010-10-10 Thread Konstantin Belousov
Author: kib Date: Sun Oct 10 07:07:21 2010 New Revision: 213665 URL: http://svn.freebsd.org/changeset/base/213665 Log: MFC r213382: In makectx(), always use the tf_rsp from trap frame. %rsp is pushed unconditionally by hardware on the trap. PR: amd64/151167 Modified: stable/8/sys/a

svn commit: r213666 - stable/7/sys/amd64/amd64

2010-10-10 Thread Konstantin Belousov
Author: kib Date: Sun Oct 10 07:28:56 2010 New Revision: 213666 URL: http://svn.freebsd.org/changeset/base/213666 Log: MFC r213382: In makectx(), always use the tf_rsp from trap frame. %rsp is pushed unconditionally by hardware on the trap. PR: amd64/151167 Modified: stable/7/sys/a

svn commit: r213685 - stable/8/sys/amd64/linux32

2010-10-11 Thread Konstantin Belousov
Author: kib Date: Mon Oct 11 09:41:24 2010 New Revision: 213685 URL: http://svn.freebsd.org/changeset/base/213685 Log: MFC r213544: Fix typo. Modified: stable/8/sys/amd64/linux32/syscalls.master Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (pro

svn commit: r213686 - stable/8/sys/amd64/linux32

2010-10-11 Thread Konstantin Belousov
Author: kib Date: Mon Oct 11 09:42:30 2010 New Revision: 213686 URL: http://svn.freebsd.org/changeset/base/213686 Log: Regen. Modified: stable/8/sys/amd64/linux32/linux32_proto.h stable/8/sys/amd64/linux32/linux32_syscall.h stable/8/sys/amd64/linux32/linux32_sysent.c Modified: stable/8/s

svn commit: r213715 - in stable/8/sys: amd64/amd64 amd64/include i386/i386 i386/include

2010-10-12 Thread Konstantin Belousov
Author: kib Date: Tue Oct 12 09:10:24 2010 New Revision: 213715 URL: http://svn.freebsd.org/changeset/base/213715 Log: MFC r213452: Display PCID capability of CPU and add CPUID define for it. Modified: stable/8/sys/amd64/amd64/identcpu.c stable/8/sys/amd64/include/specialreg.h stable/8/

svn commit: r213716 - in head/sys: amd64/linux32 compat/svr4 i386/ibcs2 i386/linux sys

2010-10-12 Thread Konstantin Belousov
Author: kib Date: Tue Oct 12 09:18:17 2010 New Revision: 213716 URL: http://svn.freebsd.org/changeset/base/213716 Log: Add macro DECLARE_MODULE_TIED to denote a module as requiring the kernel of exactly the same __FreeBSD_version as the headers module was compiled against. Mark our in-t

svn commit: r213773 - stable/8/lib/libc/stdlib

2010-10-13 Thread Konstantin Belousov
Author: kib Date: Wed Oct 13 11:39:36 2010 New Revision: 213773 URL: http://svn.freebsd.org/changeset/base/213773 Log: MFC r213476: Add cross-references to lrand48(3) and arc4random(3) from rand(3) and random(3). MFC r213477: Missed space. Modified: stable/8/lib/libc/stdlib/rand.3

svn commit: r213830 - stable/8/sys/fs/msdosfs

2010-10-14 Thread Konstantin Belousov
Author: kib Date: Thu Oct 14 09:29:59 2010 New Revision: 213830 URL: http://svn.freebsd.org/changeset/base/213830 Log: MFC r213508: Explicitely call cache_purge(fvp) when msdosfs_rename() succeeded, to flush aliases created due to msdosfs being case-insensitive. MFC r213543: Add a com

svn commit: r213846 - head/sys/compat/linux

2010-10-14 Thread Konstantin Belousov
Author: kib Date: Thu Oct 14 19:30:44 2010 New Revision: 213846 URL: http://svn.freebsd.org/changeset/base/213846 Log: Remove stale comment. Submitted by: arundel MFC after:3 days Modified: head/sys/compat/linux/linux_util.h Modified: head/sys/compat/linux/linux_util.h ===

svn commit: r213901 - in stable/8/sys: amd64/amd64 amd64/include i386/i386 i386/include

2010-10-15 Thread Konstantin Belousov
Author: kib Date: Fri Oct 15 17:56:51 2010 New Revision: 213901 URL: http://svn.freebsd.org/changeset/base/213901 Log: MFC r209862: For both i386 and amd64 pmap, - change the type of pm_active to cpumask_t, which it is; - in pmap_remove_pages(), compare with PCPU(curpmap), instead of d

svn commit: r213902 - stable/8/sys/i386/include

2010-10-15 Thread Konstantin Belousov
Author: kib Date: Fri Oct 15 18:07:45 2010 New Revision: 213902 URL: http://svn.freebsd.org/changeset/base/213902 Log: MFC r209866: Fix spacing. Modified: stable/8/sys/i386/include/pmap.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props chan

svn commit: r213914 - stable/8/sys/dev/ciss

2010-10-16 Thread Konstantin Belousov
Author: kib Date: Sat Oct 16 08:38:12 2010 New Revision: 213914 URL: http://svn.freebsd.org/changeset/base/213914 Log: MFC r213354: Cosmetic: make it less confusing when displaying RAID 1 level, that might be 1+0 as well. PR: kern/150936 Modified: stable/8/sys/dev/ciss/ciss.c Direc

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

2010-10-16 Thread Konstantin Belousov
Author: kib Date: Sat Oct 16 08:43:23 2010 New Revision: 213915 URL: http://svn.freebsd.org/changeset/base/213915 Log: MFC r213359: Release the vnode lock and close the linker file vnode earlier in the linker_load_file methods. This prevents the LOR between kernel linker sx xlock and vnode

svn commit: r213916 - head/sys/kern

2010-10-16 Thread Konstantin Belousov
Author: kib Date: Sat Oct 16 09:44:31 2010 New Revision: 213916 URL: http://svn.freebsd.org/changeset/base/213916 Log: Provide vfs.ncsizefactor instead of hard-coding namecache ratio. Move debug.ncnegfactor to vfs.ncnegfactor [1]. Provide some descriptions for the namecache related sysctls [

svn commit: r213917 - head/share/man/man7

2010-10-16 Thread Konstantin Belousov
Author: kib Date: Sat Oct 16 09:46:03 2010 New Revision: 213917 URL: http://svn.freebsd.org/changeset/base/213917 Log: Document vfs.ncsizefactor and vfs.ncnegfactor. MFC after:2 weeks Modified: head/share/man/man7/tuning.7 Modified: head/share/man/man7/tuning.7 =

svn commit: r213975 - stable/8/sys/compat/linux

2010-10-17 Thread Konstantin Belousov
Author: kib Date: Sun Oct 17 13:47:03 2010 New Revision: 213975 URL: http://svn.freebsd.org/changeset/base/213975 Log: MFC r213846: Remove stale comment. Modified: stable/8/sys/compat/linux/linux_util.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen

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

2010-10-17 Thread Konstantin Belousov
yright (c) 1996 Doug Rabson +.\" Copyright (c) 2010 Konstantin Belousov .\" .\" All rights reserved. .\" @@ -28,17 +29,23 @@ .\" .\" $FreeBSD$ .\" -.Dd July 24, 1996 +.Dd October 17, 2010 .Dt VRELE 9 .Os .Sh NAME -.Nm vrele +.Nm vput , +.Nm vrele , +.Nm vu

svn commit: r214026 - head/sys/nfsclient

2010-10-18 Thread Konstantin Belousov
Author: kib Date: Mon Oct 18 19:06:46 2010 New Revision: 214026 URL: http://svn.freebsd.org/changeset/base/214026 Log: Do not synchronously start the nfsiod threads at all. The r212506 fixed the issues with file descriptor locks, but the same problems are present for vnode lock/user map lock

svn commit: r214049 - head/sys/nfsserver

2010-10-19 Thread Konstantin Belousov
Author: kib Date: Tue Oct 19 08:55:31 2010 New Revision: 214049 URL: http://svn.freebsd.org/changeset/base/214049 Log: When readdirplus() is handled on the exported filesystem that does not support VFS_VGET, like msdosfs, do not call VOP_LOOKUP() for dotdot on the root directory. Our filesys

svn commit: r214050 - stable/8/sys/compat/linprocfs

2010-10-19 Thread Konstantin Belousov
Author: kib Date: Tue Oct 19 09:25:58 2010 New Revision: 214050 URL: http://svn.freebsd.org/changeset/base/214050 Log: MFC r212723 (by des): Implement proc/$$/environment. MFC r213246: Rework linprocfs_doprocenviron() and linprocfs_doproccmdline(). Modified: stable/8/sys/compat/linpr

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

2010-10-29 Thread Konstantin Belousov
Author: kib Date: Sat Oct 30 01:19:15 2010 New Revision: 214543 URL: http://svn.freebsd.org/changeset/base/214543 Log: MFC r213916: Provide vfs.ncsizefactor instead of hard-coding namecache ratio. Move debug.ncnegfactor to vfs.ncnegfactor. Provide some descriptions for the namecache relate

svn commit: r214544 - stable/8/share/man/man7

2010-10-29 Thread Konstantin Belousov
Author: kib Date: Sat Oct 30 01:24:26 2010 New Revision: 214544 URL: http://svn.freebsd.org/changeset/base/214544 Log: MFC r213917: Document vfs.ncsizefactor and vfs.ncnegfactor. Modified: stable/8/share/man/man7/tuning.7 Directory Properties: stable/8/share/man/man7/ (props changed) M

svn commit: r214556 - head/sys/kern

2010-10-30 Thread Konstantin Belousov
Author: kib Date: Sat Oct 30 14:08:26 2010 New Revision: 214556 URL: http://svn.freebsd.org/changeset/base/214556 Log: Remove sysctl debug.ncnegfactor, it is renamed to vfs.ncnegfactor. MFC: do not Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

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

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Sat Nov 19 07:40:13 2011 New Revision: 227695 URL: http://svn.freebsd.org/changeset/base/227695 Log: Use the plain panic calls, without additional printing around them. The debugger and dumping support is adequate. Tested by:pho MFC after:1 week Modified: he

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

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Sat Nov 19 07:41:37 2011 New Revision: 227696 URL: http://svn.freebsd.org/changeset/base/227696 Log: Do not use NULLVPTOLOWERVP() in the null_print(). If diagnostic is compiled in, and show vnode is used from ddb on the faulty nullfs vnode, we get panic instead of vnode dum

svn commit: r227697 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/devfs fs/nullfs fs/pseudofs kern

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Sat Nov 19 07:50:49 2011 New Revision: 227697 URL: http://svn.freebsd.org/changeset/base/227697 Log: Existing VOP_VPTOCNP() interface has a fatal flow that is critical for nullfs. The problem is that resulting vnode is only required to be held on return from the successful

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

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Sat Nov 19 07:52:39 2011 New Revision: 227698 URL: http://svn.freebsd.org/changeset/base/227698 Log: Update the manpage for r227697. MFC after:3 weeks Modified: head/share/man/man9/VOP_VPTOCNP.9 Modified: head/share/man/man9/VOP_VPTOCNP.9 ==

svn commit: r227816 - head/sys/conf

2011-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 13:27:53 2011 New Revision: 227816 URL: http://svn.freebsd.org/changeset/base/227816 Log: Remove the wrong comment about ufs not being loadable. Note that only root filesystem module needs to be available before root is mounted. MFC after:1 week Modifie

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

2011-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 13:30:36 2011 New Revision: 227817 URL: http://svn.freebsd.org/changeset/base/227817 Log: Put all the messages from msdosfs under the MSDOSFS_DEBUG ifdef. They are confusing to user, and not informative for general consumption. MFC after:1 week Modified:

svn commit: r227884 - in stable/9/sys: kern sys

2011-11-23 Thread Konstantin Belousov
Author: kib Date: Wed Nov 23 15:03:15 2011 New Revision: 227884 URL: http://svn.freebsd.org/changeset/base/227884 Log: MFC r227657: Consistently use process spin lock for protection of the p->p_boundary_count. Race could cause the execve(2) from the threaded process to hung since thread bo

svn commit: r227886 - in releng/9.0/sys: kern sys

2011-11-23 Thread Konstantin Belousov
Author: kib Date: Wed Nov 23 15:16:05 2011 New Revision: 227886 URL: http://svn.freebsd.org/changeset/base/227886 Log: MFC r227657: Consistently use process spin lock for protection of the p->p_boundary_count. Race could cause the execve(2) from the threaded process to hung since thread bo

svn commit: r227952 - head/sys/kern

2011-11-24 Thread Konstantin Belousov
Author: kib Date: Thu Nov 24 20:34:06 2011 New Revision: 227952 URL: http://svn.freebsd.org/changeset/base/227952 Log: Fix a race between getvnode() dereferencing half-constructed file and dupfdopen(). Reported and tested by: pho MFC after:3 days Modified: head/sys/kern/vfs

svn commit: r227964 - in stable/8/sys: kern sys

2011-11-25 Thread Konstantin Belousov
Author: kib Date: Fri Nov 25 09:46:36 2011 New Revision: 227964 URL: http://svn.freebsd.org/changeset/base/227964 Log: MFC r227657: Consistently use process spin lock for protection of the p->p_boundary_count. Race could cause the execve(2) from the threaded process to hung since thread bo

svn commit: r227965 - stable/9/libexec/rtld-elf

2011-11-25 Thread Konstantin Belousov
Author: kib Date: Fri Nov 25 10:29:22 2011 New Revision: 227965 URL: http://svn.freebsd.org/changeset/base/227965 Log: MFC r227660: Fix fd leak. Approved by: re (bz) Modified: stable/9/libexec/rtld-elf/rtld.c Directory Properties: stable/9/libexec/rtld-elf/ (props changed) Modifi

svn commit: r227966 - stable/9/lib/librt

2011-11-25 Thread Konstantin Belousov
Author: kib Date: Fri Nov 25 10:30:29 2011 New Revision: 227966 URL: http://svn.freebsd.org/changeset/base/227966 Log: MFC r227661: Free unused allocation on error. Approved by: re (bz) Modified: stable/9/lib/librt/timer.c Directory Properties: stable/9/lib/librt/ (props changed)

svn commit: r227990 - releng/9.0/libexec/rtld-elf

2011-11-26 Thread Konstantin Belousov
Author: kib Date: Sat Nov 26 08:22:11 2011 New Revision: 227990 URL: http://svn.freebsd.org/changeset/base/227990 Log: MFC r227660: Fix fd leak. Approved by: re (bz) Modified: releng/9.0/libexec/rtld-elf/rtld.c Directory Properties: releng/9.0/libexec/rtld-elf/ (props changed) Mo

svn commit: r227991 - releng/9.0/lib/librt

2011-11-26 Thread Konstantin Belousov
Author: kib Date: Sat Nov 26 08:23:25 2011 New Revision: 227991 URL: http://svn.freebsd.org/changeset/base/227991 Log: MFC r227661: Free unused allocation on error. Approved by: re (bz) Modified: releng/9.0/lib/librt/timer.c Directory Properties: releng/9.0/lib/librt/ (props chang

svn commit: r228032 - stable/9/sys/kern

2011-11-27 Thread Konstantin Belousov
Author: kib Date: Sun Nov 27 18:49:16 2011 New Revision: 228032 URL: http://svn.freebsd.org/changeset/base/228032 Log: MFC r227485: To limit amount of the kernel memory allocated, and to optimize the iteration over the fdsets, kern_select() limits the length of the fdsets copied in by the

svn commit: r228033 - stable/9/sys/kern

2011-11-27 Thread Konstantin Belousov
Author: kib Date: Sun Nov 27 18:56:04 2011 New Revision: 228033 URL: http://svn.freebsd.org/changeset/base/228033 Log: MFC r227952: Fix a race between getvnode() dereferencing half-constructed file and dupfdopen(). Approved by: re (bz) Modified: stable/9/sys/kern/vfs_syscalls.c Dire

svn commit: r228034 - releng/9.0/sys/kern

2011-11-27 Thread Konstantin Belousov
Author: kib Date: Sun Nov 27 19:00:52 2011 New Revision: 228034 URL: http://svn.freebsd.org/changeset/base/228034 Log: MFC r227485: To limit amount of the kernel memory allocated, and to optimize the iteration over the fdsets, kern_select() limits the length of the fdsets copied in by the

svn commit: r228035 - releng/9.0/sys/kern

2011-11-27 Thread Konstantin Belousov
Author: kib Date: Sun Nov 27 19:02:18 2011 New Revision: 228035 URL: http://svn.freebsd.org/changeset/base/228035 Log: MFC r227952: Fix a race between getvnode() dereferencing half-constructed file and dupfdopen(). Approved by: re (bz) Modified: releng/9.0/sys/kern/vfs_syscalls.c Di

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

2011-11-27 Thread Konstantin Belousov
Author: kib Date: Sun Nov 27 19:36:36 2011 New Revision: 228038 URL: http://svn.freebsd.org/changeset/base/228038 Log: MFC r227485: To limit amount of the kernel memory allocated, and to optimize the iteration over the fdsets, kern_select() limits the length of the fdsets copied in by the

svn commit: r228133 - head/sys/vm

2011-11-29 Thread Konstantin Belousov
Author: kib Date: Tue Nov 29 13:07:32 2011 New Revision: 228133 URL: http://svn.freebsd.org/changeset/base/228133 Log: Hide the internals of vm_page_lock(9) from the loadable modules. Since the address of vm_page lock mutex depends on the kernel options, it is easy for module to get out of s

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

2011-11-30 Thread Konstantin Belousov
Author: kib Date: Wed Nov 30 17:39:00 2011 New Revision: 228156 URL: http://svn.freebsd.org/changeset/base/228156 Log: Rename vm_page_set_valid() to vm_page_set_valid_range(). The vm_page_set_valid() is the most reasonable name for the m->valid accessor. Reviewed by: attilio, alc Modi

svn commit: r228177 - head/tools/regression/pipe

2011-12-01 Thread Konstantin Belousov
Author: kib Date: Thu Dec 1 11:20:25 2011 New Revision: 228177 URL: http://svn.freebsd.org/changeset/base/228177 Log: Add a simple test for pipe inode numbers reported by fstat(2). Submitted by: gianni MFC after:1 week Added: head/tools/regression/pipe/pipe-ino.c (contents, prop

svn commit: r228178 - head/sys/kern

2011-12-01 Thread Konstantin Belousov
Author: kib Date: Thu Dec 1 11:36:41 2011 New Revision: 228178 URL: http://svn.freebsd.org/changeset/base/228178 Log: If alloc_unr() call in the pipe_create() failed, then pipe->pipe_ino is -1. But, because ino_t is unsigned, this case was not covered by the test ino > 0 in pipeclose(), lea

svn commit: r228261 - head/usr.bin/truss

2011-12-04 Thread Konstantin Belousov
Author: kib Date: Sun Dec 4 18:43:09 2011 New Revision: 228261 URL: http://svn.freebsd.org/changeset/base/228261 Log: Use explicit information from the kernel to detect the traps due to syscall entry and leave. Based on submision by:Dan Nelson MFC after:1 month Modified:

svn commit: r228263 - head/sys/fs/fifofs

2011-12-04 Thread Konstantin Belousov
Author: kib Date: Sun Dec 4 19:25:49 2011 New Revision: 228263 URL: http://svn.freebsd.org/changeset/base/228263 Log: Initialize fifoinfo fi_wgen field on open. The only important is the difference between fi_wgen and f_seqcount, so the change is purely cosmetic, but it makes the code easie

svn commit: r228306 - head/sys/kern

2011-12-06 Thread Konstantin Belousov
Author: kib Date: Tue Dec 6 11:24:03 2011 New Revision: 228306 URL: http://svn.freebsd.org/changeset/base/228306 Log: Most users of pipe(2) do not call fstat(2) on the returned pipe descriptors. Optimize for the case, by lazily allocating the pipe inode number at the fstat(2) time. If alloc

svn commit: r228307 - in head: secure/lib/libcrypto share/mk

2011-12-06 Thread Konstantin Belousov
Author: kib Date: Tue Dec 6 11:28:17 2011 New Revision: 228307 URL: http://svn.freebsd.org/changeset/base/228307 Log: Force linker error when created shared library contains a relocation against text. Provide the override switch to turn off the strict behaviour. Apparently, openssl libcrypt

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

2011-12-09 Thread Konstantin Belousov
Author: kib Date: Fri Dec 9 20:40:24 2011 New Revision: 228375 URL: http://svn.freebsd.org/changeset/base/228375 Log: Typo. MFC after:3 days Modified: head/libexec/rtld-elf/rtld.h Modified: head/libexec/rtld-elf/rtld.h ===

svn commit: r228376 - head/sys/ddb

2011-12-09 Thread Konstantin Belousov
Author: kib Date: Fri Dec 9 20:41:54 2011 New Revision: 228376 URL: http://svn.freebsd.org/changeset/base/228376 Log: Typo. MFC after:3 days Modified: head/sys/ddb/db_thread.c Modified: head/sys/ddb/db_thread.c ===

svn commit: r228432 - head/sys/vm

2011-12-12 Thread Konstantin Belousov
Author: kib Date: Mon Dec 12 10:04:04 2011 New Revision: 228432 URL: http://svn.freebsd.org/changeset/base/228432 Log: Fix printf. Submitted by: az MFC after:1 week Modified: head/sys/vm/swap_pager.c Modified: head/sys/vm/swap_pager.c ==

svn commit: r228434 - head/sys/sys

2011-12-12 Thread Konstantin Belousov
Author: kib Date: Mon Dec 12 10:10:49 2011 New Revision: 228434 URL: http://svn.freebsd.org/changeset/base/228434 Log: Add definitions for GNU-specific STT_GNU_IFUNC symbol type, and R_{386,X86_64}_IRELATIVE relocations. MFC after:3 weeks Modified: head/sys/sys/elf_common.h Modifi

svn commit: r228435 - in head/libexec/rtld-elf: . amd64 arm i386 ia64 mips powerpc powerpc64 sparc64

2011-12-12 Thread Konstantin Belousov
Author: kib Date: Mon Dec 12 11:03:14 2011 New Revision: 228435 URL: http://svn.freebsd.org/changeset/base/228435 Log: Add support for STT_GNU_IFUNC and R_MACHINE_IRELATIVE GNU extensions to rtld on 386 and amd64. This adds runtime bits neccessary for the use of the dispatch functions from t

svn commit: r228503 - in head/libexec/rtld-elf: . amd64 i386

2011-12-14 Thread Konstantin Belousov
Author: kib Date: Wed Dec 14 16:47:53 2011 New Revision: 228503 URL: http://svn.freebsd.org/changeset/base/228503 Log: _rtld_bind() read-locks the bind lock, and possible plt resolution from the dispatcher would also acquire bind lock in read mode, which is the supported operation. plt is ex

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

2011-12-16 Thread Konstantin Belousov
Dec 16 10:56:16 2011 (r228567) @@ -0,0 +1,43 @@ +/*- + * Copyright (c) 2009 Konstantin Belousov + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code

svn commit: r228568 - head/sys/ddb

2011-12-16 Thread Konstantin Belousov
Author: kib Date: Fri Dec 16 11:42:50 2011 New Revision: 228568 URL: http://svn.freebsd.org/changeset/base/228568 Log: Show the thread kernel stack base address for 'show threads'. Discussed with: pho MFC after:1 week Modified: head/sys/ddb/db_thread.c Modified: head/sys/ddb

svn commit: r228569 - head/sys/ddb

2011-12-16 Thread Konstantin Belousov
Author: kib Date: Fri Dec 16 11:44:20 2011 New Revision: 228569 URL: http://svn.freebsd.org/changeset/base/228569 Log: Add 'findstack' ddb command to search either the thread kernel stack or cached stack containing the specified kernel virtual address. Discussed with: pho MFC afte

svn commit: r228570 - head/share/man/man4

2011-12-16 Thread Konstantin Belousov
Author: kib Date: Fri Dec 16 11:52:33 2011 New Revision: 228570 URL: http://svn.freebsd.org/changeset/base/228570 Log: Document 'findstack'. MFC after:1 week Modified: head/share/man/man4/ddb.4 Modified: head/share/man/man4/ddb.4 =

svn commit: r228751 - head/sbin/fsck_ffs

2011-12-20 Thread Konstantin Belousov
Author: kib Date: Tue Dec 20 20:39:00 2011 New Revision: 228751 URL: http://svn.freebsd.org/changeset/base/228751 Log: Change the type of real_dev_bsize variable from long to u_int. The DIOCGSECTORSIZE takes u_int * as an argument, using long * causes failures on big-endian targets. Dia

svn commit: r228838 - head/sys/vm

2011-12-23 Thread Konstantin Belousov
Author: kib Date: Fri Dec 23 09:09:42 2011 New Revision: 228838 URL: http://svn.freebsd.org/changeset/base/228838 Log: Optimize the common case of msyncing the whole file mapping with MS_SYNC flag. The system must guarantee that all writes are finished before syscalls returned. Schedule the

svn commit: r228947 - head/sys/dev/uart

2011-12-29 Thread Konstantin Belousov
Author: kib Date: Thu Dec 29 08:27:37 2011 New Revision: 228947 URL: http://svn.freebsd.org/changeset/base/228947 Log: Add PCI Id for the Intel AMT serial interface as found on my DQ67OW. MFC after:1 week Modified: head/sys/dev/uart/uart_bus_pci.c Modified: head/sys/dev/uart/uart_bu

svn commit: r229005 - stable/9/sys/fs/procfs

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 17:54:33 2011 New Revision: 229005 URL: http://svn.freebsd.org/changeset/base/229005 Log: MFC r227104: Fix typo. Modified: stable/9/sys/fs/procfs/procfs_status.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/fs/procfs/procfs_sta

svn commit: r229006 - stable/8/sys/fs/procfs

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 18:02:14 2011 New Revision: 229006 URL: http://svn.freebsd.org/changeset/base/229006 Log: MFC r227104: Fix typo. Modified: stable/8/sys/fs/procfs/procfs_status.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/fs/procfs/procfs_sta

svn commit: r229008 - stable/9/lib/libc/amd64/gen

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 18:18:06 2011 New Revision: 229008 URL: http://svn.freebsd.org/changeset/base/229008 Log: MFC r227023: Make sure that stack is 16-byte aligned before calling a function, as it is required by amd64 ABI. Add a comment for the places were the stack is accidentally

svn commit: r229009 - stable/9/lib/libc/i386/gen

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 18:20:44 2011 New Revision: 229009 URL: http://svn.freebsd.org/changeset/base/229009 Log: MFC r227024: Despite official i386 ABI does not mandate any stack alignment besides the word alignment, some versions of gcc do require 16-byte alignment. Make sure the st

svn commit: r229010 - stable/8/lib/libc/amd64/gen

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 18:22:34 2011 New Revision: 229010 URL: http://svn.freebsd.org/changeset/base/229010 Log: MFC r227023: Make sure that stack is 16-byte aligned before calling a function, as it is required by amd64 ABI. Add a comment for the places were the stack is accidentally

svn commit: r229011 - stable/8/lib/libc/i386/gen

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 18:29:09 2011 New Revision: 229011 URL: http://svn.freebsd.org/changeset/base/229011 Log: MFC r227024: Despite official i386 ABI does not mandate any stack alignment besides the word alignment, some versions of gcc do require 16-byte alignment. Make sure the st

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

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 18:58:42 2011 New Revision: 229012 URL: http://svn.freebsd.org/changeset/base/229012 Log: MFC r228432: Fix printf. Modified: stable/9/sys/vm/swap_pager.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/vm/swap_pager.c

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

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 19:04:12 2011 New Revision: 229013 URL: http://svn.freebsd.org/changeset/base/229013 Log: MFC r228432: Fix printf. Modified: stable/8/sys/vm/swap_pager.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/vm/swap_pager.c

svn commit: r229014 - stable/9/sys/sys

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 19:18:13 2011 New Revision: 229014 URL: http://svn.freebsd.org/changeset/base/229014 Log: MFC r227392: Assert that _PRELE() is done for the held process. Modified: stable/9/sys/sys/proc.h Directory Properties: stable/9/sys/ (props changed) Modified: stable/

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

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 19:24:53 2011 New Revision: 229015 URL: http://svn.freebsd.org/changeset/base/229015 Log: MFC r227392: Assert that _PRELE() is done for the held process. Modified: stable/8/sys/sys/proc.h Directory Properties: stable/8/sys/ (props changed) Modified: stable/

svn commit: r229016 - stable/9/sys/kern

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 19:58:06 2011 New Revision: 229016 URL: http://svn.freebsd.org/changeset/base/229016 Log: MFC r228178: If alloc_unr() call in the pipe_create() failed, then pipe->pipe_ino is -1. But, because ino_t is unsigned, this case was not covered by the test ino > 0 in p

svn commit: r229017 - stable/9/libexec/rtld-elf

2011-12-30 Thread Konstantin Belousov
Author: kib Date: Fri Dec 30 19:59:54 2011 New Revision: 229017 URL: http://svn.freebsd.org/changeset/base/229017 Log: MFC r228375: Typo. Modified: stable/9/libexec/rtld-elf/rtld.h Directory Properties: stable/9/libexec/rtld-elf/ (props changed) Modified: stable/9/libexec/rtld-elf/rtld

  1   2   3   4   5   6   7   8   9   10   >