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

2010-03-19 Thread Konstantin Belousov
Author: kib Date: Fri Mar 19 11:13:42 2010 New Revision: 205327 URL: http://svn.freebsd.org/changeset/base/205327 Log: Remove empty line. MFC after:2 weeks Modified: head/sys/compat/freebsd32/freebsd32_misc.c Modified: head/sys/compat/freebsd32/freebsd32_misc.c

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

2010-03-19 Thread Konstantin Belousov
Author: kib Date: Fri Mar 19 11:14:37 2010 New Revision: 205328 URL: http://svn.freebsd.org/changeset/base/205328 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: r206264 - in head/sys: kern sys vm

2010-04-06 Thread Konstantin Belousov
Author: kib Date: Tue Apr 6 10:43:01 2010 New Revision: 206264 URL: http://svn.freebsd.org/changeset/base/206264 Log: When OOM searches for a process to kill, ignore the processes already killed by OOM. When killed process waits for a page allocation, try to satisfy the request as fast as

svn commit: r206395 - head/sys/kern

2010-04-08 Thread Konstantin Belousov
Author: kib Date: Thu Apr 8 08:58:18 2010 New Revision: 206395 URL: http://svn.freebsd.org/changeset/base/206395 Log: Do not leak master pty or ptmx vnode. Report and test case by: Petr Salinger Petr.Salinger seznam cz Reviewed by: ed MFC after:1 week Modified:

svn commit: r206397 - head/crypto/openssh

2010-04-08 Thread Konstantin Belousov
Author: kib Date: Thu Apr 8 12:07:40 2010 New Revision: 206397 URL: http://svn.freebsd.org/changeset/base/206397 Log: Enhance r199804 by marking the daemonised child as immune to OOM instead of short-living parent. Only mark the master process that accepts connections, do not protect

svn commit: r206546 - head/sys/kern

2010-04-13 Thread Konstantin Belousov
Author: kib Date: Tue Apr 13 08:45:55 2010 New Revision: 206546 URL: http://svn.freebsd.org/changeset/base/206546 Log: Remove XXX comment. Add another comment, describing why f_vnode assignment is useful. MFC after:3 days Modified: head/sys/kern/vfs_syscalls.c Modified:

svn commit: r206548 - head/bin/ps

2010-04-13 Thread Konstantin Belousov
Author: kib Date: Tue Apr 13 08:54:53 2010 New Revision: 206548 URL: http://svn.freebsd.org/changeset/base/206548 Log: Update the list of the process flags for P_WKILLED. MFC after:4 weeks Modified: head/bin/ps/ps.1 Modified: head/bin/ps/ps.1

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

2010-04-14 Thread Konstantin Belousov
Author: kib Date: Wed Apr 14 20:04:55 2010 New Revision: 206623 URL: http://svn.freebsd.org/changeset/base/206623 Log: ld_gs_base is executing with stack containing only the frame, temporary pushed %rflags has been popped already. Pointy hat to:kib MFC after:3 days

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

2010-04-15 Thread Konstantin Belousov
Author: kib Date: Thu Apr 15 08:32:50 2010 New Revision: 206649 URL: http://svn.freebsd.org/changeset/base/206649 Log: Still reference struct __sigaction with clarification when this form of argument declaration is needed. Discussed with: bde MFC after:3 days Modified:

svn commit: r206671 - head/sys/kern

2010-04-15 Thread Konstantin Belousov
Author: kib Date: Thu Apr 15 17:17:02 2010 New Revision: 206671 URL: http://svn.freebsd.org/changeset/base/206671 Log: Fix typo. MFC after:3 days Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

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

2010-04-18 Thread Konstantin Belousov
Author: kib Date: Sun Apr 18 18:23:11 2010 New Revision: 206802 URL: http://svn.freebsd.org/changeset/base/206802 Log: Revert r206649. Simplify the presented declaration of struct sigaction, noting the caveat in the text. Real layout of the structure and exposed implementation

svn commit: r206893 - in head: include lib/libc/stdlib

2010-04-20 Thread Konstantin Belousov
Author: kib Date: Tue Apr 20 10:16:44 2010 New Revision: 206893 URL: http://svn.freebsd.org/changeset/base/206893 Log: Slightly modernize realpath(3). SUSv4 requires that implementation returns EINVAL if supplied path is NULL, and ENOENT if path is empty string [1]. Bring prototype in

svn commit: r206898 - head/lib/libc/stdlib

2010-04-20 Thread Konstantin Belousov
Author: kib Date: Tue Apr 20 14:22:29 2010 New Revision: 206898 URL: http://svn.freebsd.org/changeset/base/206898 Log: Free() is not allowed to modify errno, remove safety brackets around it [1]. Add small optimization, do not copy a string to the buffer that is to be freed immediately

svn commit: r206992 - head/sys/amd64/ia32

2010-04-21 Thread Konstantin Belousov
Author: kib Date: Wed Apr 21 11:17:16 2010 New Revision: 206992 URL: http://svn.freebsd.org/changeset/base/206992 Log: As was done in r155238 for i386 and in r155239 for amd64, clear the carry flag for ia32 binary executed on amd64 host in get_mcontext(). PR: kern/92110 (one more time)

