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: 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: 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: 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: 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: 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: head/l

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 s

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 truncate

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 coul

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 head/sys/ufs/ffs/softdep.

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

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:25:28 2010 New Revision: 216796 URL: http://svn.freebsd.org/changeset/base/216796 Log: Add kernel side support for BIO_DELETE/TRIM on UFS. The FS_TRIM fs flag indicates that administrator requested issuing of TRIM commands for the volume. UFS will only send

svn commit: r216798 - in head/sbin: dumpfs newfs tunefs

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:31:18 2010 New Revision: 216798 URL: http://svn.freebsd.org/changeset/base/216798 Log: Add support for FS_TRIM to user-mode UFS utilities. Reviewed by: mckusick, pjd, pho Tested by:pho MFC after:1 month Modified: head/sbin/dumpfs/dumpfs.c he

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: r216810 - in head/sys: kern vm

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 22:26:49 2010 New Revision: 216810 URL: http://svn.freebsd.org/changeset/base/216810 Log: Remove OBJ_CLEANING flag. The vfs_setdirty_locked_object() is the only consumer of the flag, and it used the flag because OBJ_MIGHTBEDIRTY was cleared early in vm_object_pag

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 entr

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 ultimate

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 acce

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 head/sys/geom/geom_ctl.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 , keramida Reviewed by: jhb, keramida MF

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 MFC after:1 week Modified: head/usr.

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: head/contrib/gcc/config

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 o

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 Modified: head/lib/libcompiler_rt/Makefile Modified: head/lib/libcomp

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

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:07:05 2011 New Revision: 217103 URL: http://svn.freebsd.org/changeset/base/217103 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/libexec/rtld-elf/amd64/rtld_start.S head/libexec/rtld-elf/i386/rtld_start.S Modified:

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

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 head/lib/libc/amd64/gen/m

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 head/lib/libthr/arch/i386/i386/_umtx_op_err.

svn commit: r217108 - in head/lib/msun: amd64 i387

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:13:12 2011 New Revision: 217108 URL: http://svn.freebsd.org/changeset/base/217108 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/lib/msun/amd64/e_remainder.S head/lib/msun/amd64/e_remainderf.S head/lib/msun/amd64/e

svn commit: r217143 - head/lib/libc/net

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 10:56:58 2011 New Revision: 217143 URL: http://svn.freebsd.org/changeset/base/217143 Log: Fix struct FILE * leak on error (in disabled by default hesiod support code). Submitted by: henning petersen PR: 153756 MFC after:1 week Modified: head/lib/li

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

svn commit: r217150 - head/sys/kern

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 16:02:14 2011 New Revision: 217150 URL: http://svn.freebsd.org/changeset/base/217150 Log: Collect code to translate between vm_prot_t and p_flags into helper functions. MFC after:1 week Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgac

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 allocat

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 a

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 execut

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

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

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 whe

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

svn commit: r217224 - head/lib/libthr/thread

2011-01-10 Thread Konstantin Belousov
Author: kib Date: Mon Jan 10 16:10:25 2011 New Revision: 217224 URL: http://svn.freebsd.org/changeset/base/217224 Log: For the process that already loaded libthr but still not initialized threading, fall back to libc method of performing __pthread_map_stacks_exec() job. Reported and tes

svn commit: r217383 - head/lib/csu/i386-elf

2011-01-13 Thread Konstantin Belousov
Author: kib Date: Thu Jan 13 23:00:22 2011 New Revision: 217383 URL: http://svn.freebsd.org/changeset/base/217383 Log: The (%esp & 0xf) == 0 should be true before the call instruction is executed, for the properly aligned stack. Reported and tested by: rstone Pointy hat to:

svn commit: r217393 - head/lib/libcompiler_rt

2011-01-14 Thread Konstantin Belousov
Author: kib Date: Fri Jan 14 11:23:39 2011 New Revision: 217393 URL: http://svn.freebsd.org/changeset/base/217393 Log: Mark libcompiler_rt as not needed executable stack on powerpc. Reviewed and tested by: nwhitehorn Modified: head/lib/libcompiler_rt/Makefile Modified: head/lib/li

svn commit: r217394 - head/contrib/binutils/ld

2011-01-14 Thread Konstantin Belousov
Author: kib Date: Fri Jan 14 11:25:11 2011 New Revision: 217394 URL: http://svn.freebsd.org/changeset/base/217394 Log: Add a workaround for the warnings and sometimes errors due to missed forward-declaration. Reviewed by: dim Modified: head/contrib/binutils/ld/ldemul.h Modified: head

svn commit: r217395 - head/contrib/binutils/ld/emultempl

