svn commit: r208866 - head/sys/mips/mips

2010-06-05 Thread Alan Cox
Author: alc Date: Sun Jun 6 06:07:44 2010 New Revision: 208866 URL: http://svn.freebsd.org/changeset/base/208866 Log: Don't set PG_WRITEABLE in init_pte_prot() (and thus pmap_enter()) unless the page is managed. Don't set the machine-independent layer's dirty field for the page being m

svn commit: r208864 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Author: rrs Date: Sun Jun 6 02:33:46 2010 New Revision: 208864 URL: http://svn.freebsd.org/changeset/base/208864 Log: Hopefully this fixes a LOR by making so we only hold the iterator lock during updates to the iterators work. MFC after:1 week Modified: head/sys/netinet/sctp_pcb

svn commit: r208863 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Author: rrs Date: Sun Jun 6 02:32:20 2010 New Revision: 208863 URL: http://svn.freebsd.org/changeset/base/208863 Log: Bruce's fix for some return's in error legs. MFC after:1 week Modified: head/sys/netinet/sctp_usrreq.c Modified: head/sys/netinet/sctp_usrreq.c ==

Re: svn commit: r208857 - head/sys/netinet

2010-06-05 Thread Luigi Rizzo
On Sat, Jun 05, 2010 at 05:53:55PM -0700, Randall Stewart wrote: > Luigi: > > We on the SCTP team ;-) have always worked under the > constraint of "scrubbing out" with un-ifdef loads of stuff for > > - Windows > - MacOS-X > - User-Space Implementation > - Panda (translated IOS-XR) > > Now there

Re: svn commit: r208857 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Luigi: We on the SCTP team ;-) have always worked under the constraint of "scrubbing out" with un-ifdef loads of stuff for - Windows - MacOS-X - User-Space Implementation - Panda (translated IOS-XR) Now there is a HUGE amount of cruft that has some ugly ifdef's in it which I was told way bac

Re: svn commit: r208857 - head/sys/netinet

2010-06-05 Thread Luigi Rizzo
On Sat, Jun 05, 2010 at 09:39:53PM +, Randall Stewart wrote: > Author: rrs > Date: Sat Jun 5 21:39:52 2010 > New Revision: 208857 > URL: http://svn.freebsd.org/changeset/base/208857 > > Log: > Purge out a Windows def that somehow slipped > past the scrubber. i wonder if it makes sense to

svn commit: r208862 - head/sys/dev/bge

2010-06-05 Thread Pyun YongHyeon
Author: yongari Date: Sat Jun 5 23:29:24 2010 New Revision: 208862 URL: http://svn.freebsd.org/changeset/base/208862 Log: Fix a bug introduced in r199011. When bge(4) reuses loaded RX buffers it should also reinitialize RX descriptors otherwise some stale data could be passed to controller.

svn commit: r208861 - in head/sys: dev/hwpmc sys

2010-06-05 Thread Fabien Thomas
Author: fabient Date: Sat Jun 5 23:05:08 2010 New Revision: 208861 URL: http://svn.freebsd.org/changeset/base/208861 Log: Convert pm_runcount to int to correctly check for negative value. Remove uncessary check for error. Found with: Coverity Prevent(tm) MFC after:1 month Modifi

svn commit: r208860 - head/lib/libpmc

2010-06-05 Thread Fabien Thomas
Author: fabient Date: Sat Jun 5 23:00:02 2010 New Revision: 208860 URL: http://svn.freebsd.org/changeset/base/208860 Log: Fix memory leak on error. Found with: Coverity Prevent(tm) MFC after:1 month Modified: head/lib/libpmc/pmclog.c Modified: head/lib/libpmc/pmclog.c =

svn commit: r208859 - head/tools/tools/netrate/tcpp

