svn commit: r225791 - head/sys/kern

2011-09-27 Thread Konstantin Belousov
Author: kib Date: Tue Sep 27 13:17:02 2011 New Revision: 225791 URL: http://svn.freebsd.org/changeset/base/225791 Log: Do not deliver SIGTRAP on exec as the normal signal, use ptracestop() on syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal() do not want to deliver the

svn commit: r225840 - head/sys/vm

2011-09-28 Thread Konstantin Belousov
Author: kib Date: Wed Sep 28 14:57:50 2011 New Revision: 225840 URL: http://svn.freebsd.org/changeset/base/225840 Log: Use the trick of performing the atomic operation on the contained aligned word to handle the dirty mask updates in vm_page_clear_dirty_mask(). Remove the vm page queue lock

svn commit: r225841 - in head/sys: ia64/ia64 powerpc/booke sparc64/sparc64

2011-09-28 Thread Konstantin Belousov
Author: kib Date: Wed Sep 28 15:01:20 2011 New Revision: 225841 URL: http://svn.freebsd.org/changeset/base/225841 Log: Remove locking of the vm page queues from several pmaps, which only protected the dirty mask updates. The dirty mask updates are handled by atomics after the r225840.

svn commit: r225843 - head/sys/vm

2011-09-28 Thread Konstantin Belousov
Author: kib Date: Wed Sep 28 16:12:15 2011 New Revision: 225843 URL: http://svn.freebsd.org/changeset/base/225843 Log: Fix grammar. Submitted by: bf MFC after:2 weeks Modified: head/sys/vm/vm_page.c head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.c

svn commit: r225856 - head/sys/vm

2011-09-28 Thread Konstantin Belousov
Author: kib Date: Thu Sep 29 00:44:34 2011 New Revision: 225856 URL: http://svn.freebsd.org/changeset/base/225856 Log: Style nit. Submitted by: jhb MFC after:2 weeks Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c

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

2011-10-01 Thread Konstantin Belousov
Author: kib Date: Sat Oct 1 10:18:55 2011 New Revision: 225894 URL: http://svn.freebsd.org/changeset/base/225894 Log: The sigwait(3) function shall not return EINTR, according to the POSIX/SUSvN. The sigwait(2) syscall does return EINTR, and libc.so.7 contains the wrapper sigwait(3) which

svn commit: r225942 - head/sys/kern

2011-10-03 Thread Konstantin Belousov
Author: kib Date: Mon Oct 3 16:58:58 2011 New Revision: 225942 URL: http://svn.freebsd.org/changeset/base/225942 Log: Assert that exiting process does not return to usermode. Reviewed by: avg, jhb MFC after:1 week Modified: head/sys/kern/subr_trap.c Modified:

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

2011-10-03 Thread Konstantin Belousov
Author: kib Date: Mon Oct 3 17:01:31 2011 New Revision: 225943 URL: http://svn.freebsd.org/changeset/base/225943 Log: Do not allow the kernel to access usermode pages without installed fault handler. Panic immediately in such situation, on i386 and amd64. Reviewed by: avg, jhb MFC

svn commit: r225973 - in head/sys/arm: arm include

2011-10-04 Thread Konstantin Belousov
Author: kib Date: Tue Oct 4 13:14:24 2011 New Revision: 225973 URL: http://svn.freebsd.org/changeset/base/225973 Log: Convert ARM to the syscallenter/syscallret system call sequence handlers. Tested by:gber MFC after:1 month Modified: head/sys/arm/arm/elf_machdep.c

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

2011-10-04 Thread Konstantin Belousov
Author: kib Date: Tue Oct 4 13:15:12 2011 New Revision: 225974 URL: http://svn.freebsd.org/changeset/base/225974 Log: Remove no longer valid statement about ARM. MFC after:1 month Modified: head/lib/libc/sys/ptrace.2 Modified: head/lib/libc/sys/ptrace.2

svn commit: r226022 - head/sys/kern

2011-10-04 Thread Konstantin Belousov
Author: kib Date: Tue Oct 4 18:45:29 2011 New Revision: 226022 URL: http://svn.freebsd.org/changeset/base/226022 Log: Move parts of the commit log for r166167, where Tor explained the interaction between vnode locks and vfs_busy(), into comment. MFC after:1 week Modified:

