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

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 13:16:39 2011 New Revision: 226206 URL: http://svn.freebsd.org/changeset/base/226206 Log: MFC r225942: Assert that exiting process does not return to usermode. Modified: stable/8/sys/kern/subr_trap.c Directory Properties: stable/8/sys/ (props changed) stab

svn commit: r226207 - in stable/8/sys: amd64/amd64 i386/i386

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 13:18:55 2011 New Revision: 226207 URL: http://svn.freebsd.org/changeset/base/226207 Log: MFC r225943: Do not allow the kernel to access usermode pages without installed fault handler. Panic immediately in such situation, on i386 and amd64. Modified: stable/8/

svn commit: r226208 - head/sys/dev/iscsi/initiator

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 13:26:53 2011 New Revision: 226208 URL: http://svn.freebsd.org/changeset/base/226208 Log: Do not ignore block offsets. PR: kern/160943 Submitted by: Craig Boston Reviewed by: Danny Braniss MFC after:1 week Modified: head/sys/dev/iscsi/initiator

svn commit: r226214 - stable/9/libexec/rtld-elf

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 14:46:40 2011 New Revision: 226214 URL: http://svn.freebsd.org/changeset/base/226214 Log: MFC r226155: Setting up TLS block for the main thread must be done after the relocations are processed. Approved by: re (bz) Modified: stable/9/libexec/rtld-elf/rtl

svn commit: r226215 - stable/9/libexec/rtld-elf/i386

2011-10-10 Thread Konstantin Belousov
Author: kib Date: Mon Oct 10 14:48:18 2011 New Revision: 226215 URL: http://svn.freebsd.org/changeset/base/226215 Log: MFC r226156: Handle the R_386_TLS_TPOFF32 relocation. Approved by: re (bz) Modified: stable/9/libexec/rtld-elf/i386/reloc.c Directory Properties: stable/9/libexec/r

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

2011-10-11 Thread Konstantin Belousov
Author: kib Date: Tue Oct 11 13:18:44 2011 New Revision: 226248 URL: http://svn.freebsd.org/changeset/base/226248 Log: MFC r225791: Do not deliver SIGTRAP on exec as the normal signal, use ptracestop() on syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal() do not want

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

2011-10-11 Thread Konstantin Belousov
Author: kib Date: Tue Oct 11 13:22:35 2011 New Revision: 226251 URL: http://svn.freebsd.org/changeset/base/226251 Log: MFC r226022: Move parts of the commit log for r166167, where Tor explained the interaction between vnode locks and vfs_busy(), into comment. Approved by: re (bz) Modi

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

2011-10-11 Thread Konstantin Belousov
Author: kib Date: Tue Oct 11 13:54:20 2011 New Revision: 226256 URL: http://svn.freebsd.org/changeset/base/226256 Log: MFC r225791: Do not deliver SIGTRAP on exec as the normal signal, use ptracestop() on syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal() do not want

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

2011-10-11 Thread Konstantin Belousov
Author: kib Date: Tue Oct 11 13:56:37 2011 New Revision: 226257 URL: http://svn.freebsd.org/changeset/base/226257 Log: MFC r226022: Move parts of the commit log for r166167, where Tor explained the interaction between vnode locks and vfs_busy(), into comment. Modified: stable/8/sys/kern/v

svn commit: r226259 - stable/7/sys/kern

2011-10-11 Thread Konstantin Belousov
Author: kib Date: Tue Oct 11 14:05:39 2011 New Revision: 226259 URL: http://svn.freebsd.org/changeset/base/226259 Log: MFC r226022: Move parts of the commit log for r166167, where Tor explained the interaction between vnode locks and vfs_busy(), into comment. Comment is slightly edited to

svn commit: r226319 - in stable/9/sys: ia64/ia64 powerpc/booke sparc64/sparc64 vm

2011-10-12 Thread Konstantin Belousov
Author: kib Date: Wed Oct 12 20:08:25 2011 New Revision: 226319 URL: http://svn.freebsd.org/changeset/base/226319 Log: Handle page dirty mask with atomics. MFC r225838: Use the explicitly-sized types for the dirty and valid masks. MFC r225840: Use the trick of performing the atomic

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

2011-10-15 Thread Konstantin Belousov
Author: kib Date: Sat Oct 15 12:02:55 2011 New Revision: 226382 URL: http://svn.freebsd.org/changeset/base/226382 Log: MFC r226155: Set TLS block for the main thread after the relocations are processed. Modified: stable/8/libexec/rtld-elf/rtld.c Directory Properties: stable/8/libexec/rtld