2010-06-05 Thread Robert Watson
Author: rwatson Date: Sat Jun 5 22:59:37 2010 New Revision: 208859 URL: http://svn.freebsd.org/changeset/base/208859 Log: Although we currently don't compile in CPU-pinning support by default, add a -P to enable it if it were. MFC after:1 week Sponsored by: Juniper Networks Modifi

svn commit: r208858 - head/usr.sbin/pmcstat

2010-06-05 Thread Fabien Thomas
Author: fabient Date: Sat Jun 5 22:57:53 2010 New Revision: 208858 URL: http://svn.freebsd.org/changeset/base/208858 Log: Fix warnings found by Coverity. Found with: Coverity Prevent(tm) MFC after:1 month Modified: head/usr.sbin/pmcstat/pmcpl_calltree.c head/usr.sbin/pmcstat/p

svn commit: r208857 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Author: rrs Date: Sat Jun 5 21:39:52 2010 New Revision: 208857 URL: http://svn.freebsd.org/changeset/base/208857 Log: Purge out a Windows def that somehow slipped past the scrubber. MFC after:1 Week Modified: head/sys/netinet/sctputil.c Modified: head/sys/netinet/sctputil.c =

svn commit: r208856 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Author: rrs Date: Sat Jun 5 21:33:16 2010 New Revision: 208856 URL: http://svn.freebsd.org/changeset/base/208856 Log: Spacing issues MFC after:1 Week Modified: head/sys/netinet/sctp_auth.c head/sys/netinet/sctp_bsd_addr.c Modified: head/sys/netinet/sctp_auth.c ===

svn commit: r208855 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Author: rrs Date: Sat Jun 5 21:27:43 2010 New Revision: 208855 URL: http://svn.freebsd.org/changeset/base/208855 Log: This change does the following: 1) Fix the alignment of a comment. 2) Fix a BUG where we were NOT paying attention to the RESEND marking on retransmitting control

svn commit: r208854 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Author: rrs Date: Sat Jun 5 21:22:58 2010 New Revision: 208854 URL: http://svn.freebsd.org/changeset/base/208854 Log: Use the proper increment macro when increasing the number on sent_queue_retran_cnt. MFC after:1 week Modified: head/sys/netinet/sctp_indata.c Modified: head/sys/n

svn commit: r208853 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Author: rrs Date: Sat Jun 5 21:20:28 2010 New Revision: 208853 URL: http://svn.freebsd.org/changeset/base/208853 Log: This does two changes: 1) Makes it so that the INVARIANT function validate nolocks is available anywhere. 2) Fixes a BUG where a close has been done on a collision sock

svn commit: r208852 - head/sys/netinet

2010-06-05 Thread Randall Stewart
Author: rrs Date: Sat Jun 5 21:17:23 2010 New Revision: 208852 URL: http://svn.freebsd.org/changeset/base/208852 Log: This fixes a bug in the close up of a socket that had un-accepted assoc's. Basically the assoc (and inp) would get stuck and never get cleaned up. MFC after:1 week

svn commit: r208849 - head/sys/dev/isp

2010-06-05 Thread Matt Jacob
Author: mjacob Date: Sat Jun 5 20:37:40 2010 New Revision: 208849 URL: http://svn.freebsd.org/changeset/base/208849 Log: Be more specific about which CDB length we're going to use. Not really a likely bug but we might as well be clearer. Found with: Coverity Prevent(tm) CID:

svn commit: r208847 - head/sys/powerpc/aim

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 18:24:41 2010 New Revision: 208847 URL: http://svn.freebsd.org/changeset/base/208847 Log: Correct a harmless typo introduced when copying code from mmu_oea64. Submitted by: alc MFC after:8.1-RELEASE Modified: head/sys/powerpc/aim/mmu_oea.c Modif

svn commit: r208846 - in head/sys: arm/arm powerpc/booke sparc64/sparc64

