svn commit: r197942 - head/sys/kern

2009-10-10 Thread Konstantin Belousov
Author: kib Date: Sat Oct 10 21:17:30 2009 New Revision: 197942 URL: http://svn.freebsd.org/changeset/base/197942 Log: Refine r195509, instead of checking that vnode type is VBAD, that is set quite late in the revocation path, properly verify that vnode is not doomed before calling VOP.

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

2009-10-11 Thread Konstantin Belousov
Author: kib Date: Sun Oct 11 16:23:11 2009 New Revision: 197958 URL: http://svn.freebsd.org/changeset/base/197958 Log: In nanosleep(2), note that the calling thread is put to sleep, not the whole process. Also explicitely name the parameter that specifies sleep interval. Modified: head/li

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

2009-10-11 Thread Konstantin Belousov
Author: kib Date: Sun Oct 11 16:49:30 2009 New Revision: 197963 URL: http://svn.freebsd.org/changeset/base/197963 Log: Currently, when signal is delivered to the process and there is a thread not blocking the signal, signal is placed on the thread sigqueue. If the selected thread is in kerne

svn commit: r197965 - in head/tools/regression/sigqueue: sigqtest1 sigqtest2

2009-10-11 Thread Konstantin Belousov
Author: kib Date: Sun Oct 11 17:04:13 2009 New Revision: 197965 URL: http://svn.freebsd.org/changeset/base/197965 Log: Tweaks for sigqueue tests: - slightly adjust code for style, sort headers. - in sigqtest2, print received signals, to make it easy to see why test failed. - in sigqtes

svn commit: r197976 - head/sys/kern

2009-10-12 Thread Konstantin Belousov
Author: kib Date: Mon Oct 12 10:09:48 2009 New Revision: 197976 URL: http://svn.freebsd.org/changeset/base/197976 Log: Fix typo. Submitted by: rdivacky MFC after:1 month Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c =

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

2009-10-13 Thread Konstantin Belousov
Author: kib Date: Tue Oct 13 09:24:51 2009 New Revision: 198025 URL: http://svn.freebsd.org/changeset/base/198025 Log: MFC r197942: Refine r195509, instead of checking that vnode type is VBAD, that is set quite late in the revocation path, properly verify that vnode is not doomed before ca

svn commit: r198080 - in stable/8/lib/libc: . gen stdio stdtime string sys

2009-10-14 Thread Konstantin Belousov
Author: kib Date: Wed Oct 14 14:26:19 2009 New Revision: 198080 URL: http://svn.freebsd.org/changeset/base/198080 Log: MFC r197958: In nanosleep(2), note that the calling thread is put to sleep, not the whole process. Also explicitely name the parameter that specifies sleep interval.

svn commit: r198081 - in stable/7/lib/libc: . sys

2009-10-14 Thread Konstantin Belousov
Author: kib Date: Wed Oct 14 14:29:29 2009 New Revision: 198081 URL: http://svn.freebsd.org/changeset/base/198081 Log: MFC r197958: In nanosleep(2), note that the calling thread is put to sleep, not the whole process. Also explicitely name the parameter that specifies sleep interval. Modi

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

2009-10-16 Thread Konstantin Belousov
Author: kib Date: Fri Oct 16 12:00:59 2009 New Revision: 198170 URL: http://svn.freebsd.org/changeset/base/198170 Log: Move intr_describe() out of #ifdef SMP; the function is always required. Reviewed by: jhb Modified: head/sys/amd64/amd64/intr_machdep.c head/sys/i386/i386/intr_machde

svn commit: r198201 - head/sys/vm

2009-10-18 Thread Konstantin Belousov
Author: kib Date: Sun Oct 18 12:55:39 2009 New Revision: 198201 URL: http://svn.freebsd.org/changeset/base/198201 Log: Remove spurious call to priv_check(PRIV_VM_SWAP_NOQUOTA). Call priv_check(PRIV_VM_SWAP_NORLIMIT) only when per-uid limit is actually exceed. Both changes aim at calling

svn commit: r198202 - head/sys/kern

2009-10-18 Thread Konstantin Belousov
Author: kib Date: Sun Oct 18 12:57:48 2009 New Revision: 198202 URL: http://svn.freebsd.org/changeset/base/198202 Log: If ET_DYN binary has non-zero base address for some reason, honour it and do not relocate the binary to ET_DYN_LOAD_ADDR. This allows for the binary author to influence addr

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

