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, prop

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(), lea

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 MFC after:1 month Modified:

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 easie

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 alloc

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 libcrypt

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 Modifi

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 t

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 ex

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 + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code

svn commit: r228568 - head/sys/ddb

2011-12-16 Thread Konstantin Belousov
Author: kib Date: Fri Dec 16 11:42:50 2011 New Revision: 228568 URL: http://svn.freebsd.org/changeset/base/228568 Log: Show the thread kernel stack base address for 'show threads'. Discussed with: pho MFC after:1 week Modified: head/sys/ddb/db_thread.c Modified: head/sys/ddb

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 afte

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

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

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 M

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 af

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

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 being

svn commit: r229435 - head/sys/boot/i386/libi386

2012-01-03 Thread Konstantin Belousov
Author: kib Date: Tue Jan 3 22:36:12 2012 New Revision: 229435 URL: http://svn.freebsd.org/changeset/base/229435 Log: Add special loader environment variables 'comconsole_port' and 'comconsole_pcidev'. The former allows to set the base address of the serial console i/o port. The later takes

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 marked

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

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 65535

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: r230261 - in head/sys: amd64/include i386/include

2012-01-16 Thread Konstantin Belousov
Author: kib Date: Tue Jan 17 07:23:43 2012 New Revision: 230261 URL: http://svn.freebsd.org/changeset/base/230261 Log: Add definitions related to XCR0. MFC after:1 week Modified: head/sys/amd64/include/specialreg.h head/sys/i386/include/specialreg.h Modified: head/sys/amd64/includ

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

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
= --- head/sys/amd64/amd64/mp_machdep.c Sat Jan 21 17:22:50 2012 (r230425) +++ head/sys/amd64/amd64/mp_machdep.c Sat Jan 21 17:45:27 2012 (r230426) @@ -99,7 +99,8 @@ char *nmi_stack; void *dpcpu; struct pcb stoppcbs[MAXCPU]; -struct pcb **susppcbs = NULL; +struct pcb **susp

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: r230429 - in head: lib/libc/amd64/gen lib/libc/arm/gen lib/libc/gen lib/libc/i386/gen lib/libc/ia64/gen lib/libc/mips/gen lib/libc/powerpc/gen lib/libc/powerpc64/gen lib/libc/sparc64/ge...

2012-01-21 Thread Konstantin Belousov
Konstantin Belousov + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + *notice, this

svn commit: r230430 - head/lib/libthr/thread

2012-01-21 Thread Konstantin Belousov
Author: kib Date: Sat Jan 21 18:06:18 2012 New Revision: 230430 URL: http://svn.freebsd.org/changeset/base/230430 Log: Use getcontextx(3) internal API instead of getcontext(2) to provide the signal handlers with the context information in the deferrred case. Only enable the use of getco

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 non-n

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

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

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 f

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

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 written

svn commit: r222991 - head/sys/vm

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

svn commit: r222992 - head/sys/vm

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

svn commit: r223164 - head/sys/kern

2011-06-16 Thread Konstantin Belousov
Author: kib Date: Thu Jun 16 21:59:16 2011 New Revision: 223164 URL: http://svn.freebsd.org/changeset/base/223164 Log: Fix silly typo that resulted in the a.out process stack to end at ~200MB instead of 3GB on amd64. Modified: head/sys/kern/imgact_aout.c Modified: head/sys/kern/imgact_aout

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

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

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

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

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

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

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 Modifie

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

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

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 head/share/man/man9/ui

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 b

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 (Debian/kFreeBSD) MFC after:

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

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 b

svn commit: r209792 - head/sys/vm

2010-07-08 Thread Konstantin Belousov
Author: kib Date: Thu Jul 8 08:37:51 2010 New Revision: 209792 URL: http://svn.freebsd.org/changeset/base/209792 Log: Make VM_ALLOC_RETRY flag mandatory for vm_page_grab(). Assert that the flag is always provided, and unconditionally retry after sleep for the busy page or failed allocation.