2010-06-05 Thread Alan Cox
Author: alc Date: Sat Jun 5 18:20:09 2010 New Revision: 208846 URL: http://svn.freebsd.org/changeset/base/208846 Log: Don't set PG_WRITEABLE in pmap_enter() unless the page is managed. Correct a typo in a nearby comment on sparc64. Modified: head/sys/arm/arm/pmap.c head/sys/powerpc/bo

svn commit: r208842 - in head/sys: conf powerpc/powermac

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 17:51:37 2010 New Revision: 208842 URL: http://svn.freebsd.org/changeset/base/208842 Log: Add a driver for the CPU temperature sensors attached over I2C on the PowerMac 11,2. Added: head/sys/powerpc/powermac/smusat.c (contents, props changed) Modified:

svn commit: r208841 - head/sys/powerpc/powermac

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 17:50:20 2010 New Revision: 208841 URL: http://svn.freebsd.org/changeset/base/208841 Log: Add support for the I2C busses hanging off Apple system management chips. Modified: head/sys/powerpc/powermac/smu.c Modified: head/sys/powerpc/powermac/smu.c

svn commit: r208840 - head/sys/powerpc/powermac

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 17:49:40 2010 New Revision: 208840 URL: http://svn.freebsd.org/changeset/base/208840 Log: Utilize the Keywest I2C combined mode for messages with repeated starts. Modified: head/sys/powerpc/powermac/kiic.c Modified: head/sys/powerpc/powermac/kiic.c ===

svn commit: r208839 - head/sys/dev/iicbus

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 17:48:26 2010 New Revision: 208839 URL: http://svn.freebsd.org/changeset/base/208839 Log: Add two new flags (IIC_M_NOSTOP and IIC_M_NOSTART) to struct iic_msg to allow consumers of iicbus_transfer() to send messages with repeated starts. Reviewed by: i

svn commit: r208837 - head/sys/dev/ata/chipsets

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 16:27:15 2010 New Revision: 208837 URL: http://svn.freebsd.org/changeset/base/208837 Log: Correct the comment. We now use level low instead of edge high for this interrupt. Modified: head/sys/dev/ata/chipsets/ata-serverworks.c Modified: head/sys/dev/ata/

svn commit: r208836 - head/sys/dev/ata/chipsets

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 16:25:25 2010 New Revision: 208836 URL: http://svn.freebsd.org/changeset/base/208836 Log: Partially revert r208162 while waiting for review on a more comprehensive fix. On Apple OpenPICs, the low/high bit of the interrupt sense is only respected for interr

svn commit: r208835 - head/sys/powerpc/powerpc

2010-06-05 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sat Jun 5 16:21:55 2010 New Revision: 208835 URL: http://svn.freebsd.org/changeset/base/208835 Log: Make sure that interrupt sense settings set after interrupts are enabled are respected. This fixes loading the Apple onboard audio driver (snd_ai2s) as a module after

svn commit: r208834 - in head/sys: crypto/via dev/random opencrypto

2010-06-05 Thread Konstantin Belousov
Author: kib Date: Sat Jun 5 16:00:53 2010 New Revision: 208834 URL: http://svn.freebsd.org/changeset/base/208834 Log: Use the fpu_kern_enter() interface to properly separate usermode FPU context from in-kernel execution of padlock instructions and to handle spurious FPUDNA exceptions that s

svn commit: r208833 - in head/sys: amd64/acpica amd64/amd64 amd64/ia32 amd64/include i386/i386 i386/include i386/isa i386/linux pc98/pc98

2010-06-05 Thread Konstantin Belousov
Author: kib Date: Sat Jun 5 15:59:59 2010 New Revision: 208833 URL: http://svn.freebsd.org/changeset/base/208833 Log: Introduce the x86 kernel interfaces to allow kernel code to use FPU/SSE hardware. Caller should provide a save area that is chained into the stack of the areas; pcb save_are

svn commit: r208831 - head/usr.sbin/tzsetup

