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

2010-10-17 Thread Konstantin Belousov
Rabson +.\ Copyright (c) 2010 Konstantin Belousov k...@freebsd.org .\ .\ All rights reserved. .\ @@ -28,17 +29,23 @@ .\ .\ $FreeBSD$ .\ -.Dd July 24, 1996 +.Dd October 17, 2010 .Dt VRELE 9 .Os .Sh NAME -.Nm vrele +.Nm vput , +.Nm vrele , +.Nm vunref .Nd decrement the use count for a vnode

svn commit: r214026 - head/sys/nfsclient

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

svn commit: r214049 - head/sys/nfsserver

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

svn commit: r214556 - head/sys/kern

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

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

2010-11-03 Thread Konstantin Belousov
Author: kib Date: Wed Nov 3 09:23:08 2010 New Revision: 214728 URL: http://svn.freebsd.org/changeset/base/214728 Log: If dlopen() is called for the dso that has been already loaded as a dependency, then the dso never has its DAG initialized. Empty DAG makes ref_dag() call in dlopen() a

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

2010-11-04 Thread Konstantin Belousov
Author: kib Date: Thu Nov 4 09:19:14 2010 New Revision: 214776 URL: http://svn.freebsd.org/changeset/base/214776 Log: Fix style. MFC after:6 days Modified: head/libexec/rtld-elf/rtld.c Modified: head/libexec/rtld-elf/rtld.c

svn commit: r214851 - head/sys/nfsserver

2010-11-05 Thread Konstantin Belousov
Author: kib Date: Fri Nov 5 21:13:16 2010 New Revision: 214851 URL: http://svn.freebsd.org/changeset/base/214851 Log: Fix a bug in r214049. The nvp == vp case shall be handled specially only for !usevget case. If VFS_VGET is working, the vnode shared lock is obtained recursively and vput()

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

2010-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 11 11:26:59 2010 New Revision: 215112 URL: http://svn.freebsd.org/changeset/base/215112 Log: Fix typo. Function is called ffs_blkfree. Modified: head/sys/ufs/ffs/ffs_softdep.c Modified: head/sys/ufs/ffs/ffs_softdep.c

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

2010-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 11 11:35:42 2010 New Revision: 215113 URL: http://svn.freebsd.org/changeset/base/215113 Log: Add function lbn_offset to calculate offset of the indirect block of given level. Reviewed by: jeff Tested by:pho Modified: head/sys/ufs/ffs/ffs_inode.c

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

2010-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 11 11:38:57 2010 New Revision: 215114 URL: http://svn.freebsd.org/changeset/base/215114 Log: In journal_mount(), only set MNTK_SUJ flag after the jblocks are mapped. I believe there is a window otherwise where jblocks can be accessed without proper initialization.

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

2010-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 11 11:41:52 2010 New Revision: 215115 URL: http://svn.freebsd.org/changeset/base/215115 Log: Change #ifdef INVARIANTS panic into KASSERT, and print some useful information to diagnose the issue, in handle_complete_freeblocks(). Reviewed by: jeff Tested by:

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

2010-11-11 Thread Konstantin Belousov
Author: kib Date: Thu Nov 11 11:54:01 2010 New Revision: 215117 URL: http://svn.freebsd.org/changeset/base/215117 Log: The softdep_setup_freeblocks() adds worklist items before deallocate_dependencies() is done. This opens a race between softdep thread and the thread that does the

svn commit: r215238 - head/sys/net

2010-11-13 Thread Konstantin Belousov
Author: kib Date: Sat Nov 13 11:11:51 2010 New Revision: 215238 URL: http://svn.freebsd.org/changeset/base/215238 Log: Use 'z' modifier for size_t printing. Modified: head/sys/net/if_llatbl.c Modified: head/sys/net/if_llatbl.c

svn commit: r215248 - head/sbin/kldstat

2010-11-13 Thread Konstantin Belousov
Author: kib Date: Sat Nov 13 16:49:07 2010 New Revision: 215248 URL: http://svn.freebsd.org/changeset/base/215248 Log: In printfile(), exit the process instead of only printing the warning. This fixes verbose mode when either -i specified non-existent kldfile id, or the file was unloaded

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

