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

2011-01-15 Thread Konstantin Belousov
Author: kib Date: Sat Jan 15 08:35:41 2011 New Revision: 217440 URL: http://svn.freebsd.org/changeset/base/217440 Log: MFC r217143: Fix struct FILE * leak on error (in disabled by default hesiod support code). PR: 153756 Modified: stable/8/lib/libc/net/hesiod.c Directory Properties:

svn commit: r217441 - stable/8/lib/libc/stdlib

2011-01-15 Thread Konstantin Belousov
Author: kib Date: Sat Jan 15 08:37:33 2011 New Revision: 217441 URL: http://svn.freebsd.org/changeset/base/217441 Log: MFC r217144: Fix some style(9) issues. Do not use strlcpy() where simple assignment is enough. Modified: stable/8/lib/libc/stdlib/realpath.c Directory Properties: stabl

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

2011-01-15 Thread Konstantin Belousov
Author: kib Date: Sat Jan 15 09:25:19 2011 New Revision: 217442 URL: http://svn.freebsd.org/changeset/base/217442 Log: MFC r217150: Collect code to translate between vm_prot_t and p_flags into helper functions. Modified: stable/8/sys/kern/imgact_elf.c Directory Properties: stable/8/sys/

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: r217470 - stable/8/lib/csu/i386-elf

2011-01-16 Thread Konstantin Belousov
Author: kib Date: Sun Jan 16 10:41:47 2011 New Revision: 217470 URL: http://svn.freebsd.org/changeset/base/217470 Log: MFC r217383: The (%esp & 0xf) == 0 should be true before the call instruction is executed, for the properly aligned stack. Modified: stable/8/lib/csu/i386-elf/crt1_s.S Di

svn commit: r217471 - stable/7/lib/csu/i386-elf

2011-01-16 Thread Konstantin Belousov
Author: kib Date: Sun Jan 16 10:47:35 2011 New Revision: 217471 URL: http://svn.freebsd.org/changeset/base/217471 Log: MFC r217383: The (%esp & 0xf) == 0 should be true before the call instruction is executed, for the properly aligned stack. Modified: stable/7/lib/csu/i386-elf/crt1_s.S Di

svn commit: r217532 - in stable/8/sys: dev/random geom kern

2011-01-18 Thread Konstantin Belousov
Author: kib Date: Tue Jan 18 10:42:13 2011 New Revision: 217532 URL: http://svn.freebsd.org/changeset/base/217532 Log: MFC r216952: Mark some devices as eternal. Modified: stable/8/sys/dev/random/randomdev.c stable/8/sys/geom/geom_ctl.c stable/8/sys/kern/kern_descrip.c stable/8/sys/ke

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: r217696 - svnadmin/conf

2011-01-21 Thread Konstantin Belousov
Author: kib Date: Fri Jan 21 16:22:11 2011 New Revision: 217696 URL: http://svn.freebsd.org/changeset/base/217696 Log: Josh Paetzel has src commit bit now. Approved by: core Modified: svnadmin/conf/access svnadmin/conf/mentors Modified: svnadmin/conf/access ==

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

2011-01-22 Thread Konstantin Belousov
Author: kib Date: Sat Jan 22 11:27:10 2011 New Revision: 217715 URL: http://svn.freebsd.org/changeset/base/217715 Log: MFC r217463: For consistency, use kernel_object instead of &kernel_object_store when initializing the object mutex. Do the same for kmem_object. Modified: stable/8/sys/vm

svn commit: r217716 - stable/8/sys/dev/md

2011-01-22 Thread Konstantin Belousov
Author: kib Date: Sat Jan 22 11:29:13 2011 New Revision: 217716 URL: http://svn.freebsd.org/changeset/base/217716 Log: MFC r217583: Add missed (). Modified: stable/8/sys/dev/md/md.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed)

svn commit: r217720 - releng/8.2/lib/csu/i386-elf

2011-01-22 Thread Konstantin Belousov
Author: kib Date: Sat Jan 22 17:49:37 2011 New Revision: 217720 URL: http://svn.freebsd.org/changeset/base/217720 Log: MFC r217383: The (%esp & 0xf) == 0 should be true before the call instruction is executed, for the properly aligned stack. Approved by: re (bz) Modified: releng/8.2

svn commit: r217721 - releng/7.4/lib/csu/i386-elf