2010-06-05 Thread Edwin Groothuis
Author: edwin Date: Sat Jun 5 12:53:44 2010 New Revision: 208831 URL: http://svn.freebsd.org/changeset/base/208831 Log: Add comment that this value is unused. It is obvious that it isn't used, but both clang and Coverity talk about it. Found with: Coverity Prevent(tm) CID: 8

svn commit: r208830 - head/usr.sbin/tzsetup

2010-06-05 Thread Edwin Groothuis
Author: edwin Date: Sat Jun 5 12:49:39 2010 New Revision: 208830 URL: http://svn.freebsd.org/changeset/base/208830 Log: When there is a problem with writing, also bail out. Found with the clang checker. Modified: head/usr.sbin/tzsetup/tzsetup.c Modified: head/usr.sbin/tzsetup/tzsetup.c

svn commit: r208829 - head/usr.bin/calendar

2010-06-05 Thread Edwin Groothuis
Author: edwin Date: Sat Jun 5 12:31:08 2010 New Revision: 208829 URL: http://svn.freebsd.org/changeset/base/208829 Log: Make clang happier by removing unused assignments. Modified: head/usr.bin/calendar/sunpos.c Modified: head/usr.bin/calendar/sunpos.c ==

svn commit: r208828 - head/usr.bin/calendar

2010-06-05 Thread Edwin Groothuis
Author: edwin Date: Sat Jun 5 11:41:46 2010 New Revision: 208828 URL: http://svn.freebsd.org/changeset/base/208828 Log: Fix warnings about uninitialized variables. It was mostly harmless since strftime() only used %a and %b anyway. Found with: Coverity Prevent(tm) CID: 7769

svn commit: r208827 - head/usr.bin/calendar

2010-06-05 Thread Edwin Groothuis
Author: edwin Date: Sat Jun 5 11:32:31 2010 New Revision: 208827 URL: http://svn.freebsd.org/changeset/base/208827 Log: Fix: when unable to parse the sequence string, erase everything. Found with: Coverity Prevent(tm) CID: 7888 Modified: head/usr.bin/calendar/locale.c Modi

svn commit: r208826 - head/usr.bin/calendar

2010-06-05 Thread Edwin Groothuis
Author: edwin Date: Sat Jun 5 11:12:35 2010 New Revision: 208826 URL: http://svn.freebsd.org/changeset/base/208826 Log: Fix memory-leak at the processing of multiple calendars. Found with: Coverity Prevent(tm) CID: 7085 Modified: head/usr.bin/calendar/io.c Modified: head/u

svn commit: r208825 - head/usr.bin/calendar

2010-06-05 Thread Edwin Groothuis
Author: edwin Date: Sat Jun 5 11:06:56 2010 New Revision: 208825 URL: http://svn.freebsd.org/changeset/base/208825 Log: Properly check the return value of chdir, even if it is a "this should not happen" case. Found with: Coverity Prevent(tm) CID: 4932 Modified: head/usr.b

svn commit: r208824 - head/sys/netgraph

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 10:16:23 2010 New Revision: 208824 URL: http://svn.freebsd.org/changeset/base/208824 Log: Remove some dead and incorrect code. Found with: Coverity Prevent(tm) CID: 4562 Modified: head/sys/netgraph/ng_pppoe.c Modified: head/sys/netgraph/ng_pppoe

svn commit: r208823 - head/sys/cam/ata

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 09:31:13 2010 New Revision: 208823 URL: http://svn.freebsd.org/changeset/base/208823 Log: Add allocation error hadling. Found with: Coverity Prevent(tm) CID: 3897 Modified: head/sys/cam/ata/ata_xpt.c Modified: head/sys/cam/ata/ata_xpt.c

svn commit: r208822 - head/sys/dev/ata

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 08:58:03 2010 New Revision: 208822 URL: http://svn.freebsd.org/changeset/base/208822 Log: Fix possible use after free. Found with: Coverity Prevent(tm) CID: 4634 Modified: head/sys/dev/ata/atapi-cam.c Modified: head/sys/dev/ata/atapi-cam.c =