svn commit: r226383 - stable/8/libexec/rtld-elf/i386

2011-10-15 Thread Konstantin Belousov
Author: kib Date: Sat Oct 15 12:05:31 2011 New Revision: 226383 URL: http://svn.freebsd.org/changeset/base/226383 Log: MFC r226156: Handle the R_386_TLS_TPOFF32 relocation. Modified: stable/8/libexec/rtld-elf/i386/reloc.c Directory Properties: stable/8/libexec/rtld-elf/ (props changed)

svn commit: r226388 - in head/sys: compat/freebsd32 kern sys vm

2011-10-15 Thread Konstantin Belousov
Author: kib Date: Sat Oct 15 12:35:18 2011 New Revision: 226388 URL: http://svn.freebsd.org/changeset/base/226388 Log: Control the execution permission of the readable segments for i386 binaries on the amd64 and ia64 with the sysctl, instead of unconditionally enabling it. Reviewed by:

svn commit: r226576 - stable/9/sys/dev/iscsi/initiator

2011-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 18:39:01 2011 New Revision: 226576 URL: http://svn.freebsd.org/changeset/base/226576 Log: MFC r226208: Do not ignore block offsets. PR: kern/160943 Approved by: re (bz) Modified: stable/9/sys/dev/iscsi/initiator/iscsi_subr.c Directory Properties: sta

svn commit: r226577 - in stable/9/sys: fs/devfs sys

2011-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 18:47:58 2011 New Revision: 226577 URL: http://svn.freebsd.org/changeset/base/226577 Log: MFC r226041: Export devfs inode number allocator for the kernel consumers. Approved by: re (bz) Modified: stable/9/sys/fs/devfs/devfs_devs.c stable/9/sys/sys/conf.h

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

2011-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 18:54:05 2011 New Revision: 226578 URL: http://svn.freebsd.org/changeset/base/226578 Log: MFC r226042: Supply unique (st_dev, st_ino) value pair for the fstat(2) done on the pipes. Approved by: re (bz) Modified: stable/9/sys/kern/sys_pipe.c stable/9/sys/

svn commit: r226579 - stable/8/sys/dev/iscsi/initiator

2011-10-20 Thread Konstantin Belousov
Author: kib Date: Thu Oct 20 19:16:52 2011 New Revision: 226579 URL: http://svn.freebsd.org/changeset/base/226579 Log: MFC r226208: Do not ignore block offsets. PR: kern/160943 Modified: stable/8/sys/dev/iscsi/initiator/iscsi_subr.c Directory Properties: stable/8/sys/ (props chan

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

2011-10-24 Thread Konstantin Belousov
Author: kib Date: Mon Oct 24 13:48:13 2011 New Revision: 226686 URL: http://svn.freebsd.org/changeset/base/226686 Log: The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED test because of this and also because it can lead to false positives. Tested by:pho MFC af

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

2011-10-24 Thread Konstantin Belousov
Author: kib Date: Mon Oct 24 13:53:32 2011 New Revision: 226687 URL: http://svn.freebsd.org/changeset/base/226687 Log: The only possible error return from null_nodeget() is due to insmntque1 failure (the getnewvnode cannot return an error). In this case, the null_insmntque_dtr() already unlo

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

2011-10-24 Thread Konstantin Belousov
Author: kib Date: Mon Oct 24 13:56:31 2011 New Revision: 226688 URL: http://svn.freebsd.org/changeset/base/226688 Log: The use of VOP_ISLOCKED() without a check for the return values can cause false positives. Replace the #ifdef block with the proper ASSERT_VOP_UNLOCKED() assert. Tested

svn commit: r226834 - stable/9/usr.bin/csup

2011-10-27 Thread Konstantin Belousov
Author: kib Date: Thu Oct 27 12:26:16 2011 New Revision: 226834 URL: http://svn.freebsd.org/changeset/base/226834 Log: MFC r225979: Update the comment. MFC r225980: Handle the situation where fixups_close() has been called but more fixups are still available on the queue. Approve

svn commit: r226838 - stable/8/contrib/csup