2010-11-17 Thread Konstantin Belousov
Author: kib Date: Wed Nov 17 16:17:15 2010 New Revision: 215427 URL: http://svn.freebsd.org/changeset/base/215427 Log: Only save FPU context when not executing in the context of the crypto thread. Tested by:Mike Tancsa Modified: head/sys/crypto/aesni/aesni_wrap.c Modified:

svn commit: r215469 - head/sys/vm

2010-11-18 Thread Konstantin Belousov
Author: kib Date: Thu Nov 18 20:46:28 2010 New Revision: 215469 URL: http://svn.freebsd.org/changeset/base/215469 Log: Only increment object generation count when inserting the page into object page list. The only use of object generation count now is a restart of the scan in

svn commit: r215471 - head/sys/vm

2010-11-18 Thread Konstantin Belousov
Author: kib Date: Thu Nov 18 21:09:02 2010 New Revision: 215471 URL: http://svn.freebsd.org/changeset/base/215471 Log: vm_pageout_flush() might cache the pages that finished write to the backing storage. Such pages might be then reused, racing with the assert in

svn commit: r215548 - in head/sys: fs/cd9660 fs/coda fs/ext2fs fs/hpfs fs/msdosfs fs/nfsclient fs/ntfs gnu/fs/reiserfs kern nfsclient sys ufs/ufs

2010-11-19 Thread Konstantin Belousov
Author: kib Date: Fri Nov 19 21:17:34 2010 New Revision: 215548 URL: http://svn.freebsd.org/changeset/base/215548 Log: Remove prtactive variable and related printf()s in the vop_inactive and vop_reclaim() methods. They seems to be unused, and the reported situation is normal for the forced

svn commit: r215741 - head/sys/compat/ia32

2010-11-23 Thread Konstantin Belousov
Author: kib Date: Tue Nov 23 12:47:15 2010 New Revision: 215741 URL: http://svn.freebsd.org/changeset/base/215741 Log: Add include guards. MFC after:3 days Modified: head/sys/compat/ia32/ia32_signal.h head/sys/compat/ia32/ia32_util.h Modified: head/sys/compat/ia32/ia32_signal.h

svn commit: r215742 - head/sys/sys

2010-11-23 Thread Konstantin Belousov
Author: kib Date: Tue Nov 23 12:51:08 2010 New Revision: 215742 URL: http://svn.freebsd.org/changeset/base/215742 Log: Add PT_GNU_STACK definition. MFC after:3 days Modified: head/sys/sys/elf_common.h Modified: head/sys/sys/elf_common.h

svn commit: r215796 - head/sys/vm

2010-11-24 Thread Konstantin Belousov
Author: kib Date: Wed Nov 24 12:25:17 2010 New Revision: 215796 URL: http://svn.freebsd.org/changeset/base/215796 Log: After the sleep caused by encountering a busy page, relookup the page. Submitted and reviewed by:alc Reprted and tested by:pho MFC after:5 days

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

2010-11-24 Thread Konstantin Belousov
Author: kib Date: Wed Nov 24 12:34:25 2010 New Revision: 215798 URL: http://svn.freebsd.org/changeset/base/215798 Log: Remove the note about possible unlocking during vunref(9). It might only happen if VOP_INACTIVATE() drops the vnode lock, which is quite unreasonable behaviour for

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:

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

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

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:

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: 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 Petr.Salinger seznam cz Tested by:pho MFC after:1 week Modified:

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

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

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:

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:

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

2010-12-25 Thread Konstantin Belousov
Author: kib Date: Sat Dec 25 08:42:38 2010 New Revision: 216694 URL: http://svn.freebsd.org/changeset/base/216694 Log: Add a hook to pass debug flags to the build of rtld when doing make in the rtld directory. Reviewed by: kan Modified: head/libexec/rtld-elf/Makefile Modified:

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

2010-12-25 Thread Konstantin Belousov
Author: kib Date: Sat Dec 25 08:51:20 2010 New Revision: 216695 URL: http://svn.freebsd.org/changeset/base/216695 Log: Implement support for ELF filters in rtld. Both normal and auxillary filters are implemented. Filtees are loaded on demand, unless LD_LOADFLTR environment variable is

