svn commit: r211534 - head/sys/kern

2010-08-20 Thread David Xu
Author: davidxu Date: Fri Aug 20 23:51:34 2010 New Revision: 211534 URL: http://svn.freebsd.org/changeset/base/211534 Log: make sure thread lock is locked. Modified: head/sys/kern/subr_sleepqueue.c Modified: head/sys/kern/subr_sleepqueue.c

svn commit: r211533 - in stable/7/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/cd9660 fs/udf kern sys ufs/ffs

2010-08-20 Thread John Baldwin
Author: jhb Date: Fri Aug 20 20:58:57 2010 New Revision: 211533 URL: http://svn.freebsd.org/changeset/base/211533 Log: Revert 210173 as it did not properly fix the bug. It assumed that the VI_LOCK() for a given vnode was used as the internal interlock for that vnode's v_lock lockmgr lock.

Re: svn commit: r211505 - head/contrib/gcc

2010-08-20 Thread Bruce Evans
On Fri, 20 Aug 2010, Dimitry Andric wrote: On 2010-08-20 00:20, Bruce Evans wrote: These seem to be needed, and some of them valid. Any lvalue arg that can be put in a register can be cast to USItype (unsigned int) on i386. The args are macro args, so they may have any integer type no larger t

svn commit: r211532 - in stable/7/sys: fs/nwfs fs/pseudofs fs/smbfs gnu/fs/xfs/FreeBSD kern

2010-08-20 Thread John Baldwin
Author: jhb Date: Fri Aug 20 20:33:13 2010 New Revision: 211532 URL: http://svn.freebsd.org/changeset/base/211532 Log: MFC: Use VN_LOCK_AREC() and VN_LOCK_ASHARE() rather than manipulating lockmgr lock flags directly. Modified: stable/7/sys/fs/nwfs/nwfs_node.c stable/7/sys/fs/pseudofs/pse

svn commit: r211531 - in head/sys: fs/devfs fs/nfsclient fs/nwfs fs/pseudofs fs/smbfs gnu/fs/xfs/FreeBSD kern nfsclient sys ufs/ffs

2010-08-20 Thread John Baldwin
Author: jhb Date: Fri Aug 20 19:46:50 2010 New Revision: 211531 URL: http://svn.freebsd.org/changeset/base/211531 Log: Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and LK_CANRECURSE after a lock is created. Use them to implement macros that otherwise manipulated the fla

Re: svn commit: r211393 - head/lib/libutil

2010-08-20 Thread Dag-Erling Smørgrav
"M. Warner Losh" writes: > Dag-Erling Smørgrav writes: > > "M. Warner Losh" writes: > > > And we're back to the reason for why issetugid() :) > > Does setuid() "untaint" a program? > No. Yet I would argue that it is safe to apply the user's .login_conf after setuid(), so issetugid() is not an a

Re: svn commit: r211393 - head/lib/libutil

2010-08-20 Thread M. Warner Losh
In message: <86bp8xf5u6@ds4.des.no> Dag-Erling Smørgrav writes: : "M. Warner Losh" writes: : > And we're back to the reason for why issetugid() :) : : Does setuid() "untaint" a program? No. Warner ___ svn-src-all@freebsd.org mailing l

Re: svn commit: r211393 - head/lib/libutil

2010-08-20 Thread Dag-Erling Smørgrav
"M. Warner Losh" writes: > And we're back to the reason for why issetugid() :) Does setuid() "untaint" a program? DES -- Dag-Erling Smørgrav - d...@des.no ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all T

Re: svn commit: r211393 - head/lib/libutil

2010-08-20 Thread M. Warner Losh
In message: <861v9ty7bg@ds4.des.no> Dag-Erling Smørgrav writes: : Attilio Rao writes: : > Dag-Erling Smørgrav writes: : > > Perhaps the test in setusercontext() should be changed to use : > > geteuid() instead of getuid(). : > Yes, I think that it probabilly makes more sense (get

Re: svn commit: r211530 - head/sys/netinet6

2010-08-20 Thread pluknet
On 20 August 2010 21:52, Hajimu UMEMOTO wrote: > Author: ume > Date: Fri Aug 20 17:52:49 2010 > New Revision: 211530 > URL: http://svn.freebsd.org/changeset/base/211530 > > Log: >  optp may be NULL. > > Modified: >  head/sys/netinet6/raw_ip6.c > > Modified: head/sys/netinet6/raw_ip6.c > ==

svn commit: r211530 - head/sys/netinet6

2010-08-20 Thread Hajimu UMEMOTO
Author: ume Date: Fri Aug 20 17:52:49 2010 New Revision: 211530 URL: http://svn.freebsd.org/changeset/base/211530 Log: optp may be NULL. Modified: head/sys/netinet6/raw_ip6.c Modified: head/sys/netinet6/raw_ip6.c ==

svn commit: r211529 - head/sys/cam/scsi

2010-08-20 Thread Matt Jacob
Author: mjacob Date: Fri Aug 20 17:20:05 2010 New Revision: 211529 URL: http://svn.freebsd.org/changeset/base/211529 Log: Revert r211434. Offline discussions have convinced me that this should be left alone for now. Modified: head/sys/cam/scsi/scsi_da.c Modified: head/sys/cam/scsi/scsi_da.

svn commit: r211527 - stable/8/sys/netinet6

2010-08-20 Thread Bjoern A. Zeeb
Author: bz Date: Fri Aug 20 15:26:09 2010 New Revision: 211527 URL: http://svn.freebsd.org/changeset/base/211527 Log: MFC r25: MFp4 CH180235: Add proto spacers to inet6sw like we have for legacy IP. This allows us to dynamically pf_proto_register() for INET6 from modules, n

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

2010-08-20 Thread David Xu
Author: davidxu Date: Fri Aug 20 13:42:48 2010 New Revision: 211526 URL: http://svn.freebsd.org/changeset/base/211526 Log: Reduce redundant code. Submitted by: kib Modified: head/lib/libthr/thread/thr_sig.c Modified: head/lib/libthr/thread/thr_sig.c =

svn commit: r211525 - stable/7/sys/netinet6

2010-08-20 Thread Bjoern A. Zeeb
Author: bz Date: Fri Aug 20 12:26:02 2010 New Revision: 211525 URL: http://svn.freebsd.org/changeset/base/211525 Log: MFC r25: MFp4 CH180235: Add proto spacers to inet6sw like we have for legacy IP. This allows us to dynamically pf_proto_register() for INET6 from modules, n

Re: svn commit: r211393 - head/lib/libutil

2010-08-20 Thread Dag-Erling Smørgrav
Attilio Rao writes: > Dag-Erling Smørgrav writes: > > Perhaps the test in setusercontext() should be changed to use > > geteuid() instead of getuid(). > Yes, I think that it probabilly makes more sense (geteuid() testing in > setusercontext()). What if the user's ~/.login_conf sets a custom PATH