2011-10-27 Thread Konstantin Belousov
Author: kib Date: Thu Oct 27 14:11:19 2011 New Revision: 226838 URL: http://svn.freebsd.org/changeset/base/226838 Log: MFC r225979: Update the comment. MFC r225980: Handle the situation where fixups_close() has been called but more fixups are still available on the queue. Modified:

svn commit: r226988 - stable/9/sys/fs/nullfs

2011-11-01 Thread Konstantin Belousov
Author: kib Date: Tue Nov 1 15:34:52 2011 New Revision: 226988 URL: http://svn.freebsd.org/changeset/base/226988 Log: MFC r226686: The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED test because of this and also because it can lead to false positives. Approved by

svn commit: r226989 - stable/9/sys/fs/nullfs

2011-11-01 Thread Konstantin Belousov
Author: kib Date: Tue Nov 1 15:38:41 2011 New Revision: 226989 URL: http://svn.freebsd.org/changeset/base/226989 Log: MFC r226687: The only possible error return from null_nodeget() is due to insmntque1 failure (the getnewvnode cannot return an error). In this case, the null_insmntque_dtr

svn commit: r226990 - stable/9/sys/fs/nullfs

2011-11-01 Thread Konstantin Belousov
Author: kib Date: Tue Nov 1 15:41:55 2011 New Revision: 226990 URL: http://svn.freebsd.org/changeset/base/226990 Log: MFC r226688: The use of VOP_ISLOCKED() without a check for the return values can cause false positives. Replace the #ifdef block with the proper ASSERT_VOP_UNLOCKED() asse

svn commit: r226991 - stable/8/sys/fs/nullfs

2011-11-01 Thread Konstantin Belousov
Author: kib Date: Tue Nov 1 15:51:09 2011 New Revision: 226991 URL: http://svn.freebsd.org/changeset/base/226991 Log: MFC r226686: The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED test because of this and also because it can lead to false positives. Modified: sta

svn commit: r226992 - stable/8/sys/fs/nullfs

2011-11-01 Thread Konstantin Belousov
Author: kib Date: Tue Nov 1 15:53:44 2011 New Revision: 226992 URL: http://svn.freebsd.org/changeset/base/226992 Log: MFC r226687: The only possible error return from null_nodeget() is due to insmntque1 failure (the getnewvnode cannot return an error). In this case, the null_insmntque_dtr

svn commit: r226993 - stable/8/sys/fs/nullfs

2011-11-01 Thread Konstantin Belousov
Author: kib Date: Tue Nov 1 15:56:15 2011 New Revision: 226993 URL: http://svn.freebsd.org/changeset/base/226993 Log: MFC r226688: The use of VOP_ISLOCKED() without a check for the return values can cause false positives. Replace the #ifdef block with the proper ASSERT_VOP_UNLOCKED() asse

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

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

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

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

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

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

svn commit: r227102 - head/sys/vm

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

svn commit: r227103 - head/sys/vm

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

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

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

svn commit: r227117 - stable/9/sys/dev/mfi

2011-11-05 Thread Konstantin Belousov
Author: kib Date: Sat Nov 5 18:27:47 2011 New Revision: 227117 URL: http://svn.freebsd.org/changeset/base/227117 Log: MFC r226896: Fix an implicit dependency between the MFI driver and CAM that had grown due to an API change in CAM. It's once again possible to link a static kernel with '

svn commit: r227211 - stable/9/sys/fs/devfs

2011-11-06 Thread Konstantin Belousov
Author: kib Date: Sun Nov 6 13:06:31 2011 New Revision: 227211 URL: http://svn.freebsd.org/changeset/base/227211 Log: MFC r227062: Fix kernel panic when d_fdopen csw method is called for NULL fp. This may happen when kernel consumer calls VOP_OPEN(). Approved by: re (kensmith) Modifi

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

2011-11-06 Thread Konstantin Belousov
Author: kib Date: Sun Nov 6 13:17:37 2011 New Revision: 227212 URL: http://svn.freebsd.org/changeset/base/227212 Log: MFC r227062: Fix kernel panic when d_fdopen csw method is called for NULL fp. This may happen when kernel consumer calls VOP_OPEN(). Modified: stable/8/sys/fs/devfs/devfs

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

2011-11-06 Thread Konstantin Belousov
Author: kib Date: Sun Nov 6 13:35:55 2011 New Revision: 227213 URL: http://svn.freebsd.org/changeset/base/227213 Log: MFC r227062: Fix kernel panic when d_fdopen csw method is called for NULL fp. This may happen when kernel consumer calls VOP_OPEN(). Modified: stable/7/sys/fs/devfs/devfs

