svn commit: r227023 - head/lib/libc/amd64/gen

2011-11-02 Thread Konstantin Belousov
Author: kib Date: Wed Nov 2 18:06:22 2011 New Revision: 227023 URL: http://svn.freebsd.org/changeset/base/227023 Log: Make sure that stack is 16-byte aligned before calling a function, as it is required by amd64 ABI. Add a comment for the places were the stack is accidentally properly

svn commit: r227024 - head/lib/libc/i386/gen

2011-11-02 Thread Konstantin Belousov
Author: kib Date: Wed Nov 2 18:08:30 2011 New Revision: 227024 URL: http://svn.freebsd.org/changeset/base/227024 Log: Despite official i386 ABI does not mandate any stack alignment besides the word alignment, some versions of gcc do require 16-byte alignment. Make sure the stack is 16-byte

svn commit: r227062 - head/sys/fs/devfs

2011-11-03 Thread Konstantin Belousov
Author: kib Date: Thu Nov 3 18:55:18 2011 New Revision: 227062 URL: http://svn.freebsd.org/changeset/base/227062 Log: Fix kernel panic when d_fdopen csw method is called for NULL fp. This may happen when kernel consumer calls VOP_OPEN(). Reported by: Tavis Ormandy taviso cmpxchg8b com

svn commit: r227102 - head/sys/vm

2011-11-05 Thread Konstantin Belousov
Author: kib Date: Sat Nov 5 08:20:32 2011 New Revision: 227102 URL: http://svn.freebsd.org/changeset/base/227102 Log: Provide typedefs for the type of bit mask for the page bits. Use the defined types instead of int when manipulating masks. Supposedly, it could fix support for 32KB page

svn commit: r227103 - head/sys/vm

2011-11-05 Thread Konstantin Belousov
Author: kib Date: Sat Nov 5 09:03:18 2011 New Revision: 227103 URL: http://svn.freebsd.org/changeset/base/227103 Log: Remove redundand definitions. The chunk was missed from r227102. MFC after:2 weeks Modified: head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.h

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

2011-11-05 Thread Konstantin Belousov
Author: kib Date: Sat Nov 5 09:04:13 2011 New Revision: 227104 URL: http://svn.freebsd.org/changeset/base/227104 Log: Fix typo. MFC after:3 days Modified: head/sys/fs/procfs/procfs_status.c Modified: head/sys/fs/procfs/procfs_status.c

svn commit: r227392 - head/sys/sys

2011-11-09 Thread Konstantin Belousov
Author: kib Date: Wed Nov 9 17:13:41 2011 New Revision: 227392 URL: http://svn.freebsd.org/changeset/base/227392 Log: Assert that _PRELE() is done for the held process. Tested by:pho MFC after:1 week Modified: head/sys/sys/proc.h Modified: head/sys/sys/proc.h

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

2011-11-09 Thread Konstantin Belousov
Author: kib Date: Wed Nov 9 17:15:51 2011 New Revision: 227393 URL: http://svn.freebsd.org/changeset/base/227393 Log: Lock the thread lock around block that retrieves td_wmesg. Otherwise, procfs could see a thread with assigned td_wchan but still NULL td_wmesg. Reported and tested by:

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

2011-11-09 Thread Konstantin Belousov
Author: kib Date: Wed Nov 9 17:25:43 2011 New Revision: 227394 URL: http://svn.freebsd.org/changeset/base/227394 Log: Stopped process may legitimately have some threads sleeping and not suspended, if the sleep is uninterruptible. Reported and tested by: pho MFC after:1 week

svn commit: r227399 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include

2011-11-09 Thread Konstantin Belousov
Author: kib Date: Wed Nov 9 18:25:50 2011 New Revision: 227399 URL: http://svn.freebsd.org/changeset/base/227399 Log: Attempt to improve formatting and content of several comments for amd64 and i386 MD code. Based on suggestions by: bde MFC after:1 week Modified:

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

2011-11-10 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 04:10:36 2011 New Revision: 227442 URL: http://svn.freebsd.org/changeset/base/227442 Log: Weaken the part of assertions added in the r227394. Only check that the process state is stopped. MFC after:1 week Modified: head/sys/amd64/amd64/machdep.c

svn commit: r227443 - head/sys/kern

