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

2011-07-18 Thread Matthew D Fleming
Author: mdf Date: Mon Jul 18 18:09:10 2011 New Revision: 224191 URL: http://svn.freebsd.org/changeset/base/224191 Log: MFC r223875, r223876: style(9) and cleanup fixes. Add an option to have a fail point term only execute when run by a specified pid. This is helpful for automated te

svn commit: r219468 - in head/sys: amd64/amd64 ia64/ia64 powerpc/aim sparc64/sparc64 sun4v/sun4v sys

2011-03-10 Thread Matthew D Fleming
Author: mdf Date: Thu Mar 10 22:56:00 2011 New Revision: 219468 URL: http://svn.freebsd.org/changeset/base/219468 Log: Use MAXPATHLEN rather than the size of an extern array when copying the kernel name. Also consistenly use strlcpy(). Suggested by: Warner Losh Modified: head/sys/amd6

svn commit: r219523 - in head/sys: amd64/amd64 ia64/ia64 powerpc/aim sparc64/sparc64 sun4v/sun4v sys

2011-03-11 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 11 18:56:55 2011 New Revision: 219523 URL: http://svn.freebsd.org/changeset/base/219523 Log: Mostly revert r219468, as I had misremembered the C standard regarding the size of an extern array. Keep one change from strncpy to strlcpy. Modified: head/sys/amd64/a

svn commit: r220002 - in stable/8/sys: ddb gdb kern

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 18:16:36 2011 New Revision: 220002 URL: http://svn.freebsd.org/changeset/base/220002 Log: MFC r218825. [The implementation change to kdb_sysctl_available() cannot be MFC'd as it requires a non-MFCable change (adding drains to sbuf)]. Modify kdb_trap() so th

svn commit: r220003 - in stable/7/sys: ddb gdb kern

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 18:16:49 2011 New Revision: 220003 URL: http://svn.freebsd.org/changeset/base/220003 Log: MFC r218825. [The implementation change to kdb_sysctl_available() cannot be MFC'd as it requires a non-MFCable change (adding drains to sbuf)]. Modify kdb_trap() so th

svn commit: r220008 - in stable/7: share/man/man9 sys/conf sys/kern sys/sys

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 20:51:20 2011 New Revision: 220008 URL: http://svn.freebsd.org/changeset/base/220008 Log: MFC r192908 (introduced before the stable/8 split from CURRENT): fail(9) support: Add support for kernel fault injection using KFAIL_POINT_* macros and fail_point_*

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

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 22:00:43 2011 New Revision: 220010 URL: http://svn.freebsd.org/changeset/base/220010 Log: MFC r216058 and r216059: r216058: Use the SYSCTL_CHILDREN macro in kern_sysctl.c to help de-obfuscate the code. r216059: Slightly modify the logic in sysct

svn commit: r220011 - in stable/8/sys: kern sys

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 22:11:39 2011 New Revision: 220011 URL: http://svn.freebsd.org/changeset/base/220011 Log: MFC r216060. This differs from the original commit in that it preserves the KBI size of struct sysctl_oid. Also, on stable/8 the compiler thinks that 'len' in sysctl_sysct

svn commit: r220012 - in stable/7/sys: kern sys

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 22:11:54 2011 New Revision: 220012 URL: http://svn.freebsd.org/changeset/base/220012 Log: MFC r216060. This differs from the original commit in that it preserves the KBI size of struct sysctl_oid. Also, on stable/8 the compiler thinks that 'len' in sysctl_sysct

svn commit: r220013 - stable/7/sys/sys

2011-03-25 Thread Matthew D Fleming
Author: mdf Date: Fri Mar 25 22:17:24 2011 New Revision: 220013 URL: http://svn.freebsd.org/changeset/base/220013 Log: Fix r220012 (MFC of r216060); the KBI of sysctl_oid was *supposed* to be preserved, but I was hasty. Modified: stable/7/sys/sys/sysctl.h Modified: stable/7/sys/sys/sysctl.

svn commit: r220791 - in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys

2011-04-18 Thread Matthew D Fleming
Author: mdf Date: Mon Apr 18 16:32:22 2011 New Revision: 220791 URL: http://svn.freebsd.org/changeset/base/220791 Log: Add the posix_fallocate(2) syscall. The default implementation in vop_stdallocate() is filesystem agnostic and will run as slow as a read/write loop in userspace; however,

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

2011-04-18 Thread Matthew D Fleming
Author: mdf Date: Mon Apr 18 16:32:47 2011 New Revision: 220792 URL: http://svn.freebsd.org/changeset/base/220792 Log: Regen. Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sys/compa