2009-10-20 Thread Konstantin Belousov
Author: kib Date: Tue Oct 20 13:30:06 2009 New Revision: 198281 URL: http://svn.freebsd.org/changeset/base/198281 Log: MFC r197932: Do not map elf segments of zero length. Approved by: re (kensmith) Modified: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props c

svn commit: r198283 - in stable/8/sys: . amd64/include amd64/include/xen arm/include cddl/contrib/opensolaris contrib/dev/acpica contrib/pf dev/xen/xenpci i386/include ia64/include mips/include pow...

2009-10-20 Thread Konstantin Belousov
Author: kib Date: Tue Oct 20 13:32:28 2009 New Revision: 198283 URL: http://svn.freebsd.org/changeset/base/198283 Log: MFC r197933: Define architectural load bases for PIE binaries. MFC r198203 (by marius): Change load base for sparc to match default gcc memory layout model. Approv

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

2009-10-20 Thread Konstantin Belousov
Author: kib Date: Tue Oct 20 13:34:41 2009 New Revision: 198284 URL: http://svn.freebsd.org/changeset/base/198284 Log: MFC r197934: Map PIE binaries at non-zero base address. MFC r198202: Honour non-zero mapbase for PIE binaries. Inform interpreter-less PIE binary about its relocbase.

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

2009-10-20 Thread Konstantin Belousov
Author: kib Date: Tue Oct 20 13:26:58 2009 New Revision: 198280 URL: http://svn.freebsd.org/changeset/base/198280 Log: MFC r197931: Apply relocations for PIE binary ELF data structures pointers in rtld. Approved by: re (kensmith) Modified: stable/8/libexec/rtld-elf/ (props changed)

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

2009-10-21 Thread Konstantin Belousov
Author: kib Date: Wed Oct 21 15:07:34 2009 New Revision: 198330 URL: http://svn.freebsd.org/changeset/base/198330 Log: MFC r198201: Remove spurious call to priv_check(PRIV_VM_SWAP_NOQUOTA). Call priv_check(PRIV_VM_SWAP_NORLIMIT) only when per-uid limit is actually exceed. Approved by:

svn commit: r198505 - head/sys/vm

2009-10-27 Thread Konstantin Belousov
Author: kib Date: Tue Oct 27 10:15:58 2009 New Revision: 198505 URL: http://svn.freebsd.org/changeset/base/198505 Log: When protection of wired read-only mapping is changed to read-write, install new shadow object behind the map entry and copy the pages from the underlying objects to it. Thi

svn commit: r198506 - in head/sys: compat/freebsd32 kern sys

2009-10-27 Thread Konstantin Belousov
Author: kib Date: Tue Oct 27 10:42:24 2009 New Revision: 198506 URL: http://svn.freebsd.org/changeset/base/198506 Log: In kern_sigsuspend(), better manipulate thread signal mask using kern_sigprocmask() to properly notify other possible candidate threads for signal delivery. Since sigsu

svn commit: r198507 - in head/sys: amd64/amd64 amd64/ia32 amd64/linux32 arm/arm compat/freebsd32 i386/i386 i386/linux ia64/ia64 kern mips/mips pc98/pc98 powerpc/aim powerpc/booke sparc64/sparc64 su...

2009-10-27 Thread Konstantin Belousov
Author: kib Date: Tue Oct 27 10:47:58 2009 New Revision: 198507 URL: http://svn.freebsd.org/changeset/base/198507 Log: In r197963, a race with thread being selected for signal delivery while in kernel mode, and later changing signal mask to block the signal, was fixed for sigprocmask(2) and

svn commit: r198508 - in head: lib/libc/gen lib/libc/sys lib/libthr/thread sys/compat/freebsd32 sys/kern sys/sys

2009-10-27 Thread Konstantin Belousov
Author: kib Date: Tue Oct 27 10:55:34 2009 New Revision: 198508 URL: http://svn.freebsd.org/changeset/base/198508 Log: Current pselect(3) is implemented in usermode and thus vulnerable to well-known race condition, which elimination was the reason for the function appearance in first place.

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