svn commit: r206997 - head/include

2010-04-21 Thread Konstantin Belousov
Author: kib Date: Wed Apr 21 16:38:37 2010 New Revision: 206997 URL: http://svn.freebsd.org/changeset/base/206997 Log: Move realpath(3) prototype to a POSIX section. Noted by: bde MFC after:2 weeks Modified: head/include/stdlib.h Modified: head/include/stdlib.h

svn commit: r206998 - head/lib/libc/stdlib

2010-04-21 Thread Konstantin Belousov
Author: kib Date: Wed Apr 21 16:41:02 2010 New Revision: 206998 URL: http://svn.freebsd.org/changeset/base/206998 Log: Add standards section, improve wording, taking into account the handling of NULL and changed type in declaration. Suggested by: bde MFC after:2 weeks Modified:

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

2010-04-21 Thread Konstantin Belousov
Author: kib Date: Wed Apr 21 19:28:01 2010 New Revision: 207007 URL: http://svn.freebsd.org/changeset/base/207007 Log: Extract the code to copy-out struct rusage32 from struct rusage into the new function. Reviewed by: jhb MFC after:1 week Modified:

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

2010-04-21 Thread Konstantin Belousov
Author: kib Date: Wed Apr 21 19:32:00 2010 New Revision: 207008 URL: http://svn.freebsd.org/changeset/base/207008 Log: Provide compat32 shims for kinfo_proc sysctl. This allows 32bit ps(1) to mostly work on 64bit host. The work is based on an original patch submitted by emaste, obtained

svn commit: r207009 - head/lib/libc/stdlib

2010-04-21 Thread Konstantin Belousov
Author: kib Date: Wed Apr 21 19:35:56 2010 New Revision: 207009 URL: http://svn.freebsd.org/changeset/base/207009 Log: C language does not has references, it provides pointers. Suggested by: bde MFC after:2 weeks Modified: head/lib/libc/stdlib/realpath.3 Modified:

svn commit: r207016 - head/sys/kern

2010-04-21 Thread Konstantin Belousov
Author: kib Date: Wed Apr 21 20:04:42 2010 New Revision: 207016 URL: http://svn.freebsd.org/changeset/base/207016 Log: Fix typo. Submitted by: emaste Pointy hat to:kib (who needs much bigger wardrobe) MFC after:1 week Modified: head/sys/kern/kern_proc.c Modified:

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

2010-04-24 Thread Konstantin Belousov
Author: kib Date: Sat Apr 24 12:49:52 2010 New Revision: 207152 URL: http://svn.freebsd.org/changeset/base/207152 Log: Move the constants specifying the size of struct kinfo_proc into machine-specific header files. Add KINFO_PROC32_SIZE for struct kinfo_proc32 for architectures providing

svn commit: r207194 - head/sys/net

2010-04-25 Thread Konstantin Belousov
Author: kib Date: Sun Apr 25 16:42:47 2010 New Revision: 207194 URL: http://svn.freebsd.org/changeset/base/207194 Log: Provide 32bit compat shims for sysctl net.route NET_RT_IFLIST. This allows getifaddrs(3) to work for compat32 binaries. Submitted by: jhb (6.x version) Reviewed by:

svn commit: r207195 - head/sys/net

2010-04-25 Thread Konstantin Belousov
Author: kib Date: Sun Apr 25 16:43:41 2010 New Revision: 207195 URL: http://svn.freebsd.org/changeset/base/207195 Log: Provide compat32 shims for bpf(4), except zero-copy facilities. bd_compat32 field of struct bpf_d is kept unconditionally to not impose the requirement of including

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

2010-04-27 Thread Konstantin Belousov
Author: kib Date: Tue Apr 27 09:48:43 2010 New Revision: 207269 URL: http://svn.freebsd.org/changeset/base/207269 Log: Style: use #defineTAB instead of #defineSPACE. Noted by: bde, pluknet gmail com MFC after:11 days Modified: head/sys/amd64/include/proc.h

svn commit: r207363 - head/sys/kern

2010-04-29 Thread Konstantin Belousov
Author: kib Date: Thu Apr 29 09:55:51 2010 New Revision: 207363 URL: http://svn.freebsd.org/changeset/base/207363 Log: Remove caddr_t casts. Requested by: bde MFC after:10 days Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c

svn commit: r207364 - head/sys/vm

2010-04-29 Thread Konstantin Belousov
Author: kib Date: Thu Apr 29 09:57:25 2010 New Revision: 207364 URL: http://svn.freebsd.org/changeset/base/207364 Log: In swap pager, do not free the non-requested pages from the run if they are wired. Kstack pages are wired, this change prepares swap pager for handling of long runs of

svn commit: r207365 - head/sys/vm

2010-04-29 Thread Konstantin Belousov
Author: kib Date: Thu Apr 29 09:59:16 2010 New Revision: 207365 URL: http://svn.freebsd.org/changeset/base/207365 Log: When doing kstack swapin, read as much pages in one run as possible. Suggested and reviewed by:alc (previous version) Tested by:pho MFC after:2 weeks

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