svn commit: r220793 - head/sys/kern

2011-04-18 Thread Matthew D Fleming
Author: mdf Date: Mon Apr 18 16:40:47 2011 New Revision: 220793 URL: http://svn.freebsd.org/changeset/base/220793 Log: Fix a copy/paste whitespace error. Modified: head/sys/kern/vfs_syscalls.c Modified: head/sys/kern/vfs_syscalls.c

svn commit: r220798 - head/sys/dev/acpica

2011-04-18 Thread Matthew D Fleming
Author: mdf Date: Mon Apr 18 19:02:41 2011 New Revision: 220798 URL: http://svn.freebsd.org/changeset/base/220798 Log: Fix a few acpi sysctls that want "IK" formatting to specify CTLTYPE_INT. This got broken after r217586. Pointy hat: to me Tested by:David Wolfskill < davit AT cat

svn commit: r220846 - head/sys/kern

2011-04-19 Thread Matthew D Fleming
Author: mdf Date: Tue Apr 19 16:36:24 2011 New Revision: 220846 URL: http://svn.freebsd.org/changeset/base/220846 Log: Allow VOP_ALLOCATE to be iterative, and have kern_posix_fallocate(9) drive looping and potentially yielding. Requested by: kib Modified: head/sys/kern/vfs_default.c

svn commit: r220871 - head/sys/dev/acpica

2011-04-19 Thread Matthew D Fleming
Author: mdf Date: Tue Apr 19 20:44:43 2011 New Revision: 220871 URL: http://svn.freebsd.org/changeset/base/220871 Log: Correctly output the entire array for hw.acpi.thermal._ACx. Reported by: Taku YAMAMOTO < taku AT tackymt DOT homeip DOT net > Tested by:Nick Ulen < uncle AT wolfman

svn commit: r221829 - in head/sys: kern sys ufs/ffs

2011-05-12 Thread Matthew D Fleming
Author: mdf Date: Fri May 13 05:27:58 2011 New Revision: 221829 URL: http://svn.freebsd.org/changeset/base/221829 Log: Use a name instead of a magic number for kern_yield(9) when the priority should not change. Fetch the td_user_pri under the thread lock. This is probably not necessary but

svn commit: r221836 - head/sys/kern

2011-05-13 Thread Matthew D Fleming
Author: mdf Date: Fri May 13 14:29:28 2011 New Revision: 221836 URL: http://svn.freebsd.org/changeset/base/221836 Log: Correctly use INOUT for the offset/len parameters to vop_allocate. As far as I can tell this is for documentation only at the moment. Modified: head/sys/kern/vnode_if.src

svn commit: r221843 - in head: share/man/man3 sys/sys

2011-05-13 Thread Matthew D Fleming
Author: mdf Date: Fri May 13 15:49:23 2011 New Revision: 221843 URL: http://svn.freebsd.org/changeset/base/221843 Log: Note that the _SWAP operation is supported for all list/queue types. Also place STAILQ_REMOVE_HEAD in alphabetical order. Lastly, document the _SWAP macros. PR:

svn commit: r221853 - in head/sys: dev/md dev/null sys vm

2011-05-13 Thread Matthew D Fleming
Author: mdf Date: Fri May 13 18:48:00 2011 New Revision: 221853 URL: http://svn.freebsd.org/changeset/base/221853 Log: Usa a globally visible region of zeros for both /dev/zero and the md device. There are likely other kernel uses of "blob of zeros" than can be converted. Reviewed by:

svn commit: r221855 - in head/sys: amd64/include arm/include dev/md dev/null i386/include ia64/include mips/include powerpc/include sparc64/include sun4v/include sys vm

2011-05-13 Thread Matthew D Fleming
Author: mdf Date: Fri May 13 19:35:01 2011 New Revision: 221855 URL: http://svn.freebsd.org/changeset/base/221855 Log: Move the ZERO_REGION_SIZE to a machine-dependent file, as on many architectures (i386, for example) the virtual memory space may be constrained enough that 2MB is a large ch

svn commit: r222261 - in stable/8: share/man/man3 sys/sys

2011-05-24 Thread Matthew D Fleming
Author: mdf Date: Tue May 24 16:04:35 2011 New Revision: 61 URL: http://svn.freebsd.org/changeset/base/61 Log: MFC r221843: Note that the _SWAP operation is supported for all list/queue types. Also place STAILQ_REMOVE_HEAD in alphabetical order. Lastly, document the _SWAP macro

svn commit: r222262 - in stable/7: share/man/man3 sys/sys