2009-10-27 Thread Konstantin Belousov
Author: kib Date: Tue Oct 27 10:57:53 2009 New Revision: 198509 URL: http://svn.freebsd.org/changeset/base/198509 Log: Commit libc files missed in r198508 Modified: head/lib/libc/gen/Makefile.inc head/lib/libc/gen/Symbol.map head/lib/libc/gen/pselect.3 Modified: head/lib/libc/gen/Makefil

svn commit: r198510 - head/sys/kern

2009-10-27 Thread Konstantin Belousov
Author: kib Date: Tue Oct 27 11:01:15 2009 New Revision: 198510 URL: http://svn.freebsd.org/changeset/base/198510 Log: Regenerate Modified: head/sys/kern/init_sysent.c head/sys/kern/syscalls.c head/sys/kern/systrace_args.c Modified: head/sys/kern/init_sysent.c ===

svn commit: r198511 - head/sys/sys

2009-10-27 Thread Konstantin Belousov
Author: kib Date: Tue Oct 27 11:01:40 2009 New Revision: 198511 URL: http://svn.freebsd.org/changeset/base/198511 Log: Regenerate Modified: head/sys/sys/syscall.h head/sys/sys/syscall.mk head/sys/sys/sysproto.h Modified: head/sys/sys/syscall.h

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

2009-10-27 Thread Konstantin Belousov
Author: kib Date: Tue Oct 27 11:02:04 2009 New Revision: 198512 URL: http://svn.freebsd.org/changeset/base/198512 Log: Regenerate Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sys/c

svn commit: r198538 - in head: . lib/libc/gen lib/libc/sys

2009-10-28 Thread Konstantin Belousov
Author: kib Date: Wed Oct 28 11:14:32 2009 New Revision: 198538 URL: http://svn.freebsd.org/changeset/base/198538 Log: Move pselect(3) man page to section 2. Noted by: jhb MFC after:1 month Added: head/lib/libc/sys/pselect.2 - copied, changed from r198524, head/lib/libc/ge

svn commit: r198575 - head/sys/kern

2009-10-29 Thread Konstantin Belousov
Author: kib Date: Thu Oct 29 10:03:08 2009 New Revision: 198575 URL: http://svn.freebsd.org/changeset/base/198575 Log: Fix style issue. Modified: head/sys/kern/uipc_syscalls.c Modified: head/sys/kern/uipc_syscalls.c

svn commit: r198590 - head/sys/kern

2009-10-29 Thread Konstantin Belousov
Author: kib Date: Thu Oct 29 14:34:24 2009 New Revision: 198590 URL: http://svn.freebsd.org/changeset/base/198590 Log: Trapsignal() calls kern_sigprocmask() when delivering catched signal with proc lock held. Reported and tested by: Mykola Dzham freebsd at levsha org ua MFC after

svn commit: r198611 - in stable/8/sys: . amd64/include/xen cddl/contrib/opensolaris conf contrib/dev/acpica contrib/pf dev/xen/xenpci fs/procfs modules/procfs

