svn commit: r194586 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs kern sys

2009-06-21 Thread Konstantin Belousov
Author: kib Date: Sun Jun 21 13:41:32 2009 New Revision: 194586 URL: http://svn.freebsd.org/changeset/base/194586 Log: Add another flags argument to vn_open_cred. Use it to specify that some vn_open_cred invocations shall not audit namei path. In particular, specify VN_OPEN_NOAUDIT for

svn commit: r194617 - head/sys/cddl/compat/opensolaris/kern

2009-06-22 Thread Konstantin Belousov
Author: kib Date: Mon Jun 22 10:08:48 2009 New Revision: 194617 URL: http://svn.freebsd.org/changeset/base/194617 Log: O_NOFOLLOW shall be in flags, not in cmode. Noted by: bde Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_kobj.c Modified:

svn commit: r194618 - head/sys/sys

2009-06-22 Thread Konstantin Belousov
Author: kib Date: Mon Jun 22 10:11:35 2009 New Revision: 194618 URL: http://svn.freebsd.org/changeset/base/194618 Log: Move definitions of AT_* constants from the middle of the open(2) flags enumeration. Noted by: bde Modified: head/sys/sys/fcntl.h Modified: head/sys/sys/fcntl.h

svn commit: r194691 - in stable/7/sys: . contrib/pf kern

2009-06-23 Thread Konstantin Belousov
Author: kib Date: Tue Jun 23 10:37:28 2009 New Revision: 194691 URL: http://svn.freebsd.org/changeset/base/194691 Log: MFC r185358 (by ganbold): Remove unused variable. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/kern/kern_lockf.c

svn commit: r194692 - in stable/7/sys: . contrib/pf kern

2009-06-23 Thread Konstantin Belousov
Author: kib Date: Tue Jun 23 10:41:38 2009 New Revision: 194692 URL: http://svn.freebsd.org/changeset/base/194692 Log: MFC r192681: Replace the while statement with the if for clarity. The loop body cannot be executed more then once. Modified: stable/7/sys/ (props changed)

svn commit: r194693 - in stable/7/sys: . contrib/pf kern

2009-06-23 Thread Konstantin Belousov
Author: kib Date: Tue Jun 23 10:47:42 2009 New Revision: 194693 URL: http://svn.freebsd.org/changeset/base/194693 Log: MFC r192683: In lf_advlockasync(), recheck for doomed vnode after the state-ls_lock is acquired. In the lf_purgelocks(), assert that vnode is doomed and set *statep to

svn commit: r194694 - in stable/7/sys: . contrib/pf kern

2009-06-23 Thread Konstantin Belousov
Author: kib Date: Tue Jun 23 10:49:55 2009 New Revision: 194694 URL: http://svn.freebsd.org/changeset/base/194694 Log: MFC r192684: In lf_purgelocks(), assert that state-ls_pending is empty after we weeded out threads, and clean ls_active instead of ls_pending. Modified: stable/7/sys/

svn commit: r194695 - in stable/7/sys: . contrib/pf kern sys

2009-06-23 Thread Konstantin Belousov
Author: kib Date: Tue Jun 23 10:55:21 2009 New Revision: 194695 URL: http://svn.freebsd.org/changeset/base/194695 Log: MFC r192685: The advisory lock may be activated or activated and removed during the sleep waiting for conditions when the lock may be granted. To prevent lf_setlock()

svn commit: r194696 - in stable/7/sys: . contrib/pf gnu/fs/ext2fs kern ufs/ufs

2009-06-23 Thread Konstantin Belousov
Author: kib Date: Tue Jun 23 10:59:59 2009 New Revision: 194696 URL: http://svn.freebsd.org/changeset/base/194696 Log: MFC r194296: Do not use casts (int *)0 and (struct thread *)0 for the arguments of vn_rdwr, use NULL. Modified: stable/7/sys/ (props changed)

svn commit: r194766 - in head/sys: dev/md fs/procfs fs/tmpfs kern security/mac_biba security/mac_lomac sys vm

2009-06-23 Thread Konstantin Belousov
Author: kib Date: Tue Jun 23 20:45:22 2009 New Revision: 194766 URL: http://svn.freebsd.org/changeset/base/194766 Log: Implement global and per-uid accounting of the anonymous memory. Add rlimit RLIMIT_SWAP that limits the amount of swap that may be reserved for the uid. The accounting

svn commit: r194767 - in head: bin/sh contrib/tcsh etc lib/libc/sys lib/libutil share/man/man7 share/man/man9 usr.bin/limits

2009-06-23 Thread Konstantin Belousov
Author: kib Date: Tue Jun 23 20:57:27 2009 New Revision: 194767 URL: http://svn.freebsd.org/changeset/base/194767 Log: Usermode portion of the support for swap allocation accounting: - update for getrlimit(2) manpage; - support for setting RLIMIT_SWAP in login class; - addition to the

svn commit: r194814 - head/sys/vm

2009-06-24 Thread Konstantin Belousov
Author: kib Date: Wed Jun 24 09:26:33 2009 New Revision: 194814 URL: http://svn.freebsd.org/changeset/base/194814 Log: Initialize the uip to silence gcc warning that seems to sneak in in some build environments. Reported by: alc, bf1783 at googlemail com Modified:

svn commit: r194815 - in stable/7/sys: . contrib/pf fs/cd9660 fs/devfs fs/pseudofs

2009-06-24 Thread Konstantin Belousov
Author: kib Date: Wed Jun 24 09:42:18 2009 New Revision: 194815 URL: http://svn.freebsd.org/changeset/base/194815 Log: MFC r193919: Lock the vnode in cd9660, devfs and pseudofs implementation of VOP_IOCTL to prevent reclaim, since the vnode is passed unlocked to the VOP. MFC r193930:

svn commit: r194816 - in stable/7/sys: . contrib/pf fs/fifofs

2009-06-24 Thread Konstantin Belousov
Author: kib Date: Wed Jun 24 09:45:10 2009 New Revision: 194816 URL: http://svn.freebsd.org/changeset/base/194816 Log: MFC r193922: Remove unused VOP_IOCTL and VOP_KQFILTER implementations for fifofs. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed)

svn commit: r194817 - in stable/7/sys: . contrib/pf fs/cd9660 fs/fifofs fs/msdosfs gnu/fs/xfs/FreeBSD kern

2009-06-24 Thread Konstantin Belousov
Author: kib Date: Wed Jun 24 09:54:05 2009 New Revision: 194817 URL: http://svn.freebsd.org/changeset/base/194817 Log: MFC r193923: s/a_fdidx/a_fp/ for VOP_OPEN comments that inline struct vop_open_args definition. MFC r193924: Fix r193923 by noting that type of a_fp is struct file

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

2009-06-24 Thread Konstantin Belousov
Author: kib Date: Wed Jun 24 16:52:30 2009 New Revision: 194858 URL: http://svn.freebsd.org/changeset/base/194858 Log: Unbreak sparc64 after the swap accounting changes: mark kernel_map entries allocated for translations in pmap_init() as MAP_NOFAULT. This prevents vm_map_insert from trying

svn commit: r194990 - in head/sys: cam/scsi dev/iscsi/initiator dev/sound/midi dev/speaker fs/coda fs/pseudofs net sys vm

2009-06-25 Thread Konstantin Belousov
Author: kib Date: Thu Jun 25 18:46:30 2009 New Revision: 194990 URL: http://svn.freebsd.org/changeset/base/194990 Log: Change the type of uio_resid member of struct uio from int to ssize_t. Note that this does not actually enable full-range i/o requests for 64 architectures, and is done now

svn commit: r194993 - head/sys/kern

2009-06-25 Thread Konstantin Belousov
Author: kib Date: Thu Jun 25 18:54:56 2009 New Revision: 194993 URL: http://svn.freebsd.org/changeset/base/194993 Log: In lf_iteratelocks_vnode, increment state-ls_threads around iterating of the vnode advisory lock list. This prevents deallocation of state while inside the loop.

svn commit: r195131 - head/sys/vm

2009-06-28 Thread Konstantin Belousov
Author: kib Date: Sun Jun 28 08:42:17 2009 New Revision: 195131 URL: http://svn.freebsd.org/changeset/base/195131 Log: Eliminiate code duplication by calling vm_object_destroy() from vm_object_collapse(). Requested and reviewed by:alc Approved by: re (kensmith) Modified:

svn commit: r195166 - head/sys/kern

2009-06-29 Thread Konstantin Belousov
Author: kib Date: Mon Jun 29 18:09:07 2009 New Revision: 195166 URL: http://svn.freebsd.org/changeset/base/195166 Log: Free struct ucreds allocated in vfs_hang_addrlist() when deleting the export element. While there, remove register storage-class specifiers. Reported and tested by:

svn commit: r195172 - in head/lib/libc: gen sys

2009-06-29 Thread Konstantin Belousov
Author: kib Date: Mon Jun 29 18:54:17 2009 New Revision: 195172 URL: http://svn.freebsd.org/changeset/base/195172 Log: Make the structure definitions in the man pages match the real code, and remove no longer valid caution. Approved by: re (kensmith) Modified:

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

2009-06-30 Thread Konstantin Belousov
Author: kib Date: Tue Jun 30 10:07:00 2009 New Revision: 195186 URL: http://svn.freebsd.org/changeset/base/195186 Log: Softdep_fsync() may need to lock parent directory of the synced vnode. Use inlined (due to FFSV_FORCEINSMQ) version of vn_vget_ino() to prevent mountpoint from being

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

2009-06-30 Thread Konstantin Belousov
Author: kib Date: Tue Jun 30 10:07:33 2009 New Revision: 195187 URL: http://svn.freebsd.org/changeset/base/195187 Log: For SU mounts, softdep_fsync() might drop vnode lock, allowing other threads to put dirty buffers on the vnode bufobj list. For regular files and synchronous fsync

svn commit: r195294 - in head/sys: fs/cd9660 kern nfsclient ufs/ffs

2009-07-02 Thread Konstantin Belousov
Author: kib Date: Thu Jul 2 18:02:55 2009 New Revision: 195294 URL: http://svn.freebsd.org/changeset/base/195294 Log: In vn_vget_ino() and their inline equivalents, mnt_ref() the mount point around the sequence that drop vnode lock and then busies the mount point. Not having vlocked node

svn commit: r195509 - head/sys/kern

2009-07-09 Thread Konstantin Belousov
Author: kib Date: Thu Jul 9 18:54:38 2009 New Revision: 195509 URL: http://svn.freebsd.org/changeset/base/195509 Log: The control terminal revocation at the session leader exit does not correctly checks for reclaimed vnode, possibly calling VOP_REVOKE for such vnode. If the terminal is

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

2009-07-10 Thread Konstantin Belousov
Author: kib Date: Fri Jul 10 10:29:16 2009 New Revision: 195535 URL: http://svn.freebsd.org/changeset/base/195535 Log: When amd64 CPU cannot load segment descriptor during trap return to usermode, it generates GPF, that is mirrored to user mode as SIGSEGV. The offending register in mcontext

svn commit: r195635 - head/sys/vm

2009-07-12 Thread Konstantin Belousov
Author: kib Date: Sun Jul 12 12:37:38 2009 New Revision: 195635 URL: http://svn.freebsd.org/changeset/base/195635 Log: When VM_MAP_WIRE_HOLESOK is not specified and vm_map_wire(9) encounters non-readable and non-executable map entry, the entry is skipped from wiring and loop is aborted.

svn commit: r195636 - in head/tools/regression/poll: . 4 7 l m n

2009-07-12 Thread Konstantin Belousov
Author: kib Date: Sun Jul 12 12:50:43 2009 New Revision: 195636 URL: http://svn.freebsd.org/changeset/base/195636 Log: Test suite for the poll(2)/select(2) on fifos, pipes and sockets, and recorded results for several operating systems. Submitted by: bde Approved by: re (kensmith)

svn commit: r195700 - head/sys/kern

2009-07-14 Thread Konstantin Belousov
Author: kib Date: Tue Jul 14 22:50:41 2009 New Revision: 195700 URL: http://svn.freebsd.org/changeset/base/195700 Log: When wakeup(9) is going to notify swapper, assert that wait channel is not equal to proc0. It shall be not, since proc0 stack is not swappable, and kick_proc0() is

svn commit: r195701 - head/sys/kern

2009-07-14 Thread Konstantin Belousov
Author: kib Date: Tue Jul 14 22:51:31 2009 New Revision: 195701 URL: http://svn.freebsd.org/changeset/base/195701 Log: Move the repeated code to calculate the number of the threads in the process that still need to be suspended or exited from thread_single into the new function

svn commit: r195702 - in head/sys: cddl/compat/opensolaris/sys kern sys

2009-07-14 Thread Konstantin Belousov
Author: kib Date: Tue Jul 14 22:52:46 2009 New Revision: 195702 URL: http://svn.freebsd.org/changeset/base/195702 Log: Add new msleep(9) flag PBDY that shall be specified together with PCATCH, to indicate that thread shall not be stopped upon receipt of SIGSTOP until it reaches the

svn commit: r195703 - in head/sys: nfsclient rpc

2009-07-14 Thread Konstantin Belousov
Author: kib Date: Tue Jul 14 22:54:29 2009 New Revision: 195703 URL: http://svn.freebsd.org/changeset/base/195703 Log: Use PBDRY flag for msleep(9) in NFS and NLM when sleeping thread owns kernel resources that block other threads, like vnode locks. The SIGSTOP sent to such thread (process,

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

2009-07-17 Thread Konstantin Belousov
Author: kib Date: Fri Jul 17 19:32:04 2009 New Revision: 195743 URL: http://svn.freebsd.org/changeset/base/195743 Log: Only perform .bss mapping and cleaning operations when segment file size is not equal to its memory size. This eliminates unneeded clearing of the text segment that

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

2009-07-17 Thread Konstantin Belousov
Author: kib Date: Fri Jul 17 19:45:42 2009 New Revision: 195745 URL: http://svn.freebsd.org/changeset/base/195745 Log: Implement RTLD_NOLOAD flag for dlopen(3). Requested and tested by: jkim Reviewed by: kan Approved by: re (kensmith) Modified: head/include/dlfcn.h

svn commit: r195773 - head/sys/kern

2009-07-19 Thread Konstantin Belousov
Author: kib Date: Sun Jul 19 20:25:59 2009 New Revision: 195773 URL: http://svn.freebsd.org/changeset/base/195773 Log: When buffer write is failed, it is wrong for brelse() to invalidate portion of the page that was written. Among other problems, this page might be picked up by pagedaemon,

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

2009-07-22 Thread Konstantin Belousov
Author: kib Date: Wed Jul 22 14:32:38 2009 New Revision: 195820 URL: http://svn.freebsd.org/changeset/base/195820 Log: When the page caching attributes are changed, after new mapping is established, OS shall flush the caches on all processors that may have used the mapping previously. This

svn commit: r195878 - head/tools/regression/poll

2009-07-25 Thread Konstantin Belousov
Author: kib Date: Sat Jul 25 21:07:56 2009 New Revision: 195878 URL: http://svn.freebsd.org/changeset/base/195878 Log: Fix syntax error, makefile comments start with #. Submitted by: bde Approved by: re (kensmith) Modified: head/tools/regression/poll/Makefile Modified:

svn commit: r195896 - head

2009-07-26 Thread Konstantin Belousov
Author: kib Date: Sun Jul 26 20:12:06 2009 New Revision: 195896 URL: http://svn.freebsd.org/changeset/base/195896 Log: Note that COMPAT_43 requires COMPAT_FREEBSD7 too. Submitted by: Steve Kargl Approved by: re (kensmith) Modified: head/UPDATING Modified: head/UPDATING