2011-11-10 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 04:12:58 2011 New Revision: 227443 URL: http://svn.freebsd.org/changeset/base/227443 Log: Guard against the unlikely case of the alias path containing the '%' symbols. Reported by: arundel MFC after:1 week Modified: head/sys/kern/kern_conf.c

svn commit: r227444 - head/sys/kern

2011-11-10 Thread Konstantin Belousov
Author: kib Date: Fri Nov 11 04:13:47 2011 New Revision: 227444 URL: http://svn.freebsd.org/changeset/base/227444 Log: Style. MFC after:1 week Modified: head/sys/kern/kern_conf.c Modified: head/sys/kern/kern_conf.c

svn commit: r227529 - head/sys/vm

2011-11-15 Thread Konstantin Belousov
Author: kib Date: Tue Nov 15 14:09:53 2011 New Revision: 227529 URL: http://svn.freebsd.org/changeset/base/227529 Log: Remove the condition that is always true. Submitted by: alc MFC after:1 week Modified: head/sys/vm/vm_pager.c Modified: head/sys/vm/vm_pager.c

svn commit: r227530 - head/sys/vm

2011-11-15 Thread Konstantin Belousov
Author: kib Date: Tue Nov 15 14:40:00 2011 New Revision: 227530 URL: http://svn.freebsd.org/changeset/base/227530 Log: Update the device pager interface, while keeping the compatibility layer for old KPI and KBI. New interface should be used together with d_mmap_single cdevsw method.

svn commit: r227576 - head/sys/fs/pseudofs

2011-11-16 Thread Konstantin Belousov
Author: kib Date: Wed Nov 16 18:41:59 2011 New Revision: 227576 URL: http://svn.freebsd.org/changeset/base/227576 Log: Fix build, use %d for int value formatting. Modified: head/sys/fs/pseudofs/pseudofs_vnops.c Modified: head/sys/fs/pseudofs/pseudofs_vnops.c

svn commit: r227577 - head/sys/dev/mfi

2011-11-16 Thread Konstantin Belousov
Author: kib Date: Wed Nov 16 18:42:39 2011 New Revision: 227577 URL: http://svn.freebsd.org/changeset/base/227577 Log: The sys/sysctl.h header is needed when MFI_DEBUG is defined. Nod from: jhb Modified: head/sys/dev/mfi/mfi_debug.c Modified: head/sys/dev/mfi/mfi_debug.c

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

2011-11-17 Thread Konstantin Belousov
Author: kib Date: Thu Nov 17 13:14:07 2011 New Revision: 227622 URL: http://svn.freebsd.org/changeset/base/227622 Log: Fix typo. Submitted by: arundel MFC after:3 days Modified: head/lib/libc/sys/stat.2 Modified: head/lib/libc/sys/stat.2

svn commit: r227656 - head/sys/sys

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Fri Nov 18 09:05:25 2011 New Revision: 227656 URL: http://svn.freebsd.org/changeset/base/227656 Log: Use the alternate form of the gcc extension that works even with -ansi -pedantic without issuing a warning, and which is recommended by gcc manual. MFC after:1

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

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Fri Nov 18 09:12:26 2011 New Revision: 227657 URL: http://svn.freebsd.org/changeset/base/227657 Log: Consistently use process spin lock for protection of the p-p_boundary_count. Race could cause the execve(2) from the threaded process to hung since thread boundary counter

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

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Fri Nov 18 09:55:47 2011 New Revision: 227660 URL: http://svn.freebsd.org/changeset/base/227660 Log: Fix fd leak. Reported by: slonoman2011 yandex ru MFC after:1 week Modified: head/libexec/rtld-elf/rtld.c Modified: head/libexec/rtld-elf/rtld.c

svn commit: r227661 - head/lib/librt

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Fri Nov 18 09:56:40 2011 New Revision: 227661 URL: http://svn.freebsd.org/changeset/base/227661 Log: Free unused allocation on error. Reported by: slonoman2011 yandex ru MFC after:1 week Modified: head/lib/librt/timer.c Modified: head/lib/librt/timer.c

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

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Sat Nov 19 07:40:13 2011 New Revision: 227695 URL: http://svn.freebsd.org/changeset/base/227695 Log: Use the plain panic calls, without additional printing around them. The debugger and dumping support is adequate. Tested by:pho MFC after:1 week Modified:

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

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Sat Nov 19 07:41:37 2011 New Revision: 227696 URL: http://svn.freebsd.org/changeset/base/227696 Log: Do not use NULLVPTOLOWERVP() in the null_print(). If diagnostic is compiled in, and show vnode is used from ddb on the faulty nullfs vnode, we get panic instead of vnode