2011-05-24 Thread Matthew D Fleming
Author: mdf Date: Tue May 24 16:06:26 2011 New Revision: 62 URL: http://svn.freebsd.org/changeset/base/62 Log: MFC r221843: Note that the _SWAP operation is supported for all list/queue types. Also place STAILQ_REMOVE_HEAD in alphabetical order. Lastly, document the _SWAP macro

svn commit: r222566 - stable/8/share/man/man9

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 15:46:12 2011 New Revision: 222566 URL: http://svn.freebsd.org/changeset/base/222566 Log: MFC r212364: Fix small errors in the sbuf(9) man page. Modified: stable/8/share/man/man9/sbuf.9 Directory Properties: stable/8/share/man/man9/ (props changed) Modif

svn commit: r222567 - stable/7/share/man/man9

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 15:46:26 2011 New Revision: 222567 URL: http://svn.freebsd.org/changeset/base/222567 Log: MFC r212364: Fix small errors in the sbuf(9) man page. Modified: stable/7/share/man/man9/sbuf.9 Directory Properties: stable/7/share/man/man9/ (props changed) Modif

svn commit: r222569 - in stable/7/sys: kern sys

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 16:07:14 2011 New Revision: 222569 URL: http://svn.freebsd.org/changeset/base/222569 Log: MFC r181462: Switch to simplified BSD license (with phk's approval), plus whitespace and style(9) cleanup. Modified: stable/7/sys/kern/subr_sbuf.c stable/7/sys/sys/s

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

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 16:34:18 2011 New Revision: 222570 URL: http://svn.freebsd.org/changeset/base/222570 Log: MFC r212180-r212184: Use math rather than iteration when the desired sbuf size is larger than SBUF_MAXEXTENDSIZE. Fix brain fart when converting an if statement into

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

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 16:34:26 2011 New Revision: 222571 URL: http://svn.freebsd.org/changeset/base/222571 Log: MFC r212180-r212184: Use math rather than iteration when the desired sbuf size is larger than SBUF_MAXEXTENDSIZE. Fix brain fart when converting an if statement into

svn commit: r222574 - in stable/8: share/man/man9 sys/kern sys/sys

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 17:36:52 2011 New Revision: 222574 URL: http://svn.freebsd.org/changeset/base/222574 Log: MFC r212365, r212367: r212365: Refactor sbuf code so that most uses of sbuf_extend() are in a new sbuf_put_byte(). This makes it easier to add drain functionality when

svn commit: r222575 - in stable/7: share/man/man9 sys/kern sys/sys

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 17:40:59 2011 New Revision: 222575 URL: http://svn.freebsd.org/changeset/base/222575 Log: MFC r212365, r212367: r212365: Refactor sbuf code so that most uses of sbuf_extend() are in a new sbuf_put_byte(). This makes it easier to add drain functionality when

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

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 17:51:18 2011 New Revision: 222576 URL: http://svn.freebsd.org/changeset/base/222576 Log: MFC r212478: (originally by kan@) Add missing pointer increment to sbuf_cat. Modified: stable/8/sys/kern/subr_sbuf.c Directory Properties: stable/8/sys/ (props chang

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

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 17:51:27 2011 New Revision: 222577 URL: http://svn.freebsd.org/changeset/base/222577 Log: MFC r212478: (originally by kan@) Add missing pointer increment to sbuf_cat. Modified: stable/7/sys/kern/subr_sbuf.c Directory Properties: stable/7/sys/ (props chang

svn commit: r222579 - in stable/8: share/man/man9 sys/dev/cxgb sys/kern sys/sys

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 18:26:59 2011 New Revision: 222579 URL: http://svn.freebsd.org/changeset/base/222579 Log: Partial MFC of r212370. np@ requested this functionality so I kept in the cxgb change, but otherwise MFC'd only the new function sbuf_new_for_sysctl(9) and none of the chan

svn commit: r222580 - in stable/7: share/man/man9 sys/dev/cxgb sys/kern sys/sys

2011-06-01 Thread Matthew D Fleming
Author: mdf Date: Wed Jun 1 18:27:13 2011 New Revision: 222580 URL: http://svn.freebsd.org/changeset/base/222580 Log: Partial MFC of r212370. np@ requested this functionality so I kept in the cxgb change, but otherwise MFC'd only the new function sbuf_new_for_sysctl(9) and none of the chan

svn commit: r248933 - head/sys/kern

2013-03-30 Thread Matthew D Fleming
Author: mdf Date: Sat Mar 30 15:09:04 2013 New Revision: 248933 URL: http://svnweb.freebsd.org/changeset/base/248933 Log: Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation. MFC after:1 week Modified: head/sys/kern/vfs_extattr.c head/sys/kern/vfs_vnops.c Modified

