| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Make tmpfs directory cursor available outside tmpfs_subr.c.
|
|
|
|
| |
Rename tmpfs_mount member allnode_lock to include namespace prefix.
|
|
|
|
|
|
|
| |
Rework some tmpfs lock assertions.
MFC r312412:
Protect macro argument.
|
|
|
|
|
|
|
| |
Style fixes and comment updates.
MFC r312435:
Remove mistakenly merged field.
|
|
|
|
| |
Remove unused union member, fifos on tmpfs are implemented in common code.
|
|
|
|
| |
tmpfs: manage tm_pages_used with atomics.
|
|
|
|
| |
Perform a lockless check in tmpfs_itimes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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())
^
|
| |
|
|
|
|
|
|
| |
Fix acquisition of nested write compat rtld locks.
PR: 215826
|
|
|
|
| |
Take write lock for rtld_bind before modifying obj_list in dl_iterate_phdr().
|
|
|
|
| |
in r270423
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Export __cxa_thread_atexit_impl as an alias for __cxa_thread_atexit.
|
|
|
|
| |
This wait loop made system hang on panic instead of reboot.
|
|
|
|
| |
There are 16 bytes of space, so we may store two pointers in one.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Add support for revert to defaults (RTD) bit in MODE SELECT.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
- Reduce indentation.
- Remove extra braces.
- Add few missing savety checks.
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Abort format processing as soon as we have no enough data.
|
|
|
|
| |
Add a dumpdev example to /boot/defaults/loader.conf
|
| |
|
|
|
|
|
| |
cxgbe/tom: Fix a case where do_pass_accept_req wasn't properly restoring
the VNET.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Requested by glebius who had questions about the original
head commit that I didn't see.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Workaround NFS bug with readdirplus when there are greater than 1 billion files in a filesystem.
Reviewed by: kib
|
|
|
|
| |
While doing it, introduce respective constants in geom_disk.h.
|
|
|
|
|
|
| |
Reduce libstand Makefile duplication.
PR: 216251
|
|
|
|
|
| |
For the main binary, postpone enforcing relro read-only protection
until copy relocations are done.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This allows processes to be identified by PID as well as a pointer address.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
fwmem and vmm
Sponsored by: Panzura
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
| |
r295736:
Remove duplicated check.
r295738:
Fix a bug introduced in r295736
TX descriptor address should be updated for valid chain.
|