2009-10-29 Thread Konstantin Belousov
ocfs_osrel.c) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/8/sys/fs/procfs/procfs_osrel.c Thu Oct 29 16:19:58 2009 (r198611, copy of r197428, head/sys/fs/

svn commit: r198612 - stable/8/share/man/man5

2009-10-29 Thread Konstantin Belousov
Author: kib Date: Thu Oct 29 16:21:52 2009 New Revision: 198612 URL: http://svn.freebsd.org/changeset/base/198612 Log: MFC r197429: Document osrel node for procfs. Modified: stable/8/share/man/man5/ (props changed) stable/8/share/man/man5/procfs.5 Modified: stable/8/share/man/man5/proc

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

2009-10-29 Thread Konstantin Belousov
Author: kib Date: Thu Oct 29 16:24:39 2009 New Revision: 198613 URL: http://svn.freebsd.org/changeset/base/198613 Log: MFC r197389: Do panic regardeless of execution mode at the moment of T_RESERVED trap. Modified: stable/8/sys/ (props changed) stable/8/sys/amd64/amd64/trap.c stable/8

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

2009-10-29 Thread Konstantin Belousov
Author: kib Date: Thu Oct 29 16:28:21 2009 New Revision: 198614 URL: http://svn.freebsd.org/changeset/base/198614 Log: MFC r197930: Postpone dropping fp till both kq_global and kqueue mutexes are unlocked. Modified: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (prop

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

2009-10-30 Thread Konstantin Belousov
Author: kib Date: Fri Oct 30 10:10:39 2009 New Revision: 198670 URL: http://svn.freebsd.org/changeset/base/198670 Log: Trapsignal() and postsig() call kern_sigprocmask() with both process lock and curproc->p_sigacts->ps_mtx. Reschedule_signals may need to have ps_mtx locked to decide and wak

svn commit: r198853 - head/sys/kern

2009-11-03 Thread Konstantin Belousov
Author: kib Date: Tue Nov 3 12:52:35 2009 New Revision: 198853 URL: http://svn.freebsd.org/changeset/base/198853 Log: If socket buffer space appears to be lower then sum of count of already prepared bytes and next portion of transfer, inner loop of kern_sendfile() aborts, not preparing next

svn commit: r224904 - stable/8/sys/fs/devfs

2011-08-16 Thread Konstantin Belousov
Author: kib Date: Tue Aug 16 08:41:09 2011 New Revision: 224904 URL: http://svn.freebsd.org/changeset/base/224904 Log: MFC r224743: Do not update mountpoint generation counter to the value which was not yet acted upon by devfs_populate(). Modified: stable/8/sys/fs/devfs/devfs_devs.c Direc

svn commit: r224906 - stable/7/sys/fs/devfs

2011-08-16 Thread Konstantin Belousov
Author: kib Date: Tue Aug 16 09:06:44 2011 New Revision: 224906 URL: http://svn.freebsd.org/changeset/base/224906 Log: MFC r224743: Do not update mountpoint generation counter to the value which was not yet acted upon by devfs_populate(). Modified: stable/7/sys/fs/devfs/devfs_devs.c Direc

svn commit: r224914 - in head/sys: dev/streams fs/devfs fs/fifofs kern ofed/include/linux opencrypto security/mac security/mac_stub security/mac_test sys

2011-08-16 Thread Konstantin Belousov
Author: kib Date: Tue Aug 16 20:07:47 2011 New Revision: 224914 URL: http://svn.freebsd.org/changeset/base/224914 Log: Add the fo_chown and fo_chmod methods to struct fileops and use them to implement fchown(2) and fchmod(2) support for several file types that previously lacked it. Add MAC e

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

2011-08-16 Thread Konstantin Belousov
Author: kib Date: Tue Aug 16 20:13:17 2011 New Revision: 224915 URL: http://svn.freebsd.org/changeset/base/224915 Log: Do not return success and a string "unknown" when vn_fullpath() was unable to resolve the path of the text vnode of the process. The behaviour is very confusing for any cons

svn commit: r224935 - head/sys/kern

2011-08-17 Thread Konstantin Belousov
Author: kib Date: Wed Aug 17 12:37:14 2011 New Revision: 224935 URL: http://svn.freebsd.org/changeset/base/224935 Log: Fix build breakage. Initialize error variables explicitely for !MAC case. Pointy hat to:kib Approved by: re (bz) Modified: head/sys/kern/uipc_sem.c head/sys

svn commit: r225040 - head/sys/kern

2011-08-20 Thread Konstantin Belousov
Author: kib Date: Sat Aug 20 16:12:29 2011 New Revision: 225040 URL: http://svn.freebsd.org/changeset/base/225040 Log: Prevent the hiwatermark for the unix domain socket from becoming effectively negative. Often seen as upstream fastcgi connection timeouts in nginx when using sendfile over u

svn commit: r225076 - head/sys/vm

2011-08-22 Thread Konstantin Belousov
Author: kib Date: Mon Aug 22 11:18:47 2011 New Revision: 225076 URL: http://svn.freebsd.org/changeset/base/225076 Log: Apply the limit to avoid the overflows in the radix tree subr_blist.c after the conversion of the swap device size to the page size units, not before. That lifts the limit o

svn commit: r225089 - head/sys/vm

2011-08-22 Thread Konstantin Belousov
Author: kib Date: Mon Aug 22 20:44:18 2011 New Revision: 225089 URL: http://svn.freebsd.org/changeset/base/225089 Log: Update some comments in swap_pager.c. Reviewed and most wording by: alc MFC after:1 week Approved by: re (bz) Modified: head/sys/vm/swap_pager.c Modified: head

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

2011-08-24 Thread Konstantin Belousov
ind_lock = &rtld_locks rtld_lock_trtld_libc_lock = &rtld_locks[1]; rtld_lock_trtld_phdr_lock = &rtld_locks[2]; -#define print_ebp(str) do {register long ebp asm("ebp"); printf("%s 0x%0lx\n", str, ebp);} while (0) - void rlock_acquire(rtld_lock_t lock, R

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

2011-08-25 Thread Konstantin Belousov
Author: kib Date: Thu Aug 25 10:00:38 2011 New Revision: 225172 URL: http://svn.freebsd.org/changeset/base/225172 Log: Clarify the behaviour of sigwait() on signal interruption, and note the difference between sigwait() and sigtimedwait()/sigwaitinfo(). Approved by: re (bz) Modified:

svn commit: r225227 - in head: . lib/libbsnmp/libbsnmp lib/libcam lib/libdwarf lib/libopie lib/libpcap lib/librtld_db lib/libtacplus lib/libufs sys/sys

2011-08-28 Thread Konstantin Belousov
Author: kib Date: Sun Aug 28 09:26:48 2011 New Revision: 225227 URL: http://svn.freebsd.org/changeset/base/225227 Log: Bump shared libraries version numbers in preparation for 9.0. This time, only libraries which ABI has been changed compared to stable/8, are bumped. ABI analysis done b

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

2011-08-29 Thread Konstantin Belousov
Author: kib Date: Mon Aug 29 10:29:05 2011 New Revision: 225244 URL: http://svn.freebsd.org/changeset/base/225244 Log: MFC r221096 (by obrien): Reap old SPL comments. MFC r225089: Update some comments in swap_pager.c. Modified: stable/8/sys/vm/swap_pager.c Directory Properties: sta

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

2011-08-30 Thread Konstantin Belousov
Author: kib Date: Tue Aug 30 11:50:28 2011 New Revision: 225261 URL: http://svn.freebsd.org/changeset/base/225261 Log: MFC r224915: Do not return success and a string "unknown" when vn_fullpath() was unable to resolve the path of the text vnode of the process. The behaviour is very confusi

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

2011-09-03 Thread Konstantin Belousov
Author: kib Date: Sat Sep 3 08:31:59 2011 New Revision: 225365 URL: http://svn.freebsd.org/changeset/base/225365 Log: MFC r225040: Prevent the hiwatermark for the unix domain socket from becoming effectively negative. Often seen as upstream fastcgi connection timeouts in nginx when using

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

2011-09-05 Thread Konstantin Belousov
Author: kib Date: Mon Sep 5 08:41:57 2011 New Revision: 225388 URL: http://svn.freebsd.org/changeset/base/225388 Log: MFC r225076: Apply the limit to avoid the overflows in the radix tree subr_blist.c after the conversion of the swap device size to the page size units, not before. Modifi

svn commit: r225415 - head

2011-09-06 Thread Konstantin Belousov
Author: kib Date: Tue Sep 6 10:17:02 2011 New Revision: 225415 URL: http://svn.freebsd.org/changeset/base/225415 Log: Fix for the obsolete libraries list after the 9.0 bump. Partially noted by: pluknet Approved by: re (bz) Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFi

svn commit: r225416 - head/sbin/mdmfs

2011-09-06 Thread Konstantin Belousov
Author: kib Date: Tue Sep 6 10:19:01 2011 New Revision: 225416 URL: http://svn.freebsd.org/changeset/base/225416 Log: dd -t switch for mdmfs to enable TRIM on the configured filesystem. While there, fix minor style issues. Submitted by: Alex Kozlov MFC after:1 week Approved by:

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

2011-09-06 Thread Konstantin Belousov
Author: kib Date: Tue Sep 6 10:21:33 2011 New Revision: 225417 URL: http://svn.freebsd.org/changeset/base/225417 Log: Do not use the function pointers for the internal operation of rtld_printf() functions. The _rtld_error() function might be called early during the rtld bootstrap, in which

svn commit: r225418 - in head/sys: amd64/amd64 arm/arm cddl/contrib/opensolaris/uts/common/fs/zfs fs/tmpfs i386/i386 i386/xen ia64/ia64 mips/mips powerpc/aim powerpc/booke powerpc/powerpc sparc64/s...

2011-09-06 Thread Konstantin Belousov
Author: kib Date: Tue Sep 6 10:30:11 2011 New Revision: 225418 URL: http://svn.freebsd.org/changeset/base/225418 Log: Split the vm_page flags PG_WRITEABLE and PG_REFERENCED into atomic flags field. Updates to the atomic flags are performed using the atomic ops on the containing word, do not

svn commit: r225419 - in head: . share/man/man9

2011-09-06 Thread Konstantin Belousov
Author: kib Date: Tue Sep 6 10:40:21 2011 New Revision: 225419 URL: http://svn.freebsd.org/changeset/base/225419 Log: Document vm_page_aflag_set(9), vm_page_aflag_clear(9) and vm_page_reference(9). Retire vm_page_flag_set() and vm_page_flag_clear() functions. Reviewed by: alc Approve

svn commit: r225474 - in head/sys: amd64/amd64 amd64/ia32 i386/i386 ia64/ia32 ia64/ia64 kern powerpc/aim powerpc/booke sparc64/sparc64 sys

2011-09-11 Thread Konstantin Belousov
2007 The FreeBSD Foundation + * Copyright (C) 2010 Konstantin Belousov * * This code is derived from software contributed to Berkeley by * the University of Utah, and William Jolitz. * - * Portions of this software were developed by A. Joseph Koshy under - * sponsorship from the FreeBSD Foun

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

2011-09-11 Thread Konstantin Belousov
Author: kib Date: Sun Sep 11 16:08:10 2011 New Revision: 225475 URL: http://svn.freebsd.org/changeset/base/225475 Log: Perform amd64-specific microoptimizations for native syscall entry sequence. The effect is ~1% on the microbenchmark. In particular, do not restore registers which are pr

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

2011-09-11 Thread Konstantin Belousov
Author: kib Date: Sun Sep 11 18:00:46 2011 New Revision: 225483 URL: http://svn.freebsd.org/changeset/base/225483 Log: The jump target shall be after the padding, not into it. Reported by: alc Approved by: re (bz) MFC after:2 weeks Modified: head/sys/amd64/amd64/exception.S Mo

svn commit: r225526 - stable/8/sbin/mdmfs

2011-09-13 Thread Konstantin Belousov
Author: kib Date: Tue Sep 13 08:49:52 2011 New Revision: 225526 URL: http://svn.freebsd.org/changeset/base/225526 Log: MFC r225416: Add -t switch for mdmfs to enable TRIM on the configured filesystem. While there, fix minor style issues. Modified: stable/8/sbin/mdmfs/mdmfs.8 stable/8/sb

svn commit: r225534 - head/sbin/mdmfs

2011-09-13 Thread Konstantin Belousov
Author: kib Date: Tue Sep 13 20:16:11 2011 New Revision: 225534 URL: http://svn.freebsd.org/changeset/base/225534 Log: Do not try to change the mode or ownership of the root of the mountpoint when newly established mdmfs mount is readonly. PR: bin/128427 Tested and reviewed by:

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

2011-09-15 Thread Konstantin Belousov
Author: kib Date: Thu Sep 15 09:53:04 2011 New Revision: 225575 URL: http://svn.freebsd.org/changeset/base/225575 Log: Microoptimize the return path for the fast syscalls on amd64. Arrange the code to have the fall-through path to follow the likely target. Do not use intermediate register to

svn commit: r225576 - in head/sys/amd64: amd64 include

2011-09-15 Thread Konstantin Belousov
Author: kib Date: Thu Sep 15 09:54:07 2011 New Revision: 225576 URL: http://svn.freebsd.org/changeset/base/225576 Log: Put amd64_syscall() prototype in md_var.h. Requested by: jhb Reviewed by: alc, jhb Approved by: re (bz) MFC after:2 weeks Modified: head/sys/amd64/amd64/trap

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

2011-09-15 Thread Konstantin Belousov
Author: kib Date: Thu Sep 15 11:50:09 2011 New Revision: 225582 URL: http://svn.freebsd.org/changeset/base/225582 Log: Use the proper dynamic tls block to calculate the tls variable address in case tls data generation was updated. PR: misc/160721 Submitted by: "Thinker K.F. Li" Tes

svn commit: r225649 - svnadmin/conf

2011-09-18 Thread Konstantin Belousov
Author: kib Date: Sun Sep 18 11:07:51 2011 New Revision: 225649 URL: http://svn.freebsd.org/changeset/base/225649 Log: Welcome Robert Millan. Approved by: core Modified: svnadmin/conf/access svnadmin/conf/mentors Modified: svnadmin/conf/access

svn commit: r225677 - head/contrib/tzcode/stdtime

2011-09-19 Thread Konstantin Belousov
Author: kib Date: Mon Sep 19 22:35:54 2011 New Revision: 225677 URL: http://svn.freebsd.org/changeset/base/225677 Log: Do not overallocate on the stack. Threaded code might use custom stack size. Reported by: many Tested by:Jeremie Le Hen (previous version) Reviewed by: jilles

svn commit: r225692 - stable/8/sbin/mdmfs

2011-09-20 Thread Konstantin Belousov
Author: kib Date: Tue Sep 20 08:34:15 2011 New Revision: 225692 URL: http://svn.freebsd.org/changeset/base/225692 Log: MFC r225534: Do not try to change the mode or ownership of the root of the mountpoint when newly established mdmfs mount is readonly. Modified: stable/8/sbin/mdmfs/mdmfs.

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

2011-09-20 Thread Konstantin Belousov
Author: kib Date: Tue Sep 20 21:49:54 2011 New Revision: 225699 URL: http://svn.freebsd.org/changeset/base/225699 Log: Restore the writing of the .bss sections of the dsos (not the main executable) after r190885. The whole region for the dso is mmaped with MAP_NOCORE flag, doing only mprotec

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

2011-09-20 Thread Konstantin Belousov
Author: kib Date: Tue Sep 20 21:53:26 2011 New Revision: 225700 URL: http://svn.freebsd.org/changeset/base/225700 Log: Use nowait sync request for a vnode when doing softdep cleanup. We possibly own the unrelated vnode lock, doing waiting sync causes deadlocks. Reported and tested by:

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

2011-09-22 Thread Konstantin Belousov
Author: kib Date: Thu Sep 22 08:39:20 2011 New Revision: 225726 URL: http://svn.freebsd.org/changeset/base/225726 Log: MFC r225582: Use the proper dynamic tls block to calculate the tls variable address in case tls data generation was updated. PR: misc/160721 Modified: stable/8/lib

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

2011-09-27 Thread Konstantin Belousov
Author: kib Date: Tue Sep 27 12:14:43 2011 New Revision: 225790 URL: http://svn.freebsd.org/changeset/base/225790 Log: Install ciss(4) ioctl header (together with other .h files from sys/dev/ciss). PR: kern/109813 Discussued with: Alex Samorukov (smartmontools maintainer)

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: r225838 - head/sys/vm

2011-09-28 Thread Konstantin Belousov
Author: kib Date: Wed Sep 28 14:51:28 2011 New Revision: 225838 URL: http://svn.freebsd.org/changeset/base/225838 Log: Use the explicitly-sized types for the dirty and valid masks. Requested by: attilio Reviewed by: alc MFC after:2 weeks Modified: head/sys/vm/vm_page.h Modified

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

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: r225855 - in stable/8/sys: amd64/amd64 amd64/ia32 amd64/include i386/i386 ia64/ia32 ia64/ia64 kern powerpc/aim powerpc/booke sparc64/sparc64 sun4v/sun4v sys

2011-09-28 Thread Konstantin Belousov
Author: kib Date: Thu Sep 29 00:39:56 2011 New Revision: 225855 URL: http://svn.freebsd.org/changeset/base/225855 Log: Merge the optimizations for the syscall entry and leave. MFC r225474: Inline the syscallenter() and syscallret(). This reduces the time measured by the syscall entry sp

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 h

svn commit: r225895 - stable/8/lib/libthr/thread

2011-10-01 Thread Konstantin Belousov
Author: kib Date: Sat Oct 1 11:49:24 2011 New Revision: 225895 URL: http://svn.freebsd.org/changeset/base/225895 Log: MFC r211526: Reduce redundant code. Modified: stable/8/lib/libthr/thread/thr_sig.c Directory Properties: stable/8/lib/libthr/ (props changed) Modified: stable/8/lib/li

svn commit: r225896 - in stable/8/lib: libc/stdlib libc/sys libthr/thread

2011-10-01 Thread Konstantin Belousov
Author: kib Date: Sat Oct 1 11:59:45 2011 New Revision: 225896 URL: http://svn.freebsd.org/changeset/base/225896 Log: MFC r212405 (by davidxu): Because POSIX does not allow EINTR to be returned from sigwait(), add a wrapper for it in libc and rework the code in libthr, the system call sti

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

2011-10-01 Thread Konstantin Belousov
Author: kib Date: Sat Oct 1 12:35:09 2011 New Revision: 225898 URL: http://svn.freebsd.org/changeset/base/225898 Log: MFC r225172: Clarify the behaviour of sigwait() on signal interruption, and note the difference between sigwait() and sigtimedwait()/sigwaitinfo(). Modified: stable/8/lib

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: head/sys/kern/subr_

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 aft

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

2011-10-03 Thread Konstantin Belousov
Author: kib Date: Mon Oct 3 20:05:21 2011 New Revision: 225948 URL: http://svn.freebsd.org/changeset/base/225948 Log: Restore the td_syscalls counter, that was erronously removed in the r225855. Note that this is a direct commit to stable/8, td_syscalls was removed in head by r210138.

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

2011-10-04 Thread Konstantin Belousov
Author: kib Date: Tue Oct 4 09:55:15 2011 New Revision: 225961 URL: http://svn.freebsd.org/changeset/base/225961 Log: MFC r225699: Restore the writing of the .bss sections of the dsos. Revert the optimization of using mprotect(2) to establish .bss, overlap the section with mmap(2). Modif

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

2011-10-04 Thread Konstantin Belousov
Author: kib Date: Tue Oct 4 10:08:02 2011 New Revision: 225964 URL: http://svn.freebsd.org/changeset/base/225964 Log: MFC r225790: Install ciss(4) ioctl header. PR: kern/109813 Modified: stable/8/etc/mtree/BSD.include.dist stable/8/include/Makefile Directory Properties: stable/8

svn commit: r225967 - in stable/9: etc/mtree include

2011-10-04 Thread Konstantin Belousov
Author: kib Date: Tue Oct 4 11:08:44 2011 New Revision: 225967 URL: http://svn.freebsd.org/changeset/base/225967 Log: MFC r225790: Install ciss(4) ioctl header. PR: kern/109813 Approved by: re (bz) Modified: stable/9/etc/mtree/BSD.include.dist stable/9/include/Makefile Director

svn commit: r225969 - stable/8/lib/libc/stdtime

2011-10-04 Thread Konstantin Belousov
Author: kib Date: Tue Oct 4 11:23:03 2011 New Revision: 225969 URL: http://svn.freebsd.org/changeset/base/225969 Log: MFC r225677: Do not overallocate on the stack. Threaded code might use custom stack size. Modified: stable/8/lib/libc/stdtime/localtime.c Directory Properties: stable/8

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

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

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 M

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 MFC after:2 weeks Modified: head/sys/kern/sys_pipe.c

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 a

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

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 set

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 Revie

svn commit: r226199 - in stable/9/sys: kern sys

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 12:07:04 2011 New Revision: 226199 URL: http://svn.freebsd.org/changeset/base/226199 Log: MFC r225894: 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 sig

svn commit: r226202 - stable/9/sys/kern

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 12:27:40 2011 New Revision: 226202 URL: http://svn.freebsd.org/changeset/base/226202 Log: MFC r225942: Assert that exiting process does not return to usermode. Approved by: re (bz) Modified: stable/9/sys/kern/subr_trap.c Directory Properties: stable/9/sy

svn commit: r226204 - in stable/9/sys: amd64/amd64 i386/i386

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 12:30:16 2011 New Revision: 226204 URL: http://svn.freebsd.org/changeset/base/226204 Log: MFC r225943: Do not allow the kernel to access usermode pages without installed fault handler. Panic immediately in such situation, on i386 and amd64. Approved by: re

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

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 13:03:14 2011 New Revision: 226205 URL: http://svn.freebsd.org/changeset/base/226205 Log: MFC r225894: 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 sig

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