2011-01-14 Thread Konstantin Belousov
Author: kib Date: Fri Jan 14 11:28:34 2011 New Revision: 217395 URL: http://svn.freebsd.org/changeset/base/217395 Log: On PowerPC64, linker emits a fake object into each linked object, 'linker stubs'. Add .note.GNU-stack for the stubs objects. Without this, final binary will have RWE mode fo

svn commit: r217396 - head/contrib/gcc/config/rs6000

2011-01-14 Thread Konstantin Belousov
Author: kib Date: Fri Jan 14 11:31:22 2011 New Revision: 217396 URL: http://svn.freebsd.org/changeset/base/217396 Log: Configure gcc to emit .note.GNU-stack for both 32 and 64 bits PowerPC. Mark gcc-provided asm files as not requiring executable stack. It seems that non-FreeBSD ABIs for p

svn commit: r217397 - in head/libexec/rtld-elf: powerpc powerpc64

2011-01-14 Thread Konstantin Belousov
Author: kib Date: Fri Jan 14 11:32:31 2011 New Revision: 217397 URL: http://svn.freebsd.org/changeset/base/217397 Log: Mark rtld on PowerPC as not requiring executable stack. Reviewed and tested by: nwhitehorn Modified: head/libexec/rtld-elf/powerpc/rtld_start.S head/libexec/rtld

svn commit: r217398 - in head/lib/libc: powerpc/gen powerpc/sys powerpc64/gen powerpc64/sys

2011-01-14 Thread Konstantin Belousov
Author: kib Date: Fri Jan 14 11:33:40 2011 New Revision: 217398 URL: http://svn.freebsd.org/changeset/base/217398 Log: Mark assembler sources from libc as working with non-executable stack. Reviewed and tested by: nwhitehorn Modified: head/lib/libc/powerpc/gen/_ctx_start.S head/l

svn commit: r217399 - in head/lib/csu: powerpc powerpc64

2011-01-14 Thread Konstantin Belousov
Author: kib Date: Fri Jan 14 11:34:58 2011 New Revision: 217399 URL: http://svn.freebsd.org/changeset/base/217399 Log: Mark csu on PowerPC as not requiring executable stack. Reviewed and tested by: nwhitehorn Modified: head/lib/csu/powerpc/crti.S head/lib/csu/powerpc/crtn.S hea

svn commit: r217400 - in head/sys/powerpc: include powerpc

2011-01-14 Thread Konstantin Belousov
Author: kib Date: Fri Jan 14 11:36:44 2011 New Revision: 217400 URL: http://svn.freebsd.org/changeset/base/217400 Log: Enable shared page for the signal trampolines on PowerPC. Reviewed and tested by: nwhitehorn Modified: head/sys/powerpc/include/vmparam.h head/sys/powerpc/powerp

svn commit: r217463 - head/sys/vm

2011-01-15 Thread Konstantin Belousov
Author: kib Date: Sat Jan 15 21:56:38 2011 New Revision: 217463 URL: http://svn.freebsd.org/changeset/base/217463 Log: For consistency, use kernel_object instead of &kernel_object_store when initializing the object mutex. Do the same for kmem_object. Discussed with: alc MFC after:

svn commit: r217561 - in head/sys: arm/arm i386/i386 mips/mips powerpc/aim powerpc/booke sparc64/sparc64

2011-01-18 Thread Konstantin Belousov
Author: kib Date: Tue Jan 18 21:57:02 2011 New Revision: 217561 URL: http://svn.freebsd.org/changeset/base/217561 Log: For architectures not using direct map , and requiring real KVA page for sf buf allocation, use wakeup() instead of wakeup_one() to notify sf buffer waiters about free buffe

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

2011-01-18 Thread Konstantin Belousov
Author: kib Date: Tue Jan 18 22:56:10 2011 New Revision: 217563 URL: http://svn.freebsd.org/changeset/base/217563 Log: Use malloc(9) instead of kmem_alloc(9) for temporal copy of the user-supplied descriptor array. Noted and reviewed by:jhb (previous version) MFC after:1 wee

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

2011-01-18 Thread Konstantin Belousov
Author: kib Date: Tue Jan 18 23:00:22 2011 New Revision: 217564 URL: http://svn.freebsd.org/changeset/base/217564 Log: Make the length of the LDT a loader tunable, machdep.max_ldt_segment, and export it with read-only sysctl. Remove unused defines. Reviewed by: jhb (previous version) M

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