svn commit: r227392 - head/sys/sys

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

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

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

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

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

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

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

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

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

svn commit: r227443 - head/sys/kern

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

svn commit: r227444 - head/sys/kern

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

svn commit: r227485 - head/sys/kern

2011-11-13 Thread Konstantin Belousov
Author: kib Date: Sun Nov 13 10:28:01 2011 New Revision: 227485 URL: http://svn.freebsd.org/changeset/base/227485 Log: To limit amount of the kernel memory allocated, and to optimize the iteration over the fdsets, kern_select() limits the length of the fdsets copied in by the last valid file

svn commit: r227529 - head/sys/vm

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

svn commit: r227530 - head/sys/vm

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

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

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

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

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

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

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

svn commit: r227656 - head/sys/sys

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

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

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

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

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

svn commit: r227661 - head/lib/librt

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

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

2010-12-25 Thread Konstantin Belousov
Author: kib Date: Sat Dec 25 08:42:38 2010 New Revision: 216694 URL: http://svn.freebsd.org/changeset/base/216694 Log: Add a hook to pass debug flags to the build of rtld when doing make in the rtld directory. Reviewed by: kan Modified: head/libexec/rtld-elf/Makefile Modified: head/l

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

2010-12-25 Thread Konstantin Belousov
Author: kib Date: Sat Dec 25 08:51:20 2010 New Revision: 216695 URL: http://svn.freebsd.org/changeset/base/216695 Log: Implement support for ELF filters in rtld. Both normal and auxillary filters are implemented. Filtees are loaded on demand, unless LD_LOADFLTR environment variable is s

svn commit: r216704 - stable/8/sys/nfsserver

2010-12-26 Thread Konstantin Belousov
Author: kib Date: Sun Dec 26 13:14:36 2010 New Revision: 216704 URL: http://svn.freebsd.org/changeset/base/216704 Log: MFC r216454: VOP_ISLOCKED() should not be used to determine if the vnode is locked. Explicitely track the locked status of the vnode. Approved by: re (bz) Modified:

svn commit: r216705 - stable/8/sys/compat/freebsd32

2010-12-26 Thread Konstantin Belousov
Author: kib Date: Sun Dec 26 13:20:10 2010 New Revision: 216705 URL: http://svn.freebsd.org/changeset/base/216705 Log: MFC r216572: Restore the ABI of struct kinfo_proc32 after r213536. Approved by: re (bz) Modified: stable/8/sys/compat/freebsd32/freebsd32.h Directory Properties: st

svn commit: r216708 - stable/8/sbin/newfs

2010-12-26 Thread Konstantin Belousov
Author: kib Date: Sun Dec 26 13:57:05 2010 New Revision: 216708 URL: http://svn.freebsd.org/changeset/base/216708 Log: MFC r216453: Add the missed 'p' flag to getopt() optstring argument. Approved by: re (bz) Modified: stable/8/sbin/newfs/newfs.c Directory Properties: stable/8/sbin/

svn commit: r216711 - releng/8.2/sbin/newfs

2010-12-26 Thread Konstantin Belousov
Author: kib Date: Sun Dec 26 15:00:14 2010 New Revision: 216711 URL: http://svn.freebsd.org/changeset/base/216711 Log: MFC r216453: Add the missed 'p' flag to getopt() optstring argument. Approved by: re (bz) Modified: releng/8.2/sbin/newfs/newfs.c Directory Properties: releng/8.2/s

svn commit: r216712 - releng/8.2/sys/nfsserver

2010-12-26 Thread Konstantin Belousov
Author: kib Date: Sun Dec 26 15:13:28 2010 New Revision: 216712 URL: http://svn.freebsd.org/changeset/base/216712 Log: MFC r216454: VOP_ISLOCKED() should not be used to determine if the vnode is locked. Explicitely track the locked status of the vnode. Approved by: re (bz) Modified:

svn commit: r216713 - releng/8.2/sys/compat/freebsd32

2010-12-26 Thread Konstantin Belousov
Author: kib Date: Sun Dec 26 15:15:28 2010 New Revision: 216713 URL: http://svn.freebsd.org/changeset/base/216713 Log: MFC r216572: Restore the ABI of struct kinfo_proc32 after r213536. Approved by: re (bz) Modified: releng/8.2/sys/compat/freebsd32/freebsd32.h Directory Properties:

svn commit: r216733 - head/sys/kern

2010-12-27 Thread Konstantin Belousov
Author: kib Date: Mon Dec 27 12:06:38 2010 New Revision: 216733 URL: http://svn.freebsd.org/changeset/base/216733 Log: Teach ddb "show mount" about MNTK_SUJ flag. Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c ===

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

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 11:19:39 2010 New Revision: 216792 URL: http://svn.freebsd.org/changeset/base/216792 Log: Use a proper type for the variable holding the summary size of the inode data. Otherwise, on 32bit systems, unlinked inode which size is the multiple of 4GB was not truncate

svn commit: r216793 - head/sys/dev/md

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 11:39:15 2010 New Revision: 216793 URL: http://svn.freebsd.org/changeset/base/216793 Log: Add sysctl vm.md_malloc_wait, non-zero value of which switches malloc-backed md(4) to using M_WAITOK malloc calls. M_NOWAITOK allocations may fail when enough memory coul

svn commit: r216794 - in head/sys: dev/md geom

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:11:07 2010 New Revision: 216794 URL: http://svn.freebsd.org/changeset/base/216794 Log: Add reporting of GEOM::candelete BIO_GETATTR for md(4) and geom_disk(4). Non-zero value of attribute means that device supports BIO_DELETE. Suggested and reviewed by:

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

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:16:06 2010 New Revision: 216795 URL: http://svn.freebsd.org/changeset/base/216795 Log: Move the definition of mkdirlisthd from header to C file. Reviewed by: mckusick Tested by:pho Modified: head/sys/ufs/ffs/ffs_softdep.c head/sys/ufs/ffs/softdep.

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

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:25:28 2010 New Revision: 216796 URL: http://svn.freebsd.org/changeset/base/216796 Log: Add kernel side support for BIO_DELETE/TRIM on UFS. The FS_TRIM fs flag indicates that administrator requested issuing of TRIM commands for the volume. UFS will only send

svn commit: r216798 - in head/sbin: dumpfs newfs tunefs

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:31:18 2010 New Revision: 216798 URL: http://svn.freebsd.org/changeset/base/216798 Log: Add support for FS_TRIM to user-mode UFS utilities. Reviewed by: mckusick, pjd, pho Tested by:pho MFC after:1 month Modified: head/sbin/dumpfs/dumpfs.c he

svn commit: r216799 - head/sys/vm

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 12:53:53 2010 New Revision: 216799 URL: http://svn.freebsd.org/changeset/base/216799 Log: Move the increment of vm object generation count into vm_object_set_writeable_dirty(). Fix an issue where restart of the scan in vm_object_page_clean() did not removed

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

2010-12-29 Thread Konstantin Belousov
Author: kib Date: Wed Dec 29 22:26:49 2010 New Revision: 216810 URL: http://svn.freebsd.org/changeset/base/216810 Log: Remove OBJ_CLEANING flag. The vfs_setdirty_locked_object() is the only consumer of the flag, and it used the flag because OBJ_MIGHTBEDIRTY was cleared early in vm_object_pag

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

2010-12-30 Thread Konstantin Belousov
Author: kib Date: Thu Dec 30 10:41:17 2010 New Revision: 216817 URL: http://svn.freebsd.org/changeset/base/216817 Log: In indir_trunc(), when processing jnewblk entries that are not written to the disk, recurse to handle indirect blocks of next level that are hidden by the corresponding entr

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

2010-12-30 Thread Konstantin Belousov
Author: kib Date: Thu Dec 30 10:52:07 2010 New Revision: 216818 URL: http://svn.freebsd.org/changeset/base/216818 Log: Handle missing jremrefs when a directory is renamed overtop of another, deleting it. If the directory is removed, UFS always need to remove the .. ref, even if the ultimate

svn commit: r216869 - in stable/8/sys: amd64/include i386/include

2011-01-01 Thread Konstantin Belousov
Author: kib Date: Sat Jan 1 08:47:38 2011 New Revision: 216869 URL: http://svn.freebsd.org/changeset/base/216869 Log: MFC r216524: Inform a compiler which asm statements in the x86 implementation of atomics change eflags. Modified: stable/8/sys/amd64/include/atomic.h stable/8/sys/i386/

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