svn commit: r226041 - in head/sys: fs/devfs sys

2011-10-05 Thread Konstantin Belousov
Author: kib Date: Wed Oct 5 16:50:15 2011 New Revision: 226041 URL: http://svn.freebsd.org/changeset/base/226041 Log: Export devfs inode number allocator for the kernel consumers. Reviewed by: jhb MFC after:2 weeks Modified: head/sys/fs/devfs/devfs_devs.c head/sys/sys/conf.h

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

2011-10-05 Thread Konstantin Belousov
Author: kib Date: Wed Oct 5 16:56:06 2011 New Revision: 226042 URL: http://svn.freebsd.org/changeset/base/226042 Log: Supply unique (st_dev, st_ino) value pair for the fstat(2) done on the pipes. Reviewed by: jhb, Peter Jeremy peterjeremy acm org MFC after:2 weeks Modified:

svn commit: r226065 - in head/sys/mips: include mips

2011-10-06 Thread Konstantin Belousov
Author: kib Date: Thu Oct 6 17:34:43 2011 New Revision: 226065 URL: http://svn.freebsd.org/changeset/base/226065 Log: Convert MIPS to the syscallenter/syscallret system call sequence handlers. This was the last architecture used custom syscall entry sequence. Reviewed, debugged, tested

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

2011-10-06 Thread Konstantin Belousov
Author: kib Date: Thu Oct 6 17:35:38 2011 New Revision: 226066 URL: http://svn.freebsd.org/changeset/base/226066 Log: Remove no longer needed BUGS section. MFC after:1 month Modified: head/lib/libc/sys/ptrace.2 Modified: head/lib/libc/sys/ptrace.2

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

2011-10-07 Thread Konstantin Belousov
Author: kib Date: Fri Oct 7 16:09:44 2011 New Revision: 226112 URL: http://svn.freebsd.org/changeset/base/226112 Log: Remove unused define. MFC after:1 month Modified: head/sys/amd64/include/proc.h head/sys/arm/include/proc.h head/sys/i386/include/proc.h

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

2011-10-08 Thread Konstantin Belousov
Author: kib Date: Sat Oct 8 12:39:47 2011 New Revision: 226155 URL: http://svn.freebsd.org/changeset/base/226155 Log: Setting up TLS block for the main thread must be done after the relocations are processed, since tls initialization section might be itself subject for relocations. Only

svn commit: r226156 - head/libexec/rtld-elf/i386

2011-10-08 Thread Konstantin Belousov
Author: kib Date: Sat Oct 8 12:42:19 2011 New Revision: 226156 URL: http://svn.freebsd.org/changeset/base/226156 Log: Handle the R_386_TLS_TPOFF32 relocation, which is similar to R_386_TLS_TPOFF, but with negative relocation value. Found by: mpfr test suite, pointed to by ale

svn commit: r226388 - in head/sys: compat/freebsd32 kern sys vm

2011-10-15 Thread Konstantin Belousov
Author: kib Date: Sat Oct 15 12:35:18 2011 New Revision: 226388 URL: http://svn.freebsd.org/changeset/base/226388 Log: Control the execution permission of the readable segments for i386 binaries on the amd64 and ia64 with the sysctl, instead of unconditionally enabling it. Reviewed by:

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

2011-10-24 Thread Konstantin Belousov
Author: kib Date: Mon Oct 24 13:48:13 2011 New Revision: 226686 URL: http://svn.freebsd.org/changeset/base/226686 Log: The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED test because of this and also because it can lead to false positives. Tested by:pho MFC

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

2011-10-24 Thread Konstantin Belousov
Author: kib Date: Mon Oct 24 13:53:32 2011 New Revision: 226687 URL: http://svn.freebsd.org/changeset/base/226687 Log: The only possible error return from null_nodeget() is due to insmntque1 failure (the getnewvnode cannot return an error). In this case, the null_insmntque_dtr() already

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

