svn commit: r223164 - head/sys/kern

2011-06-16 Thread Konstantin Belousov
Author: kib Date: Thu Jun 16 21:59:16 2011 New Revision: 223164 URL: http://svn.freebsd.org/changeset/base/223164 Log: Fix silly typo that resulted in the a.out process stack to end at ~200MB instead of 3GB on amd64. Modified: head/sys/kern/imgact_aout.c Modified: head/sys/kern/imgact_aout

svn commit: r223165 - head/sys/kern

2011-06-16 Thread Konstantin Belousov
Author: kib Date: Thu Jun 16 22:00:59 2011 New Revision: 223165 URL: http://svn.freebsd.org/changeset/base/223165 Log: Do not trash the argv[0] pointer for an a.out process on amd64. Found with the binary provided by joerg. Modified: head/sys/kern/imgact_aout.c Modified: head/sys/kern/i

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

2011-06-16 Thread Konstantin Belousov
Author: kib Date: Thu Jun 16 22:05:56 2011 New Revision: 223166 URL: http://svn.freebsd.org/changeset/base/223166 Log: Implement compat32 for old lseek, for the a.out binaries on amd64. Modified: head/sys/compat/freebsd32/freebsd32_misc.c head/sys/compat/freebsd32/syscalls.master Modified:

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

2011-06-16 Thread Konstantin Belousov
Author: kib Date: Thu Jun 16 22:06:35 2011 New Revision: 223167 URL: http://svn.freebsd.org/changeset/base/223167 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/compa

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

2011-06-18 Thread Konstantin Belousov
Author: kib Date: Sat Jun 18 12:13:28 2011 New Revision: 223254 URL: http://svn.freebsd.org/changeset/base/223254 Log: Fix vfork. Add comments. Modified: head/sys/amd64/ia32/ia32_sigtramp.S Modified: head/sys/amd64/ia32/ia32_sigtramp.S

svn commit: r223277 - head/sys/cam/ata

2011-06-18 Thread Konstantin Belousov
Author: kib Date: Sat Jun 18 22:26:58 2011 New Revision: 223277 URL: http://svn.freebsd.org/changeset/base/223277 Log: Fix a typo in adagetattr() from r223089. In particular, this restores the ability to use ahci(4) for kernel dumps. Modified: head/sys/cam/ata/ata_da.c Modified: head/sys/c

svn commit: r223884 - head/sys/sys

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:29:23 2011 New Revision: 223884 URL: http://svn.freebsd.org/changeset/base/223884 Log: Implement bitcount16. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/sys/systm.h Modified: head/sys/sys/systm.h

svn commit: r223885 - head/sys/dev/pci

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:30:13 2011 New Revision: 223885 URL: http://svn.freebsd.org/changeset/base/223885 Log: Implement pci_find_class(9), the function to find a pci device by its class. Sponsored by: The FreeBSD Foundation Reviewed by: jhb MFC after:1 week Modified: he

svn commit: r223886 - head/sys/sys

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:41:28 2011 New Revision: 223886 URL: http://svn.freebsd.org/changeset/base/223886 Log: Implement a helper functions to locally set thread-private flag, and restore it to the previous state. Note that only setting a flag locally is supported. Sponsored by:

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

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:42:45 2011 New Revision: 223887 URL: http://svn.freebsd.org/changeset/base/223887 Log: Use helper functions instead of manually managing TDP_INBDFLUSH. Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version) MFC after:1 week Modifie

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

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:16:07 2011 New Revision: 223888 URL: http://svn.freebsd.org/changeset/base/223888 Log: Use 'curthread_pflags' instead of 'thread_pflags' to signify that only curthread can be operated upon. Requested by: attilio MFC after:1 week Modified: head/sys/

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

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:21:10 2011 New Revision: 223889 URL: http://svn.freebsd.org/changeset/base/223889 Log: Add a facility to disable processing page faults. When activated, uiomove generates EFAULT if any accessed address is not mapped, as opposed to handling the fault. Spon

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

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:24:12 2011 New Revision: 223890 URL: http://svn.freebsd.org/changeset/base/223890 Log: Document copyin_nofault, copyout_nofault, uiomove_nofault. Submitted by: alc Modified: head/share/man/man9/Makefile head/share/man/man9/copy.9 head/share/man/man9/ui

svn commit: r223911 - head/sys/sys

2011-07-10 Thread Konstantin Belousov
Author: kib Date: Sun Jul 10 18:57:35 2011 New Revision: 223911 URL: http://svn.freebsd.org/changeset/base/223911 Log: Update locking annotations for the struct vnode. MFC after:3 days Modified: head/sys/sys/vnode.h Modified: head/sys/sys/vnode.h