2011-01-22 Thread Konstantin Belousov
Author: kib Date: Sat Jan 22 19:15:39 2011 New Revision: 217721 URL: http://svn.freebsd.org/changeset/base/217721 Log: MFC r217383: The (%esp & 0xf) == 0 should be true before the call instruction is executed, for the properly aligned stack. Approved by: re (bz) Modified: releng/7.4

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-all@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: r217816 - in stable/8/sys: arm/arm i386/i386 mips/mips powerpc/aim powerpc/booke sparc64/sparc64

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 10:14:12 2011 New Revision: 217816 URL: http://svn.freebsd.org/changeset/base/217816 Log: MFC r217561: 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 a

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

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 10:17:37 2011 New Revision: 217817 URL: http://svn.freebsd.org/changeset/base/217817 Log: MFC r217563: Use malloc(9) instead of kmem_alloc(9) for temporal copy of the user-supplied descriptor array. Modified: stable/8/sys/amd64/amd64/sys_machdep.c Directory Pr

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

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 10:20:36 2011 New Revision: 217818 URL: http://svn.freebsd.org/changeset/base/217818 Log: MFC r217564: Make the length of the LDT a loader tunable, machdep.max_ldt_segment, and export it with read-only sysctl. Remove unused defines. MFC r217604: Use CTLFLA

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: r217852 - svnadmin/conf

2011-01-25 Thread Konstantin Belousov
Author: kib Date: Tue Jan 25 21:42:05 2011 New Revision: 217852 URL: http://svn.freebsd.org/changeset/base/217852 Log: Free dchagin Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors == --- svnadmin/conf

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

2011-01-26 Thread Konstantin Belousov
Author: kib Date: Wed Jan 26 08:39:34 2011 New Revision: 217876 URL: http://svn.freebsd.org/changeset/base/217876 Log: MFC r217747: Fix typo. Modified: stable/8/sys/sys/pioctl.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) sta

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: r217933 - stable/8/sys/fs/tmpfs

2011-01-27 Thread Konstantin Belousov
Author: kib Date: Thu Jan 27 09:52:31 2011 New Revision: 217933 URL: http://svn.freebsd.org/changeset/base/217933 Log: MFC r217633: 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

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: r218079 - in stable/8/sys/ufs: ffs ufs

2011-01-29 Thread Konstantin Belousov
Author: kib Date: Sat Jan 29 22:51:27 2011 New Revision: 218079 URL: http://svn.freebsd.org/changeset/base/218079 Log: MFC r216796: Add kernel side support for BIO_DELETE/TRIM on UFS. Tested by:pho Modified: stable/8/sys/ufs/ffs/ffs_alloc.c stable/8/sys/ufs/ffs/ffs_vfsops.c sta

svn commit: r218080 - in stable/8/sbin: dumpfs geom/class/sched newfs tunefs

2011-01-29 Thread Konstantin Belousov
Author: kib Date: Sat Jan 29 22:51:46 2011 New Revision: 218080 URL: http://svn.freebsd.org/changeset/base/218080 Log: MFC r216798: Add support for FS_TRIM to user-mode UFS utilities. Tested by:pho Modified: stable/8/sbin/dumpfs/dumpfs.c stable/8/sbin/newfs/mkfs.c stable/8/sbin

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: r218163 - stable/8/sys/dev/md

2011-02-01 Thread Konstantin Belousov
Author: kib Date: Tue Feb 1 10:18:36 2011 New Revision: 218163 URL: http://svn.freebsd.org/changeset/base/218163 Log: MFC r217823: Bio shall not be accessed after g_io_deliver(9). Modified: stable/8/sys/dev/md/md.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd6

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

2011-02-01 Thread Konstantin Belousov
Author: kib Date: Tue Feb 1 10:20:31 2011 New Revision: 218164 URL: http://svn.freebsd.org/changeset/base/218164 Log: MFC r217824: When vtruncbuf() iterates over the vnode buffer list, lock buffer object before checking the validity of the next buffer pointer. Otherwise, the buffer might

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: r218173 - stable/8/share/examples/etc

2011-02-01 Thread Konstantin Belousov
Author: kib Date: Tue Feb 1 16:15:31 2011 New Revision: 218173 URL: http://svn.freebsd.org/changeset/base/218173 Log: MFC r217826 (by sem): Remove DOS-style EOLs. Modified: stable/8/share/examples/etc/make.conf Directory Properties: stable/8/share/examples/etc/ (props changed) Modi

svn commit: r218187 - stable/8/sys/compat/linux