2011-04-02 Thread Konstantin Belousov
Author: kib Date: Sat Apr 2 15:47:23 2011 New Revision: 220280 URL: http://svn.freebsd.org/changeset/base/220280 Log: Provide the structures and ioctl number definition for handling PCIOCGETCONF compat32. Submitted by: John Wehle john feith com MFC after:2 weeks Modified:

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

2011-04-02 Thread Konstantin Belousov
Author: kib Date: Sat Apr 2 16:02:25 2011 New Revision: 220281 URL: http://svn.freebsd.org/changeset/base/220281 Log: Implement compat32 shims for PCIOCGETCONF. There is a generic problem with the shims for ioctls that receive pointers to the usermode data areas in the data argument. We

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

2011-04-08 Thread Konstantin Belousov
Author: kib Date: Fri Apr 8 21:26:50 2011 New Revision: 220460 URL: http://svn.freebsd.org/changeset/base/220460 Log: Disable local interrupts before testing the PCB_FULL_IRET flag. Thread might be preempted after testing, which causes the flag to be cleared. If ast was not delivered, we

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

2011-04-08 Thread Konstantin Belousov
Author: kib Date: Fri Apr 8 21:27:31 2011 New Revision: 220461 URL: http://svn.freebsd.org/changeset/base/220461 Log: Remove setting of PCB_FULL_IRET at the places where we are going to call update_gdt_{f,g}sbase. The functions set the flag when td == curthread, and sysarch is always

svn commit: r220506 - head/sys/fs/fdescfs

2011-04-09 Thread Konstantin Belousov
Author: kib Date: Sat Apr 9 21:40:48 2011 New Revision: 220506 URL: http://svn.freebsd.org/changeset/base/220506 Log: Linuxolator calls VOP_READDIR with ncookies pointer. Implement a workaround for fdescfs to not panic when ncookies is not NULL, similar to the one committed as r152254, but

svn commit: r220526 - head/sys/kern

2011-04-10 Thread Konstantin Belousov
Author: kib Date: Sun Apr 10 17:07:02 2011 New Revision: 220526 URL: http://svn.freebsd.org/changeset/base/220526 Log: Some callers of proc_reparent() already have the parent process locked. Detect the situation and avoid process lock recursion. Reported by: Fabian Keil freebsd-listen

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

2011-04-18 Thread Konstantin Belousov
Author: kib Date: Mon Apr 18 21:24:42 2011 New Revision: 220803 URL: http://svn.freebsd.org/changeset/base/220803 Log: Make pmap_invalidate_cache_range() available for consumption on amd64. Add pmap_invalidate_cache_pages() method on x86. It flushes the CPU cache for the set of pages,

svn commit: r220977 - head/sys/vm

2011-04-23 Thread Konstantin Belousov
Author: kib Date: Sat Apr 23 21:38:21 2011 New Revision: 220977 URL: http://svn.freebsd.org/changeset/base/220977 Log: Fix two bugs in r218670. Hold the vnode around the region where object lock is dropped, until vnode lock is acquired. Do not drop the vnode reference for a case

svn commit: r220979 - head/sys/dev/drm

2011-04-23 Thread Konstantin Belousov
Author: kib Date: Sat Apr 23 23:11:44 2011 New Revision: 220979 URL: http://svn.freebsd.org/changeset/base/220979 Log: Fix display of the drm sysctls. Sponsored by: The FreeBSD Foundation MFC after:3 days Modified: head/sys/dev/drm/drm_sysctl.c Modified:

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

2011-04-24 Thread Konstantin Belousov
Author: kib Date: Sun Apr 24 10:47:56 2011 New Revision: 220985 URL: http://svn.freebsd.org/changeset/base/220985 Log: VFS sometimes is unable to inactivate a vnode when vnode use count goes to zero. E.g., the vnode might be only shared-locked at the time of vput() call. Such vnodes are

svn commit: r220987 - head/sys/sys

2011-04-24 Thread Konstantin Belousov
Author: kib Date: Sun Apr 24 13:22:14 2011 New Revision: 220987 URL: http://svn.freebsd.org/changeset/base/220987 Log: Fix typo. MFC after:3 days Modified: head/sys/sys/systm.h Modified: head/sys/sys/systm.h

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

2011-04-26 Thread Konstantin Belousov
Author: kib Date: Tue Apr 26 11:39:56 2011 New Revision: 221059 URL: http://svn.freebsd.org/changeset/base/221059 Log: Implement the delayed task execution extension to the taskqueue mechanism. The caller may specify a timeout in ticks after which the task will be scheduled. Sponsored

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

2011-04-26 Thread Konstantin Belousov
Author: kib Date: Tue Apr 26 11:43:57 2011 New Revision: 221060 URL: http://svn.freebsd.org/changeset/base/221060 Log: Document timeout_task. While there, fix the type of the func argument of INIT_TASK macro, and use the modern name of the analogous facility from Linux kernel.

svn commit: r221261 - in head/sys: fs/ext2fs ufs/ffs