svn commit: r223913 - head/sys/vm

2011-07-10 Thread Konstantin Belousov
Author: kib Date: Sun Jul 10 20:45:13 2011 New Revision: 223913 URL: http://svn.freebsd.org/changeset/base/223913 Log: Style. MFC after:3 days Modified: head/sys/vm/vm_mmap.c Modified: head/sys/vm/vm_mmap.c

svn commit: r223914 - head/sys/vm

2011-07-10 Thread Konstantin Belousov
Author: kib Date: Sun Jul 10 20:49:13 2011 New Revision: 223914 URL: http://svn.freebsd.org/changeset/base/223914 Log: Extract the code to translate VM error into errno, into an exported function vm_mmap_to_errno(). It is useful for the drivers that implement mmap(2)-like functionality, to b

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

2011-07-12 Thread Konstantin Belousov
Author: kib Date: Tue Jul 12 20:37:18 2011 New Revision: 223966 URL: http://svn.freebsd.org/changeset/base/223966 Log: Implement an RFTSIGZMB flag to rfork(2) to specify a signal that is delivered to parent when the child exists. Submitted by: Petr Salinger (Debian/kFreeBSD) MFC after:

svn commit: r223967 - head/lib/libc/sys

2011-07-12 Thread Konstantin Belousov
Author: kib Date: Tue Jul 12 20:38:42 2011 New Revision: 223967 URL: http://svn.freebsd.org/changeset/base/223967 Log: Document RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals are delivered, not returned. MFC after:1 week Modified: head/lib/libc/sys/rfork.2 Modified: head/li

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

2011-07-13 Thread Konstantin Belousov
Author: kib Date: Wed Jul 13 12:50:23 2011 New Revision: 223978 URL: http://svn.freebsd.org/changeset/base/223978 Log: MFC r223911: Update locking annotations for the struct vnode. Modified: stable/8/sys/sys/vnode.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd6

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

2011-07-13 Thread Konstantin Belousov
Author: kib Date: Wed Jul 13 12:53:52 2011 New Revision: 223979 URL: http://svn.freebsd.org/changeset/base/223979 Log: MFC r223913: Style. Modified: stable/8/sys/vm/vm_mmap.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable

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

2011-07-13 Thread Konstantin Belousov
Author: kib Date: Wed Jul 13 21:07:41 2011 New Revision: 223988 URL: http://svn.freebsd.org/changeset/base/223988 Log: While fixing the looping of a thread while devfs vnode is reclaimed, r179247 introduced a possibility of devfs_allocv() returning spurious ENOENT. If the vnode is selected b

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

2011-07-16 Thread Konstantin Belousov
Author: kib Date: Sat Jul 16 19:28:43 2011 New Revision: 224109 URL: http://svn.freebsd.org/changeset/base/224109 Log: MFC r223884: Implement bitcount16. Sponsored by: The FreeBSD Foundation Modified: stable/8/sys/sys/systm.h Directory Properties: stable/8/sys/ (props changed) st

svn commit: r224111 - stable/8/sys/dev/pci

2011-07-16 Thread Konstantin Belousov
Author: kib Date: Sat Jul 16 19:38:08 2011 New Revision: 224111 URL: http://svn.freebsd.org/changeset/base/224111 Log: MFC r223885: Implement pci_find_class(9), the function to find a pci device by its class. Sponsored by: The FreeBSD Foundation Modified: stable/8/sys/dev/pci/pci.c s

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

2011-07-16 Thread Konstantin Belousov
Author: kib Date: Sat Jul 16 20:03:23 2011 New Revision: 224113 URL: http://svn.freebsd.org/changeset/base/224113 Log: MFC r223886: Implement a helper functions to locally set thread-private flag, and restore it to the previous state. Note that only setting a flag locally is supported.

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

2011-07-17 Thread Konstantin Belousov
Author: kib Date: Sun Jul 17 10:13:33 2011 New Revision: 224127 URL: http://svn.freebsd.org/changeset/base/224127 Log: MFC r223914: Extract the code to translate VM error into errno, into an exported function vm_mmap_to_errno(). Sponsored by: The FreeBSD Foundation Modified: stable/8

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

2011-07-19 Thread Konstantin Belousov
Author: kib Date: Tue Jul 19 10:41:26 2011 New Revision: 224211 URL: http://svn.freebsd.org/changeset/base/224211 Log: MFC r223966: Implement an RFTSIGZMB flag to rfork(2) to specify a signal that is delivered to parent when the child exists. Modified: stable/8/sys/kern/kern_fork.c stab

svn commit: r224212 - stable/8/lib/libc/sys

