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
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/
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
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
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
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
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
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
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
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
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
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
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)
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:
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
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
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/
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
=
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
===
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 '
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
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
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
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
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:
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
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
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/
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:
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
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
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
===
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
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
=
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
===
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
===
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
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
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
=
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
=
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
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
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:
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
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/
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
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:
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:
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
===
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
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
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:
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.
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
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
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
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
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
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
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/
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
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
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
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.
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
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/
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
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
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
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
=
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
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
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
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:
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/
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
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.
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
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
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
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
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
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
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
401 - 500 of 9106 matches
Mail list logo