2011-01-19 Thread Konstantin Belousov
Author: kib Date: Wed Jan 19 12:19:25 2011 New Revision: 217578 URL: http://svn.freebsd.org/changeset/base/217578 Log: In linuxolator getdents_common(), it seems there is no reason to loop if no records where returned by VOP_READDIR(). Readdir implementations allowed to return 0 records when

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

2011-01-19 Thread Konstantin Belousov
Author: kib Date: Wed Jan 19 16:48:07 2011 New Revision: 217583 URL: http://svn.freebsd.org/changeset/base/217583 Log: Add missed (). Noted by: alc MFC after:3 days Modified: head/sys/dev/md/md.c Modified: head/sys/dev/md/md.c ==

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

2011-01-19 Thread Konstantin Belousov
Author: kib Date: Wed Jan 19 21:35:48 2011 New Revision: 217604 URL: http://svn.freebsd.org/changeset/base/217604 Log: Use CTLFLAG_RDTUN for read-only sysctl that exports tunable. Reminded by: pjd MFC after:6 days Modified: head/sys/amd64/amd64/sys_machdep.c Modified: head/sys/am

svn commit: r217633 - head/sys/fs/tmpfs

2011-01-20 Thread Konstantin Belousov
Author: kib Date: Thu Jan 20 09:39:16 2011 New Revision: 217633 URL: http://svn.freebsd.org/changeset/base/217633 Log: In tmpfs_readdir(), normalize handling of the directory entries that either overflow the supplied buffer, or cause uiomove fail. Do not advance cached de when directory entr

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

2011-01-22 Thread Konstantin Belousov
Alexander Kabaev . + * Copyright 2009, 2010, 2011 Konstantin Belousov . * All rights reserved. * * Redistribution and use in source and binary forms, with or without ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

svn commit: r217747 - head/sys/sys

2011-01-23 Thread Konstantin Belousov
Author: kib Date: Sun Jan 23 12:44:17 2011 New Revision: 217747 URL: http://svn.freebsd.org/changeset/base/217747 Log: Fix typo. MFC after:3 days Modified: head/sys/sys/pioctl.h Modified: head/sys/sys/pioctl.h =

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

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 10:59:21 2011 New Revision: 217819 URL: http://svn.freebsd.org/changeset/base/217819 Log: Allow debugger to specify that children of the traced process should be automatically traced. Extend the ptrace(PL_LWPINFO) to report that child just forked. Reviewed b

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

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 11:02:12 2011 New Revision: 217820 URL: http://svn.freebsd.org/changeset/base/217820 Log: Document PT_FLAG_FORKED, PT_FOLLOW_FORK, pl_tdname and pl_child_pid. MFC after:2 weeks Modified: head/lib/libc/sys/ptrace.2 Modified: head/lib/libc/sys/ptrace.2 ===

svn commit: r217821 - head/bin/ps

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 11:04:16 2011 New Revision: 217821 URL: http://svn.freebsd.org/changeset/base/217821 Log: Document P_FOLLOWFORK. MFC after:2 weeks Modified: head/bin/ps/ps.1 Modified: head/bin/ps/ps.1 =

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

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 14:00:30 2011 New Revision: 217823 URL: http://svn.freebsd.org/changeset/base/217823 Log: Bio shall not be accessed after g_io_deliver(9). Reported and tested by: pho Reviewed by: ae, phk MFC after:1 week Modified: head/sys/dev/md/md.c Modifie

svn commit: r217824 - head/sys/kern

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 14:04:02 2011 New Revision: 217824 URL: http://svn.freebsd.org/changeset/base/217824 Log: When vtruncbuf() iterates over the vnode buffer list, lock buffer object before checking the validity of the next buffer pointer. Otherwise, the buffer might be reclaimed af

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

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 21:04:55 2011 New Revision: 217849 URL: http://svn.freebsd.org/changeset/base/217849 Log: Fix get_program_var_addr() when type of the resolved symbol is functional. Use make_function_pointer then, otherwise ia64 is broken. Reported and tested by: marcel

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

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 21:06:49 2011 New Revision: 217850 URL: http://svn.freebsd.org/changeset/base/217850 Log: Emit .note.GNU-stack for the syscall stubs generated by libc only on architectures that support this .note. In particular, do not unneccessary emit the notes on ia64 and spa

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

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 21:12:31 2011 New Revision: 217851 URL: http://svn.freebsd.org/changeset/base/217851 Log: When loading dso without PT_GNU_STACK phdr, only call __pthread_map_stacks_exec() on architectures that allow executable stacks. Reported and tested by: marcel (i

svn commit: r217880 - head/sys/geom/journal

