summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* MFC r263094:tuexen2014-06-221-2/+2
| | | | | | SCTP uses CRC32C and not Adler anymore. While there change the reference to RFC 4960. This does not change any code, just comments.
* MFC r262252:tuexen2014-06-222-6/+2
| | | | Remove redundant code and fix a style error.
* MFC r267492:kib2014-06-221-24/+6
| | | | | Fix some cosmetic issues with the use of kmem_malloc() in the i386 LDT sysarch(2) code.
* MFC r267255:kib2014-06-221-27/+42
| | | | | | | Change the nblock mutex to rwlock. MFC r267264: Devolatile as needed.
* MFC r267426, r267464:pfg2014-06-212-32/+12
| | | | | | | | | | | | | | | | | Avoid zeroing during allocation. This change reverts a change from OpenBSD which made use of calloc, and therefore wasted time initializing arrays that will later be realloc'ed. Consistently use FreeBSD's reallocf(): - Drop some bogus casts to size_t. - The new_p_foo variables are not needed anymore. Also merge the changes from OpenBSD's manpage patch.1 Rev 1.27: "patch was moved from user portability (UP) to base in issue 7 and is no longer optional"
* MFC r267600:np2014-06-212-10/+18
| | | | | cxgbe(4): Fix bug in the fast rx buffer recycle path. In some cases rx buffers were getting recycled when they should have been left alone.
* Update list of SAs on the 10.0R errata page.gjb2014-06-201-0/+48
| | | | Sponsored by: The FreeBSD Foundation
* MFC r267544:pfg2014-06-201-28/+5
| | | | | | | | | | | | | | | | | | | | | Update license to strptime(3) implementation. Our strptime(3) implementation was the base for the illumos implementation and after contacting the author, Kevin Rudy stated the code is under a 2-Clause BSD License [1] After reviewing our local changes to the file in question, the FreeBSD Foundation has agreed that their contributions to this file are not required to carry clause 3 or 4 so the file can be relicensed as in Illumos [2]. References: [1] https://www.illumos.org/issues/357 [2] Illumos Revision: 13222:02526851ba75 Approved: core (jhb) Approved: FreeBSD Foundation (emaste)
* MFC r267513:pfg2014-06-203-0/+168
| | | | | | | | | Merge from r258379 missed the tests. 4248 dtrace(1M) should never create DOF with empty probes section 4249 Only probes from the first DTrace object file will be included Illumos Revision: 54a20ab41aadcb81c53e72fc65886e964e9add59
* MFC r267441:tijl2014-06-202-2/+10
| | | | | | | | Don't install GSS-API headers when the GSSAPI option has been disabled. Some ports assume GSS-API is supported when they find the headers. PR: 189156 Submitted by: Garrett Cooper <yanegomi@gmail.com>
* MFC r267436-267439:tijl2014-06-205-24/+21
| | | | | | | | | | | | | | | | | | - Replace malloc+memset with calloc. - iconv_open(3): initialise ci_ilseq_invalid field of _citrus_iconv_shared struct after allocation with malloc. - iconvlist(3): reduce a memory leak by copying strings only once. - iconv(1): - Make invalids variable local to do_conv such that it prints the number of invalid characters of the current file instead of an accumulated value. - Make do_conv return an error when invalid characters have been found. Return EXIT_FAILURE from main if any file contained invalid characters. This matches the behaviour of GNU iconv. - Mark usage with __dead2 attribute. - Make the long_options array const. Tested by: Pavel Timofeev <timp87@gmail.com>
* MFC r261270:n_hibma2014-06-181-1/+2
| | | | | | | | | Fix the ordering of the arguments to printf in uhub_child_location_string(). This produced bogus information in dev.<USB driver>.<id>.%location output from sysctl.
* MFC r267342:jimharris2014-06-181-1/+1
| | | | | | | Use bitwise OR instead of logical OR when constructing value for SET_FEATURES/NUMBER_OF_QUEUES command. Sponsored by: Intel
* MFC r267062:kib2014-06-184-3/+64
| | | | Disable existing uncore hwpmc code for Nehalem and Westmere EX.
* MFC r266901neel2014-06-171-1/+1
| | | | | | Allocate a zeroed LDT. Failing to do this might result in the LDT appearing to run out of free descriptors because of random junk in the descriptor's 'sd_type' field.
* Drop 'Inc.' for consistency.gjb2014-06-171-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Correct the spelling of iXsystems.gjb2014-06-171-1/+1
| | | | | Submitted by: delphij Sponsored by: The FreeBSD Foundation
* Add sponsorship attributions for stable/10.gjb2014-06-172-4/+11
| | | | | | | | Add iX and Netflix to the sponsors.ent file. This is a direct commit to stable/10. Sponsored by: The FreeBSD Foundation
* MFC r265590, r265594, r265595, r265599 [1], r265601 [1],gjb2014-06-175-0/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r265602 [1], r265603 [1], r265605 [1], r265607 [1], r267554 [1]: r265590: Modify release.xsl to allow proper attribution for sponsored and/or contributed works. r265594: Add two new entity files in followup to r265590, sponsor.ent and vendor.ent, which will be used for sponsor/vendor names and URLs. r265595: Add references to sponsor.ent and vendor.ent in relnotes/article.xml and share/xml/catalog.xml. r265599: Add DARPA, AFRL to sponsor.ent. r265601: Add LSI and Spectra Logic to sponsor.ent. r265602: Add Netgate to sponsor.ent. r265603: Add a note to keep the entity lists sorted alphabetically. r265605: Add Google to the sponsor.ent file. r265607: Separate &darpa; entity and create &darpa_afrl to avoid confusion. r267554: Add &citrix; and &citrix.rd; macros. [1] - Partial, entity addition only. Sponsored by: The FreeBSD Foundation
* MFC r266007:trasz2014-06-171-10/+1
| | | | Initialize loginclass mutex using MTX_SYSINIT instead of using SI_SUB_CPU.
* MFC: r267478brueffer2014-06-171-1/+1
| | | | | | | | | | MFp4: change 1191346 In print_header32_tok(), correct printing in the XML case. This lead to invalid XML files before. PR: 176259 Submitted by: zi
* MFC r267029, r267038:mav2014-06-171-0/+4
| | | | | | Replace gethrtime() with cpu_ticks(), as source of random for the taskqueue selection. gethrtime() in our port updated with HZ rate, so unusable for this specific purpose, completely draining benefit of multiple taskqueues.
* MFC r267313:bryanv2014-06-171-1/+1
| | | | Always append new bios to the tail of the queue, instead of sorting them
* Revert MFC r266925 because it can lead to instant panic at fexecve():dchagin2014-06-174-34/+4
| | | | | | To allow to run interpreter itself add a new ELF branding type. Pointed out by: kib, mjg
* MFC: 266838 266841 267194ray2014-06-166-0/+715
| | | | | | | Add gallant vt(4) font as an example of font loading for vt(4). Add Ukranian vt(4) keymaps as an example. Sponsored by: The FreeBSD Foundation
* MFC: 266836, 266839ray2014-06-164-14/+162
| | | | | | | | | | | | | vt(4) support for vidcontrol(1). o Teach vidcontrol(1) how to load vt(4) font. o Teach vidcontrol(1) to distinct which virtual terminal system is running now. o Load vt(4) fonts from different location. o Add $FreeBSD$ tag for path.h. vt(4) support for kbdcontrol(1). Enable kbdcontrol(1) to use maps from vt(4) keymaps dir /usr/share/vt/keymaps if vt(4) is present. Sponsored by: The FreeBSD Foundation
* MFC 262785 263183 264182 264999 265391 265392 265395 265397 265398 265402 265403ray2014-06-1612-288/+676
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 265442 265546 265680 265681 265719 265862 265864 265867 265927 266010 266495 266540 266835 266856 266861 266862 267007 267310. 265391 Define a new method for probing vt(4) driver before attach it at early stage. 265392 Create dataset for vt(4) drivers. 265395 Set of updates to vt(4) core part. o Declare vt(4) drivers dataset. o Create single static structures for all early drivers. o Add vt(4) to be by default in the kernel consoles list. o Create one more sysinit point, to be able to initialize memory and lock requirement of early drivers. o Implement early drivers select. (Only best available will be selected). o Fix one missed "return (0)" for VTYLOCK. o Improve locking for cases when one driver replace another. o Make driver replacement notification less debug-look-like. o Minor spell fixes. 265397 Switch fb and efifb drivers to use names and new vt(4) driver probe method. 265398 Add vt(4) driver name for ofwfb driver. 265402 Revert r264997 and r265026. It is not required anymore. 265403 Switch vga drivers to use names and new vt(4) driver probe method. 265442 Implement KDMKTONE ioctl. 265546 Fix possible divide by zero. 265680 No need to assign fields required and checked on probe. 265681 Fix scrollback. 265719 Hide debug messages under VT_DEBUG. 265927 Update terminal sizes in any case when new vt(4) driver arrive. (Plus remove one unused newline) 266010 Remove extra newlines. No functional changes. 266495 Fix tty locking. o Correct expected values for VT_LOCKSWITCH ioctl. o Check current window for locked state. 266540 Proper fix of VT_LOCKSWITCH ioctl. 266835 Remove driver as unused. 267007 Fix case when vt(4) started w/o driver assigned. o Always init locks and cv ASAP. o Initialize driver-independent parts even if driver probing fail. o Allow to call vt_upgrade anytime, for later loaded drivers. o New window flag VWF_READY, to track if window already initialized. Other updates: o Pass vd as a cookie for kbd_allocate. o Do not blank window on driver replacement. Sponsored by: The FreeBSD Foundation
* MFC r267395:hselasky2014-06-151-5/+5
| | | | | - Fix out of range shifting bug in bitops.h. - Make code a bit easier to read by adding parenthesis.
* MFC r267227:kib2014-06-151-2/+0
| | | | Remove write-only local variable.
* MFC r267226:kib2014-06-154-18/+8
| | | | | | | Initialize the pbuf counter for directio using SYSINIT. Mark ffs_rawread.c as requiring both ffs and directio options to be compiled into the kernel. Add ffs_rawread.c to the list of ufs.ko module' sources.
* MFC of 267473,tzdata2014eedwin2014-06-144-134/+163
| | | | | | | Fix historical data for Egypt. Better prediction for future Egypt / Morocco changes. Update to Cocos / Cook islands. Fix historical data for Russia.
* MFC r267335:dim2014-06-141-32/+43
| | | | | | | | | In some scenarios, when generating llvm/clang .inc.h files, multiple source files could be passed to tblgen or clang-tblgen, leading to a "Too many positional arguments specified" error message. Fix this by replacing the too-generic ${.ALLSRC} sources with explicit paths. Reported by: rysto32@gmail.com, rodrigc
* MFC r266865;pfg2014-06-146-6/+56
| | | | | | | | | | | | | | | | Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance. POSIX.1-2008 specifies that those two functions should be declared by including <strings.h>, not <string.h> (the latter only has strcoll_l() and strxfrm_l()): http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html Bump __FreeBSD_version for ports that may be using the non-standard reference. Obtained from: DragonFlyBSD Reviewed by: theraven
* MFC r267368:delphij2014-06-145-35/+33
| | | | | | | | | | | | | | | | Apply vendor fixes to the High Point drivers: - Don't call xpt_free_path() in os_query_remove_device() and always return TRUE. - Update os_buildsgl() to support build logical SG table which will be used by lower RAID module. - Return CAM_SEL_TIMEOUTstatus for SCSIcommand failed as target missing. Many thanks to HighPoint for providing this driver update. Submitted by: Steve Chang Reviewed by: mav
* MFC 262744:jhb2014-06-136-11/+890
| | | | | | | Add SMBIOS support. A new option, -U, can be used to set the UUID in the System Information (Type 1) structure.
* MFC 262139,262140,262236,262281,262532:jhb2014-06-1311-81/+287
| | | | | | | | | | | Various x2APIC fixes and enhancements: - Use spinlocks for the vioapic. - Handle the SELF_IPI MSR. - Simplify the APIC mode switching between MMIO and x2APIC. The guest is no longer allowed to switch modes at runtime. Instead, the desired mode is set when the virtual machine is created. - Disallow MMIO access in x2APIC mode and MSR access in xAPIC mode. - Add support for x2APIC virtualization assist in Intel VT-x.
* MFC r267174:bdrewery2014-06-132-2/+3
| | | | | | Fix some rpcgen sample file issues. PR: 185582
* MFC r267162: ktrace: Use designated initializers for the data_lengths array.jilles2014-06-131-15/+14
| | | | | | | | | In the .o file, this only changes some line numbers (stable/10 amd64) because element 0 is no longer explicitly initialized. This should make bugs like FreeBSD-SA-14:12.ktrace less likely. Discussed with: des
* MFC: r267185brueffer2014-06-131-2/+4
| | | | Minor improvements.
OpenPOWER on IntegriCloud