2011-01-04 Thread Konstantin Belousov
Author: kib Date: Tue Jan 4 10:25:55 2011 New Revision: 216951 URL: http://svn.freebsd.org/changeset/base/216951 Log: Instead of incrementing freework reference counter in indir_trunc(), do it at the allocation time for journaled fs and indirect blocks, when the allocated object is not acce

svn commit: r216952 - in head/sys: dev/pty dev/random geom kern

2011-01-04 Thread Konstantin Belousov
Author: kib Date: Tue Jan 4 10:59:38 2011 New Revision: 216952 URL: http://svn.freebsd.org/changeset/base/216952 Log: Finish r210923, 210926. Mark some devices as eternal. MFC after:2 weeks Modified: head/sys/dev/pty/pty.c head/sys/dev/random/randomdev.c head/sys/geom/geom_ctl.c

svn commit: r216955 - head/usr.sbin/rtprio

2011-01-04 Thread Konstantin Belousov
Author: kib Date: Tue Jan 4 14:13:09 2011 New Revision: 216955 URL: http://svn.freebsd.org/changeset/base/216955 Log: Make the parsing of the integer arguments for rtprio(1)/idprio(1) stricter. Style. Based on submission by: Eitan Adler , keramida Reviewed by: jhb, keramida MF

svn commit: r216967 - head/usr.sbin/rtprio

2011-01-04 Thread Konstantin Belousov
Author: kib Date: Tue Jan 4 17:27:17 2011 New Revision: 216967 URL: http://svn.freebsd.org/changeset/base/216967 Log: Use errx() instead of err() in parseint. There is usually no interesting information in errno. Noted by: Garrett Cooper MFC after:1 week Modified: head/usr.

svn commit: r217002 - stable/8/sys/dev/md

2011-01-05 Thread Konstantin Belousov
Author: kib Date: Wed Jan 5 12:45:11 2011 New Revision: 217002 URL: http://svn.freebsd.org/changeset/base/217002 Log: MFC r216793: Add sysctl vm.md_malloc_wait, non-zero value of which switches malloc-backed md(4) to using M_WAITOK malloc calls. Modified: stable/8/sys/dev/md/md.c Directo

svn commit: r217003 - in stable/8/sys: dev/md geom

2011-01-05 Thread Konstantin Belousov
Author: kib Date: Wed Jan 5 12:47:42 2011 New Revision: 217003 URL: http://svn.freebsd.org/changeset/base/217003 Log: MFC r216794: Add reporting of GEOM::candelete BIO_GETATTR for md(4) and geom_disk(4). Non-zero value of attribute means that device supports BIO_DELETE. Modified: stable/

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

2011-01-05 Thread Konstantin Belousov
Author: kib Date: Wed Jan 5 13:50:37 2011 New Revision: 217008 URL: http://svn.freebsd.org/changeset/base/217008 Log: MFC r216799: Move the increment of vm object generation count into vm_object_set_writeable_dirty(). Merge two loops in vm_object_page_clean(), doing the removal of write p

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

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:22:34 2011 New Revision: 217097 URL: http://svn.freebsd.org/changeset/base/217097 Log: Add AT_STACKPROT elf aux vector. Will be used to inform rtld about the initial stack protection set by the kernel image activator. Modified: head/sys/amd64/include/elf.h

svn commit: r217098 - head/contrib/gcc/config/i386

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:24:24 2011 New Revision: 217098 URL: http://svn.freebsd.org/changeset/base/217098 Log: Make gcc emit the .note.GNU-stack section into the assembler files. Reviewed by: kan Modified: head/contrib/gcc/config/i386/freebsd.h Modified: head/contrib/gcc/config

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

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:28:54 2011 New Revision: 217099 URL: http://svn.freebsd.org/changeset/base/217099 Log: Emit .note.GNU-stack for the syscall stubs generated by libc. Modified: head/lib/libc/sys/Makefile.inc Modified: head/lib/libc/sys/Makefile.inc =

svn commit: r217100 - head/share/mk

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:32:29 2011 New Revision: 217100 URL: http://svn.freebsd.org/changeset/base/217100 Log: Introduce make variable ACFLAGS used to supply additional flags to cc driver when compiling assembler source file that is preprocessed. Modified: head/share/mk/bsd.lib.mk

svn commit: r217101 - head/lib/libcompiler_rt

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 14:35:45 2011 New Revision: 217101 URL: http://svn.freebsd.org/changeset/base/217101 Log: On amd64 and i386, force assembler to mark objects compiled from the assembler source for libcompiler_rt as not needed executable stack. This is done with a hammer instead o