svn commit: r195940 - in head/sys/i386: i386 include

2009-07-29 Thread Konstantin Belousov
Author: kib Date: Wed Jul 29 08:49:58 2009 New Revision: 195940 URL: http://svn.freebsd.org/changeset/base/195940 Log: As was done in r195820 for amd64, use clflush for flushing cache lines when memory page caching attributes changed, and CPU does not support self-snoop, but implemented

svn commit: r195949 - head/sys/i386/xen

2009-07-29 Thread Konstantin Belousov
Author: kib Date: Wed Jul 29 19:38:33 2009 New Revision: 195949 URL: http://svn.freebsd.org/changeset/base/195949 Log: Fix XEN build breakage, by implementing pmap_invalidate_cache_range() and using it when appropriate. Merge analogue of the r195836 optimization to XEN. Approved by:

svn commit: r196087 - in stable/7/sys: . contrib/pf kern

2009-08-09 Thread Konstantin Belousov
Author: kib Date: Sun Aug 9 11:47:39 2009 New Revision: 196087 URL: http://svn.freebsd.org/changeset/base/196087 Log: MFC r195773: When buffer write is failed, it is wrong for brelse() to invalidate portion of the page that was written. Among other problems, this page might be picked up

svn commit: r196203 - head/sys/kern

2009-08-14 Thread Konstantin Belousov
Author: kib Date: Fri Aug 14 10:57:28 2009 New Revision: 196203 URL: http://svn.freebsd.org/changeset/base/196203 Log: Correctly handle unlock for !MAKEENTRY case, after successfull attempt of lock upgrade cache shall be unlocked from write. Reported by: Lucius Windschuh lwindschuh

svn commit: r196204 - head/sys/sys

2009-08-14 Thread Konstantin Belousov
Author: kib Date: Fri Aug 14 10:57:57 2009 New Revision: 196204 URL: http://svn.freebsd.org/changeset/base/196204 Log: Add the address of the lock to the KTR_LOCK trace. Tested by:pho Approved by: re (rwatson) Modified: head/sys/sys/lock.h Modified: head/sys/sys/lock.h

svn commit: r196205 - head/sys/nfsclient

2009-08-14 Thread Konstantin Belousov
Author: kib Date: Fri Aug 14 10:59:17 2009 New Revision: 196205 URL: http://svn.freebsd.org/changeset/base/196205 Log: In nfs_upgrade_vnlock(), assert that the vnode is locked. It is for all pathes, as far as I see and testing seems to confirm it. Comparision of old_lock with LK_SHARED make

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

2009-08-14 Thread Konstantin Belousov
Author: kib Date: Fri Aug 14 11:00:38 2009 New Revision: 196206 URL: http://svn.freebsd.org/changeset/base/196206 Log: When a UFS node is truncated to the zero length, e.g. by explicit truncate(2) call, or by being removed or truncated on open, either new softupdate freeblks structure is

svn commit: r196207 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/ata dev/cxgb dev/sound/usb dev/usb dev/usb/controller dev/usb/input dev/usb/mis...

2009-08-14 Thread Konstantin Belousov
Author: kib Date: Fri Aug 14 11:06:58 2009 New Revision: 196207 URL: http://svn.freebsd.org/changeset/base/196207 Log: MFC r196203: Correctly handle unlock for !MAKEENTRY case. Approved by: re (rwatson) Modified: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/

svn commit: r196208 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/ata dev/cxgb dev/sound/usb dev/usb dev/usb/controller dev/usb/input dev/usb/mis...

2009-08-14 Thread Konstantin Belousov
Author: kib Date: Fri Aug 14 11:13:06 2009 New Revision: 196208 URL: http://svn.freebsd.org/changeset/base/196208 Log: MFC r196204: Add the address of the lock to the KTR_LOCK trace. Approved by: re (rwatson) Modified: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/

svn commit: r196209 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/ata dev/cxgb dev/sound/usb dev/usb dev/usb/controller dev/usb/input dev/usb/mis...

2009-08-14 Thread Konstantin Belousov
Author: kib Date: Fri Aug 14 11:17:34 2009 New Revision: 196209 URL: http://svn.freebsd.org/changeset/base/196209 Log: MFC r196205: In nfs_upgrade_vnlock(), assert that the vnode is locked. When downgrading, pass LK_RETRY to the vn_lock(), since otherwise vn_lock() unlocks the doomed

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

2009-08-17 Thread Konstantin Belousov
Author: kib Date: Mon Aug 17 13:27:55 2009 New Revision: 196318 URL: http://svn.freebsd.org/changeset/base/196318 Log: Correct a critical accounting error in pmap_demote_pde(). Specifically, when pmap_demote_pde() allocates a page table page to implement a user-space demotion, it must

svn commit: r196319 - in stable/8/sys: . amd64/amd64 amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/ata dev/cxgb dev/mfi dev/xen/netfront dev/xen/xenpci modules/dtrace...