2011-07-19 Thread Konstantin Belousov
Author: kib Date: Tue Jul 19 10:45:31 2011 New Revision: 224212 URL: http://svn.freebsd.org/changeset/base/224212 Log: MFC r223967: Document RFTSIGZMB. Modified: stable/8/lib/libc/sys/rfork.2 Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/stdtime/ (props

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

2011-07-19 Thread Konstantin Belousov
Author: kib Date: Tue Jul 19 10:53:47 2011 New Revision: 224214 URL: http://svn.freebsd.org/changeset/base/224214 Log: Bump __FreeBSD_version for RFTSIGZMB flag for rfork(2). Modified: stable/8/sys/sys/param.h Modified: stable/8/sys/sys/param.h ===

svn commit: r224521 - head/sys/kern

2011-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 14:12:37 2011 New Revision: 224521 URL: http://svn.freebsd.org/changeset/base/224521 Log: Fix the devmtx lock leak from make_dev(9) when the old device cloning failed due to invalid or duplicated path being generated. Reviewed by: jh Approved by: re (kensm

svn commit: r224522 - head/sys/vm

2011-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 14:13:57 2011 New Revision: 224522 URL: http://svn.freebsd.org/changeset/base/224522 Log: Fix a race in the device pager allocation. If another thread won and allocated the device pager for the given handle, then the object fictitious pages list and the object me

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

2011-08-01 Thread Konstantin Belousov
Author: kib Date: Mon Aug 1 08:52:05 2011 New Revision: 224568 URL: http://svn.freebsd.org/changeset/base/224568 Log: Fix markup. Approved by: re (hrs) Modified: head/share/man/man9/taskqueue.9 Modified: head/share/man/man9/taskqueue.9 =

svn commit: r224581 - head/sys/kern

2011-08-01 Thread Konstantin Belousov
Author: kib Date: Mon Aug 1 19:07:03 2011 New Revision: 224581 URL: http://svn.freebsd.org/changeset/base/224581 Log: Fix the LK_NOSHARE lockmgr flag interaction with LK_UPGRADE and LK_DOWNGRADE lock ops. Namely, the ops should be NOP since LK_NOSHARE locks are always exclusive. Report

svn commit: r224582 - in head/sys: compat/linprocfs vm

2011-08-01 Thread Konstantin Belousov
Author: kib Date: Mon Aug 1 19:12:15 2011 New Revision: 224582 URL: http://svn.freebsd.org/changeset/base/224582 Log: Implement the linprocfs swaps file, providing information about the configured swap devices in the Linux-compatible format. Based on the submission by: Robert Millan

svn commit: r224613 - head/sys/i386/ibcs2

2011-08-02 Thread Konstantin Belousov
Author: kib Date: Tue Aug 2 18:12:19 2011 New Revision: 224613 URL: http://svn.freebsd.org/changeset/base/224613 Log: Corrections for the iBCS2 support that seems to regressed from 4.x times. In particular: - fix format specifiers in the DPRINTFs; - do not use kernel_map for temporal m

svn commit: r224635 - stable/8/sys/fs/devfs

2011-08-03 Thread Konstantin Belousov
Author: kib Date: Wed Aug 3 14:29:20 2011 New Revision: 224635 URL: http://svn.freebsd.org/changeset/base/224635 Log: MFC r223988: While fixing the looping of a thread while devfs vnode is reclaimed, r179247 introduced a possibility of devfs_allocv() returning spurious ENOENT. If the vnod

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

2011-08-06 Thread Konstantin Belousov
Author: kib Date: Sat Aug 6 11:33:17 2011 New Revision: 224676 URL: http://svn.freebsd.org/changeset/base/224676 Log: MFC r224522: Fix a race in the device pager allocation. If another thread won and allocated the device pager for the given handle, then the object fictitious pages list an

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

2011-08-08 Thread Konstantin Belousov
Author: kib Date: Mon Aug 8 08:22:15 2011 New Revision: 224704 URL: http://svn.freebsd.org/changeset/base/224704 Log: MFC r224581: Fix the LK_NOSHARE lockmgr flag interaction with LK_UPGRADE and LK_DOWNGRADE lock ops. Namely, the ops should be NOP since LK_NOSHARE locks are always exclusi

svn commit: r224727 - stable/8/sys/i386/ibcs2

2011-08-09 Thread Konstantin Belousov
Author: kib Date: Tue Aug 9 08:09:32 2011 New Revision: 224727 URL: http://svn.freebsd.org/changeset/base/224727 Log: MFC r224613: Corrections for the iBCS2 support. Modified: stable/8/sys/i386/ibcs2/imgact_coff.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64

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

2011-08-09 Thread Konstantin Belousov
Author: kib Date: Tue Aug 9 20:53:33 2011 New Revision: 224743 URL: http://svn.freebsd.org/changeset/base/224743 Log: Do not update mountpoint generation counter to the value which was not yet acted upon by devfs_populate(). Submitted by: Kohji Okuno Approved by: re (bz) MFC after:

svn commit: r224746 - in head/sys: amd64/amd64 arm/arm i386/i386 i386/xen ia64/ia64 mips/mips powerpc/aim powerpc/booke powerpc/include sparc64/sparc64 vm

2011-08-09 Thread Konstantin Belousov
Author: kib Date: Tue Aug 9 21:01:36 2011 New Revision: 224746 URL: http://svn.freebsd.org/changeset/base/224746 Log: - Move the PG_UNMANAGED flag from m->flags to m->oflags, renaming the flag to VPO_UNMANAGED (and also making the flag protected by the vm object lock, instead of vm page

svn commit: r224878 - in stable/8/sys: compat/linprocfs vm

2011-08-15 Thread Konstantin Belousov
Author: kib Date: Mon Aug 15 09:26:53 2011 New Revision: 224878 URL: http://svn.freebsd.org/changeset/base/224878 Log: MFC r224582: Implement the linprocfs swaps file. Modified: stable/8/sys/compat/linprocfs/linprocfs.c stable/8/sys/vm/swap_pager.c stable/8/sys/vm/swap_pager.h Directory

svn commit: r219080 - in stable/8: include share/man/man3

2011-02-27 Thread Konstantin Belousov
Author: kib Date: Sun Feb 27 09:12:24 2011 New Revision: 219080 URL: http://svn.freebsd.org/changeset/base/219080 Log: MFC r218881: Add restrict keyword to pthread_sigmask prototype and manpage. Modified: stable/8/include/signal.h stable/8/share/man/man3/pthread_sigmask.3 Directory Proper

svn commit: r219155 - in stable/8/sys: amd64/linux32 compat/freebsd32

2011-03-01 Thread Konstantin Belousov
Author: kib Date: Tue Mar 1 21:51:32 2011 New Revision: 219155 URL: http://svn.freebsd.org/changeset/base/219155 Log: MFC r210431: Remove the linux_exec_copyin_args(), freebsd32_exec_copyin_args() may serve as well. COMPAT_FREEBSD32 is a prerequisite for COMPAT_LINUX32. MFC r210451:

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

2011-03-01 Thread Konstantin Belousov
Author: kib Date: Tue Mar 1 21:52:24 2011 New Revision: 219156 URL: http://svn.freebsd.org/changeset/base/219156 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: r219159 - stable/8/sys/kern

2011-03-01 Thread Konstantin Belousov
Author: kib Date: Wed Mar 2 00:36:28 2011 New Revision: 219159 URL: http://svn.freebsd.org/changeset/base/219159 Log: MFC r218972: Move the max_threads_per_proc and max_threads_hits variables to the file where they are used. Declare the kern.threads sysctl node at the same location. Sinc

svn commit: r219178 - head/sys/crypto/aesni

2011-03-02 Thread Konstantin Belousov
Author: kib Date: Wed Mar 2 14:56:58 2011 New Revision: 219178 URL: http://svn.freebsd.org/changeset/base/219178 Log: Fix a bug in the result of manual assembly. Reported by: Stefan Grundmann PR: kern/155118 MFC after:3 days Modified: head/sys/crypto/aesni/aeskeys_amd64.S

svn commit: r219303 - stable/8/sys/crypto/aesni

2011-03-05 Thread Konstantin Belousov
Author: kib Date: Sat Mar 5 09:42:00 2011 New Revision: 219303 URL: http://svn.freebsd.org/changeset/base/219303 Log: MFC r219178: Fix a bug in the result of manual assembly. PR: kern/155118 Modified: stable/8/sys/crypto/aesni/aeskeys_amd64.S stable/8/sys/crypto/aesni/aeskeys_i386

svn commit: r219352 - head/sys/kern

2011-03-06 Thread Konstantin Belousov
Author: kib Date: Sun Mar 6 22:59:30 2011 New Revision: 219352 URL: http://svn.freebsd.org/changeset/base/219352 Log: The execution of the shebang script requires putting interpreter path, possible option and script path in the place of argv[0] supplied to execve(2). It is possible and val

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

2011-03-07 Thread Konstantin Belousov
Author: kib Date: Mon Mar 7 22:36:11 2011 New Revision: 219388 URL: http://svn.freebsd.org/changeset/base/219388 Log: Simplify uses of the web of pointers. Reviewed by: mckusick MFC after:1 week Modified: head/sys/ufs/ufs/ufs_dirhash.c head/sys/ufs/ufs/ufs_quota.c Modified: he

svn commit: r219396 - head/sys/kern

2011-03-08 Thread Konstantin Belousov
Author: kib Date: Tue Mar 8 11:50:59 2011 New Revision: 219396 URL: http://svn.freebsd.org/changeset/base/219396 Log: Do not assert buffer lock in VFS_STRATEGY() when kernel already paniced. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/vfs_subr.c

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

2011-03-13 Thread Konstantin Belousov
Author: kib Date: Sun Mar 13 09:36:52 2011 New Revision: 219594 URL: http://svn.freebsd.org/changeset/base/219594 Log: MFC r219352: The execution of the shebang script requires putting interpreter path, possible option and script path in the place of argv[0] supplied to execve(2). It is p

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

2011-03-13 Thread Konstantin Belousov
Author: kib Date: Sun Mar 13 10:08:02 2011 New Revision: 219595 URL: http://svn.freebsd.org/changeset/base/219595 Log: MFC r219352: The execution of the shebang script requires putting interpreter path, possible option and script path in the place of argv[0] supplied to execve(2). It is p

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

2011-03-13 Thread Konstantin Belousov
Author: kib Date: Sun Mar 13 13:37:23 2011 New Revision: 219607 URL: http://svn.freebsd.org/changeset/base/219607 Log: Fix mismerge. Pointy hat to:kib Modified: stable/7/sys/kern/imgact_shell.c Modified: stable/7/sys/kern/imgact_shell.c ==

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

2011-03-14 Thread Konstantin Belousov
Author: kib Date: Mon Mar 14 11:20:26 2011 New Revision: 219637 URL: http://svn.freebsd.org/changeset/base/219637 Log: MFC r219388: Simplify uses of the web of pointers. Modified: stable/8/sys/ufs/ufs/ufs_dirhash.c stable/8/sys/ufs/ufs/ufs_quota.c Directory Properties: stable/8/sys/ (

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

2011-03-15 Thread Konstantin Belousov
Author: kib Date: Tue Mar 15 10:17:18 2011 New Revision: 219664 URL: http://svn.freebsd.org/changeset/base/219664 Log: MFC r219396: Do not assert buffer lock in VFS_STRATEGY() when kernel already paniced. Sponsored by: The FreeBSD Foundation Modified: stable/8/sys/kern/vfs_subr.c Direc

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

2011-03-17 Thread Konstantin Belousov
Author: kib Date: Thu Mar 17 11:23:12 2011 New Revision: 219712 URL: http://svn.freebsd.org/changeset/base/219712 Log: Remove the #if defined(FFS) || defined(IFS) braces around the calls to ffs_snapgone(). ufs.ko module is not build with FFS define, causing snapshot inode number slots in sup

svn commit: r219713 - head/bin/ps

2011-03-17 Thread Konstantin Belousov
Author: kib Date: Thu Mar 17 11:25:32 2011 New Revision: 219713 URL: http://svn.freebsd.org/changeset/base/219713 Log: Implement the usertime and systime keywords for ps, printing the corresponding times reported by getrusage(). Submitted by: Dan Nelson MFC after:1 week Modified:

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

2011-03-19 Thread Konstantin Belousov
Author: kib Date: Sun Mar 20 00:43:42 2011 New Revision: 219789 URL: http://svn.freebsd.org/changeset/base/219789 Log: MFC r219712: Remove the #if defined(FFS) || defined(IFS) braces around the calls to ffs_snapgone(). ufs.ko module is not build with FFS define. Modified: stable/8/sys/ufs

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

2011-03-20 Thread Konstantin Belousov
Author: kib Date: Sun Mar 20 21:05:09 2011 New Revision: 219804 URL: http://svn.freebsd.org/changeset/base/219804 Log: Retire opt_ffs_broken_fixme.h. Instead of directly calling ffs_snapgone(), use UFS_SNAPGONE() with usual layering. Requested by: bde MFC after:1 week Modified:

svn commit: r219846 - in head/sys/ofed: drivers/infiniband/hw/mthca include/linux include/rdma

2011-03-21 Thread Konstantin Belousov
Author: kib Date: Mon Mar 21 21:16:40 2011 New Revision: 219846 URL: http://svn.freebsd.org/changeset/base/219846 Log: Allow the ofed modules to be compiled on i386. Reviewed by: jeff Modified: head/sys/ofed/drivers/infiniband/hw/mthca/mthca_main.c head/sys/ofed/include/linux/gfp.h

svn commit: r219943 - stable/8/bin/ps

