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

2010-08-06 Thread Konstantin Belousov
Author: kib Date: Fri Aug 6 09:46:53 2010 New Revision: 210925 URL: http://svn.freebsd.org/changeset/base/210925 Log: Enable shared lookups and externed shared ops for devfs. In collaboration with:pho MFC after:1 month Modified: head/sys/fs/devfs/devfs_vfsops.c Modified:

svn commit: r210926 - head/sys/dev/null

2010-08-06 Thread Konstantin Belousov
Author: kib Date: Fri Aug 6 09:47:48 2010 New Revision: 210926 URL: http://svn.freebsd.org/changeset/base/210926 Log: Mark /dev/zero and /dev/null as eternal. In collaboration with:pho MFC after:1 month Modified: head/sys/dev/null/null.c Modified:

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

2010-08-07 Thread Konstantin Belousov
Author: kib Date: Sat Aug 7 11:53:38 2010 New Revision: 211005 URL: http://svn.freebsd.org/changeset/base/211005 Log: Add compat32 definition for (old) struct ostat. MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32.h Modified: head/sys/compat/freebsd32/freebsd32.h

svn commit: r211006 - in head/sys: amd64/ia32 compat/freebsd32 ia64/ia32

2010-08-07 Thread Konstantin Belousov
Author: kib Date: Sat Aug 7 11:57:13 2010 New Revision: 211006 URL: http://svn.freebsd.org/changeset/base/211006 Log: Prefer struct sysentvec sv_psstrings to hardcoding FREEBSD32_PS_STRINGS in the compat32 code. Use sv_usrstack instead of FREEBSD32_USRSTACK as well. MFC after:1 week

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

2010-08-12 Thread Konstantin Belousov
Author: kib Date: Thu Aug 12 08:35:24 2010 New Revision: 211212 URL: http://svn.freebsd.org/changeset/base/211212 Log: Softdep_process_worklist() should unsuspend not only before processing the worklist (in softdep_process_journal), but also after flushing the workitems. Might be, we should

svn commit: r211335 - head/sys/sys

2010-08-15 Thread Konstantin Belousov
Author: kib Date: Sun Aug 15 14:38:01 2010 New Revision: 211335 URL: http://svn.freebsd.org/changeset/base/211335 Log: Add convenience defines for hidden and default/exported attributes. MFC after:2 weeks Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h

svn commit: r211339 - head/sys/modules/sem

2010-08-15 Thread Konstantin Belousov
Author: kib Date: Sun Aug 15 15:33:01 2010 New Revision: 211339 URL: http://svn.freebsd.org/changeset/base/211339 Log: Add missed dependency. Submitted by: gcooper MFC after:1 week Modified: head/sys/modules/sem/Makefile Modified: head/sys/modules/sem/Makefile

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

2010-08-17 Thread Konstantin Belousov
Author: kib Date: Tue Aug 17 08:55:45 2010 New Revision: 211412 URL: http://svn.freebsd.org/changeset/base/211412 Log: Supply some useful information to the started image using ELF aux vectors. In particular, provide pagesize and pagesizes array, the canary value for SSP use, number of host

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

2010-08-17 Thread Konstantin Belousov
Author: kib Date: Tue Aug 17 09:05:39 2010 New Revision: 211413 URL: http://svn.freebsd.org/changeset/base/211413 Log: Use the newly provided aux vectors to get pagesize and osreldate information. Use local version of getpagesize(), rtld_getpagesize() in private allocator. Override the

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

2010-08-17 Thread Konstantin Belousov
Author: kib Date: Tue Aug 17 09:08:28 2010 New Revision: 211414 URL: http://svn.freebsd.org/changeset/base/211414 Log: Provide the starting image with the pointer to ELF aux vector. It is written into the __elf_aux_vector variable, if the symbol is present. Idea from:kan Tested by:

svn commit: r211416 - in head/lib/libc: gen include stdlib sys

2010-08-17 Thread Konstantin Belousov
is newly added) +++ head/lib/libc/gen/aux.c Tue Aug 17 09:13:26 2010(r211416) @@ -0,0 +1,146 @@ +/*- + * Copyright 2010 Konstantin Belousov k...@freebsd.org. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted

svn commit: r211418 - head/tools/test/auxinfo

2010-08-17 Thread Konstantin Belousov
(r211418) @@ -0,0 +1,58 @@ +/* + * This file is in public domain. + * Written by Konstantin Belousov k...@freebsd.org + * + * $FreeBSD$ + */ + +#include sys/mman.h +#include err.h +#include stdlib.h +#include stdint.h +#include stdio.h +#include unistd.h + +static void +test_pagesizes(void

svn commit: r211705 - in head: lib/libc/gen libexec/rtld-elf sys/sys

2010-08-23 Thread Konstantin Belousov
Author: kib Date: Mon Aug 23 15:27:03 2010 New Revision: 211705 URL: http://svn.freebsd.org/changeset/base/211705 Log: Introduce implementation-private rtld interface _rtld_addr_phdr, which fills struct dl_phdr_info for the shared object that contains the specified address, if any.

svn commit: r211706 - in head: lib/libc/gen lib/libc/include lib/libc/stdlib lib/libthr lib/libthr/thread libexec/rtld-elf

2010-08-23 Thread Konstantin Belousov
Aug 23 15:38:02 2010 (r211706) @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2010 Konstantin Belousov k...@freebsd.org + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions

svn commit: r211741 - head/sys/sys

2010-08-24 Thread Konstantin Belousov
Author: kib Date: Tue Aug 24 11:53:30 2010 New Revision: 211741 URL: http://svn.freebsd.org/changeset/base/211741 Log: Use preferred spelling for the __attribute__. MFC after:3 days Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h

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

2010-08-24 Thread Konstantin Belousov
Author: kib Date: Tue Aug 24 11:54:48 2010 New Revision: 211742 URL: http://svn.freebsd.org/changeset/base/211742 Log: The __hidden definition is provided by sys/cdefs.h. MFC after:2 weeks Modified: head/lib/libthr/thread/thr_private.h Modified: head/lib/libthr/thread/thr_private.h

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

2010-08-24 Thread Konstantin Belousov
Author: kib Date: Tue Aug 24 11:55:25 2010 New Revision: 211743 URL: http://svn.freebsd.org/changeset/base/211743 Log: Remove unused source. MFC after:2 weeks Deleted: head/lib/libthr/thread/thr_atfork.c ___ svn-src-head@freebsd.org

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

2010-08-24 Thread Konstantin Belousov
Author: kib Date: Tue Aug 24 12:58:54 2010 New Revision: 211748 URL: http://svn.freebsd.org/changeset/base/211748 Log: Move the __stack_chk_fail_lo...@fbsd_1.0 compat symbol definition into the separate .o for libc_pic.a. This prevents rtld from making the symbol global. Putting the

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

2010-08-24 Thread Konstantin Belousov
Author: kib Date: Tue Aug 24 13:01:14 2010 New Revision: 211749 URL: http://svn.freebsd.org/changeset/base/211749 Log: Remove exports table. Export control by the version script is enough. Reviewed by: kan MFC after:3 weeks Modified: head/libexec/rtld-elf/rtld.c Modified:

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

2010-08-24 Thread Konstantin Belousov
Author: kib Date: Tue Aug 24 13:02:22 2010 New Revision: 211750 URL: http://svn.freebsd.org/changeset/base/211750 Log: Remove extra FreeBSD tag. MFC after:3 days Modified: head/lib/libc/sys/stack_protector.c Modified: head/lib/libc/sys/stack_protector.c

svn commit: r211838 - head/sys/kern

2010-08-26 Thread Konstantin Belousov
Author: kib Date: Thu Aug 26 11:20:57 2010 New Revision: 211838 URL: http://svn.freebsd.org/changeset/base/211838 Log: Fix typo. Submitted by: Ben Kaduk minimarmot gmail com Modified: head/sys/kern/syscalls.master Modified: head/sys/kern/syscalls.master

svn commit: r211868 - head/sys/sys

2010-08-27 Thread Konstantin Belousov
Author: kib Date: Fri Aug 27 09:55:51 2010 New Revision: 211868 URL: http://svn.freebsd.org/changeset/base/211868 Log: Use private namespace for visibility keyword. Noted by: bde MFC after:3 days Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h

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

2010-08-27 Thread Konstantin Belousov
Author: kib Date: Fri Aug 27 19:57:17 2010 New Revision: 211894 URL: http://svn.freebsd.org/changeset/base/211894 Log: Do not call __pthread_cxa_finalize with invalid struct dl_phdr_info. Reported and tested by: Fabian Keil freebsd-listen fabiankeil de MFC after:17 days

svn commit: r211941 - head/sys/kern

2010-08-28 Thread Konstantin Belousov
Author: kib Date: Sat Aug 28 17:42:08 2010 New Revision: 211941 URL: http://svn.freebsd.org/changeset/base/211941 Log: For some file types, select code registers two selfd structures. E.g., for socket, when specified POLLIN|POLLOUT in events, you would have one selfd registered for

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

2010-08-29 Thread Konstantin Belousov
Author: kib Date: Sun Aug 29 16:38:08 2010 New Revision: 211966 URL: http://svn.freebsd.org/changeset/base/211966 Log: Use NULL instead of 0 for pointer in example. MFC after:3 days Modified: head/lib/libc/sys/sigaltstack.2 Modified: head/lib/libc/sys/sigaltstack.2

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

2010-08-30 Thread Konstantin Belousov
Author: kib Date: Mon Aug 30 14:26:02 2010 New Revision: 211999 URL: http://svn.freebsd.org/changeset/base/211999 Log: Regen Modified: head/sys/kern/init_sysent.c head/sys/kern/syscalls.c head/sys/kern/systrace_args.c head/sys/sys/syscall.h head/sys/sys/syscall.mk

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

2010-09-05 Thread Konstantin Belousov
Author: kib Date: Sun Sep 5 14:47:46 2010 New Revision: 212233 URL: http://svn.freebsd.org/changeset/base/212233 Log: Document MAKEDEV_ETERNAL. MFC after:3 days Modified: head/share/man/man9/make_dev.9 Modified: head/share/man/man9/make_dev.9

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

2010-09-05 Thread Konstantin Belousov
Author: kib Date: Sun Sep 5 14:52:27 2010 New Revision: 212234 URL: http://svn.freebsd.org/changeset/base/212234 Log: Document show cdev command. MFC after:3 days Modified: head/share/man/man4/ddb.4 Modified: head/share/man/man4/ddb.4

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

2010-09-06 Thread Konstantin Belousov
@@ +.\ Copyright (c) 2010 Konstantin Belousov k...@freebsd.org +.\ 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

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

2010-09-11 Thread Konstantin Belousov
Author: kib Date: Sat Sep 11 13:06:06 2010 New Revision: 212466 URL: http://svn.freebsd.org/changeset/base/212466 Log: Protect mnt_syncer with the sync_mtx. This prevents a (rare) vnode leak when mount and update are executed in parallel. Encapsulate syncer vnode deallocation into the

svn commit: r212499 - head/sys/sys

2010-09-12 Thread Konstantin Belousov
Author: kib Date: Sun Sep 12 17:53:31 2010 New Revision: 212499 URL: http://svn.freebsd.org/changeset/base/212499 Log: Fix typo. MFC after:3 days Modified: head/sys/sys/elf_common.h Modified: head/sys/sys/elf_common.h

svn commit: r212501 - head/sys/sys

2010-09-12 Thread Konstantin Belousov
Author: kib Date: Sun Sep 12 17:55:56 2010 New Revision: 212501 URL: http://svn.freebsd.org/changeset/base/212501 Log: Add DF_1_LOADFLTR. MFC after:3 days Modified: head/sys/sys/elf_common.h Modified: head/sys/sys/elf_common.h

svn commit: r212506 - head/sys/nfsclient

2010-09-12 Thread Konstantin Belousov
Author: kib Date: Sun Sep 12 19:06:08 2010 New Revision: 212506 URL: http://svn.freebsd.org/changeset/base/212506 Log: Do not fork nfsiod directly from the vop methods. This causes LORs between vnode lock and several locks needed during fork, like fd lock. Instead, schedule the task to

svn commit: r212618 - head/sys/sys

2010-09-14 Thread Konstantin Belousov
Author: kib Date: Tue Sep 14 18:58:51 2010 New Revision: 212618 URL: http://svn.freebsd.org/changeset/base/212618 Log: Rename the field to not confuse readers. The bytes are actually used. Discussed with: rmacklem MFC after:1 week Modified: head/sys/sys/mount.h Modified:

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

2010-09-18 Thread Konstantin Belousov
Author: kib Date: Sat Sep 18 15:03:31 2010 New Revision: 212824 URL: http://svn.freebsd.org/changeset/base/212824 Log: Adopt the deferring of object deallocation for the deleted map entries on map unlock to the lock downgrade and later read unlock operation. System map entries cannot be

svn commit: r212998 - head/sys/sparc64/sparc64

2010-09-22 Thread Konstantin Belousov
Author: kib Date: Wed Sep 22 12:52:12 2010 New Revision: 212998 URL: http://svn.freebsd.org/changeset/base/212998 Log: For sparc64 relocations that directly put bits of the symbol value into the location, apply elf_relocaddr to the symbol value to have right values for the symbols from

svn commit: r213246 - head/sys/compat/linprocfs

2010-09-28 Thread Konstantin Belousov
Author: kib Date: Tue Sep 28 11:32:17 2010 New Revision: 213246 URL: http://svn.freebsd.org/changeset/base/213246 Log: In linprocfs_doargv(): - handle compat32 processes; - remove the checks for copied in addresses to belong into valid usermode range, proc_rwmem() does this; -

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

2010-09-29 Thread Konstantin Belousov
Author: kib Date: Wed Sep 29 07:40:11 2010 New Revision: 213259 URL: http://svn.freebsd.org/changeset/base/213259 Log: Fix typo in comment. Modified: head/sys/ufs/ffs/ffs_softdep.c Modified: head/sys/ufs/ffs/ffs_softdep.c

svn commit: r213354 - head/sys/dev/ciss

2010-10-02 Thread Konstantin Belousov
Author: kib Date: Sat Oct 2 08:18:19 2010 New Revision: 213354 URL: http://svn.freebsd.org/changeset/base/213354 Log: Cosmetic: make it less confusing when displaying RAID 1 level, that might be 1+0 as well. PR: kern/150936 MFC after:2 weeks Modified: head/sys/dev/ciss/ciss.c

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

2010-10-03 Thread Konstantin Belousov
Author: kib Date: Sun Oct 3 13:52:17 2010 New Revision: 213382 URL: http://svn.freebsd.org/changeset/base/213382 Log: The makectx() function, used by kdb_trap() to reconstruct pcb from trap frame when trap initiated kdb entry, incorrectly calculated the value of %rsp for trapped thread.

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

2010-10-05 Thread Konstantin Belousov
Author: kib Date: Tue Oct 5 15:31:56 2010 New Revision: 213452 URL: http://svn.freebsd.org/changeset/base/213452 Log: Display PCID capability of CPU and add CPUID define for it. MFC after:1 week Modified: head/sys/amd64/amd64/identcpu.c head/sys/amd64/include/specialreg.h

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

2010-10-06 Thread Konstantin Belousov
Author: kib Date: Wed Oct 6 09:05:47 2010 New Revision: 213476 URL: http://svn.freebsd.org/changeset/base/213476 Log: Add cross-references to lrand48(3) and arc4random(3) from rand(3) and random(3). Submitted by: Valentin Nechayev netch netch kiev ua MFC after:1 week Modified:

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

2010-10-06 Thread Konstantin Belousov
Author: kib Date: Wed Oct 6 09:24:33 2010 New Revision: 213477 URL: http://svn.freebsd.org/changeset/base/213477 Log: Missed space. Submitted by: brueffer MFC after:1 week Modified: head/lib/libc/stdlib/rand.3 Modified: head/lib/libc/stdlib/rand.3

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

2010-10-07 Thread Konstantin Belousov
Author: kib Date: Thu Oct 7 08:36:02 2010 New Revision: 213508 URL: http://svn.freebsd.org/changeset/base/213508 Log: The msdosfs lookup is case insensitive. Several aliases may be inserted for a single directory entry. As a consequnce, name cache purge done by lookup for fvp when DELETE

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

2010-10-08 Thread Konstantin Belousov
Author: kib Date: Fri Oct 8 07:17:22 2010 New Revision: 213543 URL: http://svn.freebsd.org/changeset/base/213543 Log: Add a comment describing the reason for calling cache_purge(fvp). Requested by: danfe MFC after:6 days Modified: head/sys/fs/msdosfs/msdosfs_vnops.c Modified:

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

2010-10-08 Thread Konstantin Belousov
Author: kib Date: Fri Oct 8 07:18:44 2010 New Revision: 213544 URL: http://svn.freebsd.org/changeset/base/213544 Log: Fix typo. Submitted by: arundel MFC after:3 days Modified: head/sys/amd64/linux32/syscalls.master Modified: head/sys/amd64/linux32/syscalls.master

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

2010-10-08 Thread Konstantin Belousov
Author: kib Date: Fri Oct 8 07:19:05 2010 New Revision: 213545 URL: http://svn.freebsd.org/changeset/base/213545 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:

svn commit: r213664 - in head/sys: fs/cd9660 fs/hpfs fs/msdosfs fs/ntfs gnu/fs/reiserfs kern sys ufs/ffs ufs/ufs

2010-10-10 Thread Konstantin Belousov
Author: kib Date: Sun Oct 10 07:05:47 2010 New Revision: 213664 URL: http://svn.freebsd.org/changeset/base/213664 Log: The r184588 changed the layout of struct export_args, causing an ABI breakage for old mount(2) syscall, since most struct filesystem_args embed export_args. The mount(2) is

svn commit: r213716 - in head/sys: amd64/linux32 compat/svr4 i386/ibcs2 i386/linux sys

2010-10-12 Thread Konstantin Belousov
Author: kib Date: Tue Oct 12 09:18:17 2010 New Revision: 213716 URL: http://svn.freebsd.org/changeset/base/213716 Log: Add macro DECLARE_MODULE_TIED to denote a module as requiring the kernel of exactly the same __FreeBSD_version as the headers module was compiled against. Mark our

svn commit: r213846 - head/sys/compat/linux

2010-10-14 Thread Konstantin Belousov
Author: kib Date: Thu Oct 14 19:30:44 2010 New Revision: 213846 URL: http://svn.freebsd.org/changeset/base/213846 Log: Remove stale comment. Submitted by: arundel MFC after:3 days Modified: head/sys/compat/linux/linux_util.h Modified: head/sys/compat/linux/linux_util.h

Re: svn commit: r235859 - in head/sys: i386/conf modules

2012-05-28 Thread Konstantin Belousov
On Mon, May 28, 2012 at 12:38:19PM -0700, Eitan Adler wrote: On 25 May 2012 03:32, Konstantin Belousov kostik...@gmail.com wrote: On Fri, May 25, 2012 at 10:32:12AM +0200, Niclas Zeising wrote: Hi! Would it be possible to bump the FreeBSD version to reflect this commit?  It would

Re: svn commit: r236137 - head/contrib/gcc/config/i386

2012-05-28 Thread Konstantin Belousov
On Mon, May 28, 2012 at 09:03:55PM +0200, Marius Strobl wrote: On Sun, May 27, 2012 at 05:27:48AM +, Konstantin Belousov wrote: Author: kib Date: Sun May 27 05:27:47 2012 New Revision: 236137 URL: http://svn.freebsd.org/changeset/base/236137 Log: Enable gnu hash generation

Re: svn commit: r236137 - head/contrib/gcc/config/i386

2012-05-28 Thread Konstantin Belousov
On Mon, May 28, 2012 at 09:17:23PM +0100, David Chisnall wrote: On 28 May 2012, at 20:33, Dimitry Andric wrote: On the other hand, it's really platform-dependent: I've checked several Linux distributions, and it is fairly unpredictable whether their gcc passes --hash-style to the linker,

Re: svn commit: r236137 - head/contrib/gcc/config/i386

2012-05-29 Thread Konstantin Belousov
On Wed, May 30, 2012 at 12:48:33AM +0200, Marius Strobl wrote: On Mon, May 28, 2012 at 11:47:28PM +0300, Konstantin Belousov wrote: On Mon, May 28, 2012 at 09:03:55PM +0200, Marius Strobl wrote: On Sun, May 27, 2012 at 05:27:48AM +, Konstantin Belousov wrote: Author: kib Date

Re: svn commit: r236137 - head/contrib/gcc/config/i386

2012-05-30 Thread Konstantin Belousov
On Wed, May 30, 2012 at 10:00:02AM +0100, David Chisnall wrote: On 30 May 2012, at 09:01, Marius Strobl wrote: Ehm, yes, but given that this wouldn't be the first such flag we have is avoiding it really worth the link time and run time overheads in the long term? Given the small

svn commit: r236309 - head/sys/kern

2012-05-30 Thread Konstantin Belousov
Author: kib Date: Wed May 30 13:44:42 2012 New Revision: 236309 URL: http://svn.freebsd.org/changeset/base/236309 Log: Assert that TDP_NOFAULTING and TDP_NOSPEEPING thread flags do not leak when thread returns from a syscall to usermode. Tested by:pho MFC after:1 week

svn commit: r236312 - head/sys/sys

2012-05-30 Thread Konstantin Belousov
Author: kib Date: Wed May 30 13:58:01 2012 New Revision: 236312 URL: http://svn.freebsd.org/changeset/base/236312 Log: Clarify that the v_lockf is advisory lock list. MFC after:3 days Modified: head/sys/sys/vnode.h Modified: head/sys/sys/vnode.h

svn commit: r236313 - head/sys/fs/nfsclient

2012-05-30 Thread Konstantin Belousov
Author: kib Date: Wed May 30 14:00:23 2012 New Revision: 236313 URL: http://svn.freebsd.org/changeset/base/236313 Log: Capitalize start of sentence. MFC after:3 days Modified: head/sys/fs/nfsclient/nfs_clbio.c Modified: head/sys/fs/nfsclient/nfs_clbio.c

svn commit: r236317 - in head/sys: conf kern sys

2012-05-30 Thread Konstantin Belousov
/kern/kern_rangelock.c Wed May 30 16:06:38 2012 (r236317) @@ -0,0 +1,246 @@ +/*- + * Copyright (c) 2009 Konstantin Belousov k...@freebsd.org + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided

Re: svn commit: r236317 - in head/sys: conf kern sys

2012-05-30 Thread Konstantin Belousov
On Wed, May 30, 2012 at 04:06:38PM +, Konstantin Belousov wrote: Author: kib Date: Wed May 30 16:06:38 2012 New Revision: 236317 URL: http://svn.freebsd.org/changeset/base/236317 Log: Add a rangelock implementation, intended to be used to range-locking the i/o regions of the vnode

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

2012-05-30 Thread Konstantin Belousov
Author: kib Date: Wed May 30 16:42:08 2012 New Revision: 236321 URL: http://svn.freebsd.org/changeset/base/236321 Log: vn_io_fault() is a facility to prevent page faults while filesystems perform copyin/copyout of the file data into the usermode buffer. Typical filesystem hold vnode lock

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

2012-05-30 Thread Konstantin Belousov
Author: kib Date: Wed May 30 16:45:41 2012 New Revision: 236322 URL: http://svn.freebsd.org/changeset/base/236322 Log: Enable vn_io_fault() lock avoidance for UFS. Tested by:pho MFC after:2 months Modified: head/sys/ufs/ffs/ffs_vfsops.c head/sys/ufs/ffs/ffs_vnops.c

Re: svn commit: r236380 - head/sys/vm

2012-06-01 Thread Konstantin Belousov
On Fri, Jun 01, 2012 at 04:42:52AM +, Eitan Adler wrote: Author: eadler Date: Fri Jun 1 04:42:52 2012 New Revision: 236380 URL: http://svn.freebsd.org/changeset/base/236380 Log: Add sysctl to query amount of swap space free PR: kern/166780 Submitted by: Radim

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

2012-06-02 Thread Konstantin Belousov
Author: kib Date: Sat Jun 2 18:44:40 2012 New Revision: 236465 URL: http://svn.freebsd.org/changeset/base/236465 Log: Update the print mask for decoding b_flags. Add print masks for b_vflags and b_xflags_t and print them as well. MFC after: 1 week Modified: head/sys/kern/vfs_bio.c

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

2012-06-02 Thread Konstantin Belousov
Author: kib Date: Sat Jun 2 19:39:12 2012 New Revision: 236487 URL: http://svn.freebsd.org/changeset/base/236487 Log: Fix typo [1]. Use commas to separate flag printouts, in style with other parts of function. Submitted by: bf [1] MFC after: 1 week Modified:

svn commit: r236516 - head/sys/kern

2012-06-03 Thread Konstantin Belousov
Author: kib Date: Sun Jun 3 16:06:56 2012 New Revision: 236516 URL: http://svn.freebsd.org/changeset/base/236516 Log: Count and export the number of prefaulting happen. MFC after: 1 month Modified: head/sys/kern/vfs_vnops.c Modified: head/sys/kern/vfs_vnops.c

svn commit: r236517 - head/sys/kern

2012-06-03 Thread Konstantin Belousov
Author: kib Date: Sun Jun 3 16:19:37 2012 New Revision: 236517 URL: http://svn.freebsd.org/changeset/base/236517 Log: Add a knob to disable vn_io_fault. MFC after:1 month Modified: head/sys/kern/vfs_vnops.c Modified: head/sys/kern/vfs_vnops.c

Re: svn commit: r236456 - in head/sys: amd64/include i386/include

2012-06-04 Thread Konstantin Belousov
On Mon, Jun 04, 2012 at 12:00:27PM +0200, Tijl Coosemans wrote: On 02-06-2012 20:10, Konstantin Belousov wrote: Author: kib Date: Sat Jun 2 18:10:16 2012 New Revision: 236456 URL: http://svn.freebsd.org/changeset/base/236456 Log: Use plain store for atomic_store_rel on x86

Re: svn commit: r236456 - in head/sys: amd64/include i386/include

2012-06-04 Thread Konstantin Belousov
On Mon, Jun 04, 2012 at 04:59:22PM +0100, Attilio Rao wrote: 2012/6/4 Konstantin Belousov kostik...@gmail.com: On Mon, Jun 04, 2012 at 02:58:57PM +0100, Attilio Rao wrote: 2012/6/4 Konstantin Belousov kostik...@gmail.com: On Mon, Jun 04, 2012 at 12:00:27PM +0200, Tijl Coosemans wrote

Re: svn commit: r236582 - head/lib/libc/stdlib

2012-06-05 Thread Konstantin Belousov
On Tue, Jun 05, 2012 at 10:08:09AM +0200, Dimitry Andric wrote: On 2012-06-04 23:34, Andrey A. Chernov wrote: Author: ache Date: Mon Jun 4 21:34:49 2012 New Revision: 236582 URL: http://svn.freebsd.org/changeset/base/236582 Log: 1) IEEE Std 1003.1-2008, errno section, is explicit

svn commit: r236686 - head/tools/tools/syscall_timing

2012-06-06 Thread Konstantin Belousov
Author: kib Date: Wed Jun 6 16:26:55 2012 New Revision: 236686 URL: http://svn.freebsd.org/changeset/base/236686 Log: Add gettimeofday() test. MFC after:3 days Modified: head/tools/tools/syscall_timing/syscall_timing.c Modified: head/tools/tools/syscall_timing/syscall_timing.c

svn commit: r236687 - head/sys/fs/nfsclient

2012-06-06 Thread Konstantin Belousov
Author: kib Date: Wed Jun 6 16:30:16 2012 New Revision: 236687 URL: http://svn.freebsd.org/changeset/base/236687 Log: Improve handling of uiomove(9) errors for the NFS client. Do not brelse() the buffer unconditionally with BIO_ERROR set if uiomove() failed. The brelse() treats most

svn commit: r236690 - head/tools/tools/syscall_timing

2012-06-06 Thread Konstantin Belousov
Author: kib Date: Wed Jun 6 17:26:52 2012 New Revision: 236690 URL: http://svn.freebsd.org/changeset/base/236690 Log: Do not execute a needed statement with side-effect in assert(). MFC after:3 days Modified: head/tools/tools/syscall_timing/syscall_timing.c Modified:

svn commit: r236848 - head/sys/vm

2012-06-10 Thread Konstantin Belousov
Author: kib Date: Sun Jun 10 11:31:50 2012 New Revision: 236848 URL: http://svn.freebsd.org/changeset/base/236848 Log: Use the previous stack entry protection and max protection to correctly propagate the stack execution permissions when stack is grown down. First,

svn commit: r236976 - head/sbin/fsck_ffs

2012-06-12 Thread Konstantin Belousov
Author: kib Date: Tue Jun 12 21:37:27 2012 New Revision: 236976 URL: http://svn.freebsd.org/changeset/base/236976 Log: For incompleted block allocations or frees, the inode block count usage must be recalculated. The blk_check pass of suj checker explicitely marks inodes which owned such

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

2012-06-14 Thread Konstantin Belousov
Author: kib Date: Thu Jun 14 11:20:22 2012 New Revision: 237058 URL: http://svn.freebsd.org/changeset/base/237058 Log: Eliminate the static buffer used to read the first page of the mapped object, and eliminate the pread(2) call as well [1]. Mmap the first page of the object temporaly, and

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

2012-06-14 Thread Konstantin Belousov
Author: kib Date: Thu Jun 14 12:28:43 2012 New Revision: 237061 URL: http://svn.freebsd.org/changeset/base/237061 Log: Make sure that fstab fd is not leaked on exec. PR: kern/169023 Submitted by: Jukka Ukkonen jau iki fi MFC after:1 week Modified: head/lib/libc/gen/fstab.c

svn commit: r237131 - head/sys/dev/drm2/i915

2012-06-15 Thread Konstantin Belousov
Author: kib Date: Fri Jun 15 08:50:44 2012 New Revision: 237131 URL: http://svn.freebsd.org/changeset/base/237131 Log: Use right size when freeing unneeded GTT mapping. MFC after:3 days Modified: head/sys/dev/drm2/i915/i915_gem.c Modified: head/sys/dev/drm2/i915/i915_gem.c

Re: svn commit: r236976 - head/sbin/fsck_ffs

2012-06-16 Thread Konstantin Belousov
On Sat, Jun 16, 2012 at 11:41:20AM +0200, Tijl Coosemans wrote: On 12-06-2012 23:37, Konstantin Belousov wrote: Author: kib Date: Tue Jun 12 21:37:27 2012 New Revision: 236976 URL: http://svn.freebsd.org/changeset/base/236976 Log: For incompleted block allocations or frees

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

2012-06-16 Thread Konstantin Belousov
Author: kib Date: Sat Jun 16 13:11:10 2012 New Revision: 237160 URL: http://svn.freebsd.org/changeset/base/237160 Log: More style. MFC after:3 days Modified: head/lib/libc/gen/getnetgrent.c Modified: head/lib/libc/gen/getnetgrent.c

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

2012-06-16 Thread Konstantin Belousov
Author: kib Date: Sat Jun 16 13:10:22 2012 New Revision: 237159 URL: http://svn.freebsd.org/changeset/base/237159 Log: Revert part of the r235740 which changed separate allocation of the string buffer for each linelist l_line into one large string. Since linelists parsed out during the

svn commit: r237170 - head/sys/dev/ath

2012-06-16 Thread Konstantin Belousov
Author: kib Date: Sat Jun 16 20:49:08 2012 New Revision: 237170 URL: http://svn.freebsd.org/changeset/base/237170 Log: Fix build. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c == ---

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

2012-06-18 Thread Konstantin Belousov
Author: kib Date: Mon Jun 18 21:08:48 2012 New Revision: 237243 URL: http://svn.freebsd.org/changeset/base/237243 Log: Adjust the fix in r236953, by not generating the signal manually, but performing the return to usermode using full return path. This consolidates the handling of

Re: svn commit: r237244 - head/sys/fs/nfsclient

2012-06-19 Thread Konstantin Belousov
On Tue, Jun 19, 2012 at 03:06:09AM +, Benjamin Kaduk wrote: On Mon, 18 Jun 2012, Rick Macklem wrote: Author: rmacklem Date: Mon Jun 18 22:17:28 2012 New Revision: 237244 URL: http://svn.freebsd.org/changeset/base/237244 Log: Fix the NFSv4 client for the case where mmap'd files are

svn commit: r237365 - head/sys/kern

2012-06-21 Thread Konstantin Belousov
Author: kib Date: Thu Jun 21 09:19:41 2012 New Revision: 237365 URL: http://svn.freebsd.org/changeset/base/237365 Log: Fix locking for f_offset, vn_read() and vn_write() cases only, for now. It seems that intended locking protocol for struct file f_offset field was as follows: f_offset

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

2012-06-21 Thread Konstantin Belousov
Author: kib Date: Thu Jun 21 09:20:07 2012 New Revision: 237366 URL: http://svn.freebsd.org/changeset/base/237366 Log: Fix unbounded-length malloc, controlled from usermode. The added check is performed before exact size of the buffer is calculated, but the buffer cannot have size greater

svn commit: r237367 - head/sys/fs/nfsclient

2012-06-21 Thread Konstantin Belousov
Author: kib Date: Thu Jun 21 09:26:06 2012 New Revision: 237367 URL: http://svn.freebsd.org/changeset/base/237367 Log: Enable deadlock avoidance code for NFS client. MFC after:2 weeks Modified: head/sys/fs/nfsclient/nfs_clbio.c head/sys/fs/nfsclient/nfs_clvfsops.c Modified:

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

2012-06-22 Thread Konstantin Belousov
Author: kib Date: Fri Jun 22 06:38:31 2012 New Revision: 237430 URL: http://svn.freebsd.org/changeset/base/237430 Log: Reserve AT_TIMEKEEP auxv entry for providing usermode the pointer to timekeeping information. MFC after: 1 week Modified: head/sys/amd64/include/elf.h

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

2012-06-22 Thread Konstantin Belousov
Author: kib Date: Fri Jun 22 06:39:28 2012 New Revision: 237431 URL: http://svn.freebsd.org/changeset/base/237431 Log: Enchance the shared page chunk allocator. Do not rely on the busy state of the page from which we allocate the chunk, to protect allocator state. Use statically

svn commit: r237433 - in head/sys: amd64/include arm/include conf i386/include ia64/include kern mips/include pc98/include powerpc/include sparc64/include sys x86/include x86/x86

2012-06-22 Thread Konstantin Belousov
) +++ head/sys/arm/include/vdso.h Fri Jun 22 07:06:40 2012(r237433) @@ -0,0 +1,34 @@ +/*- + * Copyright 2012 Konstantin Belousov k...@freebsd.org. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided

svn commit: r237434 - in head/lib/libc: amd64/sys gen i386/sys include sys

2012-06-22 Thread Konstantin Belousov
/__vdso_gettc.c Fri Jun 22 07:13:30 2012 (r237434) @@ -0,0 +1,49 @@ +/*- + * Copyright (c) 2012 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

svn commit: r237435 - in head/sys/i386: i386 include

2012-06-22 Thread Konstantin Belousov
Author: kib Date: Fri Jun 22 07:16:29 2012 New Revision: 237435 URL: http://svn.freebsd.org/changeset/base/237435 Log: Enable shared page on i386, now it has a use for vdso_timehands. MFC after:1 month Modified: head/sys/i386/i386/elf_machdep.c head/sys/i386/include/vmparam.h

Re: svn commit: r237434 - in head/lib/libc: amd64/sys gen i386/sys include sys

2012-06-22 Thread Konstantin Belousov
On Fri, Jun 22, 2012 at 09:34:56AM +0200, Marius Strobl wrote: On Fri, Jun 22, 2012 at 07:13:31AM +, Konstantin Belousov wrote: Author: kib Date: Fri Jun 22 07:13:30 2012 New Revision: 237434 URL: http://svn.freebsd.org/changeset/base/237434 Log: Use struct vdso_timehands

Re: svn commit: r237433 - in head/sys: amd64/include arm/include conf i386/include ia64/include kern mips/include pc98/include powerpc/include sparc64/include sys x86/include x86/x86

2012-06-22 Thread Konstantin Belousov
On Fri, Jun 22, 2012 at 11:08:50AM +0300, Alexander Motin wrote: On 06/22/12 10:06, Konstantin Belousov wrote: Author: kib Date: Fri Jun 22 07:06:40 2012 New Revision: 237433 URL: http://svn.freebsd.org/changeset/base/237433 Log: Implement mechanism to export some kernel timekeeping

Re: svn commit: r237412 - in head: sys/contrib/dev/acpica sys/contrib/dev/acpica/common sys/contrib/dev/acpica/compiler sys/contrib/dev/acpica/components/debugger sys/contrib/dev/acpica/components/dis

2012-06-22 Thread Konstantin Belousov
On Fri, Jun 22, 2012 at 12:40:45AM +, Jung-uk Kim wrote: Author: jkim Date: Fri Jun 22 00:40:44 2012 New Revision: 237412 URL: http://svn.freebsd.org/changeset/base/237412 Log: Merge ACPICA 20120620. I think it is caused by import, malloc is called while spinlock is held: ACPI:

Re: svn commit: r237433 - in head/sys: amd64/include arm/include conf i386/include ia64/include kern mips/include pc98/include powerpc/include sparc64/include sys x86/include x86/x86

2012-06-22 Thread Konstantin Belousov
On Fri, Jun 22, 2012 at 01:23:42PM +0300, Konstantin Belousov wrote: On Fri, Jun 22, 2012 at 11:54:28AM +0300, Alexander Motin wrote: On 22.06.2012 11:25, Konstantin Belousov wrote: On Fri, Jun 22, 2012 at 11:08:50AM +0300, Alexander Motin wrote: On 06/22/12 10:06, Konstantin Belousov wrote

svn commit: r237445 - head/sys/i386/i386

2012-06-22 Thread Konstantin Belousov
Author: kib Date: Fri Jun 22 16:05:56 2012 New Revision: 237445 URL: http://svn.freebsd.org/changeset/base/237445 Log: Commit changes missed from r237435. Properly calculate the signal trampoline addresses after the shared page is enabled. Handle FreeBSD ABIs without shared page support

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

2012-06-23 Thread Konstantin Belousov
Author: kib Date: Sat Jun 23 09:33:06 2012 New Revision: 237474 URL: http://svn.freebsd.org/changeset/base/237474 Log: Stop updating the struct vdso_timehands from even handler executed in the scheduled task from tc_windup(). Do it directly from tc_windup in interrupt context [1].

svn commit: r237476 - head/sys/sys

2012-06-23 Thread Konstantin Belousov
Author: kib Date: Sat Jun 23 10:14:51 2012 New Revision: 237476 URL: http://svn.freebsd.org/changeset/base/237476 Log: Remove no longer needed forward declaration for struct sf_buf. MFC after: 29 days Modified: head/sys/sys/sysent.h Modified: head/sys/sys/sysent.h

svn commit: r237477 - in head/sys: conf kern

2012-06-23 Thread Konstantin Belousov
(r237475, copy source) +++ head/sys/kern/kern_sharedpage.c Sat Jun 23 10:15:23 2012 (r237477) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1993, David Greenman + * Copyright (c) 2010, 2012 Konstantin Belousov k...@freebsd.org * All rights reserved. * * Redistribution and use in source

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