svn commit: r215864 - head/sys/crypto/via

2010-11-26 Thread Konstantin Belousov
Author: kib Date: Fri Nov 26 14:35:20 2010 New Revision: 215864 URL: http://svn.freebsd.org/changeset/base/215864 Log: MFaesni r215427: Only save FPU context when not executing in the context of the crypto thread. Tested by:Mike Tancsa MFC after:1 week Modified: head/sys/cr

svn commit: r215865 - in head/sys: amd64/amd64 amd64/ia32 amd64/include i386/i386 i386/include i386/isa pc98/pc98

2010-11-26 Thread Konstantin Belousov
Author: kib Date: Fri Nov 26 14:50:42 2010 New Revision: 215865 URL: http://svn.freebsd.org/changeset/base/215865 Log: Remove npxgetregs(), npxsetregs(), fpugetregs() and fpusetregs() functions, they are unused. Remove 'user' from npxgetuserregs() etc. names. For {npx,fpu}{get,set}regs(

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

2010-11-26 Thread Konstantin Belousov
Author: kib Date: Fri Nov 26 15:30:02 2010 New Revision: 215866 URL: http://svn.freebsd.org/changeset/base/215866 Log: MFC r215471: In vm_object_page_clean(), handle the pages that might be cached or not written by vm_pageout_flush(). MFC r215574: The runlen returned from vm_pageout_f

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

2010-11-26 Thread Konstantin Belousov
Author: kib Date: Fri Nov 26 15:33:09 2010 New Revision: 215867 URL: http://svn.freebsd.org/changeset/base/215867 Log: MFC r215469: Only increment object generation count when inserting the page into object page list. Modified: stable/8/sys/vm/vm_object.c stable/8/sys/vm/vm_page.c Direc

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

2010-11-27 Thread Konstantin Belousov
Author: kib Date: Sat Nov 27 15:41:44 2010 New Revision: 215942 URL: http://svn.freebsd.org/changeset/base/215942 Log: Remove DEBUG sections. MFC after:3 days Modified: head/sys/crypto/aesni/aesni_wrap.c Modified: head/sys/crypto/aesni/aesni_wrap.c ==

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

2010-11-28 Thread Konstantin Belousov
Author: kib Date: Sun Nov 28 17:56:34 2010 New Revision: 216012 URL: http://svn.freebsd.org/changeset/base/216012 Log: Calling fill_fpregs() for curthread is legitimate, and ELF coredump does this. Reported and tested by: pho MFC after:5 days Modified: head/sys/amd64/amd64/

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

2010-11-30 Thread Konstantin Belousov
Author: kib Date: Tue Nov 30 08:39:05 2010 New Revision: 216073 URL: http://svn.freebsd.org/changeset/base/216073 Log: MFC r215942: Remove DEBUG sections. Approved by: re (bz) Modified: stable/8/sys/crypto/aesni/aesni_wrap.c Directory Properties: stable/8/sys/ (props changed) st

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

2010-12-01 Thread Konstantin Belousov
Author: kib Date: Wed Dec 1 15:28:23 2010 New Revision: 216096 URL: http://svn.freebsd.org/changeset/base/216096 Log: MFC r215797: Allow shared-locked vnode to be passed to vunref(9). Approved by: re (bz) Modified: stable/8/sys/kern/vfs_subr.c Directory Properties: stable/8/sys/

svn commit: r216097 - stable/8/share/man/man9

2010-12-01 Thread Konstantin Belousov
Author: kib Date: Wed Dec 1 15:31:31 2010 New Revision: 216097 URL: http://svn.freebsd.org/changeset/base/216097 Log: MFC r215798: Remove the note about possible unlocking during vunref(9). Approved by: re (bz) Modified: stable/8/share/man/man9/vrele.9 Directory Properties: stable/

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

2010-12-01 Thread Konstantin Belousov
Author: kib Date: Wed Dec 1 21:19:11 2010 New Revision: 216099 URL: http://svn.freebsd.org/changeset/base/216099 Log: Journal start looks up .sujournal file by doing lookup on the root dvp. As result, failed softdep_mount() might leave up to two vnodes on the mp mountlist, preventing mnt_re

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