svn commit: r209793 - head/sys/dev/agp

2010-07-08 Thread Konstantin Belousov
Author: kib Date: Thu Jul 8 08:39:02 2010 New Revision: 209793 URL: http://svn.freebsd.org/changeset/base/209793 Log: Do not mention VM_ALLOC_RETRY in comment, and normalize the terminology (blocking -> sleeping). Reviewed by: alc MFC after:3 days Modified: head/sys/dev/agp/agp

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

2010-07-09 Thread Konstantin Belousov
Author: kib Date: Fri Jul 9 20:05:56 2010 New Revision: 209862 URL: http://svn.freebsd.org/changeset/base/209862 Log: For both i386 and amd64 pmap, - change the type of pm_active to cpumask_t, which it is; - in pmap_remove_pages(), compare with PCPU(curpmap), instead of dereferencing th

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

2010-07-09 Thread Konstantin Belousov
Author: kib Date: Fri Jul 9 21:27:42 2010 New Revision: 209866 URL: http://svn.freebsd.org/changeset/base/209866 Log: Fix spacing. Noted by: pgollucci MFC after:3 weeks Modified: head/sys/i386/include/pmap.h Modified: head/sys/i386/include/pmap.h =

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

2010-07-10 Thread Konstantin Belousov
Author: kib Date: Sat Jul 10 14:31:44 2010 New Revision: 209873 URL: http://svn.freebsd.org/changeset/base/209873 Log: Document pl_siginfo and PT_FLAG_SI for PT_LWPINFO. MFC after:1 month Modified: head/lib/libc/sys/ptrace.2 Modified: head/lib/libc/sys/ptrace.2 =

svn commit: r209932 - head/lib/libc/compat-43

2010-07-12 Thread Konstantin Belousov
Author: kib Date: Mon Jul 12 10:14:24 2010 New Revision: 209932 URL: http://svn.freebsd.org/changeset/base/209932 Log: For xsi_sigpause(3), remove the supplied signal from the process mask during sigpause(2) call. It was backward. Check that the signal number is valid. Reported by: Gar

svn commit: r209933 - head/lib/libthr/thread

2010-07-12 Thread Konstantin Belousov
Author: kib Date: Mon Jul 12 10:15:33 2010 New Revision: 209933 URL: http://svn.freebsd.org/changeset/base/209933 Log: Use _SIG_VALID instead of expanded form of the macro. Submitted by: Garrett Cooper MFC after:1 week Modified: head/lib/libthr/thread/thr_sig.c Modified: head/lib

svn commit: r209934 - head/sys/ddb

2010-07-12 Thread Konstantin Belousov
Author: kib Date: Mon Jul 12 10:18:10 2010 New Revision: 209934 URL: http://svn.freebsd.org/changeset/base/209934 Log: One more use for _SIG_VALID. Submitted by: Garrett Cooper MFC after:1 week Modified: head/sys/ddb/db_command.c Modified: head/sys/ddb/db_command.c ==

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

2010-07-12 Thread Konstantin Belousov
Author: kib Date: Mon Jul 12 19:59:15 2010 New Revision: 209955 URL: http://svn.freebsd.org/changeset/base/209955 Log: When switching the thread from the processor, store %dr7 content into the pcb before disabling watchpoints. Otherwise, when the thread is restored on a processor, watchpoint

svn commit: r210369 - in head/sys: amd64/amd64 amd64/include ia64/include kern powerpc/include

2010-07-22 Thread Konstantin Belousov
Author: kib Date: Thu Jul 22 09:13:49 2010 New Revision: 210369 URL: http://svn.freebsd.org/changeset/base/210369 Log: When compat32 binary asks for the value of hw.machine_arch, report the name of 32bit sibling architecture instead of the host one. Do the same for hw.machine on amd64.

svn commit: r210370 - head/lib/libc/compat-43