2009-08-17 Thread Konstantin Belousov
Author: kib Date: Mon Aug 17 13:32:56 2009 New Revision: 196319 URL: http://svn.freebsd.org/changeset/base/196319 Log: MFC r196318: Correct accounting error when allocating a a page table page to implement a user-space demotion. Approved by: re (rwatson) Modified: stable/8/sys/

svn commit: r196460 - head/sys/kern

2009-08-23 Thread Konstantin Belousov
Author: kib Date: Sun Aug 23 12:44:15 2009 New Revision: 196460 URL: http://svn.freebsd.org/changeset/base/196460 Log: Fix the conformance of poll(2) for sockets after r195423 by returning POLLHUP instead of POLLIN for several cases. Now, the tools/regression/poll results for FreeBSD are

svn commit: r196560 - head/sys/kern

2009-08-26 Thread Konstantin Belousov
Author: kib Date: Wed Aug 26 14:32:37 2009 New Revision: 196560 URL: http://svn.freebsd.org/changeset/base/196560 Log: Honor the vfs.timestamp_precision sysctl settings for utimes(path, NULL) and similar calls. Obtained from:Petr Salinger, Debian GNU/kFreeBSD, Debian bug #489894

svn commit: r196640 - in head/sys: arm/arm kern sys vm

2009-08-29 Thread Konstantin Belousov
Author: kib Date: Sat Aug 29 13:28:02 2009 New Revision: 196640 URL: http://svn.freebsd.org/changeset/base/196640 Log: Remove the altkstacks, instead instantiate threads with kernel stack allocated with the right size from the start. For the thread that has kernel stack cached, verify that

svn commit: r196644 - head/sys/kern

2009-08-29 Thread Konstantin Belousov
Author: kib Date: Sat Aug 29 18:01:02 2009 New Revision: 196644 URL: http://svn.freebsd.org/changeset/base/196644 Log: Dispose the kernel stack of the proper thread. Submitted by: alc MFC after:1 week Modified: head/sys/kern/kern_fork.c Modified: head/sys/kern/kern_fork.c

svn commit: r196648 - in head/sys: arm/arm kern sys vm

2009-08-29 Thread Konstantin Belousov
Author: kib Date: Sat Aug 29 21:53:08 2009 New Revision: 196648 URL: http://svn.freebsd.org/changeset/base/196648 Log: Reverse r196640 and r196644 for now. Modified: head/sys/arm/arm/vm_machdep.c head/sys/kern/kern_fork.c head/sys/kern/kern_kthread.c head/sys/kern/kern_proc.c

svn commit: r196688 - in stable/7/sys: . contrib/pf kern

2009-08-31 Thread Konstantin Belousov
Author: kib Date: Mon Aug 31 09:20:37 2009 New Revision: 196688 URL: http://svn.freebsd.org/changeset/base/196688 Log: MFC r196560: Honor the vfs.timestamp_precision sysctl settings for utimes(path, NULL) and similar calls. Modified: stable/7/sys/ (props changed)

svn commit: r196689 - head/sys/fs/pseudofs

2009-08-31 Thread Konstantin Belousov
Author: kib Date: Mon Aug 31 09:26:04 2009 New Revision: 196689 URL: http://svn.freebsd.org/changeset/base/196689 Log: Remove spurious pfs_unlock(). PR: kern/137310 Reviewed by: des MFC after:3 days Modified: head/sys/fs/pseudofs/pseudofs_vnops.c Modified:

svn commit: r196687 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci kern

2009-08-31 Thread Konstantin Belousov
Author: kib Date: Mon Aug 31 09:08:14 2009 New Revision: 196687 URL: http://svn.freebsd.org/changeset/base/196687 Log: MFC r196560: Honor the vfs.timestamp_precision sysctl settings for utimes(path, NULL) and similar calls. Approved by: re (rwatson) Modified: stable/8/sys/ (props

svn commit: r196692 - head/sys/kern

2009-08-31 Thread Konstantin Belousov
Author: kib Date: Mon Aug 31 10:20:52 2009 New Revision: 196692 URL: http://svn.freebsd.org/changeset/base/196692 Log: Make the mnt_writeopcount and mnt_secondary_writes counters, used by the suspension code, not greater then mnt_ref reference counter value. Increment mnt_ref together with

svn commit: r196730 - in head/sys: arm/arm kern sys vm

2009-09-01 Thread Konstantin Belousov
Author: kib Date: Tue Sep 1 11:41:51 2009 New Revision: 196730 URL: http://svn.freebsd.org/changeset/base/196730 Log: Reintroduce the r196640, after fixing the problem with my testing. Remove the altkstacks, instead instantiate threads with kernel stack allocated with the right size

svn commit: r196733 - head/sys/kern

2009-09-01 Thread Konstantin Belousov
Author: kib Date: Tue Sep 1 12:05:39 2009 New Revision: 196733 URL: http://svn.freebsd.org/changeset/base/196733 Log: Fix mount reference leak when V_XSLEEP is specified to vn_start_write(). Submitted by: tegge Modified: head/sys/kern/vfs_vnops.c Modified: head/sys/kern/vfs_vnops.c

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

2009-09-04 Thread Konstantin Belousov
Author: kib Date: Fri Sep 4 14:53:12 2009 New Revision: 196829 URL: http://svn.freebsd.org/changeset/base/196829 Log: Add missing ';'. Modified: head/sys/i386/i386/machdep.c Modified: head/sys/i386/i386/machdep.c