2010-12-01 Thread Konstantin Belousov
Author: kib Date: Thu Dec 2 00:49:02 2010 New Revision: 216102 URL: http://svn.freebsd.org/changeset/base/216102 Log: MFC r215838: Account i/o done on cdevs. Approved by: re (bz) Modified: stable/8/sys/kern/kern_physio.c Directory Properties: stable/8/sys/ (props changed) stabl

svn commit: r216120 - head/sys/fs/procfs

2010-12-02 Thread Konstantin Belousov
Author: kib Date: Thu Dec 2 12:44:51 2010 New Revision: 216120 URL: http://svn.freebsd.org/changeset/base/216120 Log: For non-stopped threads, td_frame pointer is undefined. As a consequence, fill_regs() and fill_fpregs() access random data, usually on the thread kernel stack. Most often t

svn commit: r216149 - head/sys/sys

2010-12-03 Thread Konstantin Belousov
Author: kib Date: Fri Dec 3 16:07:50 2010 New Revision: 216149 URL: http://svn.freebsd.org/changeset/base/216149 Log: Add SLIST_SWAP() macro. MFC after:1 week Modified: head/sys/sys/queue.h Modified: head/sys/sys/queue.h =

svn commit: r216150 - head/sys/kern

2010-12-03 Thread Konstantin Belousov
Author: kib Date: Fri Dec 3 16:15:44 2010 New Revision: 216150 URL: http://svn.freebsd.org/changeset/base/216150 Log: Reviewed by: jeff, rwatson MFC after:1 week Modified: head/sys/kern/uipc_usrreq.c Modified: head/sys/kern/uipc_usrreq.c ==

svn commit: r216151 - head/tools/regression/sockets/unix_gc

2010-12-03 Thread Konstantin Belousov
Author: kib Date: Fri Dec 3 16:17:53 2010 New Revision: 216151 URL: http://svn.freebsd.org/changeset/base/216151 Log: Extend the unix gc regression test to cover the case of r216150. Requested and reviewed by:rwatson MFC after:1 week Modified: head/tools/regression/sockets/uni

svn commit: r216155 - stable/8/sys/crypto/via

2010-12-03 Thread Konstantin Belousov
Author: kib Date: Fri Dec 3 16:40:47 2010 New Revision: 216155 URL: http://svn.freebsd.org/changeset/base/216155 Log: MFC r215864: MFaesni r215427: Only save FPU context when not executing in the context of the crypto thread. Approved by: re (bz) Modified: stable/8/sys/crypto/via

svn commit: r216158 - head/sys/kern

2010-12-03 Thread Konstantin Belousov
Author: kib Date: Fri Dec 3 20:39:06 2010 New Revision: 216158 URL: http://svn.freebsd.org/changeset/base/216158 Log: Trim whitespaces at the end of lines. Use the commit to record proper log message for r216150. MFC after:1 week If unix socket has a unix socket attached as the

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

2010-12-03 Thread Konstantin Belousov
Author: kib Date: Fri Dec 3 21:52:01 2010 New Revision: 216160 URL: http://svn.freebsd.org/changeset/base/216160 Log: MFC r216120: For /proc//{regs,fpregs} read access, require the thread to be in stopped state. Otherwise, return EBUSY as is done for write case. Approved by: re (bz)

svn commit: r216162 - in stable/8/sys: amd64/amd64 amd64/ia32 amd64/include i386/i386 i386/include i386/isa pc98/pc98

2010-12-03 Thread Konstantin Belousov
Author: kib Date: Fri Dec 3 22:07:07 2010 New Revision: 216162 URL: http://svn.freebsd.org/changeset/base/216162 Log: MFC r209463: Fix bugs on pc98, use npxgetuserregs() instead of npxgetregs() for get_fpcontext(), and npxsetuserregs() for set_fpcontext). Also, note that usercontext is no

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

2010-12-06 Thread Konstantin Belousov
Author: kib Date: Mon Dec 6 15:15:27 2010 New Revision: 216231 URL: http://svn.freebsd.org/changeset/base/216231 Log: Do not leak %rdx value in the previous image to the new image after execve(2). Note that ia32 binaries already handle this properly, since ia32_setregs() resets td_retval[1]

svn commit: r216253 - in head/sys/amd64: amd64 ia32 include linux32