2010-07-22 Thread Konstantin Belousov
Author: kib Date: Thu Jul 22 09:14:18 2010 New Revision: 210370 URL: http://svn.freebsd.org/changeset/base/210370 Log: Verify return value of the sigset manipulation functions to catch invalid signal numbers [1]. Use consistent style of not assigning the return value to a local variable.

svn commit: r210409 - in head/sys: conf crypto/aesni modules modules/aesni

2010-07-23 Thread Konstantin Belousov
ni/aesencdec_amd64.S == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/crypto/aesni/aesencdec_amd64.S Fri Jul 23 11:00:46 2010 (r210409) @@ -0,0 +1,135 @@ +/*- + * Copyright (c) 2010 Konstantin Belousov + * All rights reserved. + * + * Redistributi

svn commit: r210431 - in head/sys: amd64/linux32 compat/freebsd32

2010-07-23 Thread Konstantin Belousov
Author: kib Date: Fri Jul 23 21:30:33 2010 New Revision: 210431 URL: http://svn.freebsd.org/changeset/base/210431 Log: Remove the linux_exec_copyin_args(), freebsd32_exec_copyin_args() may server as well. COMPAT_FREEBSD32 is a prerequisite for COMPAT_LINUX32. Reviewed by: alc MFC after

svn commit: r210432 - head/sys/amd64/linux32

2010-07-23 Thread Konstantin Belousov
Author: kib Date: Fri Jul 23 21:31:03 2010 New Revision: 210432 URL: http://svn.freebsd.org/changeset/base/210432 Log: Regen Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_sysent.c Modified: head/sys/amd64/linux32/

svn commit: r210446 - head/sys/sys

2010-07-24 Thread Konstantin Belousov
Author: kib Date: Sat Jul 24 14:23:06 2010 New Revision: 210446 URL: http://svn.freebsd.org/changeset/base/210446 Log: Reword the comment, fixing typo. MFC after:3 days Modified: head/sys/sys/imgact_elf.h Modified: head/sys/sys/imgact_elf.h ==

svn commit: r210451 - head/sys/sys

2010-07-24 Thread Konstantin Belousov
Author: kib Date: Sat Jul 24 18:14:34 2010 New Revision: 210451 URL: http://svn.freebsd.org/changeset/base/210451 Log: Use forward declartion for enum uio_seg in imgact.h. This allows to remove inclusion of sys/uio.h from the header. Proposed by: alc MFC after:1 week Modified: h

svn commit: r210498 - in head/sys: compat/freebsd32 sys

2010-07-26 Thread Konstantin Belousov
Author: kib Date: Mon Jul 26 12:52:44 2010 New Revision: 210498 URL: http://svn.freebsd.org/changeset/base/210498 Log: Revert r210451, and the similar part of the r210431. The forward-declaration for the enum tag when enum definition is not complete is not allowed by C99, and is gcc extensio

svn commit: r210501 - head/sys/amd64/linux32

2010-07-26 Thread Konstantin Belousov
Author: kib Date: Mon Jul 26 14:38:51 2010 New Revision: 210501 URL: http://svn.freebsd.org/changeset/base/210501 Log: Remove unneeded includes. Submitted by: alc MFC after:1 week Modified: head/sys/amd64/linux32/linux32_machdep.c Modified: head/sys/amd64/linux32/linux32_machdep.c

svn commit: r210631 - head/sys/opencrypto

2010-07-29 Thread Konstantin Belousov
Author: kib Date: Thu Jul 29 20:42:20 2010 New Revision: 210631 URL: http://svn.freebsd.org/changeset/base/210631 Log: Add compat32 shims for opencrypto(4). Reviewed by: bz MFC after:3 weeks Modified: head/sys/opencrypto/cryptodev.c Modified: head/sys/opencrypto/cryptodev.c =

svn commit: r210679 - head/bin/sleep

2010-07-31 Thread Konstantin Belousov
Author: kib Date: Sat Jul 31 14:30:11 2010 New Revision: 210679 URL: http://svn.freebsd.org/changeset/base/210679 Log: Report the time left for the sleep on SIGINFO. Be stricter in the checking of interval specification. PR: bin/139345 MFC after:3 weeks Modified: head/bin/sleep

svn commit: r210696 - head/bin/sleep

2010-07-31 Thread Konstantin Belousov
Author: kib Date: Sat Jul 31 17:41:58 2010 New Revision: 210696 URL: http://svn.freebsd.org/changeset/base/210696 Log: Deal with proper format for printing time_t. Reported by: ache MFC after:3 weeks Modified: head/bin/sleep/sleep.c Modified: head/bin/sleep/sleep.c ==

svn commit: r210749 - head/bin/sleep

2010-08-02 Thread Konstantin Belousov
Author: kib Date: Mon Aug 2 10:57:56 2010 New Revision: 210749 URL: http://svn.freebsd.org/changeset/base/210749 Log: Simplify argument parser by using sscanf(); simplify usage() by not refusing to use stdio. Reduce nesting level in the sleep loop by returning earlier for negative timeout

svn commit: r210750 - head/bin/sleep

2010-08-02 Thread Konstantin Belousov
Author: kib Date: Mon Aug 2 10:59:23 2010 New Revision: 210750 URL: http://svn.freebsd.org/changeset/base/210750 Log: Document the new argument parser for sleep(1) and SIGINFO behaviour. Remove higlight for the unportability notice. MFC after:3 weeks Modified: head/bin/sleep/sleep

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

2010-08-03 Thread Konstantin Belousov
Author: kib Date: Tue Aug 3 11:23:44 2010 New Revision: 210796 URL: http://svn.freebsd.org/changeset/base/210796 Log: When compat32 recvmsg(2) does not need to copy out control messages, set msg_controllen to 0. PR: kern/149227 Submitted by: Stef Walter MFC after:1 weeks Modi

svn commit: r210805 - head/sys/net

2010-08-03 Thread Konstantin Belousov
Author: kib Date: Tue Aug 3 15:40:42 2010 New Revision: 210805 URL: http://svn.freebsd.org/changeset/base/210805 Log: Properly set ifi_datalen for compat32 struct if_data32. PR: kern/149240 Submitted by: Stef Walter MFC after:1 weeks Modified: head/sys/net/rtsock.c Modified:

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

2010-08-04 Thread Konstantin Belousov
Author: kib Date: Wed Aug 4 14:35:05 2010 New Revision: 210847 URL: http://svn.freebsd.org/changeset/base/210847 Log: Fix style. MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32_misc.c Modified: head/sys/compat/freebsd32/freebsd32_misc.c ==

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

2010-08-04 Thread Konstantin Belousov
Author: kib Date: Wed Aug 4 14:38:20 2010 New Revision: 210848 URL: http://svn.freebsd.org/changeset/base/210848 Log: Copy inode birthtime to the struct stat32. MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32_misc.c Modified: head/sys/compat/freebsd32/freebsd32_misc.

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

2010-08-06 Thread Konstantin Belousov
Author: kib Date: Fri Aug 6 09:06:55 2010 New Revision: 210918 URL: http://svn.freebsd.org/changeset/base/210918 Log: Initialize VV_ISTTY vnode flag on the devfs vnode creation instead of doing it on each open. In collaboration with:pho MFC after:1 month Modified: head/s

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

2010-08-06 Thread Konstantin Belousov
Author: kib Date: Fri Aug 6 09:23:47 2010 New Revision: 210921 URL: http://svn.freebsd.org/changeset/base/210921 Log: Enable shared locks for the devfs vnodes. Honor the locking mode requested by lookup(). This should be a nop at the moment. In collaboration with:pho MFC after:

<    10   11   12   13   14   15   16   17   18   19   >