summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* l2arc: reset b_tmp_cdata to NULL in the case of unset b_daddravg2016-06-131-0/+1
| | | | | | | | | The change is in arc_buf_l2_cdata_free(). Without this we can trip the assertion in arc_hdr_realloc() if INVARIANTS option is enabled. Approved by: re (kib) MFC after: 1 week
* Do not define __NO_STRICT_ALIGNMENT for armv6. While the requirementsian2016-06-131-4/+0
| | | | | | | | | | | | | | | | | | are no longer natural-alignment strict, there are still some restrictions. FreeBSD network code assumes data is naturally-aligned or is running on a platform with no restrictions; pointers are not annotated to indicate the data pointed to may be packed or unaligned. The clang optimizer can sometimes combine the load or store of a pair of adjacent 32-bit values into a single doubleword load/store, and that operation requires at least 4-byte alignment. __NO_STRICT_ALIGNMENT can lead to tcp headers being only 2-byte aligned. Note that alignment faults remain disabled on armv6, this change reverts only the defining of the symbol which leads to some overly-agressive code shortcuts when building common/shared drivers and network code for arm. Approved by: re(kib)
* Add missing break in lock_partialfilelock(..) with NFS_RESERRngie2016-06-131-0/+1
| | | | | | | | | | | | | | This will help ensure that the right error is trickled up when the function is called if the lock status is NFS_RESERR Differential Revision: https://reviews.freebsd.org/D6622 Reviewed by: rmacklem Approved by: re (gjb) Tested with: fsx; svn info/svnversion (uses bdb locking); locktests from Bull http://nfsv4.bullopensource.org/tools/tests/locktest.php MFC after: 2 weeks Reported by: Coverity CID: 1008161, 1304956 Sponsored by: EMC / Isilon Storage Division
* zfs_vptocnp: check for an invalid znodeavg2016-06-131-2/+10
| | | | | | | | ... which can arise after the receive or rollback and failed zfs_rezget(). Approved by: re (kib) MFC after: 1 week
* Change my given name from "Garrett" to "Ngie"ngie2016-06-133-3/+3
| | | | | | | A legal name change from "Garrett" to "Ngie", as well as a FreeBSD account name change, is pending. Approved by: re (hrs)
* Implement AUE_PREAD and AUE_PWRITE BSM conversion support, eliminatingrwatson2016-06-131-0/+2
| | | | | | | | | | console warnings when pread(2) and pwrite(2) are used with full system-call auditing enabled. We audit the same file-descriptor data for these calls as we do read(2) and write(2). Approved by: re (kib) MFC after: 3 days Sponsored by: DARPA, AFRL
* Do not access pv_table array for fictitious pages, since the arraykib2016-06-131-15/+10
| | | | | | | | | | | | | | | | does not cover the dynamically registered ficititious ranges, and fictitious pages mappings are not promoted. Offer a dummy struct md_page to fetch constant superpage pv list generation to satisfy logic. Also, by initializing the pv_dummy pv_list to empty, we can remove several explicit PG_FICTITIOUS tests. Reported and tested by: Michael Butler <imb@protected-networks.net> (previous version) Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D6728 Approved by: re (hrs)
* Fix inconsistent locking of the swap pager named objects list.kib2016-06-131-63/+56
| | | | | | | | | | | | | | | | | | | | | | | | | Right now, all modifications of the list are locked by sw_alloc_mtx. But initial lookup of the object by the handle in swap_pager_alloc() is not protected by sw_alloc_mtx, which means that vm_pager_object_lookup() could follow freed pointer. Create a new named swap object with the OBJT_SWAP type, instead of OBJT_DEFAULT. With this change, swp_pager_meta_build() never need to upgrade named OBJT_DEFAULT to OBJT_SWAP (in the other place, we do not forbid for client code to create named OBJT_DEFAULT objects at all). That change allows to remove sw_alloc_mtx and make the list locked by sw_alloc_sx lock. Update swap_pager_copy() to new locking mode. Create helper swap_pager_alloc_init() to consolidate named and anonymous swap objects creation, while a caller ensures that the neccesary locks are held around the helper. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Approved by: re (hrs)
* Explicitely initialize sw_alloc_sx. Currently it is not initializedkib2016-06-131-0/+1
| | | | | | | | | but works due to zeroed out bss on startup. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (hrs)
* [mips] set hardfloat for fpu instruction generation for gcc/binutils 5.xadrian2016-06-131-0/+1
| | | | | | | This allows -HEAD to be compiled again using the gcc-5 mips port compiler. Reviewed by: imp Approved by: re@
* Fix compile warning.hselasky2016-06-131-1/+1
| | | | | Approved by: re (delphij) MFC after: 1 week
* [iwm] Fix up busdma use in the RX pathadrian2016-06-132-15/+38
| | | | | | | | | | | | | | | | | | | | | When allocating a new mbuf or bus_dmamap_load()-ing it fails, we can just keep the old mbuf since we are dropping that packet anyway. Instead of doing bus_dmamap_create() and bus_dmamap_destroy() all the time, create an extra bus_dmamap_t which we can use to safely try bus_dmamap_load()-ing the new mbuf. On success we just swap the spare bus_dmamap_t with the data->map of that ring entry. Tested: Tested with Intel AC7260, verified with vmstat -m that new kernel no longer visibly leaks memory from the M_DEVBUF malloc type. Before, leakage was 1KB every few seconds while ping(8)-ing over the wlan connection. Submitted by: Imre Vadasz <imre@vdsz.com> Approved by: re@ Obtained from: DragonflyBSD.git cc440b26818b5dfdd9af504d71c1b0e6522b53ef Differential Revision: https://reviews.freebsd.org/D6742
* Don't close fd if it's lower then stderr, otherwise we can closeoshogbo2016-06-131-1/+2
| | | | | | | one of the descriptor which we just set. Pointed out by: jilles Approved by: re (hrs)
* Add ipfilter support to blacklistd-helperlidl2016-06-121-9/+29
| | | | | | | | | | | | | | In addition to adding initial support for the ipfilter packet filtering system, wrap a few long lines, perform whitespace cleanup and sync with upstream changes made in NetBSD. Submitted by: cy Reviewed by: cy Approved by: re (hrs) Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6823
* Implement code to stop all USB endpoints before executing a USB devicehselasky2016-06-121-2/+14
| | | | | | | | | | reset command, alternate setting command or set configuration command. Else LibUSB v1.0 will not re-open the endpoints which the kernel closes and the USB application might wait infinitely for transfers to complete. Approved by: re (hrs) MFC after: 3 days
* Fix an issue with multicast hash filters on Amlogic and Allwinner boards.jmcneill2016-06-122-8/+13
| | | | | | | | | For DWC_GMAC_ALT_DESC implementations, the multicast hash table has only 64 entries. Instead of 8 registers starting at 0x500, a pair of registers at 0x08 and 0x0c are used instead. Approved by: re (hrs) Submitted by: Guy Yur <guyyur@gmail.com>
* swap_dev_info() does not require Giant, so Giant locking aroundkib2016-06-121-4/+2
| | | | | | | | | | the loop in linprocfs_doswaps() is useless. List of the registered filesystems is protected by vfsconf_sx, not by the Giant. Adjust linprocfs_dofilesystems() correspondingly. Approved by: re (delphij), des (linprocfs maintainer) Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Update 11.0 to ALPHA3 in preparation for new snapshot builds.gjb2016-06-101-1/+1
| | | | | Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
* Change the default build behavior so we don't compile extra TCP modules byjtl2016-06-103-1/+10
| | | | | | | | | | | | | | | | | | | | | default. At least initially, the feature to support multiple TCP stacks is aimed at supporting advanced use cases and TCP development, but it is not necessarily aimed at a wide audience. Therefore, there is no need to build and install the extra TCP stacks by default. Instead, the people who are using or developing this functionality can add the extra option to build/ install the extra TCP stacks. However, we do want to build the extra TCP stacks as part of test builds (e.g. LINT or tinderbox) to ensure that developers who are testing their changes will know that their changes do not break the additional TCP stack modules. After this change, a user will need to add WITH_EXTRA_TCP_STACKS=1 to make.conf or the kernel config in order to build the extra TCP modules. Differential Revision: https://reviews.freebsd.org/D6795 Reviewed by: sjg Approved by: re (kib)
* Deobfuscate cleanup path in clnt_bck_create(..)ngie2016-06-101-8/+3
| | | | | | | | | | | | | | | | | Similar to r300836, cl and ct will always be non-NULL as they're allocated using the mem_alloc routines, which always use `malloc(..., M_WAITOK)`. Deobfuscating the cleanup path fixes a leak where if cl was NULL and ct was not, ct would not be free'd, and also removes a duplicate test for cl not being NULL. Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D6801 MFC after: 1 week Reported by: Coverity CID: 1229999 Reviewed by: cem Sponsored by: EMC / Isilon Storage Division
* Relnotes entries for blacklist projectlidl2016-06-101-0/+23
| | | | | Approved by: re (gjb) Sponsored by: The FreeBSD Foundation
* Fix a miss merge in the services_mkdb(8) man pageallanjude2016-06-101-1/+1
| | | | | | | Restore the cross reference to getservent(3) to the correct line Approved by: re (gjb) Sponsored by: BSDCan Hacker Lounge
* Fix bsdinstall for root-on-zfs with MBR partitioningallanjude2016-06-101-9/+5
| | | | | | | | | | | | Fix an error where vfs.root.mountfrom was not always set as required when creating a bootpool. After the recent geliboot changes, it was only set if the main pool was encrypted. Also resolve an error where the bootpool was unmounted twice causing bsdinstall to stop with an error message about the failed command. Approved by: re (gjb) Sponsored by: BSDCan Hacker Lounge
* - Add myself (tz / Torsten Zuehlsdorff) to ports commiterstz2016-06-101-0/+6
| | | | | | - Add mentors junovitch, pi, swills Approved by: re (gjb), junovitch (mentor)
* Commit the bits of nda that were missed. This should fix the build.imp2016-06-109-42/+91
| | | | Approved by: re@
* Fix regression from r301461.pfg2016-06-101-3/+3
| | | | | | | | | | | | The fix to the __collate_range_cmp() ABI breakage missed some replacements in libc's vfscanf(). Replace them with __wcollate_range_cmp() which does what is expected. This was breaking applications like xterm and pidgin when using wide characters. Reported by: Vitalij Satanivskij Approved by: re
* Clarify the wording to be more accurate.cy2016-06-101-5/+4
| | | | | | Approved by: re@ (gjb) MFC after: 1 week X-MFC with: r301773
* Update the man ipf.8 man page to accurately reflect that the -6cy2016-06-101-1/+5
| | | | | | option is a noop and only here for backward compatibility. MFC after: 1 week
* New NVMe front end (nda).imp2016-06-098-0/+1973
|
* rpcbind(8): Make use of some xdr_* macros.pfg2016-06-091-3/+3
| | | | | | xdr_rpcproc, xdr_rpcprog and xdr_rpcvers were broken in older versions of FreeBSD but fixed in r296394. Give them some use hoping they help make the code somewhat more readable.
* libc/rpc: Make use of some xdr_* macros. (part 2)pfg2016-06-093-19/+19
| | | | | | xdr_rpcproc, xdr_rpcprog and xdr_rpcvers were broken in older versions of FreeBSD but fixed in r296394. Give them some use hoping they help make the code somewhat more readable.
* utimes(2),utime(3): Add deprecation in favour of utimensat(2) and futimens(2).jilles2016-06-092-4/+19
| | | | | | | Setting time by seconds or microseconds may cause unexpected effects especially if sysctl vfs.timestamp_precision=3 (not default). Calling the obsolete functions with NULL timestamps is acceptable.
* [ath] add a placeholder event for debuggin EDMA TX FIFO push events.adrian2016-06-091-0/+8
| | | | | | | Some later code I'll commit pushes lists of frames into the EDMA TX FIFO, rather than a single frame at a time. The CABQ code already pushes frame lists, but it turns out we should actually be doing it in general or performance tanks. :(
* [ath] report node queue overflows.adrian2016-06-091-0/+3
| | | | I need to also update athstats to report this too.
* install: When preserving timestamps, also copy the nanoseconds part.jilles2016-06-092-17/+20
| | | | | | Now that we have utimensat in -legacy, install(1) can use it. This is a revert of r299942 which is itself a revert of r299850.
* Fix a vnode leak when giving a child jail a too-long path whenjamie2016-06-091-0/+1
| | | | debug.disablefullpath=1.
* build: Add legacy support for futimens() and utimensat().jilles2016-06-095-1/+261
| | | | | | | | | | | | | | | In order to allow using utimensat() in install(1), add futimens() and utimensat() to -legacy. The files futimens.c and utimensat.c are modified copies of the files under lib/libc/sys/ since the libc versions use symbols that do not exist in the libc on the build system (sys_futimens and sys_utimensat) . I expect the next non-sweeping change to both sets of files to be to delete them, anyway. This will allow reverting r299942 (which is a revert of r299850) enabling nanosecond timestamps in install(1). Reviewed by: bdrewery
* urtwn: reinstall group keys on every device startup.avos2016-06-092-6/+54
| | | | | | | | Since key table is cleared on every device shutdown, static WEP keys (which are set only once) need to be reinstalled manually every time when device starts running. Tested with RTL8188EU, STA (all ciphers) / IBSS (WPA-none) modes.
* Fix frexpl() declaration to not include the field name.trasz2016-06-091-1/+1
| | | | MFC after: 1 month
* Re-order some jail parameter reading to prevent a vnode leak.jamie2016-06-091-40/+40
|
* Update to latest upstream versiondes2016-06-093-49/+205
| | | | | | PR: 209177 Reported by: Vitaly Magerya MFC after: 1 week
* Clean up some logic in jail error messages, replacing a missing test andjamie2016-06-091-12/+10
| | | | a redundant test with a single correct test.
* Define tunable instead of using CTLFLAG_RWTUN flag with kern.corefile.oshogbo2016-06-091-1/+2
| | | | | | | | | | | | | | The allproc_lock lock used in the sysctl_kern_corefile function is initialized in the procinit function which is called after setting sysctl values at boot. That means if we set kern.corefile at boot we will be trying to use lock with is uninitialized and machine will crash. If we define kern.corefile as tunable instead of using CTFLAG_RWTUN we will not call the sysctl_kern_corefile function and we will not use an uninitialized lock. When machine will boot then we will start using function depending on the lock. Reviewed by: pjd
* libc/rpc: Make use of some xdr_* macros.pfg2016-06-092-7/+7
| | | | | | xdr_rpcprog and xdr_rpcvers were broken in older versions of FreeBSD but were fixed in r296394. Give them some use hoping they help make the code somewhat more readable.
* Fix up r274061ngie2016-06-091-6/+26
| | | | | | | | | Detect /usr/share/dict/words the "right way" by using require.files instead of the hacked up attempt in the dict(..) function, which didn't work properly on systems where MK_DICT == no. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Update `goodResult` after recent changes made to the PRNG in libcngie2016-06-091-1/+1
| | | | | | | | | The PRNG was changed in r300953/r300956, and subsequently, the numbers generated have changed. This is expected ABI breakage per ache X-MFC with: r300953, r300956 Tested with: amd64, i386 Sponsored by: EMC / Isilon Storage Division
* Add DDB command "kldstat"cem2016-06-091-0/+21
| | | | | | | It prints much the same information as kldstat(8) without any arguments. Suggested by: jhibbits Sponsored by: EMC / Isilon Storage Division
* kvprintf: Pad %*c to width, like %*scem2016-06-091-0/+8
| | | | Sponsored by: EMC / Isilon Storage Division
* Add debug output to aid in determining why `goodResult` != `result`ngie2016-06-091-0/+5
| | | | | | MFC after: 1 week PR: 210619 (for diagnosis) Sponsored by: EMC / Isilon Storage Division
* urtwn(4): refresh manpage.avos2016-06-091-18/+46
| | | | | | | Mention URTWN_WITHOUT_UCODE option (r295871), hardware encryption support (r292175), IBSS (r290651) and HOSTAP (r290631) mode support; cleanup CAVEATS section (some 11n support was added in r297175 + add a note about current rate control issues).
OpenPOWER on IntegriCloud