2011-10-24 Thread Konstantin Belousov
Author: kib Date: Mon Oct 24 13:56:31 2011 New Revision: 226688 URL: http://svn.freebsd.org/changeset/base/226688 Log: The use of VOP_ISLOCKED() without a check for the return values can cause false positives. Replace the #ifdef block with the proper ASSERT_VOP_UNLOCKED() assert.

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:

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:

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

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

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

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

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

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

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

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

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)

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

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:

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

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

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

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

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

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

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

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

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

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

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

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

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

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:

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:

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

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)

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

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

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

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

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

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 imb

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:

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

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

2011-03-02 Thread Konstantin Belousov
Author: kib Date: Wed Mar 2 14:56:58 2011 New Revision: 219178 URL: http://svn.freebsd.org/changeset/base/219178 Log: Fix a bug in the result of manual assembly. Reported by: Stefan Grundmann sg2342 googlemail com PR: kern/155118 MFC after:3 days Modified:

svn commit: r219352 - head/sys/kern

2011-03-06 Thread Konstantin Belousov
Author: kib Date: Sun Mar 6 22:59:30 2011 New Revision: 219352 URL: http://svn.freebsd.org/changeset/base/219352 Log: The execution of the shebang script requires putting interpreter path, possible option and script path in the place of argv[0] supplied to execve(2). It is possible and

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

2011-03-07 Thread Konstantin Belousov
Author: kib Date: Mon Mar 7 22:36:11 2011 New Revision: 219388 URL: http://svn.freebsd.org/changeset/base/219388 Log: Simplify uses of the web of pointers. Reviewed by: mckusick MFC after:1 week Modified: head/sys/ufs/ufs/ufs_dirhash.c head/sys/ufs/ufs/ufs_quota.c Modified:

svn commit: r219396 - head/sys/kern

2011-03-08 Thread Konstantin Belousov
Author: kib Date: Tue Mar 8 11:50:59 2011 New Revision: 219396 URL: http://svn.freebsd.org/changeset/base/219396 Log: Do not assert buffer lock in VFS_STRATEGY() when kernel already paniced. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/kern/vfs_subr.c

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

2011-03-17 Thread Konstantin Belousov
Author: kib Date: Thu Mar 17 11:23:12 2011 New Revision: 219712 URL: http://svn.freebsd.org/changeset/base/219712 Log: Remove the #if defined(FFS) || defined(IFS) braces around the calls to ffs_snapgone(). ufs.ko module is not build with FFS define, causing snapshot inode number slots in

svn commit: r219713 - head/bin/ps

2011-03-17 Thread Konstantin Belousov
Author: kib Date: Thu Mar 17 11:25:32 2011 New Revision: 219713 URL: http://svn.freebsd.org/changeset/base/219713 Log: Implement the usertime and systime keywords for ps, printing the corresponding times reported by getrusage(). Submitted by: Dan Nelson dnelson allantgroup com MFC

svn commit: r219804 - in head/sys: conf modules/ufs ufs/ffs ufs/ufs

2011-03-20 Thread Konstantin Belousov
Author: kib Date: Sun Mar 20 21:05:09 2011 New Revision: 219804 URL: http://svn.freebsd.org/changeset/base/219804 Log: Retire opt_ffs_broken_fixme.h. Instead of directly calling ffs_snapgone(), use UFS_SNAPGONE() with usual layering. Requested by: bde MFC after:1 week Modified:

svn commit: r219846 - in head/sys/ofed: drivers/infiniband/hw/mthca include/linux include/rdma

2011-03-21 Thread Konstantin Belousov
Author: kib Date: Mon Mar 21 21:16:40 2011 New Revision: 219846 URL: http://svn.freebsd.org/changeset/base/219846 Log: Allow the ofed modules to be compiled on i386. Reviewed by: jeff Modified: head/sys/ofed/drivers/infiniband/hw/mthca/mthca_main.c head/sys/ofed/include/linux/gfp.h

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

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 14:01:18 2011 New Revision: 22 URL: http://svn.freebsd.org/changeset/base/22 Log: Document O_CLOEXEC. Reviewed by: jhb MFC after:1 week Modified: head/lib/libc/sys/open.2 Modified: head/lib/libc/sys/open.2

svn commit: r220014 - head/sys/fs/msdosfs

