summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 'aclmode' and 'aclinherit' properties should work as advertised; don'ttrasz2009-10-081-2/+0
| | | | refuse to set them.
* Fix so that round robing stream scheduling works as advertisedrrs2009-10-081-25/+4
| | | | MFC after: 0 days
* Discard Device Control Strings and Operating System Commands.ed2009-10-083-3/+35
| | | | | | | | | | | | | | These strings often contain things like: - Window titles. - Extended key map functionality. - Color palette switching. We could look at these features in the future (if people consider them to be important enough), but we'd better discard them now. This fixes some artifacts people reported when using TERM=xterm. Reported by: des@, Paul B. Mahol
* Add a special workaround to handle UIO_NOCOPY case. This fixes datadelphij2009-10-071-24/+80
| | | | | | | | corruption observed when sendfile() is being used. PR: kern/127213 Submitted by: gk MFC after: 2 weeks
* Fix build on amd64.delphij2009-10-071-4/+5
| | | | | PR: misc/139409 Submitted by: gk
* Clarify quoting of word in ${v=word} in sh(1).jilles2009-10-071-0/+3
|
* Add the comment "(FreeBSD only)" to the altmonth_x keywordsedwin2009-10-071-12/+12
| | | | MFC after: 1 week
* On FreeBSD it is enough to report provider removal when orphan event ispjd2009-10-071-20/+0
| | | | | | | received, we don't have to do it on every ENXIO error in I/O path. Solaris has no GEOM so they have to handle it in a less clean way. MFC after: 3 days
* Fix white-spaces.pjd2009-10-071-6/+6
| | | | MFC after: 3 days
* Add a new errno, ENOTCAPABLE, to be returned when a process requests anrwatson2009-10-073-1/+9
| | | | | | | | operation on a file descriptor that is not authorized by the descriptor's capability flags. MFC after: 1 month Sponsored by: Google
* Handle GRANTED_RES messages more gracefully: Send along a grant cookiezml2009-10-073-18/+152
| | | | | | | | | to reference the lock, look up the grant cookie when the GRANTED_RES comes back. Properly handle the case of an error on the grant. Add a short expiration window so that granted locks are not freed immediately. Approved by: dfr (mentor) MFC after: 2 weeks
* On command timeout handle frozen command first, to not run it insidemav2009-10-072-6/+8
| | | | | | XXX_end_transaction(). Submitted by: avg
* - Give a name to the host coalescing bug fix WDMA mode register bit insteadstas2009-10-072-1/+2
| | | | | of using hardcoded value in the code. Obtained from: OpenBSD
* - Document that 'Dell PowerEdge R710' has bce(4) supported NIC.simon2009-10-071-1/+3
| | | | | | - Bump document date. MFC after: 3 days
* - Document new revisions of chips supported.stas2009-10-071-4/+4
|
* When run() returns an error, print the error message also injh2009-10-071-2/+6
| | | | | | | | | non-interactive mode. Previously error messages were printed only in interactive mode. PR: bin/124517 Approved by: trasz (mentor) MFC after: 1 month
* - Add support for new BGE chips (5761, 5784 and 57780). These chips uses newstas2009-10-072-74/+173
| | | | | | | | | | | BGE_PCI_PRODID_ASICREV register to store the chip identifier and its revision. - Add new grouping macro for 7575+ chips (BGE_IS_5755_PLUS). - Add IDs for Fujitsu-branded Broadcom adapters. PR: kern/127587 Tested by: Thomas Quinot <thomas@quinot.org> (BCM7561 A0) MFC after: 2 weeks Obtained from: OpenBSD
* Fix situation where Mac OS X NFS client creates a file and when it triespjd2009-10-071-1/+17
| | | | | | | | | to set ownership and mode in the same setattr operation, the mode was overwritten by secpolicy_vnode_setattr(). PR: kern/118320 Submitted by: Mark Thompson <info-gentoo@mark.thompson.bz> MFC after: 3 days
* Add parsing code for TCP UTO (User Timeout Option).rpaulo2009-10-072-0/+14
| | | | | Submitted by: fangwang@ Obtained from: //depot/projects/soc2009/tcputo/
* - All the functions in atomic.h needs to be in "physical" form (likeattilio2009-10-062-91/+79
| | | | | | | | | | | | not defined through macros or similar) in order to be later compiled in the kernel and offer this way the support for modules (and compatibility among the UP case and SMP case). Fix this for the newly introduced atomic_cmpset_barr_* cases by defining and specifying a template. Note that the new DEFINE_CMPSET_GEN() template save more typing on amd64 than the current code. [1] - Fix the style for memory barriers on amd64. [1] Reported by: Paul B. Mahol <onemda at gmail dot com>
* sh: Send the "xyz: not found" message to redirected fd 2.jilles2009-10-063-7/+32
| | | | | | | | | | This also fixes that trying to execute a non-regular file with a command name without '/' returns 127 instead of 126. The fix is rather simplistic: treat CMDUNKNOWN as if the command were found as an external program. The resulting fork is a bit wasteful but executing unknown commands should not be very frequent. PR: bin/137659
* Prevent paging pressure from draining arc too muchkmacy2009-10-061-3/+6
| | | | | | - always drain arc if above arc_c_max - never drain arc if arc is below arc_c_max MFC after: 3 days
* Remove tcp_input lock statistics; these are intended for debugging onlyrwatson2009-10-061-32/+2
| | | | | | | and are not intended to ship in 8.0 as they dirty additional cache lines in a performance-critical per-packet path. MFC after: 3 days
* Fix tcsh losing history when tcsh terminates because the pty beneath itrdivacky2009-10-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is closed. Diagnosed by Ted Anderson: New signal queuing logic was introduced in 6.15 and allows the signal handlers to be run explicitly by calling handle_pending_signals, instead of immediately when the signal is delivered. This function is called at various places, typically when receiving a EINTR from a slow system call such as read or write. In the pty exit case, it was called from xwrite, called from flush, while printing the "exit" message after receiving EOF when reading from the pty (note that the read did not return EINTR but zero bytes, indicating EOF). The SIGHUP handler, phup(), called rechist, which opened the history file and began writing the merged history to it. This process invoked flush recursively to actually write the data. In this case, however, the flush noticed it was being called recursively and decided fail by calling stderror. My conclusion was that the signal was being handled at a bad time. But whether to fix flush not to care about the recursive call, or to handle the signal some other time and when to handle it, was unclear to me. However, by adding an extra call to handle_pending_signals, just after process() returns to main(), I was able to avoid the truncated history after network outages and similar failures. I verified this fix in version 6.17. Approved by: ed (mentor) MFC after: 1 week
* In rtld's map_object(), use pread(..., 0) rather than read() to read therwatson2009-10-061-1/+1
| | | | | | | | | ELF header from the front of the file. As all other I/O on the binary is done using mmap(), this avoids the need for seek privileges on the file descriptor during run-time linking. MFC after: 1 month Sponsored by: Google
* Add basename_r(3) to complement basename(3). basename_r(3) which acceptsrwatson2009-10-065-13/+34
| | | | | | | | a caller-allocated buffer of at least MAXPATHLEN, rather than using a global buffer. MFC after: 1 month Sponsored by: Google
* Per their definition, atomic instructions used in conjuction withattilio2009-10-062-92/+140
| | | | | | | | | | | | | | | | | | | | | | | | memory barriers should also ensure that the compiler doesn't reorder paths where they are used. GCC, however, does that aggressively, even in presence of volatile operands. The most reliable way GCC offers for avoid instructions reordering is clobbering "memory" even if that is theoretically an heavy-weight operation, flushing the content of all the registers and forcing reload of them (We could rely, however, on gcc DTRT by just understanding the purpose as this is a well-known pattern for many modern operating-systems). Not all our memory barriers, right now, clobber memory for GCC-like compilers. The most notable cases are IA32 and amd64 where the memory barrier are treacted the same as normal atomic instructions. Fix this by offering the possibility to implement atomic instructions with memory barriers separately from the normal version and implement the GCC-like specific one using memory clobbering. Thanks to Chris Lattner (@apple) for his discussion on llvm specifics. Reported by: jhb Reviewed by: jhb Tested by: rdivacky, Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
* Expand $FreeBSD$des2009-10-060-0/+0
|
* o Fix typo: "an in particular" -> "and in particular".maxim2009-10-061-1/+1
| | | | | | PR: docs/139370 Submitted by: Kenyon Ralph MFC after: 1 week
* "Potluck Pogo" was a collection of Walt Kelly's "Pogo" cartoonsdougb2009-10-062-2/+2
| | | | first published in 1955. "Putluck Pogo" seems to be a typo.
* In tcp_input(), we acquire a global write lock at first only if arwatson2009-10-051-1/+4
| | | | | | | | | | | | segment is likely to trigger a TCP state change (i.e., FIN/RST/SYN). If we later have to upgrade the lock, we acquire an inpcb reference and drop both global/inpcb locks before reacquiring in-order. In that gap, the connection may transition into TIMEWAIT, so we need to loop back and reevaluate the inpcb after relocking. MFC after: 3 days Reported by: Kamigishi Rei <spambox at haruhiism.net> Reviewed by: bz
* Fix build on amd64, where sysctl arg1 is a pointer.rwatson2009-10-051-1/+1
| | | | | Reported by: Mr Tinderbox MFC after: 3 months
* fts_open() requires that the list passed as argument to contain at leastdelphij2009-10-052-2/+8
| | | | | | | | | one path. When the list is empty (contain only a NULL pointer), return EINVAL instead of pretending to succeed, which will cause a NULL pointer deference in a later fts_read() call. Noticed by: Christoph Mallon (via rdivacky@) MFC after: 2 weeks
* cxgb(4) updates, including:np2009-10-0515-2594/+4408
| | | | | | | | | | - support for the new Gen-2, BT, and LP-CR cards. - T3 firmware 7.7.0 - shared "common code" updates. Approved by: gnn (mentor) Obtained from: Chelsio MFC after: 1 month
* Fix a case when both ${name}_program and ${command} are defined.hrs2009-10-051-1/+1
| | | | Spotted by: Michio "Karl" Jinbo
* Fix NFSv4 ACLs on sparc64. Turns out that fuword(9) fetches 64 bitstrasz2009-10-051-1/+1
| | | | | | | | | instead of sizeof(int), and on sparc64 that resulted in fetching wrong value for acl_maxcnt, which in turn caused __acl_get_link(2) to fail with EINVAL. PR: sparc64/139304 Submitted by: Dmitry Afanasiev <KOT at MATPOCKuH.Ru>
* Belatedly add my calendar entry.bcr2009-10-051-0/+1
| | | | | Discussed with: remko Approved by: remko, jkois (mentor)
* pam_ssh needs roaming_dummy to link correctly against libssh.des2009-10-051-0/+3
|
* Add more symbols that need to be masked:des2009-10-051-1/+19
| | | | | | | - initialized and uninitialized data - symbols from roaming_dummy.c which end up in pam_ssh Update the command line used to generate the #defines.
* - Revert r191568 partially. Forcing AHCI mode by changing device subclassjkim2009-10-051-63/+31
| | | | | | | | | and progif is evil. It doesn't work reliably[1] and we should honor BIOS configuration by the user. - If the SATA controller is enbled but combined mode is disabled, mask off the emulated IDE channel on the legacy IDE controller. Pointed out by: mav[1]
* A few regression tests for SOCK_SEQPACKET UNIX domain sockets.rwatson2009-10-054-0/+593
| | | | Sponsored by: Google
* Make fetch(9) and store(9) manual pages closer to reality.trasz2009-10-053-27/+52
|
* Bump unix(4) man page date for SOCK_SEQPACKET.rwatson2009-10-051-1/+1
| | | | | Suggested by: bz MFC after: 3 months
* SOCK_SEQPACKET is now supported on UNIX domain sockets.rwatson2009-10-051-4/+9
| | | | | Sponsored by: Google MFC after: 3 months
* netstat(1) support for UNIX SOCK_SEQPACKET sockets -- changes were requiredrwatson2009-10-053-7/+26
| | | | | | | only for the kvm case, as we supported SOCK_SEQPACKET via sysctl already. Sponsored by: Google MFC after: 3 months
* Add myself.jh2009-10-051-0/+4
| | | | Approved by: trasz (mentor)
* First cut at implementing SOCK_SEQPACKET support for UNIX (local) domainrwatson2009-10-051-16/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | sockets. This allows for reliable bi-directional datagram communication over UNIX domain sockets, in contrast to SOCK_DGRAM (M:N, unreliable) or SOCK_STERAM (bi-directional bytestream). Largely, this reuses existing UNIX domain socket code. This allows applications requiring record- oriented semantics to do so reliably via local IPC. Some implementation notes (also present in XXX comments): - Currently we lack an sbappend variant able to do datagrams and control data without doing addresses, so we mark SOCK_SEQPACKET as PR_ADDR. Adding a new variant will solve this problem. - UNIX domain sockets on FreeBSD provide back-pressure/flow control notification for stream sockets by manipulating the send socket buffer's size during pru_send and pru_rcvd. This trick works less well for SOCK_SEQPACKET as sosend_generic() uses sb_hiwat not just to manage blocking, but also to determine maximum datagram size. Fixing this requires rethinking how back-pressure is done for SOCK_SEQPACKET; in the mean time, it's possible to get EMSGSIZE when buffers fill, instead of blocking. Discussed with: benl Reviewed by: bz, rpaulo MFC after: 3 months Sponsored by: Google
* When the timeout backoff hits the maximum value, leave it capped at thejhb2009-10-051-1/+1
| | | | | | | | maximum value rather than setting it to the result of a boolean expression that is always true. Submitted by: Joseph Kong MFC after: 1 month
* - Drop unused pmap_use_l1 function and comment out currently unusedstas2009-10-051-46/+8
| | | | | | | | pmap_dcache_wbinv_all/pmap_copy_page functions which we might want to take advatage of later. This fixes the build with PMAP_DEBUG defined. Discussed with: cognet
* tabifydes2009-10-057-14/+14
| | | | MFC after: 3 weeks
OpenPOWER on IntegriCloud