svn commit: r227697 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/devfs fs/nullfs fs/pseudofs kern

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Sat Nov 19 07:50:49 2011 New Revision: 227697 URL: http://svn.freebsd.org/changeset/base/227697 Log: Existing VOP_VPTOCNP() interface has a fatal flow that is critical for nullfs. The problem is that resulting vnode is only required to be held on return from the

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

2011-11-18 Thread Konstantin Belousov
Author: kib Date: Sat Nov 19 07:52:39 2011 New Revision: 227698 URL: http://svn.freebsd.org/changeset/base/227698 Log: Update the manpage for r227697. MFC after:3 weeks Modified: head/share/man/man9/VOP_VPTOCNP.9 Modified: head/share/man/man9/VOP_VPTOCNP.9

svn commit: r227816 - head/sys/conf

2011-11-22 Thread Konstantin Belousov
Author: kib Date: Tue Nov 22 13:27:53 2011 New Revision: 227816 URL: http://svn.freebsd.org/changeset/base/227816 Log: Remove the wrong comment about ufs not being loadable. Note that only root filesystem module needs to be available before root is mounted. MFC after:1 week

svn commit: r227952 - head/sys/kern

2011-11-24 Thread Konstantin Belousov
Author: kib Date: Thu Nov 24 20:34:06 2011 New Revision: 227952 URL: http://svn.freebsd.org/changeset/base/227952 Log: Fix a race between getvnode() dereferencing half-constructed file and dupfdopen(). Reported and tested by: pho MFC after:3 days Modified:

svn commit: r228133 - head/sys/vm

2011-11-29 Thread Konstantin Belousov
Author: kib Date: Tue Nov 29 13:07:32 2011 New Revision: 228133 URL: http://svn.freebsd.org/changeset/base/228133 Log: Hide the internals of vm_page_lock(9) from the loadable modules. Since the address of vm_page lock mutex depends on the kernel options, it is easy for module to get out of

svn commit: r228156 - in head/sys: fs/nfsclient fs/nwfs fs/smbfs kern nfsclient vm

2011-11-30 Thread Konstantin Belousov
Author: kib Date: Wed Nov 30 17:39:00 2011 New Revision: 228156 URL: http://svn.freebsd.org/changeset/base/228156 Log: Rename vm_page_set_valid() to vm_page_set_valid_range(). The vm_page_set_valid() is the most reasonable name for the m-valid accessor. Reviewed by: attilio, alc

svn commit: r228177 - head/tools/regression/pipe

2011-12-01 Thread Konstantin Belousov
Author: kib Date: Thu Dec 1 11:20:25 2011 New Revision: 228177 URL: http://svn.freebsd.org/changeset/base/228177 Log: Add a simple test for pipe inode numbers reported by fstat(2). Submitted by: gianni MFC after:1 week Added: head/tools/regression/pipe/pipe-ino.c (contents,

svn commit: r228178 - head/sys/kern

2011-12-01 Thread Konstantin Belousov
Author: kib Date: Thu Dec 1 11:36:41 2011 New Revision: 228178 URL: http://svn.freebsd.org/changeset/base/228178 Log: If alloc_unr() call in the pipe_create() failed, then pipe-pipe_ino is -1. But, because ino_t is unsigned, this case was not covered by the test ino 0 in pipeclose(),

svn commit: r228261 - head/usr.bin/truss

2011-12-04 Thread Konstantin Belousov
Author: kib Date: Sun Dec 4 18:43:09 2011 New Revision: 228261 URL: http://svn.freebsd.org/changeset/base/228261 Log: Use explicit information from the kernel to detect the traps due to syscall entry and leave. Based on submision by:Dan Nelson dnelson allantgroup com MFC

svn commit: r228263 - head/sys/fs/fifofs

2011-12-04 Thread Konstantin Belousov
Author: kib Date: Sun Dec 4 19:25:49 2011 New Revision: 228263 URL: http://svn.freebsd.org/changeset/base/228263 Log: Initialize fifoinfo fi_wgen field on open. The only important is the difference between fi_wgen and f_seqcount, so the change is purely cosmetic, but it makes the code