2011-03-25 Thread Konstantin Belousov
Author: kib Date: Fri Mar 25 22:31:28 2011 New Revision: 220014 URL: http://svn.freebsd.org/changeset/base/220014 Log: Report EBUSY instead of EROFS for attempt of deleting or renaming the root directory of msdosfs mount. The VFS code would handle deletion case itself too, assuming VV_ROOT

svn commit: r220043 - head/gnu/usr.bin/gdb/libgdb

2011-03-26 Thread Konstantin Belousov
Author: kib Date: Sat Mar 26 21:12:53 2011 New Revision: 220043 URL: http://svn.freebsd.org/changeset/base/220043 Log: Print the raw value of si_code, that is esp. useful for undecoded values. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

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

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 12:39:48 2011 New Revision: 220099 URL: http://svn.freebsd.org/changeset/base/220099 Log: Fix the softdep_request_cleanup() function definition for !SOFTUPDATES case. Submitted by: Aleksandr Rybalko ray dlink ua Modified: head/sys/ufs/ffs/ffs_softdep.c

svn commit: r220100 - in head/sys: dev/ksyms kern sys

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 12:48:33 2011 New Revision: 220100 URL: http://svn.freebsd.org/changeset/base/220100 Log: Promote ksyms_map() and ksyms_unmap() to general facility copyout_map() and copyout_unmap() interfaces. Submitted by: John Wehle john feith com, nox MFC after:2

svn commit: r220101 - head/sys/kern

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 13:21:26 2011 New Revision: 220101 URL: http://svn.freebsd.org/changeset/base/220101 Log: Handle zero length in copyout_unmap(). Submitted by: John Wehle john feith com MFC after:2 weeks Modified: head/sys/kern/subr_uio.c Modified:

svn commit: r220102 - head/sys/kern

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 13:28:23 2011 New Revision: 220102 URL: http://svn.freebsd.org/changeset/base/220102 Log: Trim white spaces, adjust style. MFC after:2 weeks Modified: head/sys/kern/subr_uio.c Modified: head/sys/kern/subr_uio.c

svn commit: r220114 - head/sys/kern

2011-03-28 Thread Konstantin Belousov
Author: kib Date: Mon Mar 28 19:44:54 2011 New Revision: 220114 URL: http://svn.freebsd.org/changeset/base/220114 Log: Fix the check for vm_map_remove() error. Pointed out by: alc MFC after:2 weeks Modified: head/sys/kern/subr_uio.c Modified: head/sys/kern/subr_uio.c

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

2011-03-30 Thread Konstantin Belousov
Author: kib Date: Wed Mar 30 14:46:55 2011 New Revision: 220159 URL: http://svn.freebsd.org/changeset/base/220159 Log: Regen. Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c

svn commit: r220238 - in head/sys: amd64/ia32 compat/freebsd32 compat/ia32 ia64/ia32 kern modules sys

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 11:16:29 2011 New Revision: 220238 URL: http://svn.freebsd.org/changeset/base/220238 Log: Add support for executing the FreeBSD 1/i386 a.out binaries on amd64. In particular: - implement compat shims for old stat(2) variants and ogetdirentries(2); -

svn commit: r220245 - in head/sys: dev/streams kern opencrypto sys

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 13:28:34 2011 New Revision: 220245 URL: http://svn.freebsd.org/changeset/base/220245 Log: After the r21 is merged to stable/8, rename fallocf(9) to falloc(9) and remove the falloc() version that lacks flag argument. This is done to reduce the KPI bloat.

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

2011-04-01 Thread Konstantin Belousov
Author: kib Date: Fri Apr 1 19:57:27 2011 New Revision: 220253 URL: http://svn.freebsd.org/changeset/base/220253 Log: Fix mdoc errors. Submitted by: ru MFC after:3 days Modified: head/lib/libc/sys/open.2 Modified: head/lib/libc/sys/open.2

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

2012-03-20 Thread Konstantin Belousov
Author: kib Date: Tue Mar 20 13:20:49 2012 New Revision: 233231 URL: http://svn.freebsd.org/changeset/base/233231 Log: Fix several problems with our ELF filters implementation. Do not relocate twice an object which happens to be needed by loaded binary (or dso) and some filtee opened due

Re: svn commit: r233249 - head/sys/amd64/acpica