2010-12-07 Thread Konstantin Belousov
Author: kib Date: Tue Dec 7 12:17:43 2010 New Revision: 216253 URL: http://svn.freebsd.org/changeset/base/216253 Log: Retire write-only PCB_FULLCTX pcb flag on amd64. Reminded by: Petr Salinger Tested by:pho MFC after:1 week Modified: head/sys/amd64/amd64/exception.S hea

svn commit: r216255 - in head/sys/amd64: amd64 linux32

2010-12-07 Thread Konstantin Belousov
Author: kib Date: Tue Dec 7 12:44:33 2010 New Revision: 216255 URL: http://svn.freebsd.org/changeset/base/216255 Log: Update some comments related to use of amd64 full context switch. In exec_linux_setregs(), use locally cached pointer to pcb to set pcb_full_iret. In set_regs(), note that

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

2010-12-10 Thread Konstantin Belousov
Author: kib Date: Fri Dec 10 10:37:53 2010 New Revision: 216352 URL: http://svn.freebsd.org/changeset/base/216352 Log: MFC r216149: Add SLIST_SWAP() macro. Approved by: re (bz) Modified: stable/8/sys/sys/queue.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/am

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

2010-12-10 Thread Konstantin Belousov
Author: kib Date: Fri Dec 10 10:48:54 2010 New Revision: 216353 URL: http://svn.freebsd.org/changeset/base/216353 Log: MFC r216150, r216158: If unix socket has a unix socket attached as the rights that has a unix socket attached as the rights that has a unix socket attached as the rights .

svn commit: r216354 - stable/8/tools/regression/sockets/unix_gc

2010-12-10 Thread Konstantin Belousov
Author: kib Date: Fri Dec 10 11:02:59 2010 New Revision: 216354 URL: http://svn.freebsd.org/changeset/base/216354 Log: MFC r216151: Extend the unix gc regression test to cover the case of r216150. Approved by:re (bz) Modified: stable/8/tools/regression/sockets/unix_gc/unix_gc.c Dir

svn commit: r216394 - in head/sys: amd64/amd64 i386/isa

2010-12-12 Thread Konstantin Belousov
Author: kib Date: Sun Dec 12 16:16:39 2010 New Revision: 216394 URL: http://svn.freebsd.org/changeset/base/216394 Log: In fpudna()/npxdna(), mark FPU context initialized and optionally mark user FPU context initialized, if current context is user context. It was reversed in r215865, by inade

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

2010-12-13 Thread Konstantin Belousov
Author: kib Date: Mon Dec 13 10:40:16 2010 New Revision: 216403 URL: http://svn.freebsd.org/changeset/base/216403 Log: MFC r216231: Do not leak %rdx value in the previous image to the new image after execve(2). Approved by: re (bz) Modified: stable/8/sys/amd64/amd64/machdep.c Direct

svn commit: r216453 - head/sbin/newfs

2010-12-15 Thread Konstantin Belousov
Author: kib Date: Wed Dec 15 12:45:28 2010 New Revision: 216453 URL: http://svn.freebsd.org/changeset/base/216453 Log: Add the missed 'p' flag to getopt() optstring argument. MFC after:1 week Modified: head/sbin/newfs/newfs.c Modified: head/sbin/newfs/newfs.c ===

svn commit: r216454 - head/sys/nfsserver

2010-12-15 Thread Konstantin Belousov
Author: kib Date: Wed Dec 15 12:46:53 2010 New Revision: 216454 URL: http://svn.freebsd.org/changeset/base/216454 Log: VOP_ISLOCKED() should not be used to determine if the vnode is locked. Explicitely track the locked status of the vnode. Reviewed by: pjd Tested by:avg MFC after

svn commit: r216455 - in stable/8/sys: amd64/amd64 i386/isa

2010-12-15 Thread Konstantin Belousov
Author: kib Date: Wed Dec 15 15:15:42 2010 New Revision: 216455 URL: http://svn.freebsd.org/changeset/base/216455 Log: MFC r216394: In fpudna()/npxdna(), mark FPU context initialized and optionally mark user FPU context initialized, if current context is user context. It was reversed in r2

svn commit: r216457 - in stable/8/sys/amd64: amd64 ia32 include linux32

