summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - During shutdown pending, when the last sack came in andrrs2007-08-2721-519/+832
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the last message on the send stream was "null" but still there, a state we allow, we could get hung and not clean it up and wait for the shutdown guard timer to clear the association without a graceful close. Fix this so that that we properly clean up. - Added support for Multiple ASCONF per new RFC. We only (so far) accept input of these and cannot yet generate a multi-asconf. - Sysctl'd support for experimental Fast Handover feature. Always disabled unless sysctl or socket option changes to enable. - Error case in add-ip where the peer supports AUTH and ADD-IP but does NOT require AUTH of ASCONF/ASCONF-ACK. We need to ABORT in this case. - According to the Kyoto summit of socket api developers (Solaris, Linux, BSD). We need to have: o non-eeor mode messages be atomic - Fixed o Allow implicit setup of an assoc in 1-2-1 model if using the sctp_**() send calls - Fixed o Get rid of HAVE_XXX declarations - Done o add a sctp_pr_policy in hole in sndrcvinfo structure - Done o add a PR_SCTP_POLICY_VALID type flag - yet to-do in a future patch! - Optimize sctp6 calls to reuse code in sctp_usrreq. Also optimize when we close sending out the data and disabling Nagle. - Change key concatenation order to match the auth RFC - When sending OOTB shutdown_complete always do csum. - Don't send PKT-DROP to a PKT-DROP - For abort chunks just always checksums same for shutdown-complete. - inpcb_free front state had a bug where in queue data could wedge an assoc. We need to just abandon ones in front states (free_assoc). - If a peer sends us a 64k abort, we would try to assemble a response packet which may be larger than 64k. This then would be dropped by IP. Instead make a "minimum" size for us 64k-2k (we want at least 2k for our initack). If we receive such an init discard it early without all the processing. - When we peel off we must increment the tcb ref count to keep it from being freed from underneath us. - handling fwd-tsn had bugs that caused memory overwrites when given faulty data, fixed so can't happen and we also stop at the first bad stream no. - Fixed so comm-up generates the adaption indication. - peeloff did not get the hmac params copied. - fix it so we lock the addr list when doing src-addr selection (in future we need to use a multi-reader/one writer lock here) - During lowlevel output, we could end up with a _l_addr set to null if the iterator is calling the output routine. This means we would possibly crash when we gather the MTU info. Fix so we only do the gather where we have a src address cached. - we need to be sure to set abort flag on conn state when we receive an abort. - peeloff could leak a socket. Moved code so the close will find the socket if the peeloff fails (uipc_syscalls.c) Approved by: re@freebsd.org(Ken Smith)
* o Fix bug I introduced in the previous commit (ipfw set extention):maxim2007-08-262-4/+7
| | | | | | | | | | | | pack a set number correctly. Submitted by: oleg o Plug a memory leak. Submitted by: oleg and Andrey V. Elsukov Approved by: re (kensmith) MFC after: 1 week
* Add option to not fill second code image, this makes the full diskphk2007-08-261-3/+10
| | | | | | | | | image compress much better. Respect pkg_add's internal 200 package limitation. Approved by: re (bmah) Spelling fixes by: bmah
* Off-by-one bug in country ie construction, which will make HOSTAP send outsephe2007-08-261-1/+3
| | | | | | | malformatted beacons. Reviewed by: sam Approved by: re (bmah), sam (mentor)
* Fix following nits:sephe2007-08-261-1/+2
| | | | | | | | - Per ieee80211com sysctl ctx leakage on detach - getmgtframe incorrectly adjusts mbuf.m_data Reviewed by: sam Approved by: re (bmah), sam (mentor)
* Update the MFI driver to support new "1078" series of hardware. Thisscottl2007-08-254-24/+221
| | | | | | | | includes the upcoming Dell PERC6 series. Many thanks to LSI for contributing this code. Submitted by: LSI Approved by: re
* Fixes for 4 port and small packet optimizationkmacy2007-08-255-76/+125
| | | | | | | | | | | | | | | | | | | | | | | | - remove cpl->iff panic - we can't know the port number from the rspq on the 4-port - pick the ifnet based on the interface in the CPL header - switch to using qset 0 for egress on the 4-port for now - may change when we start using RSS - move ether_ifdetach to before the port lock gets deinitialized to avoid hang in the case where there are BPF peers (cxgb_ioctl is called indirectly when BPF peers are present) - don't call t3_mac_reset if multiport is set, this was causing tx errors by misconfiguring the MAC on the 4-port - change V_TXPKT_INTF to use txpkt_intf as the interfaces are not contiguous - free the mbuf immediately in the case where the payload is small enough to be copied into the rspq - only update the coalesce timer if for a queue if packets were taken off of it - add in missed 20ms DELAY in initializaton vsc8211 - prompt MFC as this only applies to the 4-port which is currently completely broken - OK'd by kensmith Supported by: Chelsio Approved by: re (blanket) MFC after: 0 days
* sleep 2 seconds after having loaded g_uzip.ko. We need this becausematteo2007-08-251-0/+2
| | | | | | | | otherwise the /dev/mdX.uzip won't be created immediately, which is needed because we issue a mount right afterwards. Approved by: re@ (bmah@) MFC after: 2 days
* document hw.realmemdanger2007-08-241-0/+1
| | | | | | | Submitted by: cnst@ (Constantine A. Murenin) Sponsored by: Google Summer of Code 2007 Approved by: re@ (bmah) MFC after: 1 week
* Remove old prototypes for addr2ascii() and ascii2addr(), functions which nobms2007-08-241-2/+0
| | | | | | | longer exist in libc. Requested by: Craig Rodrigues Approved by: re (kensmith)
* Fix stack overflow with too many items return list in 'dialog' program.ache2007-08-241-1/+1
| | | | | | (Noticed in ghostscript-gpl core dump) Approved by: re@ (bmah)
* drop frames marked for encryption when no key is availablesam2007-08-241-0/+1
| | | | | | Reviewed by: avatar Approved by: re (kensmith) Obtained from: madwifi
* New release note: coretemp(4).bmah2007-08-241-1/+5
| | | | | | | | | Updated release note: tzdata2007g [1]. [1] Technically I should remove the &merged; entity here but the commit has a one-week MFC-after so I figure I can leave it this way for now. Approved by: re (implicitly)
* MFV: tzdata2007gedwin2007-08-246-92/+142
| | | | | | | | PR: conf/115706 Submitted by: edwin@ Approved by: re (bmah@) Obtained from: ftp://elsie.nci.nih.gov/pub/ MFC after: 1 week
* This commit was generated by cvs2svn to compensate for changes in r171945,edwin2007-08-241-3/+5
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import of timezone database from Arthur Olson et al.edwin2007-08-247-95/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Timezone data changes in the following locations: - Egypt - Australia (new DST rules for 2008 and following) - Perry County, Indiana - America/Indiana/Tell_City - Pike County, Indiana Also: - City coordinates corrected. - Layout of leapseconds is updated PR: conf/115706 Approved by: re (bmah@)
* | - Fix address add handling to clear cached routes and source addressesrrs2007-08-2423-269/+979
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when peer acks the add in case the routing table changes. - Fix sctp_lower_sosend to send shutdown chunk for mbuf send case when sndlen = 0 and sinfoflag = SCTP_EOF - Fix sctp_lower_sosend for SCTP_ABORT mbuf send case with null data, So that it does not send the "null" data mbuf out and cause it to get freed twice. - Fix so auto-asconf sysctl actually effect the socket's asconf state. - Do not allow SCTP_AUTO_ASCONF option to be used on subset bound sockets. - Memset bug in sctp_output.c (arguments were reversed) submitted found and reported by Dave Jones (davej@codemonkey.org.uk). - PD-API point needs to be invoked >= not just > to conform to socket api draft this fixes sctp_indata.c in the two places need to be >=. - move M_NOTIFICATION to use M_PROTO5. - PEER_ADDR_PARAMS did not fail properly if you specify an address that is not in the association with a valid assoc_id. This meant you got or set the stcb level values instead of the destination you thought you were going to get/set. Now validate if the stcb is non-null and the net is NULL that the sa_family is set and the address is unspecified otherwise return an error. - The thread based iterator could crash if associations were freed at the exact time it was running. rework the worker thread to use the increment/decrement to prevent this and no longer use the markers that the timer based iterator uses. - Fix the memleak in sctp_add_addr_to_vrf() for the case when it is detected that ifa is already pointing to a ifn. - Fix it so that if someone is so insane that they drop the send window below the minimal add mark, they still can send. - Changed all state for associations to use mask safe macro. - During front states in association freeing in sctp_inpcbfree, we had a locking problem where locks were not in place where they should have been. - Free association calls were not testing the return value in sctp_inpcb_free() properly... others should be cast void returns where we don't care about the return value. - If a reference count is held on an assoc, even from the "force free" we should not do the actual free.. but instead let the timer free it. - When we enter sctp_input(), if the SCTP_ASOC_ABOUT_TO_BE_FREED flag is set, we must NOT process the packet but handle it like ootb. This is because while freeing an assoc we release the locks to get all the higher order locks so we can purge all the hash tables. This leaves a hole if a packet comes in just at that point. Now sctp_common_input_processing() will call the ootb code in such a case. - Change MBUF M_NOTIFICATION to use M_PROTO5 (per Sam L). This makes it so we don't have a conflict (I think this is a covertity change). We made this change AFTER some conversation and looking to make sure that M_PROTO5 does not have a problem between SCTP and the 802.11 stuff (which is the only other place its used). - Fixed lock order reversal and missing atomic protection around locked_tcb during association lookup and the 1-2-1 model. - Added debug to source address selection. - V6 output must always do checksum even for loopback. - Remove more locks around inp that are not needed for an atomically added/subtracted ref count. - slight optimization in the way we zero the array in sctp_sack_check() - It was possible to respond to a ABORT() with bad checksum with a PKT-DROP. This lead to a PKT-DROP/ABORT war. Add code to NOT send a PKT-DROP to any ABORT(). - Add an option for local logging (useful for macintosh or when you need better performing during debugging). Note no commands are here to get the log info, you must just use kgdb. - The timer code needs to be aware of if it needs to call sctp_sack_check() to slide the maps and adjust the cum-ack. This is because it may be out of sync cum-ack wise. - Added threshold managment logging. - If the user picked just the right size, that just filled the send window minus one mtu, we would enter a forever loop not copying and at the same time not blocking. Change from < to <= solves this. - Sysctl added to control the fragment interleave level which defaults to 1. - My rwnd control was not being used to control the rwnd properly (we did not add and subtract to it :-() this is now fixed so we handle small messages (1 byte etc) better to bring our rwnd down more slowly. Approved by: re@freebsd.org (Bruce Mah)
* | - Fix typo in netstat's display of Nagle algorithm - refer to the RFC.rrs2007-08-241-2/+2
| | | | | | | | | | Submitted by: bruce@cran.org.uk Approved by: re@freebsd.org (Bruce Mah)
* | Add PCI IDs for two cards:emaste2007-08-232-1/+9
| | | | | | | | | | | | | | | | | | - Adaptec RAID 3405 - Adaptec RAID 3805 Approved by: re (bmah) Submitted by: John Marra jmarra at nmu dot edu MFC After: 1 week
* | Add man pages for coretemp(4) and ichwd(4).des2007-08-233-0/+150
| | | | | | | | Approved by: re (bmah)
* | Return EADDRNOTAVAIL instead of EDESTADDRREQ error whenemax2007-08-232-2/+2
| | | | | | | | | | | | | | | | listen(2) is called on improperly bound socket. Suggested by: Iain Hibbert Approved by: re (kensmith) MFC after: 3 days
* | Export 4Gbps Fibre Channel link speed correctly with inquiry commands.jkim2007-08-231-9/+8
| | | | | | | | | | Approved by: re (kensmith) MFC after: 3 days
* | Fix pkg_add behaviour to preserve pathnames.krion2007-08-231-1/+1
| | | | | | | | | | | | | | PR: bin/93915 bin/109134 Submitted by: Jason Heiss <heissj@yahoo-inc.com>, Constantin Stefanov<cstef@mail.ru> Approved by: re@ (kensmith) MFC after: 7 days
* | Style nits + more reliable Tj(max) detection + improved reporting ofdes2007-08-231-34/+42
| | | | | | | | | | | | | | critical temperature + sched_unbind() after rdmsr + initialize sc_dev. Submitted by: Rui Paulo <rpaulo@fnop.net>, cnst Approved by: re (kensmith)
* | Use POSIX mutex instead of Solaris ones. This makes generationdelphij2007-08-231-8/+8
| | | | | | | | | | | | | | | | of threaded RPC servers to work out of the box. Spotted by: Changming Sun <changming at staff.sina.com.cn> Sponsored by: SINA Corporation Approved by: re (kensmith)
* | sysent.h is installed as sys/sysent.h, so reflect it.delphij2007-08-231-1/+1
| | | | | | | | | | | | Approved by: re (kensmith) Spotted by: Changming Sun <changming at staff.sina.com.cn> Sponsored by: SINA Corporation
* | When checking the sequence number of a TCP header embedded in andhartmei2007-08-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ICMP error message, do not access th_flags. The field is beyond the first eight bytes of the header that are required to be present and were pulled up in the mbuf. A random value of th_flags can have TH_SYN set, which made the sequence number comparison not apply the window scaling factor, which led to legitimate ICMP(v6) packets getting blocked with "BAD ICMP" debug log messages (if enabled with pfctl -xm), thus breaking PMTU discovery. Triggering the bug requires TCP window scaling to be enabled (sysctl net.inet.tcp.rfc1323, enabled by default) on both end- points of the TCP connection. Large scaling factors increase the probability of triggering the bug. PR: kern/115413: [ipv6] ipv6 pmtu not working Tested by: Jacek Zapala Reviewed by: mlaier Approved by: re (kensmith)
* | Forced commit to note repo-copy:yar2007-08-230-0/+0
| | | | | | | | | | | | | | | | | | | | These files have been repo-copied from src/include/fts.h and src/lib/libc/gen/fts.c to serve as a base for 4.4BSD compatible versions of fts(3) functions to be preserved through libc symbol versioning while the default versions undergo ABI-breaking extension to support big file trees. Approved by: re (kensmith)
* | NMIs now come from 'nmi_calltrap' rather than 'calltrap', so teach 'kgdb'jhb2007-08-221-0/+1
| | | | | | | | | | | | | | to treat the frame under 'nmi_calltrap' as a trapframe. MFC after: 3 days Approved by: re (bmah)
* | Bring in two fixes for TinyBSD:remko2007-08-228-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add the bind mtree to the TinyBSD build so that files can be installed there (else the build fails) - Change GEOM_GPT to GEOM_PART_GPT since that had been renamed in current. The kernel configuration provided by TinyBSD will not build without these changes. PR: misc/115484 PR: misc/115405 Submitted by: Richard Arends <richard at unixguru dot nl> Approved by: re (bmah) Approved by: imp (mentor)
* | - Fix origin of the portcheckout port as we have it in the port-mgmtgabor2007-08-221-2/+2
| | | | | | | | | | | | | | | | | | | | category now PR: docs/115193 Submitted by: Tomas Mozes <hydrapolic at gmail dot com> Approved by: re (bmah), keramida (mentor) MFC after: 0 days
* | - Use mount -t msdosfs instead of mount_msdosfsgabor2007-08-221-2/+2
| | | | | | | | | | | | | | | | PR: docs/115571 Submitted by: rodrigc Approved by: re (bmah), keramida (mentor) MFC after: 1 week
* | - Fix a copy-paste bug in the list of supported chipsgabor2007-08-221-2/+2
| | | | | | | | | | | | | | PR: docs/115151 Submitted by: O. Hartmann <ohartman at zedat dot fu-berlin dot de> Approved by: re (bmah), keramida (mentor)
* | - Fix a bug which could cause a panic when enabling LROgallatin2007-08-225-24755/+25813
| | | | | | | | | | | | | | | | | | | | | | on an down mxge interface - Fix a bug where mxge reported the link state as active when it wasn't (after ifconfig down). - Prevent spurious watchdog resets when link partner is not consuming - Add support for CX4 and popular XFP media detection - Update the firmware and associated header files to 1.4.25 Approved by: re (kensmith)
* | Assign sizes to assembly language support functions.jkoshy2007-08-224-8/+77
| | | | | | | | Approved by: re (kensmith)
* | Define an END() macro for use in i386 and amd64 assembly code, akinjkoshy2007-08-224-0/+7
| | | | | | | | | | | | to the one available on the ia64, sparc64, and sun4v architectures. Approved by: re (kensmith)
* | Add thr_kill2 syscall.davidxu2007-08-221-0/+3
| | | | | | | | | | Submitted by: Tijl Coosemans tijl at ulyssis dot org Approved by: re (kensmith)
* | Add a HARDWARE section which lists supported devices.sanpei2007-08-211-0/+4
| | | | | | | | | | | | | | Kyocera AH-K3001V Mobile Phone(WILLCOM) Kyocera WX320K Mobile Phone(WILLCOM) Approved by: re (bmah)
* | Properly initialize the dev_priv before calling the i915_dma_cleanup().kib2007-08-211-3/+2
| | | | | | | | | | | | | | | | This fixes my rev. 1.5. Reviewed by: anholt Approved by: re (kensmith) MFC after: 2 weeks
* | In general, when we map a page into the kernel's address space, we noalc2007-08-212-8/+6
| | | | | | | | | | | | | | | | | | | | | | longer create a pv entry for that mapping. (The two exceptions are mappings into the kernel's exec and pipe submaps.) Consequently, there is no reason for get_pv_entry() to dig deep into the free page queues, i.e., use VM_ALLOC_SYSTEM, by default. This revision changes get_pv_entry() to use VM_ALLOC_NORMAL by default, i.e., before calling pmap_collect() to reclaim pv entries. Approved by: re (kensmith)
* | Some times ago, vfs_getopts() was changed, so that it would set error tocognet2007-08-201-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | ENOENT if the option wasn't provided, instead of setting it to 0. xfs however didn't catch up on this, so it assumed something went bad if vfs_getopts() sets the error to non-zero, and just returns the error. Unbreak xfs mount by just ignoring the error if vfs_getopts() sets the error to ENOENT, as we should have sane defaults. Reviewed by: kan Approved by: re (rwatson) Tested by: rpaulo
* | Do not drop vm_map lock between doing vm_map_remove() and vm_map_insert().kib2007-08-203-18/+40
| | | | | | | | | | | | | | | | | | | | | | For this, introduce vm_map_fixed() that does that for MAP_FIXED case. Dropping the lock allowed for parallel thread to occupy the freed space. Reported by: Tijl Coosemans <tijl ulyssis org> Reviewed by: alc Approved by: re (kensmith) MFC after: 2 weeks
* | Destroy the kaio_mtx on the freeing the struct kaioinfo in thekib2007-08-201-1/+5
| | | | | | | | | | | | | | | | | | | | aio_proc_rundown. Do not allow for zero-length read to be passed to the fo_read file method by aio. Reported and tested by: Peter Holm Approved by: re (kensmith)
* | - Improve runq_findbit_from() which is used by ULE's circular queue. Maskjeff2007-08-201-32/+22
| | | | | | | | | | | | | | | | | | of the bits we want to ignore on the first pass rather than doing a linear scan. This puts us within a few instructions of the cost of runq_findbit() and removes this function from the top of profiling output for context switch heavy workloads. Approved by: re
* | - Set steal_thresh to log2(ncpus). This improves idle-time load balancingjeff2007-08-201-0/+6
| | | | | | | | | | | | | | | | on 2cpu machines by reducing it to 1 by default. This improves loaded operation on 8cpu machines by increasing it to 3 where the extra idle time is not as critical. Approved by: re
* | Always call sched_bind(), even if on the CPU in question. It is wrong tonjl2007-08-201-25/+15
| | | | | | | | | | | | | | | | check if we're already on that cpu and skip the bind since the thread could be migrated off in the meantime. Suggested by: jeff Approved by: re
* | Use a different loop variable for the inner loop. This previous reuse couldnjl2007-08-191-4/+4
| | | | | | | | | | | | | | | | | | have caused a hang, but we got lucky with the available multi-CPU states on actual hardware. Submitted by: Bjorn Koenig <bkoenig / alpha-tierchen.de> Approved by: re MFC after: 3 days
* | This commit updates libarchive to be compatible withkientzle2007-08-182-183/+600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GNU tar 1.17's implementation of --posix --sparse, at the cost of losing compatibility with GNU tar 1.16. Fortunately, the 1.17 implementation actually makes sense, so the libarchive code is now a bit more straightforward than before. Background: GNU tar 1.16 defined a new way to store sparse files in --posix archives. Unfortunately, the implementation incorrectly inserted several blocks of null padding after each such entry. As a result, non-GNU tar implementations saw the archive as truncated after any sparse entry. This was fixed in GNU tar 1.17 at the cost of losing compatibility with GNU tar 1.16 for this new format (which is not the default, so hopefully rarely used). Libarchive recently gained support for reading the GNU tar 1.16 formats; this commit updates it to read the GNU tar 1.17 variant instead. Approved by: re (ksmith for libarchive portion) Approved by: re (blanket for libarchive_test portion) MFC after: 5 days
* | Remove references to the now-deleted installation notes and add abmah2007-08-181-34/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pointer to the installation chapter of the Handbook (it might be a good idea to sprinkle a few more through this article). De-emphasize the floppy disk part of installation media; it's generally believed that most users install from CDROM or DVD nowadays. Use &arch.* entities where appropriate. Bump copyright date while here. Approved by: re (implicitly)
* | Just wbinv if both PREREAD and PREWRITE are set.cognet2007-08-181-3/+9
| | | | | | | | | | | | | | In PREREAD, just invalidate the cache lines, and do not write back them, if the buffer is properly aligned. Approved by: re (blanket)
OpenPOWER on IntegriCloud