svn commit: r248995 - in head: contrib/libarchive/libarchive contrib/libarchive/libarchive/test lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys usr.sbin/extattr

2013-04-01 Thread Matthew D Fleming
Author: mdf Date: Tue Apr 2 05:30:41 2013 New Revision: 248995 URL: http://svnweb.freebsd.org/changeset/base/248995 Log: Fix return type of extattr_set_* and fix rmextattr(8) utility. extattr_set_{fd,file,link} is logically a write(2)-like operation and should return ssize_t, just like e

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

2013-04-01 Thread Matthew D Fleming
Author: mdf Date: Tue Apr 2 05:30:52 2013 New Revision: 248996 URL: http://svnweb.freebsd.org/changeset/base/248996 Log: Regen. MFC after:1 week Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd3

svn commit: r250247 - head/sys/kern

2013-05-04 Thread Matthew D Fleming
Author: mdf Date: Sat May 4 18:38:16 2013 New Revision: 250247 URL: http://svnweb.freebsd.org/changeset/base/250247 Log: Add missing vdrop() in error case. Submitted by: Fahad (mohd.fahadul...@isilon.com) MFC after:1 week Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern

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

2013-05-04 Thread Matthew D Fleming
Author: mdf Date: Sat May 4 18:44:14 2013 New Revision: 250248 URL: http://svnweb.freebsd.org/changeset/base/250248 Log: MFC r248933: Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation. Modified: stable/9/sys/kern/vfs_extattr.c stable/9/sys/kern/vfs_vnops.c Directory

svn commit: r250249 - in stable/8/sys: . amd64/amd64 dev/sound i386/i386 kern

2013-05-04 Thread Matthew D Fleming
Author: mdf Date: Sat May 4 18:49:04 2013 New Revision: 250249 URL: http://svnweb.freebsd.org/changeset/base/250249 Log: MFC r248933: Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation. Modified: stable/8/sys/kern/vfs_extattr.c stable/8/sys/kern/vfs_vnops.c Directory

svn commit: r258658 - head/contrib/gcclibs/libcpp

2013-11-26 Thread Matthew D Fleming
Author: mdf Date: Tue Nov 26 17:11:43 2013 New Revision: 258658 URL: http://svnweb.freebsd.org/changeset/base/258658 Log: Fix a segfault / internal compiler error. Among other causes, when gcc throws a warning before parsing any tokens, the cur_token pointer is at the beginning of malloc'

svn commit: r259242 - stable/10/contrib/gcclibs/libcpp

2013-12-11 Thread Matthew D Fleming
Author: mdf Date: Thu Dec 12 02:03:42 2013 New Revision: 259242 URL: http://svnweb.freebsd.org/changeset/base/259242 Log: MFC r258658: Fix a segfault / internal compiler error. Among other causes, when gcc throws a warning before parsing any tokens, the cur_token pointer is at the be

svn commit: r259243 - stable/9/contrib/gcclibs/libcpp

2013-12-11 Thread Matthew D Fleming
Author: mdf Date: Thu Dec 12 02:04:59 2013 New Revision: 259243 URL: http://svnweb.freebsd.org/changeset/base/259243 Log: MFC r258658: Fix a segfault / internal compiler error. Among other causes, when gcc throws a warning before parsing any tokens, the cur_token pointer is at the be

svn commit: r256013 - head/etc/mtree

2013-10-02 Thread Matthew D Fleming
Author: mdf Date: Thu Oct 3 01:18:06 2013 New Revision: 256013 URL: http://svnweb.freebsd.org/changeset/base/256013 Log: Fix up typos from r255963 in mtree Makefile. BSD.debug.dist should be iterated if present, and remove a stray .endif. Approved by: re (gjb) Modified: head/etc/mtr

svn commit: r241012 - head/sbin/fsck_ffs

2012-09-27 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 27 23:30:58 2012 New Revision: 241012 URL: http://svn.freebsd.org/changeset/base/241012 Log: Fix fsck_ffs build with a 64-bit ino_t. Original code by: Gleb Kurtsou Modified: head/sbin/fsck_ffs/fsutil.c head/sbin/fsck_ffs/gjournal.c head/sbin/fsck_ffs/ino

svn commit: r241013 - in head/sbin: dump fsck_ffs fsdb fsirand growfs newfs quotacheck restore tunefs

2012-09-27 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 27 23:31:06 2012 New Revision: 241013 URL: http://svn.freebsd.org/changeset/base/241013 Log: Fix sbin/ build with a 64-bit ino_t. Original code by: Gleb Kurtsou Modified: head/sbin/dump/traverse.c head/sbin/fsck_ffs/suj.c head/sbin/fsdb/fsdb.c head/sbi