2010-12-15 Thread Konstantin Belousov
Author: kib Date: Wed Dec 15 15:23:25 2010 New Revision: 216457 URL: http://svn.freebsd.org/changeset/base/216457 Log: MFC r216253: Retire write-only PCB_FULLCTX pcb flag on amd64. Approved by: re (bz) Modified: stable/8/sys/amd64/amd64/exception.S stable/8/sys/amd64/amd64/genassym.

svn commit: r216458 - in stable/8/sys/amd64: amd64 linux32

2010-12-15 Thread Konstantin Belousov
Author: kib Date: Wed Dec 15 15:25:56 2010 New Revision: 216458 URL: http://svn.freebsd.org/changeset/base/216458 Log: MFC r216255: Update some comments related to use of amd64 full context switch. In exec_linux_setregs(), use locally cached pointer to pcb to set pcb_full_iret. In set_re

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

2010-12-18 Thread Konstantin Belousov
Author: kib Date: Sat Dec 18 11:31:32 2010 New Revision: 216516 URL: http://svn.freebsd.org/changeset/base/216516 Log: In pmap_extract(), unlock pmap lock earlier. The calculation does not need the lock when operating on local variables. Reviewed by: alc Modified: head/sys/i386/i386/p

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

2010-12-18 Thread Konstantin Belousov
Author: kib Date: Sat Dec 18 16:41:11 2010 New Revision: 216524 URL: http://svn.freebsd.org/changeset/base/216524 Log: Inform a compiler which asm statements in the x86 implementation of atomics change eflags. Reviewed by: jhb MFC after:2 weeks Modified: head/sys/amd64/include/a

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