svn commit: r228306 - head/sys/kern

2011-12-06 Thread Konstantin Belousov
Author: kib Date: Tue Dec 6 11:24:03 2011 New Revision: 228306 URL: http://svn.freebsd.org/changeset/base/228306 Log: Most users of pipe(2) do not call fstat(2) on the returned pipe descriptors. Optimize for the case, by lazily allocating the pipe inode number at the fstat(2) time. If

svn commit: r228307 - in head: secure/lib/libcrypto share/mk

2011-12-06 Thread Konstantin Belousov
Author: kib Date: Tue Dec 6 11:28:17 2011 New Revision: 228307 URL: http://svn.freebsd.org/changeset/base/228307 Log: Force linker error when created shared library contains a relocation against text. Provide the override switch to turn off the strict behaviour. Apparently, openssl

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

2011-12-09 Thread Konstantin Belousov
Author: kib Date: Fri Dec 9 20:40:24 2011 New Revision: 228375 URL: http://svn.freebsd.org/changeset/base/228375 Log: Typo. MFC after:3 days Modified: head/libexec/rtld-elf/rtld.h Modified: head/libexec/rtld-elf/rtld.h

svn commit: r228376 - head/sys/ddb

2011-12-09 Thread Konstantin Belousov
Author: kib Date: Fri Dec 9 20:41:54 2011 New Revision: 228376 URL: http://svn.freebsd.org/changeset/base/228376 Log: Typo. MFC after:3 days Modified: head/sys/ddb/db_thread.c Modified: head/sys/ddb/db_thread.c

svn commit: r228432 - head/sys/vm

2011-12-12 Thread Konstantin Belousov
Author: kib Date: Mon Dec 12 10:04:04 2011 New Revision: 228432 URL: http://svn.freebsd.org/changeset/base/228432 Log: Fix printf. Submitted by: az MFC after:1 week Modified: head/sys/vm/swap_pager.c Modified: head/sys/vm/swap_pager.c

svn commit: r228434 - head/sys/sys

2011-12-12 Thread Konstantin Belousov
Author: kib Date: Mon Dec 12 10:10:49 2011 New Revision: 228434 URL: http://svn.freebsd.org/changeset/base/228434 Log: Add definitions for GNU-specific STT_GNU_IFUNC symbol type, and R_{386,X86_64}_IRELATIVE relocations. MFC after:3 weeks Modified: head/sys/sys/elf_common.h

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

2011-12-12 Thread Konstantin Belousov
Author: kib Date: Mon Dec 12 11:03:14 2011 New Revision: 228435 URL: http://svn.freebsd.org/changeset/base/228435 Log: Add support for STT_GNU_IFUNC and R_MACHINE_IRELATIVE GNU extensions to rtld on 386 and amd64. This adds runtime bits neccessary for the use of the dispatch functions from

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

2011-12-14 Thread Konstantin Belousov
Author: kib Date: Wed Dec 14 16:47:53 2011 New Revision: 228503 URL: http://svn.freebsd.org/changeset/base/228503 Log: _rtld_bind() read-locks the bind lock, and possible plt resolution from the dispatcher would also acquire bind lock in read mode, which is the supported operation. plt is

svn commit: r228567 - in head/sys: sys vm