2011-03-23 Thread Konstantin Belousov
Author: kib Date: Thu Mar 24 00:42:07 2011 New Revision: 219943 URL: http://svn.freebsd.org/changeset/base/219943 Log: MFC r219713: Implement the usertime and systime keywords for ps, printing the corresponding times reported by getrusage(). Modified: stable/8/bin/ps/extern.h stable/8/b

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

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 10:57:57 2011 New Revision: 219986 URL: http://svn.freebsd.org/changeset/base/219986 Log: Fix file leakage in the freebsd32_ioctl routines. Code inspection shows freebsd32_ioctl calls fget for a fd and calls a subroutine to handle each specific ioctl. It is e

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

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 11:05:28 2011 New Revision: 219987 URL: http://svn.freebsd.org/changeset/base/219987 Log: Remove unneccessary panics, that can be easily triggered by user. The copyin() function handles NULL as well as any other pointer. MFC after:3 days Modified: head/

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

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 11:43:49 2011 New Revision: 219988 URL: http://svn.freebsd.org/changeset/base/219988 Log: Fully emulate MDIOCLIST for compat32. MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32_ioctl.c Modified: head/sys/compat/freebsd32/freebsd32_ioctl.c =

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

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 11:52:31 2011 New Revision: 219989 URL: http://svn.freebsd.org/changeset/base/219989 Log: Implement compat32 MEMRANGE_GET and MEMRANGE_SET. This is needed to run 32bit Xorg server with VESA driver. Submitted by: John Wehle MFC after:1 week Modified:

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

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 14:00:36 2011 New Revision: 21 URL: http://svn.freebsd.org/changeset/base/21 Log: Add O_CLOEXEC flag to open(2) and fhopen(2). The new function fallocf(9), that is renamed falloc(9) with added flag argument, is provided to facilitate the merge to stable b

svn commit: r220000 - head/lib/libc/sys

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 14:01:18 2011 New Revision: 22 URL: http://svn.freebsd.org/changeset/base/22 Log: Document O_CLOEXEC. Reviewed by: jhb MFC after:1 week Modified: head/lib/libc/sys/open.2 Modified: head/lib/libc/sys/open.2 =

svn commit: r220001 - head/sys/vm

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 16:38:10 2011 New Revision: 220001 URL: http://svn.freebsd.org/changeset/base/220001 Log: Handle the corner case in vm_fault_quick_hold_pages(). If supplied length is zero, and user address is invalid, function might return -1, due to the truncation and roundi

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

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 22:31:28 2011 New Revision: 220014 URL: http://svn.freebsd.org/changeset/base/220014 Log: Report EBUSY instead of EROFS for attempt of deleting or renaming the root directory of msdosfs mount. The VFS code would handle deletion case itself too, assuming VV_ROOT f

svn commit: r220043 - head/gnu/usr.bin/gdb/libgdb

2011-03-26 Thread Konstantin Belousov
Author: kib Date: Sat Mar 26 21:12:53 2011 New Revision: 220043 URL: http://svn.freebsd.org/changeset/base/220043 Log: Print the raw value of si_code, that is esp. useful for undecoded values. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/gnu/usr.bin/gdb/libg

svn commit: r220047 - in stable/8/sys: conf modules/ufs ufs/ffs ufs/ufs

2011-03-26 Thread Konstantin Belousov
Author: kib Date: Sun Mar 27 00:42:28 2011 New Revision: 220047 URL: http://svn.freebsd.org/changeset/base/220047 Log: MFC r219804: Retire opt_ffs_broken_fixme.h. Modified: stable/8/sys/conf/options stable/8/sys/modules/ufs/Makefile stable/8/sys/ufs/ffs/ffs_vfsops.c stable/8/sys/ufs/u

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

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 08:22:13 2011 New Revision: 220092 URL: http://svn.freebsd.org/changeset/base/220092 Log: MFC r219986: Fix file leakage in the freebsd32_ioctl routines. Modified: stable/8/sys/compat/freebsd32/freebsd32_ioctl.c Directory Properties: stable/8/sys/ (props chan

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

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 08:23:45 2011 New Revision: 220093 URL: http://svn.freebsd.org/changeset/base/220093 Log: MFC r219987: Remove unneccessary panics. Modified: stable/8/sys/compat/freebsd32/freebsd32_ioctl.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/am

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

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 12:39:48 2011 New Revision: 220099 URL: http://svn.freebsd.org/changeset/base/220099 Log: Fix the softdep_request_cleanup() function definition for !SOFTUPDATES case. Submitted by: Aleksandr Rybalko Modified: head/sys/ufs/ffs/ffs_softdep.c Modified: head/sy