2010-12-19 Thread Konstantin Belousov
Author: kib Date: Sun Dec 19 21:18:33 2010 New Revision: 216572 URL: http://svn.freebsd.org/changeset/base/216572 Log: Restore the ABI of struct kinfo_proc32 after r213536. MFC after:3 days Modified: head/sys/compat/freebsd32/freebsd32.h Modified: head/sys/compat/freebsd32/freebsd32

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 clo

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 r

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

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) stable/7/sys/contrib/

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

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 w

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 from

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) s

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: head/lib/libc/s

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) stable/7

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 review

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 case

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/ (p

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 change

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 Modified:

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: r196977 - in stable/8/sys: . amd64/include/xen arm/arm cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci kern sys vm

2009-09-08 Thread Konstantin Belousov
Author: kib Date: Tue Sep 8 15:31:23 2009 New Revision: 196977 URL: http://svn.freebsd.org/changeset/base/196977 Log: MFC r196730: 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

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: stable/8/sys/sy

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 da

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 Reviewed by: jhb MFC

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 p

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. A

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. Modif

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 (kensm

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: stable/8/lib/libc/

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 changed)

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, caus

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 (ken

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 no

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 Modified

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

2009-09-23 Thread Konstantin Belousov
00 1970 (empty, because file is newly added) +++ head/sys/fs/procfs/procfs_osrel.c Wed Sep 23 12:08:08 2009 (r197428) @@ -0,0 +1,68 @@ +/*- + * Copyright (c) 2009 Konstantin Belousov + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modificatio

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: head/share/man/man5/procf

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) stable/8/sys/amd6

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) s

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 MFC after:1 week Modified: hea

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

2009-10-01 Thread Konstantin Belousov
Author: kib Date: Thu Oct 1 12:52:48 2009 New Revision: 197663 URL: http://svn.freebsd.org/changeset/base/197663 Log: As a workaround, for Intel CPUs, do not use CLFLUSH in pmap_invalidate_cache_range() when self-snoop is apparently not reported in cpu features. We get a reserved trap when

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

2009-10-04 Thread Konstantin Belousov
Author: kib Date: Sun Oct 4 12:11:44 2009 New Revision: 197742 URL: http://svn.freebsd.org/changeset/base/197742 Log: MFC r197660: Fix typo. Approved by: re (bz, kensmith) Modified: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cdd

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

2009-10-04 Thread Konstantin Belousov
Author: kib Date: Sun Oct 4 12:14:49 2009 New Revision: 197743 URL: http://svn.freebsd.org/changeset/base/197743 Log: MFC r197661: Move the annotation for vm_map_startup() immediately before the function. Approved by: re (bz, kensmith) Modified: stable/8/sys/ (props changed) stab

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

2009-10-04 Thread Konstantin Belousov
Author: kib Date: Sun Oct 4 12:20:59 2009 New Revision: 197744 URL: http://svn.freebsd.org/changeset/base/197744 Log: MFC r197663: As a workaround, for Intel CPUs, do not use CLFLUSH in pmap_invalidate_cache_range() when self-snoop is apparently not reported in cpu features. Approved

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

2009-10-04 Thread Konstantin Belousov
Author: kib Date: Sun Oct 4 13:00:27 2009 New Revision: 197745 URL: http://svn.freebsd.org/changeset/base/197745 Log: MFC r197660: Fix typo. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/kern/kern_sig.c Modified: stable/7/sys/kern/ke

svn commit: r197746 - in stable/7/sys: . contrib/pf vm

2009-10-04 Thread Konstantin Belousov
Author: kib Date: Sun Oct 4 13:03:07 2009 New Revision: 197746 URL: http://svn.freebsd.org/changeset/base/197746 Log: MFC r197661: Move the annotation for vm_map_startup() immediately before the function. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed

svn commit: r197830 - svnadmin/conf

2009-10-07 Thread Konstantin Belousov
Author: kib Date: Wed Oct 7 09:22:27 2009 New Revision: 197830 URL: http://svn.freebsd.org/changeset/base/197830 Log: Free Rick Macklem from mentorship. Discussed with: rwatson Approved by: core (implicit) Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors ===

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

2009-10-08 Thread Konstantin Belousov
Author: kib Date: Thu Oct 8 11:28:32 2009 New Revision: 197855 URL: http://svn.freebsd.org/changeset/base/197855 Log: MFC r197662: Do not dereference vp->v_mount without holding vnode lock and checking that the vnode is not reclaimed. Approved by: re (bz) Modified: stable/8/sys/

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

2009-10-08 Thread Konstantin Belousov
Author: kib Date: Thu Oct 8 11:42:24 2009 New Revision: 197857 URL: http://svn.freebsd.org/changeset/base/197857 Log: MFC r197662: Do not dereference vp->v_mount without holding vnode lock and checking that the vnode is not reclaimed. Modified: stable/7/sys/ (props changed) stable/7/

svn commit: r197930 - head/sys/kern

2009-10-10 Thread Konstantin Belousov
Author: kib Date: Sat Oct 10 14:56:34 2009 New Revision: 197930 URL: http://svn.freebsd.org/changeset/base/197930 Log: Postpone dropping fp till both kq_global and kqueue mutexes are unlocked. fdrop() closes file descriptor when reference count goes to zero. Close method for vnodes locks the

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

2009-10-10 Thread Konstantin Belousov
Author: kib Date: Sat Oct 10 15:27:10 2009 New Revision: 197931 URL: http://svn.freebsd.org/changeset/base/197931 Log: Calculate relocation base for the main object, and apply the relocation adjustment for all virtual addresses encoded into the ELF structures of it. PIE binary could and shou

svn commit: r197932 - head/sys/kern

2009-10-10 Thread Konstantin Belousov
Author: kib Date: Sat Oct 10 15:28:52 2009 New Revision: 197932 URL: http://svn.freebsd.org/changeset/base/197932 Log: Do not map segments of zero length. Discussed with: bz Reviewed by: kan Tested by:bz (i386, amd64), bsam (linux) MFC after:some time Modified: head/

svn commit: r197933 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include powerpc/include sparc64/include sun4v/include

2009-10-10 Thread Konstantin Belousov
Author: kib Date: Sat Oct 10 15:31:24 2009 New Revision: 197933 URL: http://svn.freebsd.org/changeset/base/197933 Log: Define architectural load bases for PIE binaries. Addresses were selected by looking at the bases used for non-relocatable executables by gnu ld(1), and adjusting it slightl

svn commit: r197934 - head/sys/kern

2009-10-10 Thread Konstantin Belousov
Author: kib Date: Sat Oct 10 15:33:01 2009 New Revision: 197934 URL: http://svn.freebsd.org/changeset/base/197934 Log: Map PIE binaries at non-zero base address. Discussed with: bz Reviewed by: kan Tested by:bz (i386, amd64), bsam (linux) MFC after:some time Modified:

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