2011-01-26 Thread Konstantin Belousov
Author: kib Date: Wed Jan 26 10:34:21 2011 New Revision: 217880 URL: http://svn.freebsd.org/changeset/base/217880 Log: Treat async buffer writes from the gjournal switcher thread the same as from syncer. We shall not sleep on running buffer space when suspending. Reproduced and tested by:

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

2011-01-27 Thread Konstantin Belousov
Author: kib Date: Thu Jan 27 16:10:25 2011 New Revision: 217946 URL: http://svn.freebsd.org/changeset/base/217946 Log: Add support for BIO_DELETE on swap-backed md(4). In the case of BIO_DELETE covering the whole page, free the page. Otherwise, clear the region and mark it clean. Not marking

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

2011-01-27 Thread Konstantin Belousov
Author: kib Date: Thu Jan 27 21:45:38 2011 New Revision: 217991 URL: http://svn.freebsd.org/changeset/base/217991 Log: linux_sigreturn() loads the struct trapframe from l_sigcontext members, thus making a signed extension of 32 bit register context. If the register is not touched in usermode

svn commit: r218026 - head/sys/kern

2011-01-28 Thread Konstantin Belousov
Author: kib Date: Fri Jan 28 17:37:09 2011 New Revision: 218026 URL: http://svn.freebsd.org/changeset/base/218026 Log: If more than one thread allocated sf buffers for sendfile(2), and each of the threads needs more while current pool of the buffers is exhausted, then neither thread can make

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

2011-01-30 Thread Konstantin Belousov
Author: kib Date: Sun Jan 30 16:14:09 2011 New Revision: 218098 URL: http://svn.freebsd.org/changeset/base/218098 Log: Make ldd(1) work when versioned dependency file is cannot be loaded. Instead of aborting in locate_dependency(), propagate the error to caller. The rtld startup function doe

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

2011-01-30 Thread Konstantin Belousov
Author: kib Date: Sun Jan 30 16:21:25 2011 New Revision: 218099 URL: http://svn.freebsd.org/changeset/base/218099 Log: Fix grammar in comment. Pointy hat to:kib MFC after:1 week Modified: head/libexec/rtld-elf/rtld.c Modified: head/libexec/rtld-elf/rtld.c =

svn commit: r218168 - head/sys/kern

2011-02-01 Thread Konstantin Belousov
Author: kib Date: Tue Feb 1 13:33:49 2011 New Revision: 218168 URL: http://svn.freebsd.org/changeset/base/218168 Log: The unp_gc() function drops and reaquires lock between scan and collect phases. The unp_discard() function executes unp_externalize_fp(), which might make the socket eligib

svn commit: r218303 - in head/lib/libc: amd64/string i386/string

2011-02-04 Thread Konstantin Belousov
Author: kib Date: Fri Feb 4 21:04:00 2011 New Revision: 218303 URL: http://svn.freebsd.org/changeset/base/218303 Log: Remove duplicate .note.GNU-stack section declaration. bcopy already made the neccessary provisions. Reported by: arundel Modified: head/lib/libc/amd64/string/memmove.

svn commit: r218305 - head/lib/msun/amd64

2011-02-04 Thread Konstantin Belousov
Author: kib Date: Fri Feb 4 21:54:06 2011 New Revision: 218305 URL: http://svn.freebsd.org/changeset/base/218305 Log: Remove duplicate .note.GNU-stack section declaration. Reported by: arundel Modified: head/lib/msun/amd64/s_llrint.S head/lib/msun/amd64/s_llrintf.S Modified: head/li

svn commit: r218327 - in head/sys: amd64/amd64 amd64/ia32 i386/i386 kern

2011-02-05 Thread Konstantin Belousov
Author: kib Date: Sat Feb 5 15:10:27 2011 New Revision: 218327 URL: http://svn.freebsd.org/changeset/base/218327 Log: Clear the padding when returning context to the usermode, for MI ucontext_t and x86 MD parts. Kernel allocates the structures on the stack, and not clearing reserved field

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

2011-02-05 Thread Konstantin Belousov
Author: kib Date: Sat Feb 5 15:37:10 2011 New Revision: 218329 URL: http://svn.freebsd.org/changeset/base/218329 Log: Fix linking of the kernel without device npx. MFC after:2 weeks Modified: head/sys/i386/i386/machdep.c Modified: head/sys/i386/i386/machdep.c ==

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

2011-02-09 Thread Konstantin Belousov
Author: kib Date: Wed Feb 9 09:20:27 2011 New Revision: 218476 URL: http://svn.freebsd.org/changeset/base/218476 Log: Use sigsetjmp/siglongjmp with disabled signal mask access for lock upgrade in rtld. There is no need to care about the mask, which causes a lot of unneeded sigprocmask(2) ca