2011-02-02 Thread Konstantin Belousov
Author: kib Date: Wed Feb 2 12:22:44 2011 New Revision: 218187 URL: http://svn.freebsd.org/changeset/base/218187 Log: MFC r217578: In linuxolator getdents_common(), do not loop if no records were returned by VOP_READDIR(). Modified: stable/8/sys/compat/linux/linux_file.c Directory Proper

svn commit: r218188 - stable/8/sys/geom/journal

2011-02-02 Thread Konstantin Belousov
Author: kib Date: Wed Feb 2 12:24:53 2011 New Revision: 218188 URL: http://svn.freebsd.org/changeset/base/218188 Log: MFC r217880: Treat async buffer writes from the gjournal switcher thread the same as from syncer. We shall not sleep on running buffer space when suspending. Modified: st

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

2011-02-03 Thread Konstantin Belousov
Author: kib Date: Thu Feb 3 08:55:45 2011 New Revision: 218210 URL: http://svn.freebsd.org/changeset/base/218210 Log: MFC r217991: Use unsigned type for the registers in the linux sigcontext. Modified: stable/8/sys/amd64/linux32/linux.h Directory Properties: stable/8/sys/ (props change

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

2011-02-04 Thread Konstantin Belousov
Author: kib Date: Fri Feb 4 09:15:23 2011 New Revision: 218258 URL: http://svn.freebsd.org/changeset/base/218258 Log: MFC r218026: 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

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: r218352 - in stable/8/sys: kern sys vm

2011-02-05 Thread Konstantin Belousov
Author: kib Date: Sat Feb 5 21:50:23 2011 New Revision: 218352 URL: http://svn.freebsd.org/changeset/base/218352 Log: MFC r198854 (by attilio): Split P_NOLOAD into a per-thread flag (TDF_NOLOAD) Approved by: attilio Modified: stable/8/sys/kern/kern_idle.c stable/8/sys/kern/kern_int

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

2011-02-05 Thread Konstantin Belousov
Author: kib Date: Sat Feb 5 22:04:20 2011 New Revision: 218353 URL: http://svn.freebsd.org/changeset/base/218353 Log: MFC r212999 (by jhb): Copy td_rqindex during fork instead of zero'ing it to match the comments. Approved by: jhb Modified: stable/8/sys/sys/proc.h Directory Propertie

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

2011-02-05 Thread Konstantin Belousov
Author: kib Date: Sat Feb 5 22:57:14 2011 New Revision: 218355 URL: http://svn.freebsd.org/changeset/base/218355 Log: MFC r217819: 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.

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

2011-02-05 Thread Konstantin Belousov
Author: kib Date: Sat Feb 5 23:01:18 2011 New Revision: 218357 URL: http://svn.freebsd.org/changeset/base/218357 Log: MFC r217820: Document PT_FLAG_FORKED, PT_FOLLOW_FORK, pl_tdname and pl_child_pid. Modified: stable/8/lib/libc/sys/ptrace.2 Directory Properties: stable/8/lib/libc/ (pro

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

2011-02-05 Thread Konstantin Belousov
Author: kib Date: Sat Feb 5 23:02:55 2011 New Revision: 218358 URL: http://svn.freebsd.org/changeset/base/218358 Log: MFC r217821: Document P_FOLLOWFORK. Modified: stable/8/bin/ps/ps.1 Directory Properties: stable/8/bin/ps/ (props changed) Modified: stable/8/bin/ps/ps.1 ==

svn commit: r218365 - stable/8/libexec/rtld-elf

2011-02-06 Thread Konstantin Belousov
Author: kib Date: Sun Feb 6 09:33:08 2011 New Revision: 218365 URL: http://svn.freebsd.org/changeset/base/218365 Log: MFC r218098: Make ldd(1) work when versioned dependency file is cannot be loaded. MFC r218099: Fix grammar. Modified: stable/8/libexec/rtld-elf/rtld.c Directory Prop

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

2011-02-08 Thread Konstantin Belousov
Author: kib Date: Tue Feb 8 09:25:32 2011 New Revision: 218430 URL: http://svn.freebsd.org/changeset/base/218430 Log: MFC r218168: Only process as much array elements as we find the sockets during second phase of gc. Take linkage lock and recheck the eligibility of the socket for gc, as

svn commit: r218431 - stable/8/sys/dev/md