2012-03-21 Thread Konstantin Belousov
On Tue, Mar 20, 2012 at 08:37:23PM +, Jung-uk Kim wrote: Author: jkim Date: Tue Mar 20 20:37:23 2012 New Revision: 233249 URL: http://svn.freebsd.org/changeset/base/233249 Log: Fix another witness panic. We cannot enter critical section at all because AcpiEnterSleepState()

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

2012-03-22 Thread Konstantin Belousov
Author: kib Date: Thu Mar 22 14:11:10 2012 New Revision: 233306 URL: http://svn.freebsd.org/changeset/base/233306 Log: Remove the fragments which are not needed on FreeBSD. The caltech malloc hardly would ever be updated. Reviewed by: bde, kan MFC after:2 weeks Modified:

Re: svn commit: r233249 - head/sys/amd64/acpica

2012-03-22 Thread Konstantin Belousov
On Thu, Mar 22, 2012 at 07:48:49AM -0400, John Baldwin wrote: On Thursday, March 22, 2012 5:32:59 am Andriy Gapon wrote: on 21/03/2012 21:02 Jung-uk Kim said the following: On Wednesday 21 March 2012 01:57 pm, Andriy Gapon wrote: on 21/03/2012 19:41 Jung-uk Kim said the following: I am

svn commit: r233307 - in head/libexec/rtld-elf: . ia64 powerpc64

2012-03-22 Thread Konstantin Belousov
Author: kib Date: Thu Mar 22 14:20:51 2012 New Revision: 233307 URL: http://svn.freebsd.org/changeset/base/233307 Log: Use xmalloc() instead of malloc() in the places where malloc() calls are assumed to not fail. Make the xcalloc() calling conventions follow the calloc(3) calling

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

2012-03-23 Thread Konstantin Belousov
Author: kib Date: Fri Mar 23 12:04:44 2012 New Revision: 233357 URL: http://svn.freebsd.org/changeset/base/233357 Log: Implement xstrdup() using strlen()/xmalloc()/memcpy() already presented in rtld, instead of pulling in libc strdup(). Submitted by:bde MFC after: 2 weeks

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

2012-03-23 Thread Konstantin Belousov
Author: kib Date: Fri Mar 23 12:13:31 2012 New Revision: 233361 URL: http://svn.freebsd.org/changeset/base/233361 Log: Remove superfluous extern keywords. MFC after: 2 weeks Modified: head/libexec/rtld-elf/rtld.h Modified: head/libexec/rtld-elf/rtld.h

Re: svn commit: r233391 - head/contrib/libstdc++/libsupc++

2012-03-23 Thread Konstantin Belousov
On Fri, Mar 23, 2012 at 08:10:56PM +, David Chisnall wrote: Author: theraven Date: Fri Mar 23 20:10:56 2012 New Revision: 233391 URL: http://svn.freebsd.org/changeset/base/233391 Log: Revert ABI breakage in libsupc++. Unfortunately, the ABI was broken upstream for the 4.2

Re: svn commit: r233391 - head/contrib/libstdc++/libsupc++

2012-03-24 Thread Konstantin Belousov
On Sat, Mar 24, 2012 at 11:54:21AM -0400, Alexander Kabaev wrote: On Fri, 23 Mar 2012 23:39:44 + David Chisnall thera...@freebsd.org wrote: On 23 Mar 2012, at 21:10, Konstantin Belousov wrote: The patch just committed made the base-shipped library incompatible with the ports

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

2012-03-24 Thread Konstantin Belousov
Author: kib Date: Sat Mar 24 19:13:10 2012 New Revision: 233430 URL: http://svn.freebsd.org/changeset/base/233430 Log: Provide short-circuit exit(3) implementation for rtld. There is no atexit finalizers in rtld to call on rtld exiting (due to errors). Submitted by: bde No objections

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

2012-03-24 Thread Konstantin Belousov
Author: kib Date: Sat Mar 24 19:14:44 2012 New Revision: 233431 URL: http://svn.freebsd.org/changeset/base/233431 Log: Remove libssp_nonshared from the rtld linking set. The only use for the library was definition for the weak alias of __stack_chk_fail. No objections from: kan MFC

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