svn commit: r217102 - head/lib/libcompiler_rt

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 15:59:23 2011 New Revision: 217102 URL: http://svn.freebsd.org/changeset/base/217102 Log: Fix braino in r217101. -Wa is used to supply assembler flag to cc driver. Noted by: Anonymous Modified: head/lib/libcompiler_rt/Makefile Modified: head/lib/libcomp

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

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:07:05 2011 New Revision: 217103 URL: http://svn.freebsd.org/changeset/base/217103 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/libexec/rtld-elf/amd64/rtld_start.S head/libexec/rtld-elf/i386/rtld_start.S Modified:

svn commit: r217105 - in head/lib/csu: amd64 i386-elf

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:07:51 2011 New Revision: 217105 URL: http://svn.freebsd.org/changeset/base/217105 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/lib/csu/amd64/crti.S head/lib/csu/amd64/crtn.S head/lib/csu/i386-elf/crt1_s.S head/

svn commit: r217106 - in head/lib/libc: amd64/gen amd64/stdlib amd64/string amd64/sys i386/gen i386/stdlib i386/string i386/sys

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:08:40 2011 New Revision: 217106 URL: http://svn.freebsd.org/changeset/base/217106 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/lib/libc/amd64/gen/_setjmp.S head/lib/libc/amd64/gen/fabs.S head/lib/libc/amd64/gen/m

svn commit: r217107 - in head/lib/libthr/arch: amd64/amd64 i386/i386

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:09:33 2011 New Revision: 217107 URL: http://svn.freebsd.org/changeset/base/217107 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/lib/libthr/arch/amd64/amd64/_umtx_op_err.S head/lib/libthr/arch/i386/i386/_umtx_op_err.

svn commit: r217108 - in head/lib/msun: amd64 i387

2011-01-07 Thread Konstantin Belousov
Author: kib Date: Fri Jan 7 16:13:12 2011 New Revision: 217108 URL: http://svn.freebsd.org/changeset/base/217108 Log: Add section .note.GNU-stack for assembly files used by 386 and amd64. Modified: head/lib/msun/amd64/e_remainder.S head/lib/msun/amd64/e_remainderf.S head/lib/msun/amd64/e

svn commit: r217143 - head/lib/libc/net

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 10:56:58 2011 New Revision: 217143 URL: http://svn.freebsd.org/changeset/base/217143 Log: Fix struct FILE * leak on error (in disabled by default hesiod support code). Submitted by: henning petersen PR: 153756 MFC after:1 week Modified: head/lib/li

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

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 11:04:30 2011 New Revision: 217144 URL: http://svn.freebsd.org/changeset/base/217144 Log: Fix some style(9) issues. Do not use strlcpy() where simple assignment is enough. Noted by: bde (long time ago) MFC after:1 week Modified: head/lib/libc/stdl

svn commit: r217150 - head/sys/kern

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 16:02:14 2011 New Revision: 217150 URL: http://svn.freebsd.org/changeset/base/217150 Log: Collect code to translate between vm_prot_t and p_flags into helper functions. MFC after:1 week Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgac

svn commit: r217151 - in head/sys: amd64/amd64 amd64/ia32 amd64/include compat/freebsd32 compat/ia32 kern sys

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 16:13:44 2011 New Revision: 217151 URL: http://svn.freebsd.org/changeset/base/217151 Log: Create shared (readonly) page. Each ABI may specify the use of page by setting SV_SHP flag and providing pointer to the vm object and mapping address. Provide simple allocat

svn commit: r217152 - head/sys/kern

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 16:30:59 2011 New Revision: 217152 URL: http://svn.freebsd.org/changeset/base/217152 Log: In elf image activator, read and apply the stack protection mode from PT_GNU_STACK program header, if present and enabled. Two new sysctls are provided, kern.elf32.nxstack a

svn commit: r217153 - in head: libexec/rtld-elf sys/sys

2011-01-08 Thread Konstantin Belousov
Author: kib Date: Sat Jan 8 17:11:49 2011 New Revision: 217153 URL: http://svn.freebsd.org/changeset/base/217153 Log: In rtld, read the initial stack access mode from AT_STACKPROT as set by kernel, and parse PT_GNU_STACK phdr from linked and loaded dsos. If the loaded dso requires execut

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