summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Temporarily revert r315602.pfg2017-04-131-0/+8
| | | | | | | | | | | Bring back the definition for the GCC __nonnull() attribute. Old versions of GCC, including the version installed the latest 11-stable snapshot with pkg(8), still carry the old attributes. The issue is easily fixed by rebuilding GCC but there is no need to cause havoc in our user base. The definition by itself is harmless but it should be removed again in the near future.
* MFC r314671 (by cem):dim2017-04-131-1/+3
| | | | | | | newfs_nandfs: Fix unaligned pointer warning PR: 217532 Submitted by: Trond Endrestol <Trond.Endrestol at ximalas.info>
* MFC r316695, MFV r316693:pfg2017-04-131-1/+1
| | | | | | | | | | | | | 8046 Let calloc() do the multiplication in libzfs_fru_refresh https://github.com/illumos/illumos-gate/commit/5697e03e6e3e2697f56ae341c7c8ce79680d6a2e https://www.illumos.org/issues/8046 Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Paul Dagnelie <pcd@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Pedro Giffuni <pfg@freebsd.org>
* MFC r316566:kib2017-04-133-35/+10
| | | | Remove spl*() calls from the nfsclient code.
* MFC r316284: elfcopy: remove temporary ELF file when converting from binaryemaste2017-04-131-0/+2
| | | | | | | | | | | Previously a command like objcopy --input-target binary --output-target elf64-x86-64-freebsd \ binary_file object.o would leave a temporary file behind. ELF Tool Chain ticket #543
* MFC r316528:kib2017-04-122-8/+11
| | | | Add V_VMIO flag for vinvalbuf(9).
* MFC r316526:kib2017-04-122-18/+30
| | | | | Extract calculation of ioflags from the vm_pager_putpages flags into a helper.
* MFC r316525:kib2017-04-121-7/+2
| | | | | Some style fixes for vnode_pager_generic_putpages(), in the local declaration block.
* MFC r316524:kib2017-04-121-2/+1
| | | | | | Use int instead of boolean_t for flags argument type in vnode_pager_generic_putpages() prototype; change the argument name to reflect that it is flags.
* MFC r306829, r310286, r311695:markj2017-04-116-148/+338
| | | | Lock the ND prefix list and add refcounting for prefixes.
* MFC r309591:markj2017-04-119-163/+172
| | | | Fix style bugs and remove trailing whitespace in libproc and librtld_db.
* MFC r315208:markj2017-04-111-1/+1
| | | | Fix a backwards comparison in the code to dump a DTrace debug buffer.
* MFC r316032:markj2017-04-111-1/+4
| | | | Refine r301173 a bit.
* MFC r316036:markj2017-04-111-1/+1
| | | | Typo.
* MFC r316175:markj2017-04-111-0/+4
| | | | Avoid sleeping when the mirror I/O queue is non-empty.
* MFC r315289:markj2017-04-111-2/+6
| | | | When draining a callout, don't clear CALLOUT_ACTIVE while it is running.
* MFC r316637-r316638bapt2017-04-112-6/+6
| | | | | | | | | | | r316637: When passingthrough from sdiff to diff the -H/--speed-large-files options rename it to the long version as GNU diff only support the long version of the option not the short version r316638: Remove a useless loop over the long options before passing through some options to diff(1)
* MFC 314783:mmokhi2017-04-1115-362/+42
| | | | | | Regenerated Linuxulator syscall tables for r314782 Approved by: trasz
* MFC r314782:mmokhi2017-04-117-41/+81
| | | | | | | | Add UNIMPLEMENTED() placeholder macro for the syscalls that are not implemented in Linux kernel itself. Cleanup DUMMY() macros. Approved by: trasz
* MFC r316490:ae2017-04-112-3/+6
| | | | | | | | | | | | | | | | When we are doing SA lookup for TCP-MD5, check both source and destination addresses. Previous code has used only destination address for lookup. But for inbound packets the source address was used as SA destination address. Thus only outbound SA were used for both directions. Now we use addresses from a packet as is, thus SAs for both directions are needed. Reported by: Mike Tancsa MFC r316507,316508: In the example section show that TCP-MD5 connection needs SA for both directions. Use unique SPI.
* MFC r316617:gjb2017-04-103-5/+5
| | | | | | | | | - Increase the image size for RPI2 and IMX6-based boards from 1G to 1.5G. - Use the 'conv=sync' dd(1) option to fix writing the u-boot.imx file to the md(4) device for IMX6-based boards. Sponsored by: The FreeBSD Foundation
* MFC 316520sephe2017-04-103-31/+103
| | | | | | | | | | | | | | | hyperv/hn: Fixat RNDIS rxfilter after the successful RNDIS init. Under certain conditions on certain versions of Hyper-V, the RNDIS rxfilter is _not_ zero on the hypervisor side after the successful RNDIS initialization, which breaks the assumption of any following code (well, it breaks the RNDIS API contract actually). Clear the RNDIS rxfilter explicitly, drain packets sneaking through, and drain the interrupt taskqueues scheduled due to the stealth packets. Reported by: dexuan@ Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D10230
* MFC 316519sephe2017-04-102-8/+8
| | | | | | | | | | | hyperv/storvsc: Fixup SRB status. This unbreaks GEN2 Hyper-V cd support. Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: dexuan@ Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D10212
* Fix reference count leak with L2 caching.karels2017-04-103-4/+8
| | | | | | | | | | | | | | | | | | | | | MFC r315956 ip_forward, TCP/IPv6, and probably SCTP leaked references to L2 cache entry because they used their own routes on the stack, not in_pcb routes. The original model for route caching was callers that provided a route structure to ip{,6}input() would keep the route, and this model was used for L2 caching as well. Instead, change L2 caching to be done by default only when using a route structure in the in_pcb; the pcb deallocation code frees L2 as well as L3 cacches. A separate change will add route caching to TCP/IPv6. Another suggestion was to have the transport protocols indicate willingness to use L2 caching, but this approach keeps the changes in the network level Reviewed by: ae gnn MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10059
* MFC r313959:trasz2017-04-0910-1/+1228
| | | | | | | | | | | | | | | | | | Add USB Mass Storage CTL frontend. This makes it possible for USB OTG-capable hardware to implement device side of USB Mass Storage, ie pretend it's a flash drive. It's configured in the same way as other CTL frontends, using ctladm(8) or ctld(8). Differently from usfs(4), all the configuration can be done without rebuilding the kernel. Testing and review is welcome. Right now I'm still moving, and I don't have access to my test environment, so I'm somewhat reluctant to making larger changes to this code; on the other hand I don't want to let it sit on Phab until my testing setup is back, because I want to get it into 11.1-RELEASE. Relnotes: yes Sponsored by: The FreeBSD Foundation
* MFC r316412: Add IDs for Intel Cougar Point USB 2.0 controller.mav2017-04-091-0/+4
|
* MFC r316355kp2017-04-081-1/+1
| | | | | | | | | | pf: Fix leak of pf_state_keys If we hit the state limit we returned from pf_create_state() without cleaning up. PR: 217997 Submitted by: Max <maximos@als.nnov.ru>
* MFC r314561:gjb2017-04-071-2/+2
| | | | | | | | Increase the EC2 image size. The recent snapshot builds of EC2 images for 12-CURRENT (and now 11-STABLE) failed due to a full filesystem on the md(4) device during creation. Sponsored by: The FreeBSD Foundation
* MFC r315162:pfg2017-04-0712-27/+27
| | | | | | | | libc: provide some bounds-checking through reallocarray(3). reallocarray(3) is a non portable extension that originated in OpenBSD. Given that it is already in FreeBSD's libc it is useful for the cases where reallocation involves a multiplication.
* MFC r316329:ae2017-04-071-1/+10
| | | | | | | | | | | | Reset the cached state of last lookup in the dynamic states when an external action is completed, but the rule search is continued. External action handler can change the content of @args argument, that is used for dynamic state lookup. Enforce the new lookup to be able install new state, when the search is continued. Obtained from: Yandex LLC Sponsored by: Yandex LLC
* MFC 316283:n_hibma2017-04-071-7/+24
| | | | | | | | | | | | | | | | | | | | Allow superseding the lease renewal and rebind times. Also make sure that the renewal is never more than 1/2 * expiry and rebind never more than 7/4 * renewal (the default values in the spec). This should allow adjusting high values from the server as well as making sure the values from the server make sense. Renewal and rebind times will be adjusted down if the expiry time is set very high in a server, not the other way around. This change just makes sure the values keep making sense. and 316285: Make dhcp-lease-time option supersedable as well. Note: It is not recommended to set this value to above the value that the server provided, unless that value is bogus.
* Improvements for the brand detection and prioritization.kib2017-04-067-9/+26
| | | | | | | | | | | | | | | | | | | MFC r315701 (by ed): Set the interpreter path to /nonexistent. MFC r315749: Adjust r314851 to not require every brand to specify interpreter path. MFC r315753: Add a flag BI_BRAND_ONLY_STATIC to specify that the brand only matches static binaries. MFC r315754: Update r315753 with the proper flag name. MFC r316211: A followup to r315749, two more places where brand->interp_path was accessed unconditionally.
* Bring kernel space CloudABI code in sync with HEAD.ed2017-04-0634-816/+843
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r312353, r312354 and r312355: Sync in the latest CloudABI generated source files. Languages like C++17 and Go provide direct support for slice types: pointer/length pairs. The CloudABI generator now has more complete for this, meaning that for the C binding, pointer/length pairs now use an automatic naming scheme of ${name} and ${name}_len. Apart from this change and some reformatting, the ABI definitions are identical. Binary compatibility is preserved entirely. MFC r315700: Make file descriptor passing work for CloudABI's sendmsg(). Reduce the potential amount of code duplication between cloudabi32 and cloudabi64 by creating a cloudabi_sock_recv() utility function. The cloudabi32 and cloudabi64 modules will then only contain code to convert the iovecs to the native pointer size. In cloudabi_sock_recv(), we can now construct an SCM_RIGHTS cmsghdr in an mbuf and pass that on to kern_sendit(). MFC r315736: Make file descriptor passing for CloudABI's recvmsg() work. Similar to the change for sendmsg(), create a pointer size independent implementation of recvmsg() and let cloudabi32 and cloudabi64 call into it. In case userspace requests one or more file descriptors, call kern_recvit() in such a way that we get the control message headers in an mbuf. Iterate over all of the headers and copy the file descriptors to userspace.
* MFC r315861:ed2017-04-065-5/+0
| | | | | | Stop providing the compat_3_brand. As of r315860, the ELF image activator works fine for CloudABI without it.
* MFC r315860:ed2017-04-061-1/+2
| | | | | | | | | Don't require the presence of the compat_3_brand. The existing ELF image activator requires the brandinfo to provide such a string unconditionally, even if the executable format in question doesn't use this type of branding. Skip matching when it's a null pointer.
* MFC r315857: Remove "UNMAPPED" messages printed on da periph attach.mav2017-04-061-1/+0
| | | | | | I think this message is not very useful for end user. Also its formatting does not match other messages printed at that time. Those who really need this information can always find it in `camcontrol negotiate daX -v`.
* MFC r314946:cy2017-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | Configure leap-second smearing (always). Leap-second smearing is an experimental option that may be specified in ntp.conf(5) and the -x option on the command line to spread the effect of a leap-second over an interval as specified by the leapsmearinterval config file statement. Recommended values are between 7200 (2 hours) and 86400 (24 hours). It is advised that leap-second smearing not be used for public NTP servers (https://www.meinbergglobal.com/download/burnicki/Leap\ %20Second%20Smearing%20With%20NTP.pdf). It is also advised that NTP clients not use a mix of NTP servers using leap-second smearing with NTP servers not using leap-second smearing as that could cause undefined client behaviour. Leap-second smearing was committed to ports net/ntp and net/ntp-devel by r426825 on 2016-11-22. Suggested by: des
* MFC r316368:ngie2017-04-061-10/+10
| | | | | | r316368 (by jkim): Fix typos to stop removing new files.
* Direct commit of fixes to stable/11, resolving PCI passthrough and ↵sbruno2017-04-053-5/+6
| | | | | | | | | | | initialization issues when trying to passthrough a i340 (igb) to VMware. While here, cleanup some bits of em(4) to DTRT as well. PR: 218113 Submitted by: Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>
* MFC r308343sbruno2017-04-051-0/+1
| | | | | | | r266979 missed a call to enable capabilities of the hw leading to an inability to enable features of the device. PR: 213845
* MFC r316497:brooks2017-04-051-2/+1
| | | | | | | | | | | | Correct a kernel stack leak in 32-bit compat when vfc_name is short. Don't zero unused pointer members again. Per discussion with secteam we are not issuing an advisory for this issue as we have no current evidence it leaks exploitable information. Reviewed by: rwatson, glebius, delphij Sponsored by: DARPA, AFRL
* MFC r315673, r315674: Make CAM SIM lock optional.mav2017-04-043-45/+73
| | | | | | For three years now CAM does not use SIM lock, but still enforces SIM to use it. Remove this requirement, allowing SIMs to have any locking they prefer, if they pass no mutex to cam_sim_alloc().
* MFC r315564:trasz2017-04-031-1/+2
| | | | Improve formatting.
* MFC r312078 by cem:trasz2017-04-031-4/+5
| | | | | | fstyp.8: Move initial exFAT blurb to the -u section Didn't notice the second list in r312003.
* MFC r312003 by cem:trasz2017-04-035-3/+84
| | | | | | | fstyp(8): Detect exFAT filesystems Simply detect the exFAT filesystem name in the Volume Boot Record (superblock).
* MFC r306041: Always pass -m to ld for converting binary files to ELFemaste2017-04-033-3/+25
| | | | | | | | | | | This is in preparation for linking with LLVM's lld, which does not have a compiled-in default output emulation. lld requires that it is specified via the -m option, or obtained from the object file(s) being linked. This will also allow all build targets to share a common linker binary. Sponsored by: The FreeBSD Foundation
* MFC r304624: Remove duplicate symbol from libhx509 version-script.mapemaste2017-04-031-1/+0
| | | | | | | | Upstream commit r21331 (7758a5d0) added semiprivate function _hx509_request_to_pkcs10 twice. This change has been committed upstream as 8ef0071d. Sponsored by: The FreeBSD Foundation
* MFC r303156: Remove duplicate symbols from libroken version-script.mapemaste2017-04-031-6/+0
| | | | | | | | Upstream commit r24759 (efed563) prefixed some symbols with rk_, but introduced 6 duplicate symbols in the version script (because the rk_-prefixed versions of the symbols were already present). Sponsored by: The FreeBSD Foundation
* MFC r316013:ae2017-04-032-29/+26
| | | | | | Make pfil's locking macros private. Obtained from: Yandex LLC
* MFC r316012:ae2017-04-031-0/+1
| | | | Declare module version.
OpenPOWER on IntegriCloud