svn commit: r196859 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci fs/pseudofs

2009-09-05 Thread Konstantin Belousov
Author: kib Date: Sat Sep 5 13:10:54 2009 New Revision: 196859 URL: http://svn.freebsd.org/changeset/base/196859 Log: MFC r196689: Remove spurious pfs_unlock(). Approved by: re (rwatson) Modified: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed)

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

2009-09-05 Thread Konstantin Belousov
Author: kib Date: Sat Sep 5 13:32:05 2009 New Revision: 196861 URL: http://svn.freebsd.org/changeset/base/196861 Log: Handle zero size for posix_memalign. Return NULL or unique address according to the 'V' option. PR: standards/138307 MFC after:1 week Modified:

svn commit: r196860 - in stable/7/sys: . contrib/pf fs/pseudofs

2009-09-05 Thread Konstantin Belousov
Author: kib Date: Sat Sep 5 13:31:16 2009 New Revision: 196860 URL: http://svn.freebsd.org/changeset/base/196860 Log: MFC r196689: Remove spurious pfs_unlock(). Approved by: re (rwatson) Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed)

svn commit: r196887 - head/sys/kern

2009-09-06 Thread Konstantin Belousov
Author: kib Date: Sun Sep 6 11:44:46 2009 New Revision: 196887 URL: http://svn.freebsd.org/changeset/base/196887 Log: In fhopen, vfs_ref() the mount point while vnode is unlocked, to prevent vn_start_write(NULL, mp) from operating on potentially freed or reused struct mount *. Remove

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

2009-09-06 Thread Konstantin Belousov
Author: kib Date: Sun Sep 6 11:46:51 2009 New Revision: 196888 URL: http://svn.freebsd.org/changeset/base/196888 Log: The clear_remove() and clear_inodedeps() call vn_start_write(NULL, mp, V_NOWAIT) on the non-busied mount point. Unmount might free ufs-specific mp data, causing ffs_vgetf()

svn commit: r196894 - stable/7/sys/vm

2009-09-06 Thread Konstantin Belousov
Author: kib Date: Sun Sep 6 15:23:03 2009 New Revision: 196894 URL: http://svn.freebsd.org/changeset/base/196894 Log: Partial MFC of r194459 by thompsa, without merge recording, to allow the vm_phys_paddr_to_vm_page(9) to return NULL instead of panicking when supplied physical address does

svn commit: r196920 - in head/sys: fs/pseudofs ufs/ffs

2009-09-07 Thread Konstantin Belousov
Author: kib Date: Mon Sep 7 11:55:34 2009 New Revision: 196920 URL: http://svn.freebsd.org/changeset/base/196920 Log: insmntque_stddtr() clears vp-v_data and resets vp-v_op to dead_vnodeops before calling vgone(). Revert r189706 and corresponding part of the r186560. Noted and

svn commit: r196921 - head/sys/fs/pseudofs

2009-09-07 Thread Konstantin Belousov
Author: kib Date: Mon Sep 7 12:10:41 2009 New Revision: 196921 URL: http://svn.freebsd.org/changeset/base/196921 Log: If a race is detected, pfs_vncache_alloc() may reclaim a vnode that had never been inserted into the pfs_vncache list. Since pfs_vncache_free() does not anticipate this

svn commit: r196922 - in stable/7/sys: . contrib/pf net ufs/ffs

2009-09-07 Thread Konstantin Belousov
Author: kib Date: Mon Sep 7 12:39:54 2009 New Revision: 196922 URL: http://svn.freebsd.org/changeset/base/196922 Log: MFC r196206. Take the number of allocated freeblks into consideration for softdep_slowdown(). Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/

svn commit: r196925 - in stable/6/sys: . conf contrib/pf dev/cxgb ufs/ffs

2009-09-07 Thread Konstantin Belousov
Author: kib Date: Mon Sep 7 13:58:26 2009 New Revision: 196925 URL: http://svn.freebsd.org/changeset/base/196925 Log: MFC r196206. Take the number of allocated freeblks into consideration for softdep_slowdown(). Tested by:pluknet gmail com Modified: stable/6/sys/ (props

svn commit: r196966 - head/sys/cddl/compat/opensolaris/kern

2009-09-08 Thread Konstantin Belousov
Author: kib Date: Tue Sep 8 09:17:34 2009 New Revision: 196966 URL: http://svn.freebsd.org/changeset/base/196966 Log: Lock Giant around vn_open_cred(). Remove innocent unnecessary call to NDFREE(). Reported by: marcel Reviewed and tested by: pjd MFC after:3 days

svn commit: r196974 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci kern

2009-09-08 Thread Konstantin Belousov
Author: kib Date: Tue Sep 8 14:43:42 2009 New Revision: 196974 URL: http://svn.freebsd.org/changeset/base/196974 Log: MFC r196692: Make the mnt_writeopcount and mnt_secondary_writes counters, used by the suspension code, not greater then mnt_ref reference counter value. MFC r196733:

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

2009-09-09 Thread Konstantin Belousov
Author: kib Date: Wed Sep 9 10:31:09 2009 New Revision: 197028 URL: http://svn.freebsd.org/changeset/base/197028 Log: Use traditional td_unusedX names for the padding members. Suggested by: julian Approved by: re (kensmith) Modified: stable/8/sys/sys/proc.h Modified:

