summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r312425:kib2017-01-262-7/+11
| | | | Make tmpfs directory cursor available outside tmpfs_subr.c.
* MFC r312414:kib2017-01-262-7/+8
| | | | Rename tmpfs_mount member allnode_lock to include namespace prefix.
* MFC r312410:kib2017-01-263-14/+2
| | | | | | | Rework some tmpfs lock assertions. MFC r312412: Protect macro argument.
* MFC r312409:kib2017-01-264-164/+179
| | | | | | | Style fixes and comment updates. MFC r312435: Remove mistakenly merged field.
* MFC r312407:kib2017-01-261-6/+0
| | | | Remove unused union member, fifos on tmpfs are implemented in common code.
* MFC r312124 (by mjg):kib2017-01-263-11/+7
| | | | tmpfs: manage tm_pages_used with atomics.
* MFC r311531 (by mjg):kib2017-01-261-16/+6
| | | | Perform a lockless check in tmpfs_itimes.
* MFC r311933:dim2017-01-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use proper prototypes in struct boot_module_t With clang 4.0.0, we are getting the following warnings about struct boot_module_t in efi's boot_module.h: In file included from sys/boot/efi/boot1/ufs_module.c:41: sys/boot/efi/boot1/boot_module.h:67:14: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] void (*init)(); ^ void sys/boot/efi/boot1/boot_module.h:92:16: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] void (*status)(); ^ void sys/boot/efi/boot1/boot_module.h:95:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] dev_info_t *(*devices)(); ^ void 3 errors generated. Fix this by adding 'void' to the parameter lists. No functional change. Reviewed by: emaste, imp, smh Differential Revision: https://reviews.freebsd.org/D9144
* MFC r311932:dim2017-01-251-0/+1
| | | | | | | | | | | | | | | | | Make EFI_RESERVED_SERVICE a proper prototype With clang 4.0.0, the EFI API header causes the following warning: In file included from sys/boot/efi/loader/bootinfo.c:43: In file included from sys/boot/efi/loader/../include/efi.h:52: sys/boot/efi/include/efiapi.h:534:32: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] (EFIAPI *EFI_RESERVED_SERVICE) ( ^ Add VOID to make it into a real prototype. Reviewed by: imp, emaste, tsoome Differential Revision: https://reviews.freebsd.org/D9132
* MFC r311929:dim2017-01-251-1/+0
| | | | | | | | | | | | | | | Don't include <errno.h> in reloc_elf.c, as it includes <stand.h> just after it, which has a conflicting definition of errno. This leads to the following warning with clang 4.0.0: In file included from sys/boot/common/reloc_elf32.c:6: In file included from sys/boot/common/reloc_elf.c:37: /usr/obj/usr/src/tmp/usr/include/stand.h:155:12: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] extern int errno; ^ sys/sys/errno.h:46:26: note: expanded from macro 'errno' #define errno (* __error()) ^
* MFC r311935: Pretend we support some IOCTLs to not scary upper layers.mav2017-01-251-0/+5
|
* MFC r311886:kib2017-01-241-24/+29
| | | | | | Fix acquisition of nested write compat rtld locks. PR: 215826
* MFC r310025:bdrewery2017-01-241-2/+2
| | | | Take write lock for rtld_bind before modifying obj_list in dl_iterate_phdr().
* MFC r312426: fix a thread preemption regression in schedulers introducedavg2017-01-232-4/+4
| | | | in r270423
* MFC r312443:pfg2017-01-233-7/+4
| | | | | | | | | | | | mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. There were several places where reference to compression were left unfinished. Furthermore, KASSERTs contained references to MPPC_INVALID which is not defined in the tree and therefore were sure to break with INVARIANTS: comment them out. Reported by: Eugene Grosbein PR: 216265
* MFC r312230: skel: Do not set -o emacs in .shrc.jilles2017-01-221-4/+0
| | | | | | | | | sh has defaulted to 'set -o emacs' since FreeBSD 9.0. Therefore, do not set this again in .shrc, since that only serves to prevent invocations like 'sh -o vi' and 'sh +o emacs' to have the intended effect. PR: 215958 Submitted by: Andras Farkas
* MFC r311651:kib2017-01-215-106/+164
| | | | Export __cxa_thread_atexit_impl as an alias for __cxa_thread_atexit.
* MFC r311892: Do not wait for HA thread shutdown if scheduler is stopped.mav2017-01-211-1/+1
| | | | This wait loop made system hang on panic instead of reboot.
* MFC r310649: Allow more efficient use of private area.mav2017-01-212-11/+16
| | | | There are 16 bytes of space, so we may store two pointers in one.
* MFC r310646: Do not update "saved" mode page on every MODE SELECT.mav2017-01-211-4/+1
| | | | | | We do not have non-volatile memory to really save those values, so we neither report nor support this capability. Also saved mode pages are not replicated between HA peers now.
* MFC r310644: Fix/synchronize field types in struct ctl_modepage_header.mav2017-01-212-3/+3
|
* MFC r310640, r310643:mav2017-01-214-10/+39
| | | | Add support for revert to defaults (RTD) bit in MODE SELECT.
* MFC r310635: Decouple limits on number of LUNs per port and LUs per CTL.mav2017-01-214-28/+49
| | | | | | | | Those two values are not directly related, so make them independent. This does not change any limits immediately, but makes number of LUNs per port controllable via tunable/sysctl kern.cam.ctl.lun_map_size. After this change increasing CTL_MAX_LUNS should be pretty cheap, and even making it tunable should be easy.
* MFC r310575: Fix improperly used nexus.targ_lun.mav2017-01-211-3/+3
|
* MFC r310555: Some random code cleaning.mav2017-01-211-189/+147
| | | | | | - Reduce indentation. - Remove extra braces. - Add few missing savety checks.
* MFC r310539: Remove CTL_MAX_LUNS from places where it is not required.mav2017-01-214-33/+34
|
* MFC r311897: Add checks for received mode page length.mav2017-01-211-3/+6
| | | | | | | | If our buffer is too small, we may receive part of the page, and should not try read/write past the end of the buffer. Reported by: Coverity CID: 1368374, 1368375
* MFC r311636: Make 'camcontrol modepage' support subpages.mav2017-01-218-212/+351
|
* MFC r311623: Make do_buff_decode() not read past the end of the buffer.mav2017-01-212-35/+48
| | | | Abort format processing as soon as we have no enough data.
* MFC r310417asomers2017-01-201-0/+1
| | | | Add a dumpdev example to /boot/defaults/loader.conf
* MFC r311517: Add some more mode page fields.mav2017-01-201-2/+12
|
* MFC r312368:np2017-01-201-0/+1
| | | | | cxgbe/tom: Fix a case where do_pass_accept_req wasn't properly restoring the VNET.
* MFC r311504: MFV r311477: xz 5.2.3.delphij2017-01-2050-1047/+1799
|
* MFC r312331:ngie2017-01-202-55/+30
| | | | | | | | | | | | | | | r312331 (by glebius): Fix regression from r310655, which broke operation of bsnmpd if it is bound to a non-wildcard address. As documented in ip(4), doing sendmsg(2) with IP_SENDSRCADDR on a socket that is bound to non-wildcard address is completely different to using this control message on a wildcard one. A fix is to add a bool to mark whether we did setsockopt(IP_RECVDSTADDR) on the socket, and use IP_SENDSRCADDR control message only if we did. While here, garbage collect absolutely useless udp_recv() function that establishes some structures on stack to never use them later.
* Revert MFC of 310847 and 310864jpaetzel2017-01-201-110/+16
| | | | | Requested by glebius who had questions about the original head commit that I didn't see.
* MFC r311963: Remove writability requirement for single-mbuf, contiguous-rpokala2017-01-191-1/+1
| | | | | | | | | | range m_pulldown() m_pulldown() only needs to determine if a mbuf is writable if it is going to copy data into the data region of an existing mbuf. It does this to create a contiguous data region in a single mbuf from multiple mbufs in the chain. If the requested memory region is already contiguous and nothing needs to change, the mbuf does not need to be writeable.
* MFC 310847 310864jpaetzel2017-01-191-16/+110
| | | | | | | | | | | | | | | | | | | | | | | | Harden CARP against network loops. If there is a loop in the network a CARP that is in MASTER state will see it's own broadcasts, which will then cause it to assume BACKUP state. When it assumes BACKUP it will stop sending advertisements. In that state it will no longer see advertisements and will assume MASTER... We can't catch all the cases where we are seeing our own CARP broadcast, but we can catch the obvious case. Unbreak ip_carp with WITHOUT_INET6 enabled by conditionalizing all IPv6 structs under the INET6 #ifdef. Similarly (even though it doesn't seem to affect the build), conditionalize all IPv4 structs under the INET #ifdef This also unbreaks the LINT-NOINET6 tinderbox target on amd64; I have not verified other MACHINE/TARGET pairs (e.g. armv6/arm). Submitted by: torek Obtained from: FreeNAS Pointyhat fix: ngie
* MFC 311122jpaetzel2017-01-191-28/+11
| | | | | | Workaround NFS bug with readdirplus when there are greater than 1 billion files in a filesystem. Reviewed by: kib
* MFC r311971: Report random flash storage as non-rotating to GEOM_DISK.mav2017-01-195-10/+16
| | | | While doing it, introduce respective constants in geom_disk.h.
* MFC r293040,293341,293435:delphij2017-01-193-352/+40
| | | | | | Reduce libstand Makefile duplication. PR: 216251
* MFC r311984:kib2017-01-191-8/+20
| | | | | For the main binary, postpone enforcing relro read-only protection until copy relocations are done.
* MFC: r273180, r283754, r297329, r299414, r300707, r310309, r310340 (partial),marius2017-01-186-33/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r310341, r311664, r311793-311794 o Use correct response bits for MMC_RSP_R4-R7 types o Make sdhci(4) work after suspend/resume for chipsets that require the frequency quirk. This makes it work on eg ThinkPad T420. o Add a convenience macro that masks all the bits related to clock divisors in all versions of the sdhci spec (the HI bits are just unused reserved bits in earlier versions). o sdhci/mmc: Minor whitespace cleanups o Add Braswell PCI IDs for Intel Cherryview o mmc: Accept even lower voltage for Cherryview And HP x2 210, per DragonFlyBSD 240bd9cd58f8259c12c14a8006837e698. o In mmcsd_task(), bio_resid was not being set to 0 on a successful read or write, resulting in random short-read and short-write returns for requests. Fixing this fixes nominal block I/O via mmcsd(4). Obtained from: DragonFlyBSD (fd4b97583be1a1e57234713c25f6e81bc0411cb0) o Add support for Intel Apollo Lake and Bay Trail eMMC PCI controllers. o Flesh out the support for Intel Braswell eMMC controllers further. o In sdhci_init_slot(), use the right capability field for determining the announced bus width based on MMC_CAP_*_BIT_DATA.
* MFC: r296135marius2017-01-1811-42/+38
| | | | | | | Replace several bus_alloc_resource() calls with bus_alloc_resource_any() Most of these are BARs, and we allocate them in their entirety. The one outlier in this is amdsbwd(4), which calls bus_set_resource() prior.
* MFC 310028: Use db_lookup_proc() in the DDB 'show procvm' command.jhb2017-01-181-1/+1
| | | | This allows processes to be identified by PID as well as a pointer address.
* MFC r311947, r311981:pfg2017-01-182-3/+9
| | | | | | | | | | | | | | rpcgen(1): Avoid unused variable warning on generated code. Avoid "unused variable 'i'" warnings in generated .c files by only emitting the "int i;" for non-opaque arrays. Opaque arrays use xdr_opaque() rather than iterating over the array. Obtained from: OpenBSD (CVS rev 1.28) rpcgen(1): Check getrlimit() return for generated code. Obtained from: NetBSD (CVS rev 1.27, 1.28)
* MFC r310630: libkvm: support access to vmm guest memory, allow writes toavg2017-01-183-7/+49
| | | | | | fwmem and vmm Sponsored by: Panzura
* MFC r311275: Restructure libz.delphij2017-01-1849-44/+627
|
* MFC r309527-309528:yongari2017-01-183-0/+11
| | | | | | | | | r309527: Recognize RealTek ALC1150 7.1 channel HD audio codec. r309528: Fix too low volume on MSI H170 GAMING M3 board by poking vendor specific COEF.
* MFC r302548:yongari2017-01-181-13/+1
| | | | | | | | Belatedly remove CSUM_IP_FRAGS and CSUM_FRAGMENT offloading capabilities. It was removed in r243624 and r254804/r271006 respectively. This file and mbuf(9) needs updates for other offloading capabilities(i.e. CSUM_SCTP and CSUM_TSO).
* MFC r295736,295738:yongari2017-01-181-9/+7
| | | | | | | | | r295736: Remove duplicated check. r295738: Fix a bug introduced in r295736 TX descriptor address should be updated for valid chain.
OpenPOWER on IntegriCloud