2011-04-30 Thread Konstantin Belousov
Author: kib Date: Sat Apr 30 13:49:03 2011 New Revision: 221261 URL: http://svn.freebsd.org/changeset/base/221261 Log: Clarify the comment. MFC after:1 week Modified: head/sys/fs/ext2fs/ext2_readwrite.c head/sys/ufs/ffs/ffs_vnops.c Modified: head/sys/fs/ext2fs/ext2_readwrite.c

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

2011-04-30 Thread Konstantin Belousov
Author: kib Date: Sat Apr 30 22:46:02 2011 New Revision: 221281 URL: http://svn.freebsd.org/changeset/base/221281 Log: Fix typos. Noted by: Fabian Keil freebsd-listen fabiankeil de Pointy hat to:kib MFC after:1 week Modified: head/sys/ufs/ffs/ffs_vnops.c Modified:

svn commit: r222086 - head/sys/kern

2011-05-18 Thread Konstantin Belousov
Author: kib Date: Wed May 18 22:36:58 2011 New Revision: 222086 URL: http://svn.freebsd.org/changeset/base/222086 Log: The CDP_ACTIVE flag is cleared at the beginning of destroy_devl(), and destroy_devl() drops dev_mtx. The protection against the race with dev_rel(), introduced in r163328,

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

2011-06-01 Thread Konstantin Belousov
Author: kib Date: Wed Jun 1 21:00:28 2011 New Revision: 222586 URL: http://svn.freebsd.org/changeset/base/222586 Log: In the VOP_PUTPAGES() implementations, change the default error from VM_PAGER_AGAIN to VM_PAGER_ERROR for the uwritten pages. Return VM_PAGER_AGAIN for the partially

svn commit: r222991 - head/sys/vm

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

svn commit: r222992 - head/sys/vm

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

svn commit: r229768 - in head: include lib/libc/gen libexec/rtld-elf

2012-01-07 Thread Konstantin Belousov
Author: kib Date: Sat Jan 7 10:33:01 2012 New Revision: 229768 URL: http://svn.freebsd.org/changeset/base/229768 Log: Implement fdlopen(3), an rtld interface to load shared object by file descriptor. Requested and tested by: des (previous version) Reviewed by: des, kan (previous

svn commit: r229771 - head/sys/boot/common

2012-01-07 Thread Konstantin Belousov
Author: kib Date: Sat Jan 7 11:16:23 2012 New Revision: 229771 URL: http://svn.freebsd.org/changeset/base/229771 Log: Document comconsole_port and comconsole_pcidev loader variables. MFC after:2 weeks Modified: head/sys/boot/common/loader.8 Modified: head/sys/boot/common/loader.8

svn commit: r229828 - in head/sys: kern ufs/ufs

2012-01-08 Thread Konstantin Belousov
Author: kib Date: Sun Jan 8 23:06:53 2012 New Revision: 229828 URL: http://svn.freebsd.org/changeset/base/229828 Log: Avoid LOR between vfs_busy() lock and covered vnode lock on quotaon(). The vfs_busy() is after covered vnode lock in the global lock order, but since quotaon() does

svn commit: r229934 - head/sys/vm

2012-01-10 Thread Konstantin Belousov
Author: kib Date: Tue Jan 10 18:05:44 2012 New Revision: 229934 URL: http://svn.freebsd.org/changeset/base/229934 Log: Change the type of the paging_in_progress refcounter from u_short to u_int. With the auto-sized buffer cache on the modern machines, UFS metadata can generate more the

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

2012-01-11 Thread Konstantin Belousov
Author: kib Date: Wed Jan 11 17:46:08 2012 New Revision: 229971 URL: http://svn.freebsd.org/changeset/base/229971 Log: Add PCI Id for the AMT SOL UART on 5 series Intel chipsets. MFC after:1 week Modified: head/sys/dev/uart/uart_bus_pci.c Modified: head/sys/dev/uart/uart_bus_pci.c

svn commit: r230260 - head/sys/amd64/include

2012-01-16 Thread Konstantin Belousov
Author: kib Date: Tue Jan 17 07:21:23 2012 New Revision: 230260 URL: http://svn.freebsd.org/changeset/base/230260 Log: Add macro IS_BSP() to check whether the current CPU is BSP. MFC after:1 week Modified: head/sys/amd64/include/pcpu.h Modified: head/sys/amd64/include/pcpu.h

svn commit: r230262 - head/sys/amd64/include

2012-01-16 Thread Konstantin Belousov
Author: kib Date: Tue Jan 17 07:30:36 2012 New Revision: 230262 URL: http://svn.freebsd.org/changeset/base/230262 Log: Implement xsetbv(), xsave() and xrstor() providing C access to the similarly named CPU instructions. Since our in-tree binutils gas is not aware of the instructions, and

svn commit: r230269 - head/sys/amd64/include

2012-01-17 Thread Konstantin Belousov
Author: kib Date: Tue Jan 17 16:53:41 2012 New Revision: 230269 URL: http://svn.freebsd.org/changeset/base/230269 Log: Modernize the fpusave structures definitions by using uint*_t types. MFC after:1 week Modified: head/sys/amd64/include/fpu.h Modified: head/sys/amd64/include/fpu.h

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