svn commit: r216733 - head/sys/kern

2010-12-27 Thread Konstantin Belousov
Author: kib Date: Mon Dec 27 12:06:38 2010 New Revision: 216733 URL: http://svn.freebsd.org/changeset/base/216733 Log: Teach ddb show mount about MNTK_SUJ flag. Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c

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

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 11:19:39 2010 New Revision: 216792 URL: http://svn.freebsd.org/changeset/base/216792 Log: Use a proper type for the variable holding the summary size of the inode data. Otherwise, on 32bit systems, unlinked inode which size is the multiple of 4GB was not

svn commit: r216793 - head/sys/dev/md

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 11:39:15 2010 New Revision: 216793 URL: http://svn.freebsd.org/changeset/base/216793 Log: Add sysctl vm.md_malloc_wait, non-zero value of which switches malloc-backed md(4) to using M_WAITOK malloc calls. M_NOWAITOK allocations may fail when enough memory

svn commit: r216794 - in head/sys: dev/md geom

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:11:07 2010 New Revision: 216794 URL: http://svn.freebsd.org/changeset/base/216794 Log: Add reporting of GEOM::candelete BIO_GETATTR for md(4) and geom_disk(4). Non-zero value of attribute means that device supports BIO_DELETE. Suggested and reviewed by:

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

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:16:06 2010 New Revision: 216795 URL: http://svn.freebsd.org/changeset/base/216795 Log: Move the definition of mkdirlisthd from header to C file. Reviewed by: mckusick Tested by:pho Modified: head/sys/ufs/ffs/ffs_softdep.c

svn commit: r216799 - head/sys/vm

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:53:53 2010 New Revision: 216799 URL: http://svn.freebsd.org/changeset/base/216799 Log: Move the increment of vm object generation count into vm_object_set_writeable_dirty(). Fix an issue where restart of the scan in vm_object_page_clean() did not removed

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

2010-12-30 Thread Konstantin Belousov
Author: kib Date: Thu Dec 30 10:41:17 2010 New Revision: 216817 URL: http://svn.freebsd.org/changeset/base/216817 Log: In indir_trunc(), when processing jnewblk entries that are not written to the disk, recurse to handle indirect blocks of next level that are hidden by the corresponding

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

2010-12-30 Thread Konstantin Belousov
Author: kib Date: Thu Dec 30 10:52:07 2010 New Revision: 216818 URL: http://svn.freebsd.org/changeset/base/216818 Log: Handle missing jremrefs when a directory is renamed overtop of another, deleting it. If the directory is removed, UFS always need to remove the .. ref, even if the

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

2011-01-04 Thread Konstantin Belousov
Author: kib Date: Tue Jan 4 10:25:55 2011 New Revision: 216951 URL: http://svn.freebsd.org/changeset/base/216951 Log: Instead of incrementing freework reference counter in indir_trunc(), do it at the allocation time for journaled fs and indirect blocks, when the allocated object is not

svn commit: r216952 - in head/sys: dev/pty dev/random geom kern

2011-01-04 Thread Konstantin Belousov
Author: kib Date: Tue Jan 4 10:59:38 2011 New Revision: 216952 URL: http://svn.freebsd.org/changeset/base/216952 Log: Finish r210923, 210926. Mark some devices as eternal. MFC after:2 weeks Modified: head/sys/dev/pty/pty.c head/sys/dev/random/randomdev.c

svn commit: r216955 - head/usr.sbin/rtprio

2011-01-04 Thread Konstantin Belousov
Author: kib Date: Tue Jan 4 14:13:09 2011 New Revision: 216955 URL: http://svn.freebsd.org/changeset/base/216955 Log: Make the parsing of the integer arguments for rtprio(1)/idprio(1) stricter. Style. Based on submission by: Eitan Adler lists eitanadler com, keramida Reviewed

svn commit: r216967 - head/usr.sbin/rtprio