svn commit: r197030 - head/sys/kern

2009-09-09 Thread Konstantin Belousov
Author: kib Date: Wed Sep 9 10:51:50 2009 New Revision: 197030 URL: http://svn.freebsd.org/changeset/base/197030 Log: In vfs_mark_atime(9), be resistent against reclaimed vnodes. Assert that neccessary locks are taken, since vop might not be called. Tested by:pho MFC after:3

svn commit: r197031 - head/sys/kern

2009-09-09 Thread Konstantin Belousov
Author: kib Date: Wed Sep 9 10:52:36 2009 New Revision: 197031 URL: http://svn.freebsd.org/changeset/base/197031 Log: Unlock the image vnode around the call of pmc PMC_FN_PROCESS_EXEC hook. The hook calls vn_fullpath(9), that should not be executed with a vnode lock held. Reported by:

svn commit: r197041 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci kern

2009-09-09 Thread Konstantin Belousov
Author: kib Date: Wed Sep 9 13:28:18 2009 New Revision: 197041 URL: http://svn.freebsd.org/changeset/base/197041 Log: MFC r196887: In fhopen, vfs_ref() the mount point while vnode is unlocked, to prevent vn_start_write(NULL, mp) from operating on potentially freed or reused struct mount

svn commit: r197046 - head/sys/i386/xen

2009-09-09 Thread Konstantin Belousov
Author: kib Date: Wed Sep 9 19:40:54 2009 New Revision: 197046 URL: http://svn.freebsd.org/changeset/base/197046 Log: As was done in r196643 for i386 and amd64, swap the start/end virtual addresses in pmap_invalidate_cache_range(). Reported by: Vincent Hoffman vince unsane co uk

svn commit: r197049 - in head/sys: compat/freebsd32 compat/linux kern sys

2009-09-09 Thread Konstantin Belousov
Author: kib Date: Wed Sep 9 20:59:01 2009 New Revision: 197049 URL: http://svn.freebsd.org/changeset/base/197049 Log: kern_select(9) copies fd_set in and out of userspace in quantities of longs. Since 32bit processes longs are 4 bytes, 64bit kernel may copy in or out 4 bytes more then the

svn commit: r197060 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci fs/pseudofs kern ufs/ffs

2009-09-10 Thread Konstantin Belousov
Author: kib Date: Thu Sep 10 12:42:36 2009 New Revision: 197060 URL: http://svn.freebsd.org/changeset/base/197060 Log: MFC r196920: insmntque_stddtr() clears vp-v_data and resets vp-v_op to dead_vnodeops before calling vgone(). Revert r189706 and corresponding part of the r186560.

svn commit: r197063 - in stable/7/sys: . contrib/pf fs/pseudofs net ufs/ffs

2009-09-10 Thread Konstantin Belousov
Author: kib Date: Thu Sep 10 13:01:23 2009 New Revision: 197063 URL: http://svn.freebsd.org/changeset/base/197063 Log: MFC r196920: insmntque_stddtr() clears vp-v_data and resets vp-v_op to dead_vnodeops before calling vgone(). Revert r189706 and corresponding part of the r186560.

svn commit: r197087 - in stable/8/sys: . amd64/include/xen cddl/compat/opensolaris/kern cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci

2009-09-11 Thread Konstantin Belousov
Author: kib Date: Fri Sep 11 12:56:13 2009 New Revision: 197087 URL: http://svn.freebsd.org/changeset/base/197087 Log: MFC r196966: Lock Giant around vn_open_cred(). Remove innocent unnecessary call to NDFREE(). Approved by: re (kensmith) Modified: stable/8/sys/ (props changed)

svn commit: r197123 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci kern

2009-09-12 Thread Konstantin Belousov
Author: kib Date: Sat Sep 12 18:02:57 2009 New Revision: 197123 URL: http://svn.freebsd.org/changeset/base/197123 Log: MFC r197030: In vfs_mark_atime(9), be resistent against reclaimed vnodes. Assert that neccessary locks are taken, since vop might not be called. Approved by: re

svn commit: r197124 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci kern

2009-09-12 Thread Konstantin Belousov
Author: kib Date: Sat Sep 12 18:05:57 2009 New Revision: 197124 URL: http://svn.freebsd.org/changeset/base/197124 Log: MFC r197031: Unlock the image vnode around the call of pmc PMC_FN_PROCESS_EXEC hook. The hook calls vn_fullpath(9), that should not be executed with a vnode lock held.

svn commit: r197126 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci i386/xen

2009-09-12 Thread Konstantin Belousov
Author: kib Date: Sat Sep 12 18:11:48 2009 New Revision: 197126 URL: http://svn.freebsd.org/changeset/base/197126 Log: MFC r197046: As was done in r196643 for i386 and amd64, swap the start/end virtual addresses in pmap_invalidate_cache_range(). Approved by: re (kensmith) Modified:

svn commit: r197127 - in stable/8/lib/libc: . stdio stdlib stdtime string

2009-09-12 Thread Konstantin Belousov
Author: kib Date: Sat Sep 12 18:16:46 2009 New Revision: 197127 URL: http://svn.freebsd.org/changeset/base/197127 Log: MFC r196861: Handle zero size for posix_memalign. Return NULL or unique address according to the 'V' option. Approved by: re (kensmith) Modified:

