summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r267616, 267640:ume2014-06-251-29/+62
| | | | | | | | | | | | | | | Retooling addrconfig() to exclude addresses on loopback interfaces when looking for configured addresses. This change is based upon the code from the submitter, and made following changes: - Exclude addresses assigned on interfaces which are down, like NetBSD does. - Exclude addresses assigned on interfaces which are ifdisabled. Use SOCK_CLOEXEC. PR: 190824 Submitted by: Justin McOmie
* MFC r267634: Fix case where fastroute or "to interface" is used withcy2014-06-251-1/+1
| | | | | | | | incorrect FIB. PR: 183065 Submitted by: p-freebsd-bugs@ziemba.us Approved by: glebius (mentor)
* MFC: r267145marius2014-06-251-1/+1
| | | | | | | | | Fix the keyfile being cleared prematurely after r259428 (MFCed to stable/10 in r266749). PR: 185084 Submitted by: fk@fabiankeil.de Reviewed by: pjd
* MFC r267757:np2014-06-2511-17171/+18271
| | | | | | cxgbe(4): Update the bundled T4 and T5 firmwares to versions 1.11.27.0 Obtained from: Chelsio
* Document FreeBSD-SA-14:15.iconv and FreeBSD-SA-14:16.filegjb2014-06-251-0/+13
| | | | Sponsored by: The FreeBSD Foundation
* Fix multiple vulnerabilities in file(1) and libmagic(3).delphij2014-06-245-26/+37
| | | | | Security: FreeBSD-SA-14:16.file Approved by: so
* MFC r267599:bdrewery2014-06-242-2/+10
| | | | | | | - Add a LOCAL_ITOOLS to allow adding additional tools required for the installworld and distributeworld targets PR: 179562
* MFC r267564:kib2014-06-248-63/+48
| | | | | In msdosfs_setattr(), add a check for result of the utimes(2) permissions test. Refactor the permission checks for utimes(2).
* MFC r267704:dim2014-06-243-0/+164
| | | | | | | | | | | | | | | | | | | | | | Pull in r211435 from upstream llvm trunk (by Benjamin Kramer): Legalizer: Add support for splitting insert_subvectors. We handle this by spilling the whole thing to the stack and doing the insertion as a store. PR19492. This happens in real code because the vectorizer creates v2i128 when AVX is enabled. This fixes a "fatal error: error in backend: Do not know how to split the result of this operator!" message encountered during compilation of the net-p2p/libtorrent-rasterbar port. Reported by: Evgeniy <iron@mail.ua> MFC r267705: Add the llvm patch for r267704.
* MFC r263795:rodrigc2014-06-231-4/+8
| | | | | | | | | | | | | Strict value checking will cause problem. Bay trail DN2820FYKH is supported on Linux but does not work on FreeBSD. This behaviour is bug-compatible with Linux-3.13.5. References: http://d.hatena.ne.jp/syuu1228/20140326 http://lxr.linux.no/linux+v3.13.5/arch/x86/kernel/acpi/boot.c#L1094 Submitted by: syuu PR: 187966
* Undo bad merge.rodrigc2014-06-232-18/+7
|
* MFC r263795:rodrigc2014-06-232-7/+18
| | | | | | | | | | | | | Strict value checking will cause problem. Bay trail DN2820FYKH is supported on Linux but does not work on FreeBSD. This behaviour is bug-compatible with Linux-3.13.5. References: http://d.hatena.ne.jp/syuu1228/20140326 http://lxr.linux.no/linux+v3.13.5/arch/x86/kernel/acpi/boot.c#L1094 Submitted by: syuu PR: 187966
* MFC r267601:pfg2014-06-233-184/+186
| | | | | | stdtime: style(9) fixes. Obtained from: illumos
* MFC r267124, r267582:emaste2014-06-234-0/+16
| | | | | | Install VT support files They can be disabled by setting WITHOUT_VT_SUPPORT=yes in src.conf.
* MFC: r267638marius2014-06-231-3/+3
| | | | | | | | | | | | Don't denounce peripherals on system shutdown. Together with r267321 (MFCed to stable/10 in r267775), we're now back to the pre-r228483 level of default verbosity. This in turn again typically allows for reading information that userland might have printed on the screen before initiating a halt, but still permits to debug potential device shutdown problems on system shutdown via CAM_DEBUG etc. Reviewed by: mav Sponsored by: Bally Wulff Games & Entertainment GmbH
* MFC: r267321marius2014-06-232-8/+13
| | | | | | | | | Avoid the USB device disconnected and controller shutdown clutter on system shutdown by putting the former under !rebooting and turning the latter into debug messages. Reviewed by: hps Sponsored by: Bally Wulff Games & Entertainment GmbH
* MFC r267254:kib2014-06-232-40/+68
| | | | | | | Make mmap(MAP_STACK) search for the available address space. MFC r267497 (by alc): Use local variable instead of sgrowsiz.
* MFC r267688:tuexen2014-06-231-21/+20
| | | | | Fix a bug which incorrectly allowed two listening SCTP sockets on the same port bound to the wildcard address.
* MFC r267682:tuexen2014-06-231-3/+3
| | | | | | Fix a bug in the setsockopt()-handling of the SCTP specific option SCTP_PEER_ADDR_THLDS: Use the provided address as intended.
* MFC r267674:tuexen2014-06-236-20/+336
| | | | | | | | | Honor jails for unbound SCTP sockets when selecting source addresses, reporting IP-addresses to the peer during the handshake, adding addresses to the host, reporting the addresses via the sysctl interface (used by netstat, for example) and reporting the addresses to the application via socket options. This issue was reported by Bernd Walter.
* MFC r267689:np2014-06-231-3/+4
| | | | | | Consider the total number of descriptors available (and not just those that are ready to be reclaimed) when deciding whether to resume tx after a stall.
* MFC r267429:mav2014-06-221-2/+7
| | | | Fix some leaks on LUN creation error.
* MFC r267479:mav2014-06-221-19/+21
| | | | Fix/improve fhe_stats sysctl output.
* MFC r267351:mav2014-06-221-12/+15
| | | | | | Move root_mount_hold() functionality to separate mutex. It has nothing to share with mutex protecting list of mounted file systems.
* MFC r267391:mav2014-06-221-1/+2
| | | | | Introduce new "256 Bucket" zone to split requests and reduce congestion on "128 Bucket" zone lock.
* MFC r267387:mav2014-06-221-0/+2
| | | | | | | | | Allocating new bucket for bucket zone, never take it from the zone itself, since it will almost certanly fail. Take next bigger zone instead. This situation should not happen with original bucket zones configuration: "32 Bucket" zone uses "64 Bucket" and vice versa. But if "64 Bucket" zone lock is congested, zone may grow its bucket size and start biting itself.
* MFC r267392:mav2014-06-221-0/+30
| | | | | | | | | | | | | | | Implement simple direct-mapped cache for popular filesystem identifiers to avoid congestion on global mountlist_mtx mutex in vfs_busyfs(), while traversing through the list of mount points. This change significantly improves NFS server scalability, since it had to do this translation for every request, and the global lock becomes quite congested. This code is more optimized for relatively small number of mount points. On systems with hundreds of active mount points this simple cache may have many collisions. But the original traversal code in that case should also behave much worse, so we are not loosing much.
* MFC r267362:mav2014-06-221-4/+1
| | | | | | Remove unneeded mountlist_mtx acquisition from sync_fsync(). All struct mount fields accessed by sync_fsync() are protected by MNT_MTX.
* MFC r267512:pfg2014-06-222-2/+3
| | | | | | | | | | patch: add dry-run alias for compatibility with other implementations. Other implementations of patch(1), including GNU patch and "svn patch" have a --dry-run option which does the same as our -C or --check option. Add a new alias to make our implementation more compatible.
* MFC r267490:pfg2014-06-223-11/+15
| | | | | | | | | | | | | | | patch: unsign the line length to avoid overflows. Patch(1) uses a short int for the line length, which is usually sufficient for regular diffs, but makes no effort to signal when there is an overflow. Change the line length to an unsigned short int to better use the fact that a length is never negative. The change is loosely inspired on a related change in DragonFly, but we avoid spending more memory than necessary. While here adjust the messages to be clearer on what is happening.
* MFC r267232, r267239:mav2014-06-221-9/+11
| | | | | | | | Use atomics to modify numvnodes variable. This allows to mostly avoid lock usage in getnewvnode_[drop_]reserve(), that reduces number of global vnode_free_list_mtx mutex acquisitions from 4 to 2 per NFS request on ZFS, improving SMP scalability.
* MFC r267228:mav2014-06-223-182/+250
| | | | | | | | | | | | | Split RPC pool threads into number of smaller semi-isolated groups. Old design with unified thread pool was good from the point of thread utilization. But single pool-wide mutex became huge congestion point for systems with many CPUs. To reduce the congestion create several thread groups within a pool (one group for every 6 CPUs and 12 threads), each group with own mutex. Each connection during its registration is assigned to one of the groups in round-robin fashion. File affinify code may still move requests between the groups, but otherwise groups are self-contained.
* MFC r267223:mav2014-06-222-6/+1
| | | | Remove st_idle variable, duplicating st_xprt.
* MFC r267221, r267278:mav2014-06-223-85/+59
| | | | | | | Introduce new per-thread lock to protect the list of requests. This allows to slightly simplify svc_run_internal() code: if we processed all the requests in a queue, then we know that new one will not appear.
* MFC r267329:tuexen2014-06-221-2/+3
| | | | | Add support for the SCTP_LOCAL_TRACE_BUF options. While there, fix some whitespaces.
* MFC r267105:tuexen2014-06-221-4/+4
| | | | | Use ENOBUFS instead of ENOMEM in error situations related to m_uiotombuf(). This was suggested by kevlo@.
* MFC r265691:tuexen2014-06-221-10/+6
| | | | | | | | | | For some UDP packets (for example with 200 byte payload) and IP options, the IP header and the UDP header are not in the same mbuf. Add code to in_delayed_cksum() to deal with this case. MFC r265713: Use KASSERTs as suggested by glebius@
* MFC r265455:tuexen2014-06-222-27/+29
| | | | | | Remove unused code. This is triggered by the bugreport of Sylvestre Ledru which deal with useless code in the user land stack: https://bugzilla.mozilla.org/show_bug.cgi?id=1003929
* Merge r267482,r267483,r267486,r267577,r267671,r267672 from head:gavin2014-06-2230-4235/+26
| | | | | Remove send-pr and fix up all references to it. Replace it with a stub send-pr directing people towards the web site.
* MFC r264838:tuexen2014-06-221-1/+15
| | | | | | Don't free an mbuf twice. This only happens in very rare error cases where the peer sends illegal sequencing information in DATA chunks for an existing association.
* MFC r264704:tuexen2014-06-221-1/+36
| | | | | Add consistency checks to ensure that fragments of a user message have the same U-bit.
* MFC r264701:tuexen2014-06-221-3/+0
| | | | | Send also a packet containing an ABORT chunk in response to an OOTB packet containing a COOKIE-ECHO chunk.
* MFC r264682:tuexen2014-06-221-1/+1
| | | | Use consistently debug output instead of an unconditional printf.
* MFC r264679:tuexen2014-06-224-1/+41
| | | | | Send the correct error cause, when a DATA chunk with no user data is received. This bug was reported by Irene Ruengeler.
* MFC r264241:tuexen2014-06-221-10/+10
| | | | | Call sctp_addr_change() from rt_addrmsg() instead of rt_newaddrmsg_fib(), since rt_addrmsg() gets also called from other functions.
* MFC r264017:tuexen2014-06-221-1/+2
| | | | | Increment the SSN only after processing the last fragment of an ordered user message.
* MFC r263922:tuexen2014-06-221-1/+8
| | | | | | | Handle an edge case of address management similar to TCP. This needs to be reconsidered when the address handling will be reimplemented. The patch is from rrs@.
* MFC r263921:tuexen2014-06-222-10/+4
| | | | Use SCTP_OVER_UDP_TUNNELING_PORT more consistently.
* MFC r263237:tuexen2014-06-2212-665/+275
| | | | | | | | | | * Provide information in error causes in ASCII instead of proprietary binary format. * Add support for a diagnostic information error cause. The code is sysctlable and the default is 0, which means it is not sent. This is joint work with rrs@.
* MFC r263096:tuexen2014-06-221-4/+4
| | | | | | | | | | Put the offset of the CRC32C in csum_data instead of 0. The virtio driver needs the offset to be stored in csum_data, like in the case for UDP and TCP. The virtio problem was reported by Niu Zhixiong <kaiaixi@gmail.com>, who helped in debugging and testing the patch.
OpenPOWER on IntegriCloud