summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r294554: MFV r294491: ntp 4.2.8p6.delphij2016-01-22201-3500/+6686
| | | | | | | | Security: CVE-2015-7973, CVE-2015-7974, CVE-2015-7975 Security: CVE-2015-7976, CVE-2015-7977, CVE-2015-7978 Security: CVE-2015-7979, CVE-2015-8138, CVE-2015-8139 Security: CVE-2015-8140, CVE-2015-8158 With hat: so
* MFC r293048,r293444:ngie2016-01-221-15/+27
| | | | | | | | | | | | | | | | | r293048: - Use a temporary file for the temporary md(4) devices instead of hardcoding it - Remove the temporary file in the cleanup routine r293444: - Move functions that might be used in class-specific cleanup functions (geom_test_cleanup, etc) down so the testcases don't emit noise when bailing - Conform to the TAP protocol better when dealing with classes that can't be loaded and with temporary files that can't be allocated for tracking md(4) devices.
* Revert r294271:pfg2016-01-224-80/+34
| | | | | | | ext4: add support for reading sparse files Our older GCC can't handle anonymous unions, so ia64 and powerpc LINT kernels are now failing.
* MFC r294234: utimensat(2): Correct description of [EINVAL] error.jilles2016-01-211-3/+6
|
* MFC 294233:dchagin2016-01-211-0/+1
| | | | | Prevent double free of control in common sendmsg path as sosend already freeing it.
* MFC 292953:bz2016-01-211-2/+2
| | | | | | This code is not in modules that need KPI stability so no need to use the wrapper functions as used in r252511 (head). We can directly use the locking macros.
* MFC r292604:bz2016-01-211-3/+17
| | | | | | | | | | | If vnets are torn down while ifconfig runs an ioctl to say, destroy an epair(4), we may hit if_detach_internal() without holding a lock and by the time we aquire it the interface might be gone. We should not panic() in this case as it is our fault for not holding the lock all the way. It is not ideal to return silently without error to user space, but other callers will all ignore the return values so do not change the entire KPI for little benefit for now. The ifp will be dealt with one way or another still.
* MFC r292603:bz2016-01-212-2/+2
| | | | | | | | | If bootverbose is enabled every vnet startup and virtual interface creation will print extra lines on the console. We are generally not interested in this (repeated) information for each VNET. Thus only print it for the default VNET. Virtual interfaces on the base system will remain printing information, but e.g. each loopback in each vnet will no longer cause a "bpf attached" line.
* MFC r292602:bz2016-01-211-12/+2
| | | | | | | Simplify bringup order by removing a SYSINIT making it a static list initialization. Obtained from: p4 @180384,180385
* iicbus: Use device_delete_children() instead of explicit child removaldumbbell2016-01-214-19/+6
| | | | | | | | | | | | | | | | | If the bus is detached and deleted by a call to device_delete_child() or device_delete_children() on a device higher in the tree, I²C children were already detached and deleted. So the device_t pointer stored in sc points to freed memory: we must not try to delete it again. By using device_delete_children(), we let subr_bus.c figure out if there are children to take care of. While here, make sure iicbus_detach() and iicoc_detach() call device_delete_children() too, to be safe. Reviewed by: jhb, imp Approved by: jhb, imp Differential Revision: https://reviews.freebsd.org/D3926
* iicbus: Remove trailing whitespacesdumbbell2016-01-211-4/+4
| | | | MFC of: r289656
* MFC r294126:ngie2016-01-212-4/+2
| | | | | | | | | | | | | Fix warnings with gcc 5.0 reconnect.c: - Convert the K&R prototype of main to an ANSI prototype to mute a warning from gcc 4.2.1 - Close s_sock2 after finishing off the last test to plug a leak and mute a warning from gcc 5.0 about a -Wunused-but-set variable sendfile.c: - Fix a -Wunused-but-set warning with gcc 5.0 with pagesize in main(..)
* MFC r294127:ngie2016-01-212-33/+33
| | | | | | | | | Fix warnings with clang/gcc - Get rid of unused argc/argv variables in main - Exit on failure with a return code of 1 instead of -1 with err/errx as a return code of -1 is implementation dependent - Bump WARNS to 6
* MFC r294183:jamie2016-01-212-18/+4
| | | | | | | | | | | | Clear errno before calling getpw*. MFC r294196: Don't bother checking an ip[46].addr netmask/prefixlen. This is already handled by ifconfig, and it was doing it wrong when the paramater included extra ifconfig options. PR: 205926
* MFC r294042: Add rotationrate to geom disk dumpconfrpokala2016-01-211-0/+17
| | | | | | Parse and report the nominal rotation rate reported by the drive. Approved by: jhb
* MFC 292682:jhb2016-01-213-7/+7
| | | | | | | | | | | | Fix remaining direct tests of the carry flag in the v86 %eflags via a magic number to use V86_CY() instead. These should have been fixed as part of the cleanup in r226746 but were missed. The md5 sums of the object files were unchanged, so there should be no functional change. PR: 205424 Submitted by: Alexander Kuleshov <kuleshovmail@gmail.com>
* MFC: r294191allanjude2016-01-211-1/+3
| | | | | | Never 4k align the MBR bootpool because zfsldr can not deal with a gap Sponsored by: ScaleEngine Inc.
* Add strlcat and strlcpy to libstand on ia64. This is conceptually partian2016-01-201-0/+1
| | | | | of the MFC done in r294342, but since ia64 is gone in -current this is a direct commit to 10-stable to add the functions.
* Leave temporary ia64 loader.sym behind if the build failsemaste2016-01-201-1/+0
| | | | | This facilitates investigation of the build failure, and is the same way it's done for other architectures using EFI.
* MFC r276539: Update ELF headers to include additional definesemaste2016-01-204-29/+240
| | | | | | | | | | | | The elftoolchain project includes these additional defines for various userland programs. Given that arch-specific defines are still interesting in the context of userland programs reading or writing ELF metadata, they should be included in top-level ELF headers. Remove duplicate defines from ARM and MIPS elf headers. Submitted by: will (initial version) Sponsored by: The FreeBSD Foundation
* MFC r293856:brooks2016-01-201-1/+1
| | | | | | | | | | | Avoid reading pass the end of the source buffer when it is not NUL terminated. If this buffer is adjacent to an unmapped page or a version of C with bounds checked is used this may result in a crash. PR: 206178 Submitted by: Alexander Cherepanov <cherepan@mccme.ru>
* MFC r288081: Add MIPS ELF section type SHT_MIPS_ABIFLAGS definitionemaste2016-01-201-0/+1
|
* MFC r293855:brooks2016-01-201-1/+1
| | | | | | | | | | | Avoid reading pass the end of the source buffer when it is not NUL terminated. If this buffer is adjacent to an unmapped page or a version of C with bounds checked is used this may result in a crash. PR: 206177 Submitted by: Alexander Cherepanov <cherepan@mccme.ru>
* MFC r288083, r288138: elfdump: report MIPS-specific ELF section typesemaste2016-01-201-0/+2
|
* MFC r293245: loader.efi style(9) cleanupemaste2016-01-201-35/+29
| | | | Submitted by: smh
* MFC r293234: Enable the beastie menu for the UEFI consoleemaste2016-01-203-11/+4
| | | | | | | As of r294445 [in stable/10] the UEFI console includes basic terminal emulator support. Relnotes: Yes
* MFC r293233: loader.efi: add terminal emulation supportemaste2016-01-204-20/+406
| | | | | | | This is based on the vidconsole implementation. Submitted by: Toomas Soome <tsoome@me.com> Relnotes: Yes
* MFC r293281: Use standard name for ASCII LF and FF control codesemaste2016-01-202-7/+7
| | | | PR: 205778
* MFC r277215, r277291, r277418, r280953 and r280954:royger2016-01-2016-94/+989
| | | | | | | | | loader: implement multiboot support for Xen Dom0 Note that only the subset of the multiboot specification needed in order to boot a Xen Dom0 is implemented. Sponsored by: Citrix Systems R&D
* MFC r294372arybchik2016-01-201-1/+1
| | | | | | sfxge: refresh version to note matching version of out-of-tree driver Sponsored by: Solarflare Communications, Inc.
* MFC r294310arybchik2016-01-201-106/+70
| | | | | | | | | | | | | | sfxge: improve error handling in ef10_ev_rx() Ensure that checksum flags and L3/L4 fields are ignored if lower level errors are reported in the event. Remove checks for CRC0_ERR (bad iSCSI header CRC) and CRC1_ERR (bad iSCSI payload or FCoE/FCoIP CRC) as they are not used by any existing code. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r294309arybchik2016-01-205-16/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | sfxge: select whether to read current or backup partition in Medford A/B scheme The dynamic config on Medford is stored using two partitions in flash, and at any time one is the 'current' partition, used to provide the active config, and the other 'backup' partition is used for writes. This means that there are two potential partitions that can be used to service reads, and which is required can depend on, for example, whether the read is to get the current contents or to verify a write. When the partition write lock is held, the default behaviour is to read from the backup partition, which was wrong for most reads in the common code which require the current partition. This change allows the current partition to be read whilst the write lock is held. There is one read in Manftest which needs the backup partition. ef10_nvram_partn_read_mode() is created to avoid changing ef10_nvram_partn_read() which shares a prototype with the equivalent Falcon and Siena methods. MC_CMD_NVRAM_READ_IN_V2 adds an extra field, but firmware which doesn't support it just ignores it. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r294259arybchik2016-01-201-19/+46
| | | | | | sfxge: regenerate EF10 registers definition for Medford Sponsored by: Solarflare Communications, Inc.
* MFC r294257arybchik2016-01-201-2/+2
| | | | | | sfxge: regenerate siena_flash.h from FW sources Sponsored by: Solarflare Communications, Inc.
* MFC r294256arybchik2016-01-201-2/+0
| | | | | | sfxge: cleanup: remove extra empty lines Sponsored by: Solarflare Communications, Inc.
* MFC r294255arybchik2016-01-201-1/+1
| | | | | | | sfxge: highlight that descriptor cache sizes are configured using TLV now Submitted by: Tom Millington <tmillington at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r294254arybchik2016-01-201-1/+5
| | | | | | | | | | sfxge: support RFID-selectable segments of dynamic configuration tlv_partition_header has field *preset* to support RFID-selectable segments of dynamic configuration Submitted by: Mateusz Wrzesinski <mwrzesinski at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r294253arybchik2016-01-206-1/+86
| | | | | | | | | | | | sfxge: if supported by firmware, use enhanced SET_MAC command to only configure the MTU This allows an MTU change to be requested on unpriviliged functions without also setting all the other parameters supported by MC_CMD_SET_MAC. The enhanced SET_MAC command was introduced in v4_7 firmware. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r294094arybchik2016-01-201-4/+67
| | | | | | | | sfxge: check the RX DMA end padding configuration on Medford Submitted by: Mark Spender <mspender at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r294092arybchik2016-01-204-142/+145
| | | | | | | | sfxge: rename Huntington MAC methods to EF10 and use for Medford Submitted by: Mark Spender <mspender at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r294091arybchik2016-01-207-79/+54
| | | | | | | | | | | | sfxge: rename common hunt PHY methods to ef10 and use for Medford Leaving BIST methods for now as, though the Medford bootrom now has lots of BIST support, production firmware doesn't appear to have been updated yet. Submitted by: Mark Spender <mspender at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r294081arybchik2016-01-201-51/+35
| | | | | | | | sfxge: cleanup: simplify ef10_get_datapath_caps Submitted by: Andy Moreton <amoreton at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r294079arybchik2016-01-204-18/+46
| | | | | | | | sfxge: Medford still needs fallback for no privilege mask Submitted by: Mark Spender <mspender at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r294078arybchik2016-01-203-9/+33
| | | | | | | | | | sfxge: medford stores a single global copy of VPD Not per PF copies as on Huntington. Submitted by: Mark Spender <mspender at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r294077arybchik2016-01-204-77/+173
| | | | | | | sfxge: support FATSOv2 Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r294076arybchik2016-01-207-105/+47
| | | | | | | | sfxge: rework MCDI request completion Submitted by: Andy Moreton <amoreton at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r294075arybchik2016-01-205-31/+31
| | | | | | | | sfxge: rename hunt_link_state_t to ef10_link_state_t Submitted by: Mark Spender <mspender at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r293902arybchik2016-01-201-7/+0
| | | | | | | | | | | sfxge: cleanup: quieten efx_mcdi_read_resonse_header error reporting The "mcdi_err_arg" probe still reports results of failed MCDI commands, unless the caller invoked efx_mcdi_execute_quiet(). Submitted by: Andy Moreton <amoreton at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r293901,r294371arybchik2016-01-208-4/+880
| | | | | | | | | | | | sfxge: add accessors for license-related MCDI calls to common code Add support for Huntington MCDI licensing interface to common code. Ported from Linux net driver IOCTL functions with restructuring for initial support for V3 licensing API. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r293900arybchik2016-01-203-2/+13
| | | | | | | | sfxge: add table entries for License NVRAM partition Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
OpenPOWER on IntegriCloud