2011-12-16 Thread Konstantin Belousov
Dec 16 10:56:16 2011 (r228567) @@ -0,0 +1,43 @@ +/*- + * Copyright (c) 2009 Konstantin Belousov k...@freebsd.org + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions

svn commit: r228569 - head/sys/ddb

2011-12-16 Thread Konstantin Belousov
Author: kib Date: Fri Dec 16 11:44:20 2011 New Revision: 228569 URL: http://svn.freebsd.org/changeset/base/228569 Log: Add 'findstack' ddb command to search either the thread kernel stack or cached stack containing the specified kernel virtual address. Discussed with: pho MFC

svn commit: r228570 - head/share/man/man4

2011-12-16 Thread Konstantin Belousov
Author: kib Date: Fri Dec 16 11:52:33 2011 New Revision: 228570 URL: http://svn.freebsd.org/changeset/base/228570 Log: Document 'findstack'. MFC after:1 week Modified: head/share/man/man4/ddb.4 Modified: head/share/man/man4/ddb.4

svn commit: r228751 - head/sbin/fsck_ffs

2011-12-20 Thread Konstantin Belousov
Author: kib Date: Tue Dec 20 20:39:00 2011 New Revision: 228751 URL: http://svn.freebsd.org/changeset/base/228751 Log: Change the type of real_dev_bsize variable from long to u_int. The DIOCGSECTORSIZE takes u_int * as an argument, using long * causes failures on big-endian targets.

svn commit: r228838 - head/sys/vm

2011-12-23 Thread Konstantin Belousov
Author: kib Date: Fri Dec 23 09:09:42 2011 New Revision: 228838 URL: http://svn.freebsd.org/changeset/base/228838 Log: Optimize the common case of msyncing the whole file mapping with MS_SYNC flag. The system must guarantee that all writes are finished before syscalls returned. Schedule the

svn commit: r228947 - head/sys/dev/uart

2011-12-29 Thread Konstantin Belousov
Author: kib Date: Thu Dec 29 08:27:37 2011 New Revision: 228947 URL: http://svn.freebsd.org/changeset/base/228947 Log: Add PCI Id for the Intel AMT serial interface as found on my DQ67OW. MFC after:1 week Modified: head/sys/dev/uart/uart_bus_pci.c Modified:

svn commit: r229104 - head/sys/i386/include

2011-12-31 Thread Konstantin Belousov
Author: kib Date: Sat Dec 31 14:44:42 2011 New Revision: 229104 URL: http://svn.freebsd.org/changeset/base/229104 Log: Make the comment in i386/include/ucontext.h identical to the one in amd64/include/ucontext.h. The later is better worded. Requested by: deischen MFC after:3 days

svn commit: r229185 - head/sys/kern

2012-01-01 Thread Konstantin Belousov
Author: kib Date: Sun Jan 1 18:45:59 2012 New Revision: 229185 URL: http://svn.freebsd.org/changeset/base/229185 Log: Avoid double-unlock or double unreference for ndp-ni_dvp when the vnode dp lock upgrade right after the 'success' label fails. In collaboration with:pho MFC

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

2012-01-03 Thread Konstantin Belousov
Author: kib Date: Tue Jan 3 21:03:20 2012 New Revision: 229428 URL: http://svn.freebsd.org/changeset/base/229428 Log: Document the state of the lowervp vnode for null_nodeget(). Tested by:pho MFC after:1 week Modified: head/sys/fs/nullfs/null_subr.c Modified:

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

2012-01-03 Thread Konstantin Belousov
Author: kib Date: Tue Jan 3 21:09:07 2012 New Revision: 229431 URL: http://svn.freebsd.org/changeset/base/229431 Log: Do the vput() for the lowervp in the null_nodeget() for error case too. Several callers of null_nodeget() did the cleanup itself, but several missed it, most prominent

svn commit: r229495 - head/sys/vm

2012-01-04 Thread Konstantin Belousov
Author: kib Date: Wed Jan 4 16:04:20 2012 New Revision: 229495 URL: http://svn.freebsd.org/changeset/base/229495 Log: Do not restart the scan in vm_object_page_clean() on the object generation change if requested mode is async. The object generation is only changed when the object is

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

2012-01-04 Thread Konstantin Belousov
Author: kib Date: Wed Jan 4 17:17:11 2012 New Revision: 229508 URL: http://svn.freebsd.org/changeset/base/229508 Log: Postpone the resolution of IRELATIVE relocations and IFUNC-targeted relocations until tls is initialized and stacks permissions correctly set. This allows the ifunc to call

svn commit: r223165 - head/sys/kern

2011-06-16 Thread Konstantin Belousov
Author: kib Date: Thu Jun 16 22:00:59 2011 New Revision: 223165 URL: http://svn.freebsd.org/changeset/base/223165 Log: Do not trash the argv[0] pointer for an a.out process on amd64. Found with the binary provided by joerg. Modified: head/sys/kern/imgact_aout.c Modified:

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

2011-06-16 Thread Konstantin Belousov
Author: kib Date: Thu Jun 16 22:05:56 2011 New Revision: 223166 URL: http://svn.freebsd.org/changeset/base/223166 Log: Implement compat32 for old lseek, for the a.out binaries on amd64. Modified: head/sys/compat/freebsd32/freebsd32_misc.c head/sys/compat/freebsd32/syscalls.master

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

2011-06-16 Thread Konstantin Belousov
Author: kib Date: Thu Jun 16 22:06:35 2011 New Revision: 223167 URL: http://svn.freebsd.org/changeset/base/223167 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: r223254 - head/sys/amd64/ia32

2011-06-18 Thread Konstantin Belousov
Author: kib Date: Sat Jun 18 12:13:28 2011 New Revision: 223254 URL: http://svn.freebsd.org/changeset/base/223254 Log: Fix vfork. Add comments. Modified: head/sys/amd64/ia32/ia32_sigtramp.S Modified: head/sys/amd64/ia32/ia32_sigtramp.S

svn commit: r223277 - head/sys/cam/ata

2011-06-18 Thread Konstantin Belousov
Author: kib Date: Sat Jun 18 22:26:58 2011 New Revision: 223277 URL: http://svn.freebsd.org/changeset/base/223277 Log: Fix a typo in adagetattr() from r223089. In particular, this restores the ability to use ahci(4) for kernel dumps. Modified: head/sys/cam/ata/ata_da.c Modified:

svn commit: r223884 - head/sys/sys

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:29:23 2011 New Revision: 223884 URL: http://svn.freebsd.org/changeset/base/223884 Log: Implement bitcount16. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/sys/systm.h Modified: head/sys/sys/systm.h

svn commit: r223885 - head/sys/dev/pci

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:30:13 2011 New Revision: 223885 URL: http://svn.freebsd.org/changeset/base/223885 Log: Implement pci_find_class(9), the function to find a pci device by its class. Sponsored by: The FreeBSD Foundation Reviewed by: jhb MFC after:1 week Modified:

svn commit: r223886 - head/sys/sys

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:41:28 2011 New Revision: 223886 URL: http://svn.freebsd.org/changeset/base/223886 Log: Implement a helper functions to locally set thread-private flag, and restore it to the previous state. Note that only setting a flag locally is supported. Sponsored

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

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 14:42:45 2011 New Revision: 223887 URL: http://svn.freebsd.org/changeset/base/223887 Log: Use helper functions instead of manually managing TDP_INBDFLUSH. Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version) MFC after:1 week

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

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:16:07 2011 New Revision: 223888 URL: http://svn.freebsd.org/changeset/base/223888 Log: Use 'curthread_pflags' instead of 'thread_pflags' to signify that only curthread can be operated upon. Requested by: attilio MFC after:1 week Modified:

svn commit: r223889 - in head/sys: kern sys vm

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:21:10 2011 New Revision: 223889 URL: http://svn.freebsd.org/changeset/base/223889 Log: Add a facility to disable processing page faults. When activated, uiomove generates EFAULT if any accessed address is not mapped, as opposed to handling the fault.

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

2011-07-09 Thread Konstantin Belousov
Author: kib Date: Sat Jul 9 15:24:12 2011 New Revision: 223890 URL: http://svn.freebsd.org/changeset/base/223890 Log: Document copyin_nofault, copyout_nofault, uiomove_nofault. Submitted by: alc Modified: head/share/man/man9/Makefile head/share/man/man9/copy.9

svn commit: r223911 - head/sys/sys

2011-07-10 Thread Konstantin Belousov
Author: kib Date: Sun Jul 10 18:57:35 2011 New Revision: 223911 URL: http://svn.freebsd.org/changeset/base/223911 Log: Update locking annotations for the struct vnode. MFC after:3 days Modified: head/sys/sys/vnode.h Modified: head/sys/sys/vnode.h

svn commit: r223913 - head/sys/vm

2011-07-10 Thread Konstantin Belousov
Author: kib Date: Sun Jul 10 20:45:13 2011 New Revision: 223913 URL: http://svn.freebsd.org/changeset/base/223913 Log: Style. MFC after:3 days Modified: head/sys/vm/vm_mmap.c Modified: head/sys/vm/vm_mmap.c

svn commit: r223914 - head/sys/vm

2011-07-10 Thread Konstantin Belousov
Author: kib Date: Sun Jul 10 20:49:13 2011 New Revision: 223914 URL: http://svn.freebsd.org/changeset/base/223914 Log: Extract the code to translate VM error into errno, into an exported function vm_mmap_to_errno(). It is useful for the drivers that implement mmap(2)-like functionality, to

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

2011-07-12 Thread Konstantin Belousov
Author: kib Date: Tue Jul 12 20:37:18 2011 New Revision: 223966 URL: http://svn.freebsd.org/changeset/base/223966 Log: Implement an RFTSIGZMB flag to rfork(2) to specify a signal that is delivered to parent when the child exists. Submitted by: Petr Salinger Petr.Salinger seznam cz

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

2011-07-12 Thread Konstantin Belousov
Author: kib Date: Tue Jul 12 20:38:42 2011 New Revision: 223967 URL: http://svn.freebsd.org/changeset/base/223967 Log: Document RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals are delivered, not returned. MFC after:1 week Modified: head/lib/libc/sys/rfork.2 Modified:

svn commit: r223988 - head/sys/fs/devfs

2011-07-13 Thread Konstantin Belousov
Author: kib Date: Wed Jul 13 21:07:41 2011 New Revision: 223988 URL: http://svn.freebsd.org/changeset/base/223988 Log: While fixing the looping of a thread while devfs vnode is reclaimed, r179247 introduced a possibility of devfs_allocv() returning spurious ENOENT. If the vnode is selected

svn commit: r224521 - head/sys/kern

2011-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 14:12:37 2011 New Revision: 224521 URL: http://svn.freebsd.org/changeset/base/224521 Log: Fix the devmtx lock leak from make_dev(9) when the old device cloning failed due to invalid or duplicated path being generated. Reviewed by: jh Approved by: re

svn commit: r224522 - head/sys/vm

2011-07-30 Thread Konstantin Belousov
Author: kib Date: Sat Jul 30 14:13:57 2011 New Revision: 224522 URL: http://svn.freebsd.org/changeset/base/224522 Log: Fix a race in the device pager allocation. If another thread won and allocated the device pager for the given handle, then the object fictitious pages list and the object

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

2011-08-01 Thread Konstantin Belousov
Author: kib Date: Mon Aug 1 08:52:05 2011 New Revision: 224568 URL: http://svn.freebsd.org/changeset/base/224568 Log: Fix markup. Approved by: re (hrs) Modified: head/share/man/man9/taskqueue.9 Modified: head/share/man/man9/taskqueue.9

svn commit: r224582 - in head/sys: compat/linprocfs vm

2011-08-01 Thread Konstantin Belousov
Author: kib Date: Mon Aug 1 19:12:15 2011 New Revision: 224582 URL: http://svn.freebsd.org/changeset/base/224582 Log: Implement the linprocfs swaps file, providing information about the configured swap devices in the Linux-compatible format. Based on the submission by: Robert Millan

svn commit: r224613 - head/sys/i386/ibcs2

2011-08-02 Thread Konstantin Belousov
Author: kib Date: Tue Aug 2 18:12:19 2011 New Revision: 224613 URL: http://svn.freebsd.org/changeset/base/224613 Log: Corrections for the iBCS2 support that seems to regressed from 4.x times. In particular: - fix format specifiers in the DPRINTFs; - do not use kernel_map for temporal

svn commit: r224743 - head/sys/fs/devfs

2011-08-09 Thread Konstantin Belousov
Author: kib Date: Tue Aug 9 20:53:33 2011 New Revision: 224743 URL: http://svn.freebsd.org/changeset/base/224743 Log: Do not update mountpoint generation counter to the value which was not yet acted upon by devfs_populate(). Submitted by: Kohji Okuno okuno.kohji jp panasonic com

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

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

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

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

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

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:

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

2011-08-24 Thread Konstantin Belousov
. or Unix System Laboratories, Inc. and are reproduced herein with + * the permission of UNIX System Laboratories, Inc. + * Copyright (c) 2011 Konstantin Belousov k...@freebsd.org + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided

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

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:

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

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

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
/subr_syscall.cSun Sep 11 16:05:09 2011 (r225474) @@ -2,14 +2,11 @@ * Copyright (C) 1994, David Greenman * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. - * Copyright (c) 2007 The FreeBSD Foundation + * Copyright (C) 2010 Konstantin

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

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

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

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 thinker

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

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: 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 samm os2 kiev ua

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