svn commit: r220100 - in head/sys: dev/ksyms kern sys

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 12:48:33 2011 New Revision: 220100 URL: http://svn.freebsd.org/changeset/base/220100 Log: Promote ksyms_map() and ksyms_unmap() to general facility copyout_map() and copyout_unmap() interfaces. Submitted by: John Wehle , nox MFC after:2 weeks Modified:

svn commit: r220101 - head/sys/kern

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 13:21:26 2011 New Revision: 220101 URL: http://svn.freebsd.org/changeset/base/220101 Log: Handle zero length in copyout_unmap(). Submitted by: John Wehle MFC after:2 weeks Modified: head/sys/kern/subr_uio.c Modified: head/sys/kern/subr_uio.c =

svn commit: r220102 - head/sys/kern

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 13:28:23 2011 New Revision: 220102 URL: http://svn.freebsd.org/changeset/base/220102 Log: Trim white spaces, adjust style. MFC after:2 weeks Modified: head/sys/kern/subr_uio.c Modified: head/sys/kern/subr_uio.c ===

svn commit: r220114 - head/sys/kern

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 19:44:54 2011 New Revision: 220114 URL: http://svn.freebsd.org/changeset/base/220114 Log: Fix the check for vm_map_remove() error. Pointed out by: alc MFC after:2 weeks Modified: head/sys/kern/subr_uio.c Modified: head/sys/kern/subr_uio.c ===

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

2011-03-30 Thread Konstantin Belousov
Author: kib Date: Wed Mar 30 14:46:12 2011 New Revision: 220158 URL: http://svn.freebsd.org/changeset/base/220158 Log: Provide compat32 shims for kldstat(2). Requested and tested by: jpaetzel MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32.h head/sys/compat/fr

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

2011-03-30 Thread Konstantin Belousov
Author: kib Date: Wed Mar 30 14:46:55 2011 New Revision: 220159 URL: http://svn.freebsd.org/changeset/base/220159 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/compa

svn commit: r220238 - in head/sys: amd64/ia32 compat/freebsd32 compat/ia32 ia64/ia32 kern modules sys

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 11:16:29 2011 New Revision: 220238 URL: http://svn.freebsd.org/changeset/base/220238 Log: Add support for executing the FreeBSD 1/i386 a.out binaries on amd64. In particular: - implement compat shims for old stat(2) variants and ogetdirentries(2); - implemen

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

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 11:16:53 2011 New Revision: 220239 URL: http://svn.freebsd.org/changeset/base/220239 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: r220241 - in stable/8/sys: kern sys

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 12:50:29 2011 New Revision: 220241 URL: http://svn.freebsd.org/changeset/base/220241 Log: MFC r21: Add O_CLOEXEC flag to open(2) and fhopen(2). Modified: stable/8/sys/kern/kern_descrip.c stable/8/sys/kern/vfs_syscalls.c stable/8/sys/sys/fcntl.h stable/

svn commit: r220242 - stable/8/lib/libc/sys

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 12:52:55 2011 New Revision: 220242 URL: http://svn.freebsd.org/changeset/base/220242 Log: MFC r22: Document O_CLOEXEC. Modified: stable/8/lib/libc/sys/open.2 Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/stdtime/ (props c

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

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 13:20:39 2011 New Revision: 220243 URL: http://svn.freebsd.org/changeset/base/220243 Log: MFC r219988: Fully emulate MDIOCLIST for compat32. Modified: stable/8/sys/compat/freebsd32/freebsd32_ioctl.c Directory Properties: stable/8/sys/ (props changed) stabl

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

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 13:23:53 2011 New Revision: 220244 URL: http://svn.freebsd.org/changeset/base/220244 Log: MFC r219989: Implement compat32 MEMRANGE_GET and MEMRANGE_SET. Modified: stable/8/sys/compat/freebsd32/freebsd32_ioctl.c stable/8/sys/compat/freebsd32/freebsd32_ioctl.h D

svn commit: r220245 - in head/sys: dev/streams kern opencrypto sys

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 13:28:34 2011 New Revision: 220245 URL: http://svn.freebsd.org/changeset/base/220245 Log: After the r21 is merged to stable/8, rename fallocf(9) to falloc(9) and remove the falloc() version that lacks flag argument. This is done to reduce the KPI bloat.

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

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 14:04:36 2011 New Revision: 220246 URL: http://svn.freebsd.org/changeset/base/220246 Log: MFC r220014: Report EBUSY instead of EROFS for attempt of deleting or renaming the root directory of msdosfs mount. Modified: stable/8/sys/fs/msdosfs/msdosfs_lookup.c Dir