svn commit: r241014 - in head/bin: ls rm

2012-09-27 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 27 23:31:12 2012 New Revision: 241014 URL: http://svn.freebsd.org/changeset/base/241014 Log: Fix bin/ build with a 64-bit ino_t. Original code by: Gleb Kurtsou Modified: head/bin/ls/ls.c head/bin/ls/print.c head/bin/rm/rm.c Modified: head/bin/ls/ls.c ==

svn commit: r241015 - in head: usr.bin/find usr.sbin/lpr/lpr usr.sbin/makefs/ffs usr.sbin/quot usr.sbin/snapinfo

2012-09-27 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 27 23:31:19 2012 New Revision: 241015 URL: http://svn.freebsd.org/changeset/base/241015 Log: Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t. Original code by: Gleb Kurtsou Modified: head/usr.bin/find/ls.c head/usr.sbin/lpr/lpr/lpr.c head/usr.sbin/m

svn commit: r241035 - head/sbin/fsck_ffs

2012-09-28 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 28 17:34:34 2012 New Revision: 241035 URL: http://svn.freebsd.org/changeset/base/241035 Log: Fix some nearby type and style errors. Pointed out by: bde Modified: head/sbin/fsck_ffs/main.c head/sbin/fsck_ffs/pass1.c head/sbin/fsck_ffs/suj.c Modified: h

svn commit: r242152 - in head: lib/libmemstat sys/vm

2012-10-26 Thread Matthew D Fleming
Author: mdf Date: Fri Oct 26 17:51:05 2012 New Revision: 242152 URL: http://svn.freebsd.org/changeset/base/242152 Log: Const-ify the zone name argument to uma_zcreate(9). MFC after:3 days Modified: head/lib/libmemstat/memstat_uma.c head/sys/vm/uma.h head/sys/vm/uma_core.c head/

svn commit: r242365 - in stable/9: lib/libmemstat sys/vm

2012-10-30 Thread Matthew D Fleming
Author: mdf Date: Tue Oct 30 17:05:12 2012 New Revision: 242365 URL: http://svn.freebsd.org/changeset/base/242365 Log: MFC r242152: Const-ify the zone name argument to uma_zcreate(9). Modified: stable/9/lib/libmemstat/memstat_uma.c stable/9/sys/vm/uma.h stable/9/sys/vm/uma_core.c s

svn commit: r242366 - in stable/8: lib/libmemstat sys/vm

2012-10-30 Thread Matthew D Fleming
Author: mdf Date: Tue Oct 30 17:05:28 2012 New Revision: 242366 URL: http://svn.freebsd.org/changeset/base/242366 Log: MFC r242152: Const-ify the zone name argument to uma_zcreate(9). Modified: stable/8/lib/libmemstat/memstat_uma.c stable/8/sys/vm/uma.h stable/8/sys/vm/uma_core.c s

svn commit: r242367 - in stable/7: lib/libmemstat sys/vm

2012-10-30 Thread Matthew D Fleming
Author: mdf Date: Tue Oct 30 17:05:47 2012 New Revision: 242367 URL: http://svn.freebsd.org/changeset/base/242367 Log: MFC r242152: Const-ify the zone name argument to uma_zcreate(9). Modified: stable/7/lib/libmemstat/memstat_uma.c stable/7/sys/vm/uma.h stable/7/sys/vm/uma_core.c s

svn commit: r238027 - in stable/8/sys: net net80211 netinet netinet/cc netinet/ipfw

2012-07-02 Thread Matthew D Fleming
Author: mdf Date: Mon Jul 2 20:36:54 2012 New Revision: 238027 URL: http://svn.freebsd.org/changeset/base/238027 Log: MFC r217322. Original commit log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the net* piece. The commit to HEAD was a superset of the propos

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

2012-07-15 Thread Matthew D Fleming
Author: mdf Date: Sun Jul 15 20:29:48 2012 New Revision: 238502 URL: http://svn.freebsd.org/changeset/base/238502 Log: Fix a bug with memguard(9) on 32-bit architectures without a VM_KMEM_MAX_SIZE. The code was not taking into account the size of the kernel_map, which the kmem_map is al

svn commit: r236118 - stable/9/bin/kenv

2012-05-26 Thread Matthew D Fleming
Author: mdf Date: Sat May 26 20:13:24 2012 New Revision: 236118 URL: http://svn.freebsd.org/changeset/base/236118 Log: MFC r235297, r235316: Add a -v and -N option to kenv(1), so it can be more easily used in scripts the way sysctl(8) is. The -N option, like in sysctl(8), displays only

svn commit: r233861 - svnadmin/conf

2012-04-03 Thread Matthew D Fleming
Author: mdf Date: Wed Apr 4 06:59:04 2012 New Revision: 233861 URL: http://svn.freebsd.org/changeset/base/233861 Log: Release gleb from mentorship. Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors ==

svn commit: r235297 - head/bin/kenv

2012-05-11 Thread Matthew D Fleming
Author: mdf Date: Fri May 11 23:05:14 2012 New Revision: 235297 URL: http://svn.freebsd.org/changeset/base/235297 Log: Add a -v and -N option to kenv(1), so it can be more easily used in scripts the way sysctl(8) is. The -N option, like in sysctl(8), displays only the kenv names, not their

svn commit: r235316 - head/bin/kenv

2012-05-11 Thread Matthew D Fleming
Author: mdf Date: Sat May 12 02:49:40 2012 New Revision: 235316 URL: http://svn.freebsd.org/changeset/base/235316 Log: I forgot to bump the manpage date. Reminded by: Garrett Cooper MFC after:3 days X-MFC-with: r235297 Modified: head/bin/kenv/kenv.1 Modified: head/bin/kenv/ke

svn commit: r239565 - in stable/9/sys: kern vm

2012-08-22 Thread Matthew D Fleming
Author: mdf Date: Wed Aug 22 17:13:00 2012 New Revision: 239565 URL: http://svn.freebsd.org/changeset/base/239565 Log: MFC r238502: Fix a bug with memguard(9) on 32-bit architectures without a VM_KMEM_MAX_SIZE. The code was not taking into account the size of the kernel_map, which

svn commit: r239566 - in stable/8/sys: kern vm

2012-08-22 Thread Matthew D Fleming
Author: mdf Date: Wed Aug 22 17:16:05 2012 New Revision: 239566 URL: http://svn.freebsd.org/changeset/base/239566 Log: MFC r238502: Fix a bug with memguard(9) on 32-bit architectures without a VM_KMEM_MAX_SIZE. The code was not taking into account the size of the kernel_map, which

svn commit: r241011 - in head/sys: fs/ext2fs fs/hpfs fs/ntfs fs/tmpfs kern ufs/ffs ufs/ufs

2012-09-27 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 27 23:30:49 2012 New Revision: 241011 URL: http://svn.freebsd.org/changeset/base/241011 Log: Fix up kernel sources to be ready for a 64-bit ino_t. Original code by: Gleb Kurtsou Modified: head/sys/fs/ext2fs/ext2_alloc.c head/sys/fs/ext2fs/ext2_inode_cnv.c

svn commit: r210377 - in head: share/man/man9 sys/kern sys/sys

2010-07-22 Thread Matthew D Fleming
Author: mdf Date: Thu Jul 22 16:41:09 2010 New Revision: 210377 URL: http://svn.freebsd.org/changeset/base/210377 Log: Fix taskqueue_drain(9) to not have false negatives. For threaded taskqueues, more than one task can be running simultaneously. Also make taskqueue_run(9) static to the f

svn commit: r210380 - head/sys/kern

2010-07-22 Thread Matthew D Fleming
Author: mdf Date: Thu Jul 22 17:23:43 2010 New Revision: 210380 URL: http://svn.freebsd.org/changeset/base/210380 Log: Remove unused variable that snuck in during development. Approved by:zml (mentor) Modified: head/sys/kern/subr_taskqueue.c Modified: head/sys/kern/subr_taskqueue.c

svn commit: r210564 - in head/sys: amd64/conf conf i386/conf ia64/conf kern pc98/conf powerpc/conf sparc64/conf sun4v/conf sys

2010-07-28 Thread Matthew D Fleming
Author: mdf Date: Wed Jul 28 15:36:12 2010 New Revision: 210564 URL: http://svn.freebsd.org/changeset/base/210564 Log: Add MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma zones for each malloc bucket size. The purpose is to isolate different malloc types into hash classes,

svn commit: r210565 - head/sys/sys

2010-07-28 Thread Matthew D Fleming
Author: mdf Date: Wed Jul 28 15:47:32 2010 New Revision: 210565 URL: http://svn.freebsd.org/changeset/base/210565 Log: Bump __FreeBSD_version for multizone malloc(9). Approved by:zml (mentor) Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h =

svn commit: r210569 - head/sys/dev/e1000