svn commit: r197188 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/coretemp dev/xen/xenpci fs/pseudofs

2009-09-14 Thread Konstantin Belousov
Author: kib Date: Mon Sep 14 11:01:15 2009 New Revision: 197188 URL: http://svn.freebsd.org/changeset/base/197188 Log: MFC r196921: Do not decrement pfs_vncache_entries for the vnode that was not in the pfs_vncache list. Approved by: re (bz) Modified: stable/8/sys/ (props

svn commit: r197222 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci ufs/ffs

2009-09-15 Thread Konstantin Belousov
Author: kib Date: Tue Sep 15 12:51:22 2009 New Revision: 197222 URL: http://svn.freebsd.org/changeset/base/197222 Log: MFC r196888: The clear_remove() and clear_inodedeps() call vn_start_write(NULL, mp, V_NOWAIT) on the non-busied mount point. Unmount might free ufs-specific mp data,

svn commit: r197255 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris compat/freebsd32 compat/linux contrib/dev/acpica contrib/pf dev/xen/xenpci kern sys

2009-09-16 Thread Konstantin Belousov
Author: kib Date: Wed Sep 16 13:24:37 2009 New Revision: 197255 URL: http://svn.freebsd.org/changeset/base/197255 Log: MFC r197049: Calculate the amount of bytes to copy for select filedescriptor masks taking into account size of fd_set for the current process ABI. Approved by: re

svn commit: r197348 - head/sys/vm

2009-09-20 Thread Konstantin Belousov
Author: kib Date: Sun Sep 20 12:40:56 2009 New Revision: 197348 URL: http://svn.freebsd.org/changeset/base/197348 Log: Old (a.out) rtld attempts to mmap zero-length region, e.g. when bss of the linked object is zero-length. More old code assumes that mmap of zero length returns success.

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

2009-09-21 Thread Konstantin Belousov
Author: kib Date: Mon Sep 21 09:41:51 2009 New Revision: 197389 URL: http://svn.freebsd.org/changeset/base/197389 Log: If CPU happens to be in usermode when a T_RESERVED trap occured, then trapsignal is called with ksi.ksi_signo = 0. For debugging kernels, that should end up in panic, for

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

2009-09-21 Thread Konstantin Belousov
Author: kib Date: Mon Sep 21 13:09:56 2009 New Revision: 197390 URL: http://svn.freebsd.org/changeset/base/197390 Log: Remove forward_roundrobin(), it is unused for quite some time. Reviewed by: jhb MFC after:1 week Modified: head/sys/kern/subr_smp.c head/sys/sys/smp.h

svn commit: r197428 - in head/sys: conf fs/procfs modules/procfs

2009-09-23 Thread Konstantin Belousov
@@ +/*- + * Copyright (c) 2009 Konstantin Belousov + * All rights reserved. + * + * 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 must retain the above

svn commit: r197429 - head/share/man/man5

2009-09-23 Thread Konstantin Belousov
Author: kib Date: Wed Sep 23 12:10:13 2009 New Revision: 197429 URL: http://svn.freebsd.org/changeset/base/197429 Log: Document osrel node for procfs. Approved by: des (procfs maintainer) MFC after:3 weeks Modified: head/share/man/man5/procfs.5 Modified:

svn commit: r197431 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci vm

2009-09-23 Thread Konstantin Belousov
Author: kib Date: Wed Sep 23 13:49:41 2009 New Revision: 197431 URL: http://svn.freebsd.org/changeset/base/197431 Log: MFC r197348: For a.out and pre-8 ELF binaries, allow the mmap of zero length. Approved by: re (kensmith) Modified: stable/8/sys/ (props changed)

svn commit: r197576 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci kern sys

2009-09-28 Thread Konstantin Belousov
Author: kib Date: Mon Sep 28 11:31:21 2009 New Revision: 197576 URL: http://svn.freebsd.org/changeset/base/197576 Log: MFC r197390: Remove forward_roundrobin(). Approved by: re (kensmith) Modified: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed)

svn commit: r197660 - head/sys/kern

2009-10-01 Thread Konstantin Belousov
Author: kib Date: Thu Oct 1 12:46:58 2009 New Revision: 197660 URL: http://svn.freebsd.org/changeset/base/197660 Log: Fix typo. MFC after:3 days Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c

svn commit: r197661 - head/sys/vm

2009-10-01 Thread Konstantin Belousov
Author: kib Date: Thu Oct 1 12:48:35 2009 New Revision: 197661 URL: http://svn.freebsd.org/changeset/base/197661 Log: Move the annotation for vm_map_startup() immediately before the function. MFC after:3 days Modified: head/sys/vm/vm_map.c Modified: head/sys/vm/vm_map.c

svn commit: r197662 - head/sys/kern

2009-10-01 Thread Konstantin Belousov
Author: kib Date: Thu Oct 1 12:50:26 2009 New Revision: 197662 URL: http://svn.freebsd.org/changeset/base/197662 Log: Do not dereference vp-v_mount without holding vnode lock and checking that the vnode is not reclaimed. Noted by: Igor Sysoev is rambler-co ru MFC after:1 week

  1   2   3   4   5   6   7   8   9   10   >