svn commit: r220253 - head/lib/libc/sys

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 19:57:27 2011 New Revision: 220253 URL: http://svn.freebsd.org/changeset/base/220253 Log: Fix mdoc errors. Submitted by: ru MFC after:3 days Modified: head/lib/libc/sys/open.2 Modified: head/lib/libc/sys/open.2 =

svn commit: r220278 - stable/8/gnu/usr.bin/gdb/libgdb

2011-04-02 Thread Konstantin Belousov
Author: kib Date: Sat Apr 2 11:10:36 2011 New Revision: 220278 URL: http://svn.freebsd.org/changeset/base/220278 Log: MFC r220043: Print the raw value of si_code, that is esp. useful for undecoded values. Sponsored by: The FreeBSD Foundation Modified: stable/8/gnu/usr.bin/gdb/libgdb/f

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

2011-04-02 Thread Konstantin Belousov
Author: kib Date: Sat Apr 2 15:47:23 2011 New Revision: 220280 URL: http://svn.freebsd.org/changeset/base/220280 Log: Provide the structures and ioctl number definition for handling PCIOCGETCONF compat32. Submitted by: John Wehle MFC after:2 weeks Modified: head/sys/compat/free

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

2011-04-02 Thread Konstantin Belousov
Author: kib Date: Sat Apr 2 16:02:25 2011 New Revision: 220281 URL: http://svn.freebsd.org/changeset/base/220281 Log: Implement compat32 shims for PCIOCGETCONF. There is a generic problem with the shims for ioctls that receive pointers to the usermode data areas in the data argument. We

svn commit: r220318 - stable/8/lib/libc/sys

2011-04-04 Thread Konstantin Belousov
Author: kib Date: Mon Apr 4 08:04:32 2011 New Revision: 220318 URL: http://svn.freebsd.org/changeset/base/220318 Log: MFC r220253: Fix mdoc errors. Modified: stable/8/lib/libc/sys/open.2 Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/stdtime/ (props chan

svn commit: r220378 - in stable/8/sys: compat/freebsd32 kern sys

2011-04-06 Thread Konstantin Belousov
Author: kib Date: Wed Apr 6 11:12:05 2011 New Revision: 220378 URL: http://svn.freebsd.org/changeset/base/220378 Log: MFC r220158: Provide compat32 shims for kldstat(2). Modified: stable/8/sys/compat/freebsd32/freebsd32.h stable/8/sys/compat/freebsd32/freebsd32_misc.c stable/8/sys/comp

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

2011-04-06 Thread Konstantin Belousov
Author: kib Date: Wed Apr 6 11:12:51 2011 New Revision: 220379 URL: http://svn.freebsd.org/changeset/base/220379 Log: Regen Modified: stable/8/sys/compat/freebsd32/freebsd32_proto.h stable/8/sys/compat/freebsd32/freebsd32_syscall.h stable/8/sys/compat/freebsd32/freebsd32_syscalls.c sta

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

2011-04-08 Thread Konstantin Belousov
Author: kib Date: Fri Apr 8 21:26:50 2011 New Revision: 220460 URL: http://svn.freebsd.org/changeset/base/220460 Log: Disable local interrupts before testing the PCB_FULL_IRET flag. Thread might be preempted after testing, which causes the flag to be cleared. If ast was not delivered, we wi

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

2011-04-08 Thread Konstantin Belousov
Author: kib Date: Fri Apr 8 21:27:31 2011 New Revision: 220461 URL: http://svn.freebsd.org/changeset/base/220461 Log: 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 is always called

svn commit: r220506 - head/sys/fs/fdescfs

2011-04-09 Thread Konstantin Belousov
Author: kib Date: Sat Apr 9 21:40:48 2011 New Revision: 220506 URL: http://svn.freebsd.org/changeset/base/220506 Log: Linuxolator calls VOP_READDIR with ncookies pointer. Implement a workaround for fdescfs to not panic when ncookies is not NULL, similar to the one committed as r152254, but

svn commit: r220526 - head/sys/kern

2011-04-10 Thread Konstantin Belousov
Author: kib Date: Sun Apr 10 17:07:02 2011 New Revision: 220526 URL: http://svn.freebsd.org/changeset/base/220526 Log: Some callers of proc_reparent() already have the parent process locked. Detect the situation and avoid process lock recursion. Reported by: Fabian Keil Modified: hea

svn commit: r220536 - in stable/8/sys: dev/ksyms kern sys

2011-04-11 Thread Konstantin Belousov
Author: kib Date: Mon Apr 11 08:25:25 2011 New Revision: 220536 URL: http://svn.freebsd.org/changeset/base/220536 Log: MFC r220100: Promote ksyms_map() and ksyms_unmap() to general facility copyout_map() and copyout_unmap() interfaces. MFC r220101: Handle zero length in copyout_unmap(

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