2010-07-28 Thread Matthew D Fleming
Author: mdf Date: Wed Jul 28 16:24:06 2010 New Revision: 210569 URL: http://svn.freebsd.org/changeset/base/210569 Log: Fix clang warning on empty statement. Reviewed by:rdivacky, zml Approved by:zml (mentor) Modified: head/sys/dev/e1000/e1000_osdep.h Modified: head/sys/dev/e10

svn commit: r210570 - head/sys/dev/amr

2010-07-28 Thread Matthew D Fleming
Author: mdf Date: Wed Jul 28 16:24:11 2010 New Revision: 210570 URL: http://svn.freebsd.org/changeset/base/210570 Log: Fix clang warning on empty statement. Reviewed by:rdivacky, zml Approved by:zml (mentor) Modified: head/sys/dev/amr/amrvar.h Modified: head/sys/dev/amr/amrvar

svn commit: r210663 - head/sys/powerpc/conf

2010-07-30 Thread Matthew D Fleming
Author: mdf Date: Fri Jul 30 20:25:04 2010 New Revision: 210663 URL: http://svn.freebsd.org/changeset/base/210663 Log: Add MALLOC_DEBUG_MAXZONES=8 to powerpc64 GENERIC configuration file. Requested by:nwhitehorn Approved by: zml (mentor) Modified: head/sys/powerpc/conf/GENERIC6

svn commit: r211229 - head/sys/vm

2010-08-12 Thread Matthew D Fleming
Author: mdf Date: Thu Aug 12 16:54:43 2010 New Revision: 211229 URL: http://svn.freebsd.org/changeset/base/211229 Log: Fix compile. It seemed better to have memguard.c include opt_vm.h in case future compile-time knobs were added that it wants to use. Also add include guards and forward dec

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

2010-08-31 Thread Matthew D Fleming
Author: mdf Date: Tue Aug 31 16:57:58 2010 New Revision: 212058 URL: http://svn.freebsd.org/changeset/base/212058 Log: The realloc case for memguard(9) will copy too many bytes when reallocating to a smaller-sized allocation. Fix this issue. Noticed by: alc Reviewed by:alc Ap

svn commit: r212063 - head/sys/vm

2010-08-31 Thread Matthew D Fleming
Author: mdf Date: Tue Aug 31 17:43:47 2010 New Revision: 212063 URL: http://svn.freebsd.org/changeset/base/212063 Log: Have memguard(9) crash with an easier-to-debug message on double-free. Reviewed by:zml MFC after: 3 weeks Modified: head/sys/vm/memguard.c Modified: head/sys

svn commit: r212115 - head/sys/kern

2010-09-01 Thread Matthew D Fleming
Author: mdf Date: Wed Sep 1 20:32:47 2010 New Revision: 212115 URL: http://svn.freebsd.org/changeset/base/212115 Log: Fix a bug with sched_affinity() where it checks td_pinned of another thread in a racy manner, which can lead to attempting to migrate a thread that is pinned to a CPU. Inst

svn commit: r212153 - head/sys/kern

2010-09-02 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 2 16:23:05 2010 New Revision: 212153 URL: http://svn.freebsd.org/changeset/base/212153 Log: Fix UP build. MFC after:2 weeks Modified: head/sys/kern/sched_ule.c Modified: head/sys/kern/sched_ule.c

svn commit: r212180 - head/sys/kern

2010-09-03 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 3 16:09:17 2010 New Revision: 212180 URL: http://svn.freebsd.org/changeset/base/212180 Log: Use math rather than iteration when the desired sbuf size is larger than SBUF_MAXEXTENDSIZE. Modified: head/sys/kern/subr_sbuf.c Modified: head/sys/kern/subr_sbuf.c ==

svn commit: r212181 - head/sys/kern

2010-09-03 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 3 16:12:39 2010 New Revision: 212181 URL: http://svn.freebsd.org/changeset/base/212181 Log: Fix brain fart when converting an if statement into a KASSERT. Modified: head/sys/kern/subr_sbuf.c Modified: head/sys/kern/subr_sbuf.c ==

svn commit: r212182 - head/sys/kern

2010-09-03 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 3 17:23:26 2010 New Revision: 212182 URL: http://svn.freebsd.org/changeset/base/212182 Log: Fix user-space libsbuf build. Why isn't CTASSERT available to user-space? Modified: head/sys/kern/subr_sbuf.c Modified: head/sys/kern/subr_sbuf.c

svn commit: r212183 - head/sys/kern

2010-09-03 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 3 17:42:12 2010 New Revision: 212183 URL: http://svn.freebsd.org/changeset/base/212183 Log: Style(9) fixes and eliminate the use of min(). Modified: head/sys/kern/subr_sbuf.c Modified: head/sys/kern/subr_sbuf.c ==