2011-01-04 Thread Konstantin Belousov
Author: kib Date: Tue Jan 4 17:27:17 2011 New Revision: 216967 URL: http://svn.freebsd.org/changeset/base/216967 Log: Use errx() instead of err() in parseint. There is usually no interesting information in errno. Noted by: Garrett Cooper yanegomi gmail com MFC after:1 week

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

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:22:34 2011 New Revision: 217097 URL: http://svn.freebsd.org/changeset/base/217097 Log: Add AT_STACKPROT elf aux vector. Will be used to inform rtld about the initial stack protection set by the kernel image activator. Modified: head/sys/amd64/include/elf.h

svn commit: r217098 - head/contrib/gcc/config/i386

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:24:24 2011 New Revision: 217098 URL: http://svn.freebsd.org/changeset/base/217098 Log: Make gcc emit the .note.GNU-stack section into the assembler files. Reviewed by: kan Modified: head/contrib/gcc/config/i386/freebsd.h Modified:

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

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:28:54 2011 New Revision: 217099 URL: http://svn.freebsd.org/changeset/base/217099 Log: Emit .note.GNU-stack for the syscall stubs generated by libc. Modified: head/lib/libc/sys/Makefile.inc Modified: head/lib/libc/sys/Makefile.inc

svn commit: r217100 - head/share/mk

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:32:29 2011 New Revision: 217100 URL: http://svn.freebsd.org/changeset/base/217100 Log: Introduce make variable ACFLAGS used to supply additional flags to cc driver when compiling assembler source file that is preprocessed. Modified: head/share/mk/bsd.lib.mk

svn commit: r217101 - head/lib/libcompiler_rt

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:35:45 2011 New Revision: 217101 URL: http://svn.freebsd.org/changeset/base/217101 Log: On amd64 and i386, force assembler to mark objects compiled from the assembler source for libcompiler_rt as not needed executable stack. This is done with a hammer instead

svn commit: r217102 - head/lib/libcompiler_rt

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 15:59:23 2011 New Revision: 217102 URL: http://svn.freebsd.org/changeset/base/217102 Log: Fix braino in r217101. -Wa is used to supply assembler flag to cc driver. Noted by: Anonymous swell.k gmail com Modified: head/lib/libcompiler_rt/Makefile

svn commit: r217105 - in head/lib/csu: amd64 i386-elf

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:07:51 2011 New Revision: 217105 URL: http://svn.freebsd.org/changeset/base/217105 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/lib/csu/amd64/crti.S head/lib/csu/amd64/crtn.S head/lib/csu/i386-elf/crt1_s.S

svn commit: r217106 - in head/lib/libc: amd64/gen amd64/stdlib amd64/string amd64/sys i386/gen i386/stdlib i386/string i386/sys

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:08:40 2011 New Revision: 217106 URL: http://svn.freebsd.org/changeset/base/217106 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/lib/libc/amd64/gen/_setjmp.S head/lib/libc/amd64/gen/fabs.S

svn commit: r217107 - in head/lib/libthr/arch: amd64/amd64 i386/i386

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:09:33 2011 New Revision: 217107 URL: http://svn.freebsd.org/changeset/base/217107 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/lib/libthr/arch/amd64/amd64/_umtx_op_err.S

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

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 11:04:30 2011 New Revision: 217144 URL: http://svn.freebsd.org/changeset/base/217144 Log: Fix some style(9) issues. Do not use strlcpy() where simple assignment is enough. Noted by: bde (long time ago) MFC after:1 week Modified:

svn commit: r217151 - in head/sys: amd64/amd64 amd64/ia32 amd64/include compat/freebsd32 compat/ia32 kern sys

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 16:13:44 2011 New Revision: 217151 URL: http://svn.freebsd.org/changeset/base/217151 Log: Create shared (readonly) page. Each ABI may specify the use of page by setting SV_SHP flag and providing pointer to the vm object and mapping address. Provide simple

svn commit: r217152 - head/sys/kern

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 16:30:59 2011 New Revision: 217152 URL: http://svn.freebsd.org/changeset/base/217152 Log: In elf image activator, read and apply the stack protection mode from PT_GNU_STACK program header, if present and enabled. Two new sysctls are provided, kern.elf32.nxstack

svn commit: r217153 - in head: libexec/rtld-elf sys/sys

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 17:11:49 2011 New Revision: 217153 URL: http://svn.freebsd.org/changeset/base/217153 Log: In rtld, read the initial stack access mode from AT_STACKPROT as set by kernel, and parse PT_GNU_STACK phdr from linked and loaded dsos. If the loaded dso requires

svn commit: r217154 - head/lib/libc/gen

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 17:13:43 2011 New Revision: 217154 URL: http://svn.freebsd.org/changeset/base/217154 Log: Implement __pthread_map_stacks_exec() callback for libc, to change the stack protection to allow execution for single-threaded processes. Modified:

svn commit: r217160 - head/sys/kern

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 18:41:19 2011 New Revision: 217160 URL: http://svn.freebsd.org/changeset/base/217160 Log: Use the same expression to report stack protection mode for AT_STACKEXEC as the expression used by exec_new_vmspace(). Modified: head/sys/kern/imgact_elf.c Modified:

svn commit: r217191 - in head/lib/libthr: . thread

2011-01-09 Thread Konstantin Belousov
Author: kib Date: Sun Jan 9 12:38:40 2011 New Revision: 217191 URL: http://svn.freebsd.org/changeset/base/217191 Log: Implement the __pthread_map_stacks_exec() for libthr. Stack creation code is changed to call _rtld_get_stack_prot() to get the stack protection right. There is a race

svn commit: r217192 - in head: bin/ps sys/amd64/include sys/arm/include sys/i386/include sys/ia64/include sys/mips/include sys/powerpc/include sys/sparc64/include sys/sun4v/include sys/sys sys/vm

2011-01-09 Thread Konstantin Belousov
Author: kib Date: Sun Jan 9 12:50:44 2011 New Revision: 217192 URL: http://svn.freebsd.org/changeset/base/217192 Log: Move repeated MAXSLP definition from machine/vmparam.h to sys/vmmeter.h. Update the outdated comments describing MAXSLP and the process selection algorithm for swap out.

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

2011-01-10 Thread Konstantin Belousov
Author: kib Date: Mon Jan 10 16:09:35 2011 New Revision: 217223 URL: http://svn.freebsd.org/changeset/base/217223 Log: get_program_var_addr() must prefer the strong symbol to the weak one. Search global objects, together with main object and dependencies, for the requested symbol. Move

Re: svn commit: r238990 - in head/sys: net netinet netinet6

2012-08-22 Thread Konstantin Belousov
On Wed, Aug 22, 2012 at 02:17:05PM +0400, Gleb Smirnoff wrote: On Tue, Aug 21, 2012 at 12:50:14PM -0600, Kenneth D. Merry wrote: K On Thu, Aug 02, 2012 at 13:57:50 +, Gleb Smirnoff wrote: K Author: glebius K Date: Thu Aug 2 13:57:49 2012 K New Revision: 238990 K URL:

svn commit: r239588 - head/sys/kern

2012-08-22 Thread Konstantin Belousov
Author: kib Date: Wed Aug 22 20:05:34 2012 New Revision: 239588 URL: http://svn.freebsd.org/changeset/base/239588 Log: Provide some compat32 shims for sysctl vfs.conflist. It is required for getvfsbyname(3) operation when called from 32bit process, and getvfsbyname(3) is used by recent

Re: svn commit: r240060 - in head: include/rpc sys/rpc

2012-09-03 Thread Konstantin Belousov
On Sun, Sep 02, 2012 at 09:04:40PM +, Pedro F. Giffuni wrote: Author: pfg Date: Sun Sep 2 21:04:40 2012 New Revision: 240060 URL: http://svn.freebsd.org/changeset/base/240060 Log: Fix RPC headers for C++ C++ mangling will cause trouble with variables like __rpc_xdr in

Re: svn commit: r240060 - in head: include/rpc sys/rpc

2012-09-03 Thread Konstantin Belousov
On Mon, Sep 03, 2012 at 07:13:19AM -0700, Pedro Giffuni wrote: Hello, Sorry for the brevity but I can inly anser on a mobile device right now ... --- Lun 3/9/12, Konstantin Belousov kostik...@gmail.com ha scritto: Da: Konstantin Belousov kostik...@gmail.com Oggetto: Re: svn commit

Re: svn commit: r240067 - head/sys/kern

2012-09-03 Thread Konstantin Belousov
On Mon, Sep 03, 2012 at 09:09:08AM -0700, m...@freebsd.org wrote: On Mon, Sep 3, 2012 at 1:52 AM, Aleksandr Rybalko r...@freebsd.org wrote: Author: ray Date: Mon Sep 3 08:52:05 2012 New Revision: 240067 URL: http://svn.freebsd.org/changeset/base/240067 Log: Add kern.hintmode

svn commit: r240135 - in head/sys: amd64/conf conf dev/random i386/conf modules/random

2012-09-05 Thread Konstantin Belousov
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/random/ivy.c Wed Sep 5 13:18:51 2012(r240135) @@ -0,0 +1,117 @@ +/*- + * Copyright (c) 2012 Konstantin Belousov k...@freebsd.org + * All rights

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

2012-09-09 Thread Konstantin Belousov
Author: kib Date: Sun Sep 9 19:11:52 2012 New Revision: 240283 URL: http://svn.freebsd.org/changeset/base/240283 Log: Add MNTK_LOOKUP_EXCL_DOTDOT struct mount flag, which specifies to the lookup code that dotdot lookups shall override any shared lock requests with the exclusive one. The

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

2012-09-09 Thread Konstantin Belousov
Author: kib Date: Sun Sep 9 19:17:15 2012 New Revision: 240284 URL: http://svn.freebsd.org/changeset/base/240284 Log: Add a facility for vgone() to inform the set of subscribed mounts about vnode reclamation. Typical use is for the bypass mounts like nullfs to get a notification about

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

2012-09-09 Thread Konstantin Belousov
Author: kib Date: Sun Sep 9 19:20:23 2012 New Revision: 240285 URL: http://svn.freebsd.org/changeset/base/240285 Log: Allow shared lookups for nullfs mounts, if lower filesystem supports it. There are two problems which shall be addressed for shared lookups use to have measurable effect

Re: svn commit: r240135 - in head/sys: amd64/conf conf dev/random i386/conf modules/random

2012-09-11 Thread Konstantin Belousov
On Tue, Sep 11, 2012 at 01:53:45PM -0700, Arthur Mesh wrote: Funny, I've also implemented RdRand backing for /dev/random over the weekend, w/o being aware of kib@'s work. Oh well. One comment I have: IVY_RNG is potentially not the best name. RdRand will be available on future architectures,

svn commit: r240455 - in head/sys: amd64/conf conf dev/random i386/conf

2012-09-13 Thread Konstantin Belousov
Author: kib Date: Thu Sep 13 10:12:16 2012 New Revision: 240455 URL: http://svn.freebsd.org/changeset/base/240455 Log: Rename the IVY_RNG option to RDRAND_RNG. Based on submission by: Arthur Mesh arthurm...@gmail.com MFC after:2 weeks Modified: head/sys/amd64/conf/GENERIC

Re: svn commit: r240135 - in head/sys: amd64/conf conf dev/random i386/conf modules/random

2012-09-13 Thread Konstantin Belousov
On Wed, Sep 12, 2012 at 08:49:41AM -0700, Arthur Mesh wrote: On Wed, Sep 12, 2012 at 07:33:02AM +0300, Konstantin Belousov wrote: Can you submit the desired patch ? Sure, Index: sys/i386/conf/GENERIC ... This did not compile, since the files.{i386,amd64} missed the required changes

svn commit: r240464 - head/sys/fs/deadfs

2012-09-13 Thread Konstantin Belousov
Author: kib Date: Thu Sep 13 13:05:45 2012 New Revision: 240464 URL: http://svn.freebsd.org/changeset/base/240464 Log: The deadfs VOPs for vop_ioctl and vop_bmap call itself recursively, which is an elaborate way to cause kernel panic. Change the VOPs implementation to return EBADF for a

Re: svn commit: r240475 - in head/sys: dev/hwpmc kern

2012-09-13 Thread Konstantin Belousov
On Thu, Sep 13, 2012 at 10:26:22PM +, Attilio Rao wrote: Author: attilio Date: Thu Sep 13 22:26:22 2012 New Revision: 240475 URL: http://svn.freebsd.org/changeset/base/240475 Log: Remove all the checks on curthread != NULL with the exception of some MD trap checks (eg.

Re: svn commit: r240427 - head/sys/dev/virtio

2012-09-14 Thread Konstantin Belousov
On Fri, Sep 14, 2012 at 12:47:52AM -0500, Bryan Venteicher wrote: Hi - Original Message - From: John Baldwin j...@freebsd.org To: Bryan Venteicher bry...@daemoninthecloset.org Cc: svn-src-head@freebsd.org, svn-src-...@freebsd.org, src-committ...@freebsd.org, Peter Grehan

Re: svn commit: r240475 - in head/sys: dev/hwpmc kern

2012-09-14 Thread Konstantin Belousov
On Fri, Sep 14, 2012 at 01:03:13PM +0100, Attilio Rao wrote: On 9/14/12, Konstantin Belousov kostik...@gmail.com wrote: On Thu, Sep 13, 2012 at 10:26:22PM +, Attilio Rao wrote: Author: attilio Date: Thu Sep 13 22:26:22 2012 New Revision: 240475 URL: http://svn.freebsd.org/changeset

svn commit: r240546 - head/usr.bin/procstat

2012-09-15 Thread Konstantin Belousov
Author: kib Date: Sun Sep 16 05:52:54 2012 New Revision: 240546 URL: http://svn.freebsd.org/changeset/base/240546 Log: Handle AT_TIMEKEEP in procstat(1) -x [1]. Remove the AT_COUNT switch case, since AT_COUNT is not an aux vector, it is the counter of total number of defined vectors.

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

2012-09-18 Thread Konstantin Belousov
Author: kib Date: Wed Sep 19 05:11:25 2012 New Revision: 240686 URL: http://svn.freebsd.org/changeset/base/240686 Log: Do not reference z_nodeflib for !objgiven case, thus fixing LD_PRELOAD for a non-absolute path. PR: bin/171604 MFC after:3 days Modified:

svn commit: r240741 - head/sys/vm

2012-09-20 Thread Konstantin Belousov
Author: kib Date: Thu Sep 20 09:52:57 2012 New Revision: 240741 URL: http://svn.freebsd.org/changeset/base/240741 Log: Plug the accounting leak for the wired pages when msync(MS_INVALIDATE) is performed on the vnode mapping which is wired in other address space. While there, explicitely

svn commit: r240813 - head/sys/kern

2012-09-22 Thread Konstantin Belousov
Author: kib Date: Sat Sep 22 12:17:09 2012 New Revision: 240813 URL: http://svn.freebsd.org/changeset/base/240813 Log: Do not skip two elements of the tid_buffer when reusing the buffer slot. This eventually results in exhaustion of the tid space, causing new threads get tid -1 as

Re: svn commit: r240850 - head/lib/libstand

2012-09-23 Thread Konstantin Belousov
On Sun, Sep 23, 2012 at 08:38:06AM +, Kevin Lo wrote: Author: kevlo Date: Sun Sep 23 08:38:06 2012 New Revision: 240850 URL: http://svn.freebsd.org/changeset/base/240850 Log: Avoid NULL dereference Modified: head/lib/libstand/nfs.c Modified: head/lib/libstand/nfs.c

Re: Re: svn commit: r240850 - head/lib/libstand

2012-09-23 Thread Konstantin Belousov
On Mon, Sep 24, 2012 at 10:06:03AM +0800, Kevin Lo wrote: On 2012/09/24 03:27, Garrett Cooper wrote: On Sun, Sep 23, 2012 at 3:52 AM, Konstantin Belousov kostik...@gmail.com wrote: On Sun, Sep 23, 2012 at 08:38:06AM +, Kevin Lo wrote: Author: kevlo Date: Sun Sep 23 08:38:06 2012

Re: svn commit: r240850 - head/lib/libstand

2012-09-24 Thread Konstantin Belousov
On Mon, Sep 24, 2012 at 09:47:45AM +0100, David Chisnall wrote: On 23 Sep 2012, at 20:27, Garrett Cooper wrote: +1. free(3) should silently ignore NULL parameters passed into it. Indeed. The C standard's description for free() states that: If ptr is a null pointer, no action

Re: svn commit: r240938 - head/sys/net

2012-09-25 Thread Konstantin Belousov
On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: Author: emaste Date: Tue Sep 25 22:10:14 2012 New Revision: 240938 URL: http://svn.freebsd.org/changeset/base/240938 Log: Avoid INVARIANTS panic destroying an in-use tap(4) The requirement (implied by the KASSERT in

svn commit: r240951 - head/sys/kern

2012-09-26 Thread Konstantin Belousov
Author: kib Date: Wed Sep 26 09:25:11 2012 New Revision: 240951 URL: http://svn.freebsd.org/changeset/base/240951 Log: Make the updates of the tid ring buffer' head and tail pointers explicit by moving them into separate statements from the buffer element accesses. Requested by: jhb

Re: svn commit: r240938 - head/sys/net

2012-09-26 Thread Konstantin Belousov
On Wed, Sep 26, 2012 at 08:48:03AM -0400, Ed Maste wrote: On 26 September 2012 00:52, Konstantin Belousov kostik...@gmail.com wrote: On Tue, Sep 25, 2012 at 10:10:14PM +, Ed Maste wrote: Author: emaste Date: Tue Sep 25 22:10:14 2012 New Revision: 240938 URL: http://svn.freebsd.org

svn commit: r241025 - in head/sys: compat/linux fs/coda fs/nfsserver kern nfsserver vm

2012-09-28 Thread Konstantin Belousov
Author: kib Date: Fri Sep 28 11:25:02 2012 New Revision: 241025 URL: http://svn.freebsd.org/changeset/base/241025 Log: Fix the mis-handling of the VV_TEXT on the nullfs vnodes. If you have a binary on a filesystem which is also mounted over by nullfs, you could execute the binary from

svn commit: r241092 - head

2012-10-01 Thread Konstantin Belousov
Author: kib Date: Mon Oct 1 10:46:35 2012 New Revision: 241092 URL: http://svn.freebsd.org/changeset/base/241092 Log: Add the UPDATING note about padlock rng support requiring the config change. Requested by: Dewayne Geraghty dewayne.gerag...@heuristicsystems.com.au MFC after:3 days

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

2012-10-08 Thread Konstantin Belousov
Author: kib Date: Mon Oct 8 18:33:08 2012 New Revision: 241356 URL: http://svn.freebsd.org/changeset/base/241356 Log: Add several asserts to i386 pmap, which mostly state that pv entry shall have corresponding pte. Reviewed by: alc Tested by:pho MFC after:3 days Modified:

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

2012-10-14 Thread Konstantin Belousov
Author: kib Date: Sun Oct 14 17:07:34 2012 New Revision: 241548 URL: http://svn.freebsd.org/changeset/base/241548 Log: Replace the XXX comment with the proper description. MFC after:1 week Modified: head/sys/fs/nullfs/null_vnops.c Modified: head/sys/fs/nullfs/null_vnops.c

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

2012-10-14 Thread Konstantin Belousov
Author: kib Date: Sun Oct 14 18:13:33 2012 New Revision: 241554 URL: http://svn.freebsd.org/changeset/base/241554 Log: Grammar fixes. Submitted by: bf MFC after:1 week Modified: head/sys/fs/nullfs/null_vnops.c Modified: head/sys/fs/nullfs/null_vnops.c

Re: svn commit: r241546 - head/sys/contrib/ipfilter/netinet

2012-10-15 Thread Konstantin Belousov
On Mon, Oct 15, 2012 at 06:36:58PM +0400, Gleb Smirnoff wrote: On Mon, Oct 15, 2012 at 08:34:09AM -0400, John Baldwin wrote: J On Sunday, October 14, 2012 11:03:07 am Gleb Smirnoff wrote: J Author: glebius J Date: Sun Oct 14 15:03:06 2012 J New Revision: 241546 J URL:

  1   2   3   4   5   6   7   8   9   10   >