svn commit: r218550 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2011-02-11 Thread Konstantin Belousov
Author: kib Date: Fri Feb 11 10:46:15 2011 New Revision: 218550 URL: http://svn.freebsd.org/changeset/base/218550 Log: For UIO_NOCOPY case of reading request on zfs vnode, which has vm object attached, activate the page after the successful read, and free the page if read was unsuccessfull.

svn commit: r218601 - head/lib/libufs

2011-02-12 Thread Konstantin Belousov
Author: kib Date: Sat Feb 12 12:46:00 2011 New Revision: 218601 URL: http://svn.freebsd.org/changeset/base/218601 Log: Replace ERROR() macro with inline function. In-tree gcc cannot tolerate the construct like printf("%\s", NULL) resulting from macroexpand of ERROR(u, NULL), making it imposs

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

2011-02-12 Thread Konstantin Belousov
Author: kib Date: Sat Feb 12 12:52:12 2011 New Revision: 218602 URL: http://svn.freebsd.org/changeset/base/218602 Log: Use the native sector size of the device backing the UFS volume for SU+J journal blocks, instead of hard coding 512 byte sector size. Journal need to atomically write the bl

svn commit: r218603 - head/sbin/tunefs

2011-02-12 Thread Konstantin Belousov
Author: kib Date: Sat Feb 12 13:12:45 2011 New Revision: 218603 URL: http://svn.freebsd.org/changeset/base/218603 Log: When creating a directory entry for the journal, always read at least the fragment, and write the full block. Reading less might not work due to device sector size bigger th

svn commit: r218604 - head/sbin/fsck_ffs

2011-02-12 Thread Konstantin Belousov
Author: kib Date: Sat Feb 12 13:17:14 2011 New Revision: 218604 URL: http://svn.freebsd.org/changeset/base/218604 Log: In checker, read journal by sectors. Due to UFS insistence to pretend that device sector size is 512 bytes, sector size is obtained from ioctl(DIOCGSECTORSIZE) for real d

svn commit: r218670 - head/sys/vm

2011-02-13 Thread Konstantin Belousov
Author: kib Date: Sun Feb 13 21:52:26 2011 New Revision: 218670 URL: http://svn.freebsd.org/changeset/base/218670 Log: Lock the vnode around clearing of VV_TEXT flag. Remove mp_fixme() note mentioning that vnode lock is needed. Reviewed by: alc Tested by:pho MFC after:1 week

svn commit: r218701 - head/sys/vm

2011-02-15 Thread Konstantin Belousov
Author: kib Date: Tue Feb 15 09:03:58 2011 New Revision: 218701 URL: http://svn.freebsd.org/changeset/base/218701 Log: Since r218070 reenabled the call to vm_map_simplify_entry() from vm_map_insert(), the kmem_back() assumption about newly inserted entry might be broken due to interference o

svn commit: r218772 - in head: etc/mtree include

2011-02-17 Thread Konstantin Belousov
Author: kib Date: Thu Feb 17 15:10:13 2011 New Revision: 218772 URL: http://svn.freebsd.org/changeset/base/218772 Log: Install iodev.h. Reviewed by: attilio MFC after:1 week Modified: head/etc/mtree/BSD.include.dist head/include/Makefile Modified: head/etc/mtree/BSD.include.dis

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

2011-02-18 Thread Konstantin Belousov
Author: kib Date: Sat Feb 19 07:47:25 2011 New Revision: 218838 URL: http://svn.freebsd.org/changeset/base/218838 Log: v_mountedhere is a member of the union. Check that the vnodes have proper type before using the member. Reported and tested by: Michael Butler Modified: head/sy

svn commit: r218881 - in head: include share/man/man3

2011-02-20 Thread Konstantin Belousov
Author: kib Date: Sun Feb 20 09:52:29 2011 New Revision: 218881 URL: http://svn.freebsd.org/changeset/base/218881 Log: Add restrict keyword to pthread_sigmask prototype and manpage. MFC after:1 week Modified: head/include/signal.h head/share/man/man3/pthread_sigmask.3 Modified: he

svn commit: r218972 - head/sys/kern

2011-02-23 Thread Konstantin Belousov
Author: kib Date: Wed Feb 23 13:50:24 2011 New Revision: 218972 URL: http://svn.freebsd.org/changeset/base/218972 Log: Move the max_threads_per_proc and max_threads_hits variables to the file where they are used. Declare the kern.threads sysctl node at the same location. Since no external u

<    12   13   14   15   16   17   18   19   20   21   >