2012-01-17 Thread Konstantin Belousov
Author: kib Date: Tue Jan 17 17:07:13 2012 New Revision: 230270 URL: http://svn.freebsd.org/changeset/base/230270 Log: Add definitions for the FPU extended state header, legacy extended state and AVX state. MFC after:1 week Modified: head/sys/amd64/include/fpu.h

svn commit: r230341 - head/sys/kern

2012-01-19 Thread Konstantin Belousov
Author: kib Date: Thu Jan 19 23:03:31 2012 New Revision: 230341 URL: http://svn.freebsd.org/changeset/base/230341 Log: Use shared lock for the executable vnode in the exec path after the VV_TEXT changes are handled. Assert that vnode is exclusively locked at the places that modify VV_TEXT.

svn commit: r230426 - in head/sys: amd64/acpica amd64/amd64 amd64/ia32 amd64/include compat/ia32 conf crypto/aesni crypto/via dev/random i386/i386 i386/include i386/isa pc98/pc98

2012-01-21 Thread Konstantin Belousov
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/amd64/amd64/ptrace_machdep.c Sat Jan 21 17:45:27 2012 (r230426) @@ -0,0 +1,141 @@ +/*- + * Copyright (c) 2011 Konstantin Belousov k...@freebsd.org + * All

svn commit: r230427 - head/gnu/usr.bin/gdb/kgdb

2012-01-21 Thread Konstantin Belousov
Author: kib Date: Sat Jan 21 17:50:14 2012 New Revision: 230427 URL: http://svn.freebsd.org/changeset/base/230427 Log: Adopt to new layout of struct pcb. MFC after:1 month Modified: head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c Modified: head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c

svn commit: r230441 - head/sys/kern

2012-01-21 Thread Konstantin Belousov
Author: kib Date: Sun Jan 22 01:11:06 2012 New Revision: 230441 URL: http://svn.freebsd.org/changeset/base/230441 Log: Remove the nc_time and nc_ticks elements from struct namecache, and provide struct namecache_ts which is the old struct namecache. Only allocate struct namecache_ts if

svn commit: r230459 - head/sys/sys

2012-01-22 Thread Konstantin Belousov
Author: kib Date: Sun Jan 22 11:35:50 2012 New Revision: 230459 URL: http://svn.freebsd.org/changeset/base/230459 Log: Fix typo. Submitted by: John Marino draco marino st MFC after:3 days Modified: head/sys/sys/elf_common.h Modified: head/sys/sys/elf_common.h

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

2012-01-22 Thread Konstantin Belousov
Author: kib Date: Sun Jan 22 11:58:17 2012 New Revision: 230460 URL: http://svn.freebsd.org/changeset/base/230460 Log: Clarify the implementation-defined behaviour in case of close(2) returning error. MFC after:1 week Modified: head/lib/libc/sys/close.2 Modified:

svn commit: r230489 - head/sys/kern

2012-01-23 Thread Konstantin Belousov
Author: kib Date: Mon Jan 23 17:09:23 2012 New Revision: 230489 URL: http://svn.freebsd.org/changeset/base/230489 Log: Apparently, both nfs clients do not use cache_enter_time() consistently, creating some namecache entries without NCF_TS flag. This causes panic due to failed assertion.

svn commit: r230538 - head/sys/amd64/include

2012-01-25 Thread Konstantin Belousov
Author: kib Date: Wed Jan 25 12:43:27 2012 New Revision: 230538 URL: http://svn.freebsd.org/changeset/base/230538 Log: Order newly added functions alphabetically. Requested by: bde MFC after:3 days Modified: head/sys/amd64/include/cpufunc.h Modified:

svn commit: r230552 - in head/sys: fs/nfsclient kern nfsclient

2012-01-25 Thread Konstantin Belousov
Author: kib Date: Wed Jan 25 20:48:20 2012 New Revision: 230552 URL: http://svn.freebsd.org/changeset/base/230552 Log: Fix remaining calls to cache_enter() in both NFS clients to provide appropriate timestamps. Restore the assertions which verify that NCF_TS is set when timestamp is asked

svn commit: r230553 - head/sys/kern

2012-01-25 Thread Konstantin Belousov
Author: kib Date: Wed Jan 25 20:54:09 2012 New Revision: 230553 URL: http://svn.freebsd.org/changeset/base/230553 Log: When doing vflush(WRITECLOSE), clean vnode pages. Unmounts do vfs_msync() before calling VFS_UNMOUNT(), but there is still a race allowing a process to dirty pages after

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

2012-01-29 Thread Konstantin Belousov
Author: kib Date: Mon Jan 30 07:51:52 2012 New Revision: 230765 URL: http://svn.freebsd.org/changeset/base/230765 Log: Synchronize the struct sigcontext definitions on x86 with mcontext_t. Pointed out by: bde MFC after:1 month Modified: head/sys/amd64/include/signal.h

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

2012-01-29 Thread Konstantin Belousov
Author: kib Date: Mon Jan 30 07:53:33 2012 New Revision: 230766 URL: http://svn.freebsd.org/changeset/base/230766 Log: Move xrstor/xsave/xsetbv into fpu.c and reorder them. Requested by: bde MFC after:1 month Modified: head/sys/amd64/amd64/fpu.c head/sys/amd64/include/cpufunc.h

svn commit: r230767 - in head/sys: i386/i386 kern powerpc/aim powerpc/booke

2012-01-29 Thread Konstantin Belousov
Author: kib Date: Mon Jan 30 07:56:00 2012 New Revision: 230767 URL: http://svn.freebsd.org/changeset/base/230767 Log: Finally, try to enable the nxstacks on amd64 and powerpc64 for both 64bit and 32bit ABIs. Also try to enable nxstacks for PAE/i386 when supported, and some variants of

svn commit: r230779 - head/sys/powerpc/aim

2012-01-30 Thread Konstantin Belousov
Author: kib Date: Mon Jan 30 19:31:17 2012 New Revision: 230779 URL: http://svn.freebsd.org/changeset/base/230779 Log: Fix build for the case of powerpc64 kernel without COMPAT_FREEBSD32. MFC after:2 months Modified: head/sys/powerpc/aim/mmu_oea64.c Modified:

svn commit: r230783 - head/sys/sys

2012-01-30 Thread Konstantin Belousov
Author: kib Date: Mon Jan 30 19:50:13 2012 New Revision: 230783 URL: http://svn.freebsd.org/changeset/base/230783 Log: Add definition for PT_GNU_RELRO. MFC after:3 days Modified: head/sys/sys/elf_common.h Modified: head/sys/sys/elf_common.h

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

2012-01-30 Thread Konstantin Belousov
Author: kib Date: Mon Jan 30 19:52:17 2012 New Revision: 230784 URL: http://svn.freebsd.org/changeset/base/230784 Log: Add support for GNU RELRO. Submitted by: John Marino draco marino st MFC after:2 weeks Modified: head/libexec/rtld-elf/map_object.c head/libexec/rtld-elf/rtld.c

svn commit: r230785 - head/sys/kern

2012-01-30 Thread Konstantin Belousov
Author: kib Date: Mon Jan 30 20:00:29 2012 New Revision: 230785 URL: http://svn.freebsd.org/changeset/base/230785 Log: A debugger which requested PT_FOLLOW_FORK should get the notification about new child not only when doing PT_TO_SCX, but also for PT_CONTINUE. If TDB_FORK flag is set,

Re: svn commit: r230583 - head/sys/kern

2012-01-31 Thread Konstantin Belousov
On Mon, Jan 30, 2012 at 02:07:03PM -0500, David Schultz wrote: On Mon, Jan 30, 2012, Kostik Belousov wrote: On Sun, Jan 29, 2012 at 05:39:04PM -0500, David Schultz wrote: On Sun, Jan 29, 2012, Kostik Belousov wrote: On Sat, Jan 28, 2012 at 07:12:25PM -0500, David Schultz wrote: On

svn commit: r230864 - in head: lib/libc/amd64/gen lib/libc/arm/gen lib/libc/i386/gen lib/libc/ia64/gen lib/libc/mips/gen lib/libc/powerpc/gen lib/libc/powerpc64/gen lib/libc/sparc64/gen sys/sys

2012-02-01 Thread Konstantin Belousov
Author: kib Date: Wed Feb 1 13:33:53 2012 New Revision: 230864 URL: http://svn.freebsd.org/changeset/base/230864 Log: Make the sys/ucontext.h self-contained by changing the return type of __getcontextx_size(3) from size_t to int. PR: ports/164654 MFC after:1 month Modified:

svn commit: r230866 - head/sys/kern

2012-02-01 Thread Konstantin Belousov
Author: kib Date: Wed Feb 1 14:34:52 2012 New Revision: 230866 URL: http://svn.freebsd.org/changeset/base/230866 Log: Add kqueue support to /dev/klog. Submitted by: Mateusz Guzik mjguzik gmail com PR: kern/156423 MFC after:1 weeks Modified: head/sys/kern/subr_log.c

Re: svn commit: r230583 - head/sys/kern

2012-02-01 Thread Konstantin Belousov
On Tue, Jan 31, 2012 at 12:48:49PM -0500, David Schultz wrote: On Tue, Jan 31, 2012, Konstantin Belousov wrote: On Mon, Jan 30, 2012 at 02:07:03PM -0500, David Schultz wrote: On Mon, Jan 30, 2012, Kostik Belousov wrote: On Sun, Jan 29, 2012 at 05:39:04PM -0500, David Schultz wrote

svn commit: r230978 - head/usr.sbin/boot0cfg

2012-02-04 Thread Konstantin Belousov
Author: kib Date: Sat Feb 4 13:12:52 2012 New Revision: 230978 URL: http://svn.freebsd.org/changeset/base/230978 Log: Be as explicit as possible when describing relation between the -m mask argument and slices. Adjust example for the same reason. Submitted by: Valentin Nechayev netch

svn commit: r231075 - in head/sys: fs/ext2fs fs/nfsclient geom/journal kern nfsclient sys ufs/ufs

2012-02-06 Thread Konstantin Belousov
Author: kib Date: Mon Feb 6 11:04:36 2012 New Revision: 231075 URL: http://svn.freebsd.org/changeset/base/231075 Log: Current implementations of sync(2) and syncer vnode fsync() VOP uses mnt_noasync counter to temporary remove MNTK_ASYNC mount option, which is needed to guarantee a

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

2012-02-06 Thread Konstantin Belousov
Author: kib Date: Mon Feb 6 11:47:24 2012 New Revision: 231077 URL: http://svn.freebsd.org/changeset/base/231077 Log: JNEWBLK dependency may legitimately appear on the buf dependency list. If softdep_sync_buf() discovers such dependency, it should do nothing, which is safe as it is only

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

2012-02-06 Thread Konstantin Belousov
Author: kib Date: Mon Feb 6 17:59:14 2012 New Revision: 231091 URL: http://svn.freebsd.org/changeset/base/231091 Log: Add missing opt_quota.h include to activate #ifdef QUOTA blocks, apparently a step in unbreaking QUOTA support. Reported and tested by: Adam Strohl adams-freebsd

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

2012-02-07 Thread Konstantin Belousov
Author: kib Date: Tue Feb 7 09:51:41 2012 New Revision: 231122 URL: http://svn.freebsd.org/changeset/base/231122 Log: Sprinkle missed calls to asynchronous UFS_UPDATE() in attempt to guarantee that all UFS inode metadata changes results in the dirtiness of the inodeblock. Due to missed

Re: svn commit: r231118 - in head: include/rpc include/rpcsvc lib/libc/rpc lib/libc/yp lib/librpcsvc lib/libypclnt libexec/ypxfr release/picobsd/tinyware/passwd sys/conf sys/modules/kgssapi sys/module

2012-02-07 Thread Konstantin Belousov
On Tue, Feb 07, 2012 at 09:27:08AM +, Dimitry Andric wrote: Author: dim Date: Tue Feb 7 09:27:07 2012 New Revision: 231118 URL: http://svn.freebsd.org/changeset/base/231118 Log: Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor set via ${CPP} is used, instead

Re: svn commit: r231118 - in head: include/rpc include/rpcsvc lib/libc/rpc lib/libc/yp lib/librpcsvc lib/libypclnt libexec/ypxfr release/picobsd/tinyware/passwd sys/conf sys/modules/kgssapi sys/module

2012-02-07 Thread Konstantin Belousov
On Tue, Feb 07, 2012 at 04:19:22PM +0100, Dimitry Andric wrote: On 2012-02-07 12:07, Konstantin Belousov wrote: On Tue, Feb 07, 2012 at 09:27:08AM +, Dimitry Andric wrote: Author: dim Date: Tue Feb 7 09:27:07 2012 New Revision: 231118 URL: http://svn.freebsd.org/changeset/base

svn commit: r231204 - head/sys/kern

2012-02-08 Thread Konstantin Belousov
Author: kib Date: Wed Feb 8 15:07:19 2012 New Revision: 231204 URL: http://svn.freebsd.org/changeset/base/231204 Log: Unbreak detection of the async mode for clustered writes after r231075. Submitted by: bde MFC after:12 days Modified: head/sys/kern/vfs_cluster.c Modified:

svn commit: r231220 - head/sys/sys

2012-02-08 Thread Konstantin Belousov
Author: kib Date: Wed Feb 8 18:36:07 2012 New Revision: 231220 URL: http://svn.freebsd.org/changeset/base/231220 Log: Trim 8 unused bytes from struct vnode on 64-bit architectures. Reviewed by: alc Modified: head/sys/sys/vnode.h Modified: head/sys/sys/vnode.h

Re: svn commit: r231220 - head/sys/sys

2012-02-09 Thread Konstantin Belousov
On Wed, Feb 08, 2012 at 11:21:59AM -0800, m...@freebsd.org wrote: On Wed, Feb 8, 2012 at 10:36 AM, Konstantin Belousov k...@freebsd.org wrote: Author: kib Date: Wed Feb  8 18:36:07 2012 New Revision: 231220 URL: http://svn.freebsd.org/changeset/base/231220 Log:  Trim 8 unused bytes

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

2012-02-09 Thread Konstantin Belousov
Author: kib Date: Fri Feb 10 00:02:13 2012 New Revision: 231320 URL: http://svn.freebsd.org/changeset/base/231320 Log: Mark the automatically attached child with PL_FLAG_CHILD in struct lwpinfo flags, for PT_FOLLOWFORK auto-attachment. In collaboration with:Dmitry Mikulin dmitrym

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

2012-02-10 Thread Konstantin Belousov
Author: kib Date: Fri Feb 10 21:26:25 2012 New Revision: 231441 URL: http://svn.freebsd.org/changeset/base/231441 Log: In cpu_set_user_tls(), consistently set PCB_FULL_IRET pcb flag for both 64bit and 32bit binaries, not for 64bit only. The set of the flag is not neccessary there,

svn commit: r231443 - head/tools/test/ptrace

2012-02-10 Thread Konstantin Belousov
, because file is newly added) +++ head/tools/test/ptrace/scescx.c Fri Feb 10 21:33:12 2012 (r231443) @@ -0,0 +1,406 @@ +/*- + * Copyright (c) 2011, 2012 Konstantin Belousov k...@freebsd.org + * + * Redistribution and use in source and binary forms, with or without + * modification

Re: svn commit: r230972 - in head: share/mk sys/amd64/conf sys/i386/conf sys/modules sys/modules/drm sys/modules/sound/driver sys/modules/usb tools/build/options

2012-02-11 Thread Konstantin Belousov
On Sat, Feb 11, 2012 at 01:57:31PM +, Robert Millan wrote: El 10 de febrer de 2012 19:42, Robert Millan r...@freebsd.org ha escrit: Here's a possible solution to this patch (untested).  In case it looks fine to everyone (and my mentors approve it), I'll definitely test with make

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

2012-02-11 Thread Konstantin Belousov
Author: kib Date: Sat Feb 11 14:49:25 2012 New Revision: 231521 URL: http://svn.freebsd.org/changeset/base/231521 Log: The PTRACESTOP() macro is used only once. Inline the only use and remove the macro. MFC after:1 week Modified: head/sys/kern/subr_syscall.c

svn commit: r231526 - head/sys/vm

2012-02-11 Thread Konstantin Belousov
Author: kib Date: Sat Feb 11 17:29:07 2012 New Revision: 231526 URL: http://svn.freebsd.org/changeset/base/231526 Log: Close a race due to dropping of the map lock between creating map entry for a shared mapping and marking the entry for inheritance. Other thread might execute

svn commit: r231868 - in head/lib/libc: gen include

2012-02-17 Thread Konstantin Belousov
(r231867) +++ head/lib/libc/gen/aux.c Fri Feb 17 10:49:29 2012(r231868) @@ -1,5 +1,5 @@ /*- - * Copyright 2010 Konstantin Belousov k...@freebsd.org. + * Copyright 2010, 2012 Konstantin Belousov k...@freebsd.org. * All rights reserved. * * Redistribution and use in source

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

2012-02-17 Thread Konstantin Belousov
10:51:40 2012 (r231869) @@ -0,0 +1,115 @@ +.\ Copyright (c) 2005 Mark Kettenis +.\ Copyright (c) 2012 Konstantin Belousov k...@freebsd.org +.\ +.\ Permission to use, copy, modify, and distribute this software for any +.\ purpose with or without fee is hereby granted, provided that the above

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

2012-02-17 Thread Konstantin Belousov
Author: kib Date: Fri Feb 17 12:40:27 2012 New Revision: 231873 URL: http://svn.freebsd.org/changeset/base/231873 Log: Fix cross-references. Submitted by: pluknet MFC after: 2 weeks Modified: head/lib/libc/gen/dl_iterate_phdr.3 Modified: head/lib/libc/gen/dl_iterate_phdr.3

svn commit: r231885 - in head/sys: compat/linux compat/svr4 i386/ibcs2 i386/linux kern

2012-02-17 Thread Konstantin Belousov
Author: kib Date: Fri Feb 17 23:47:16 2012 New Revision: 231885 URL: http://svn.freebsd.org/changeset/base/231885 Log: Fix misuse of the kernel map in miscellaneous image activators. Vnode-backed mappings cannot be put into the kernel map, since it is a system map. Use exec_map for

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

2012-02-18 Thread Konstantin Belousov
Author: kib Date: Sat Feb 18 22:26:32 2012 New Revision: 231902 URL: http://svn.freebsd.org/changeset/base/231902 Log: Document PL_FLAG_CHILD. MFC after:3 days Modified: head/lib/libc/sys/ptrace.2 Modified: head/lib/libc/sys/ptrace.2

Re: svn commit: r231931 - head/sys/kern

2012-02-20 Thread Konstantin Belousov
On Mon, Feb 20, 2012 at 09:32:33AM +, Xin LI wrote: Author: delphij Date: Mon Feb 20 09:32:32 2012 New Revision: 231931 URL: http://svn.freebsd.org/changeset/base/231931 Log: Revert r231923 for now. Further work is needed to make sure that the behavior is consistent. You can do

svn commit: r231949 - in head/sys: cddl/compat/opensolaris/sys compat/ndis fs/cd9660 fs/devfs fs/ext2fs fs/msdosfs fs/nfsclient fs/nfsserver fs/pseudofs fs/udf kern nfsclient sys ufs/ffs ufs/ufs

2012-02-20 Thread Konstantin Belousov
Author: kib Date: Tue Feb 21 01:05:12 2012 New Revision: 231949 URL: http://svn.freebsd.org/changeset/base/231949 Log: Fix found places where uio_resid is truncated to int. Add the sysctl debug.iosize_max_clamp, enabled by default. Setting the sysctl to zero allows to perform the

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

2012-02-22 Thread Konstantin Belousov
Author: kib Date: Wed Feb 22 13:01:17 2012 New Revision: 231998 URL: http://svn.freebsd.org/changeset/base/231998 Log: Use DOINGASYNC() to test for async allowance, to honor VFS syncing requests. Noted by: bde MFC after:1 week Modified: head/sys/fs/msdosfs/msdosfs_denode.c

<    3   4   5   6   7   8   9   10   11   12   >