2011-02-08 Thread Konstantin Belousov
Author: kib Date: Tue Feb 8 09:28:28 2011 New Revision: 218431 URL: http://svn.freebsd.org/changeset/base/218431 Log: MFC r217946: Add support for BIO_DELETE on swap-backed md(4). Modified: stable/8/sys/dev/md/md.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd6

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

2011-02-08 Thread Konstantin Belousov
Author: kib Date: Tue Feb 8 20:28:36 2011 New Revision: 218454 URL: http://svn.freebsd.org/changeset/base/218454 Log: MFC r206903 (by imp): Make this file more C++ friendly. Approved by: imp Found by: jkim Modified: stable/8/sys/sys/thr.h Directory Properties: stable/8/sys/

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: r218795 - stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2011-02-18 Thread Konstantin Belousov
Author: kib Date: Fri Feb 18 09:47:58 2011 New Revision: 218795 URL: http://svn.freebsd.org/changeset/base/218795 Log: MFC r218550: 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

svn commit: r218836 - in stable/8/sys: amd64/amd64 amd64/ia32 i386/i386 kern

2011-02-18 Thread Konstantin Belousov
Author: kib Date: Sat Feb 19 07:39:14 2011 New Revision: 218836 URL: http://svn.freebsd.org/changeset/base/218836 Log: MFC r218327: Clear the padding when returning context to the usermode. Modified: stable/8/sys/amd64/amd64/machdep.c stable/8/sys/amd64/ia32/ia32_signal.c stable/8/sys/i

svn commit: r218837 - stable/8/sys/i386/i386

2011-02-18 Thread Konstantin Belousov
Author: kib Date: Sat Feb 19 07:45:17 2011 New Revision: 218837 URL: http://svn.freebsd.org/changeset/base/218837 Log: MFC r218329: Fix kernel linkage without device npx. Modified: stable/8/sys/i386/i386/machdep.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/

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

2011-02-20 Thread Konstantin Belousov
Author: kib Date: Sun Feb 20 09:17:59 2011 New Revision: 218880 URL: http://svn.freebsd.org/changeset/base/218880 Log: MFC r218670: Lock the vnode around clearing of VV_TEXT flag. Remove mp_fixme() note mentioning that vnode lock is needed. Modified: stable/8/sys/vm/vm_object.c Directory

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

svn commit: r218990 - in stable/8: etc/mtree include

2011-02-24 Thread Konstantin Belousov
Author: kib Date: Thu Feb 24 10:11:29 2011 New Revision: 218990 URL: http://svn.freebsd.org/changeset/base/218990 Log: MFC r218772: Install iodev.h. Modified: stable/8/etc/mtree/BSD.include.dist stable/8/include/Makefile Directory Properties: stable/8/etc/ (props changed) stable/8/i

svn commit: r222991 - head/sys/vm

2011-06-11 Thread Konstantin Belousov
Author: kib Date: Sat Jun 11 20:13:28 2011 New Revision: 222991 URL: http://svn.freebsd.org/changeset/base/222991 Log: Fix a bug in r222586. Lock the page owner object around the modification of the m->dirty. Reported and tested by: nwhitehorn Reviewed by: alc Modified: head/s

svn commit: r222992 - head/sys/vm

2011-06-11 Thread Konstantin Belousov
Author: kib Date: Sat Jun 11 20:15:19 2011 New Revision: 222992 URL: http://svn.freebsd.org/changeset/base/222992 Log: Assert that page is VPO_BUSY or page owner object is locked in vm_page_undirty(). The assert is not precise due to VPO_BUSY owner to tracked, so assertion does not catch the

svn commit: r223054 - in stable/8/sys: fs/nfsclient fs/nwfs fs/smbfs nfsclient vm

2011-06-13 Thread Konstantin Belousov
Author: kib Date: Mon Jun 13 19:33:13 2011 New Revision: 223054 URL: http://svn.freebsd.org/changeset/base/223054 Log: MFC r222586: Fix an infinite loop in vm_object_page_clean() when the filesystem returns permanent errors for some page writes. To accomodate the stable/8 locking requir

svn commit: r223055 - stable/8/sys/ufs/ffs

2011-06-13 Thread Konstantin Belousov
Author: kib Date: Mon Jun 13 19:40:09 2011 New Revision: 223055 URL: http://svn.freebsd.org/changeset/base/223055 Log: Cherry-pick a single bit from r222958. Do not pass '3' as the sleepflag to bufobj_wwait() in the ffs_syncvnode(). It only mangles the priority argument of msleep(). Dis

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