svn commit: r212184 - head/sys/kern

2010-09-03 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 3 17:42:17 2010 New Revision: 212184 URL: http://svn.freebsd.org/changeset/base/212184 Log: Use a better #if guard. Suggested by pluknet . Modified: head/sys/kern/subr_sbuf.c Modified: head/sys/kern/subr_sbuf.c =

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

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 16:27:02 2010 New Revision: 212364 URL: http://svn.freebsd.org/changeset/base/212364 Log: Fix small errors in the sbuf(9) man page. Modified: head/share/man/man9/sbuf.9 Modified: head/share/man/man9/sbuf.9 =

svn commit: r212365 - head/sys/kern

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 16:51:52 2010 New Revision: 212365 URL: http://svn.freebsd.org/changeset/base/212365 Log: Refactor sbuf code so that most uses of sbuf_extend() are in a new sbuf_put_byte(). This makes it easier to add drain functionality when a buffer would overflow as there ar

svn commit: r212367 - in head: share/man/man9 sys/kern sys/sys

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 17:49:18 2010 New Revision: 212367 URL: http://svn.freebsd.org/changeset/base/212367 Log: Add drain functionality to sbufs. The drain is a function that is called when the sbuf internal buffer is filled. For kernel sbufs with a drain, the internal buffer will n

svn commit: r212370 - in head/sys: dev/cxgb kern sys vm

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 18:33:46 2010 New Revision: 212370 URL: http://svn.freebsd.org/changeset/base/212370 Log: Add a drain function for struct sysctl_req, and use it for a variety of handlers, some of which had to do awkward things to get a large enough FIXEDLEN buffer. Note tha

svn commit: r212371 - head/sys/dev/led

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 18:35:08 2010 New Revision: 212371 URL: http://svn.freebsd.org/changeset/base/212371 Log: Fix an incorrect use of sbuf_overflowed() after a call to sbuf_finish(). Modified: head/sys/dev/led/led.c Modified: head/sys/dev/led/led.c ==

svn commit: r212381 - head/sys/sys

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 21:01:41 2010 New Revision: 212381 URL: http://svn.freebsd.org/changeset/base/212381 Log: Bump __FreeBSD_version for sbuf ABI change. Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h ===

svn commit: r212425 - in head: share/man/man9 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linux sys/kern sys/net sys/security/audit sys/sys

2010-09-10 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 10 16:42:16 2010 New Revision: 212425 URL: http://svn.freebsd.org/changeset/base/212425 Log: Replace sbuf_overflowed() with sbuf_error(), which returns any error code associated with overflow or with the drain function. While this function is not expected to be use

svn commit: r212427 - in stable/8: share/man/man9 sys/kern sys/vm

2010-09-10 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 10 17:26:41 2010 New Revision: 212427 URL: http://svn.freebsd.org/changeset/base/212427 Log: MFC r211194, r211229, r212058, r212063: memguard(9) rewrite r211194: Rework memguard(9) to reserve significantly more KVA to detect use-after-free over a longer time

svn commit: r212435 - head

2010-09-10 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 10 20:42:41 2010 New Revision: 212435 URL: http://svn.freebsd.org/changeset/base/212435 Log: Mark the sbuf_overflowed(9) manpage as obsolete since it has been renamed. Noticed by: jhb Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc ===

svn commit: r212437 - in stable/7: share/man/man9 sys/kern sys/vm

2010-09-10 Thread Matthew D Fleming
Author: mdf Date: Fri Sep 10 21:53:47 2010 New Revision: 212437 URL: http://svn.freebsd.org/changeset/base/212437 Log: MFC r211194, r211229, r212058, r212063: memguard(9) rewrite r211194: Rework memguard(9) to reserve significantly more KVA to detect use-after-free over a longer time

svn commit: r208807 - in head: share/misc usr.bin/calendar/calendars

2010-06-04 Thread Matthew D Fleming
Author: mdf Date: Fri Jun 4 17:54:30 2010 New Revision: 208807 URL: http://svn.freebsd.org/changeset/base/208807 Log: - Add myself to committers-src.dot - Add myself to calendar.freebsd Approved by: zml (mentor) Modified: head/share/misc/committers-src.dot head/usr.bin/calendar/cal

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

2010-06-11 Thread Matthew D Fleming
Author: mdf Date: Fri Jun 11 17:03:26 2010 New Revision: 209053 URL: http://svn.freebsd.org/changeset/base/209053 Log: Add INVARIANTS checking that numfreebufs values are sane. Also add a per-buf flag to catch if a buf is double-counted in the free count. This code was useful to debug an in

<    1   2