svn commit: r208821 - head/bin/cp

2010-06-05 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jun 5 08:50:39 2010 New Revision: 208821 URL: http://svn.freebsd.org/changeset/base/208821 Log: Don't try to copy a socket after "xxx is a socket (not copied)." message. Previously, it would either try to copy it anyway and fail (without -R), or create fifo instead o

svn commit: r208820 - head/sys/dev/ata/chipsets

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 08:44:40 2010 New Revision: 208820 URL: http://svn.freebsd.org/changeset/base/208820 Log: Fix use after free on error. Found with: Coverity Prevent(tm) CID: 4722 Modified: head/sys/dev/ata/chipsets/ata-acerlabs.c Modified: head/sys/dev/ata/chips

svn commit: r208819 - head/sys/cam/ata

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 08:36:37 2010 New Revision: 208819 URL: http://svn.freebsd.org/changeset/base/208819 Log: Fix double free on error. Found with: Coverity Prevent(tm) CID: 4573 Modified: head/sys/cam/ata/ata_pmp.c Modified: head/sys/cam/ata/ata_pmp.c

svn commit: r208818 - head/sys/dev/mvs

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 08:21:18 2010 New Revision: 208818 URL: http://svn.freebsd.org/changeset/base/208818 Log: Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4137 Modified: head/sys/dev/mvs/mvs.c Modifie

svn commit: r208817 - head/sys/dev/siis

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 08:16:21 2010 New Revision: 208817 URL: http://svn.freebsd.org/changeset/base/208817 Log: Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4196 Modified: head/sys/dev/siis/siis.c Modif

svn commit: r208816 - head/sys/dev/siis

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 08:14:19 2010 New Revision: 208816 URL: http://svn.freebsd.org/changeset/base/208816 Log: Fix attach errors handling. Found with: Coverity Prevent(tm) CID: 3477 Modified: head/sys/dev/siis/siis.c Modified: head/sys/dev/siis/siis.c ==

svn commit: r208815 - head/usr.sbin/chown

2010-06-05 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jun 5 08:11:11 2010 New Revision: 208815 URL: http://svn.freebsd.org/changeset/base/208815 Log: Plug resource leak. Found with: Coverity Prevent CID: 7040 Modified: head/usr.sbin/chown/chown.c Modified: head/usr.sbin/chown/chown.c ==

svn commit: r208814 - head/sys/dev/ahci

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 08:07:54 2010 New Revision: 208814 URL: http://svn.freebsd.org/changeset/base/208814 Log: Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4130 Modified: head/sys/dev/ahci/ahci.c Modif

svn commit: r208813 - head/sys/dev/ahci

2010-06-05 Thread Alexander Motin
Author: mav Date: Sat Jun 5 08:02:19 2010 New Revision: 208813 URL: http://svn.freebsd.org/changeset/base/208813 Log: Fix attach errors handling. Found with: Coverity Prevent(tm) CID: 3424 Modified: head/sys/dev/ahci/ahci.c Modified: head/sys/dev/ahci/ahci.c ==

svn commit: r208812 - head/sys/geom/mountver

2010-06-05 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jun 5 08:00:52 2010 New Revision: 208812 URL: http://svn.freebsd.org/changeset/base/208812 Log: Make sure not to pass NULL to g_orphan_provider(). Found with: Coverity Prevent CID: 3411 Modified: head/sys/geom/mountver/g_mountver.c Modified: head/sy

svn commit: r208811 - head/lib/libc/posix1e

2010-06-05 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Jun 5 07:40:32 2010 New Revision: 208811 URL: http://svn.freebsd.org/changeset/base/208811 Log: Don't use pointer to 64 bit value (id_t) to point to 32 bit value (uid_t). Found with: Coverity Prevent CID: 7466, 7467 MFC after:2 weeks Modified: