summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove extra space introduced in r287734. This is a stable/10 only fixgarga2015-09-221-1/+1
| | | | | | | since original commit (r287094) is correct. Approved by: loos Sponsored by: Rubicon Communications (Netgate)
* Long overdue MFC r285444:jlh2015-09-221-1/+5
| | | | | | | Allow again periodic scripts to be run from command-line. PR: 188109 Submitted by: Jason Unovitch
* Long overdue MFC r284378:jlh2015-09-221-12/+12
| | | | | | nit: Rename racct_alloc_resource to racct_adjust_resource. This is more accurate as the amount can be negative.
* Long overdue MFC r284377:jlh2015-09-221-8/+5
| | | | | | | | | | | | | NetBSD commit log: Use a constant array for the MIB. Newer LLVM decided that mib[] warranted stack protections, with the obvious crash after the setup was done. As a positive side effect, code size shrinks a bit. I'm not sure why this hasn't bitten us yes, but it is certainly possible and there are no real drawbacks to this change anyway. Submitted by: pfg Obtained from: NetBSD
* The stable/10 branch uses mutex for vfs_hash. Fix build.kib2015-09-221-2/+2
| | | | Submitted by: Jukka Ukkonen <jau789@gmail.com>
* MFC r287828:garga2015-09-222-0/+2
| | | | | | | | | Add support for Sierra MC7355 card Submitted by: Jeremy Porter <jporter@netgate.com> Approved by: loos Obtained from: pfSense Sponsored by: Rubicon Communications (Netgate)
* MFC r287807:markj2015-09-221-3/+2
| | | | | | Remove an unneeded typedef of ip6_t from the DTrace ip provider library. PR: 203092
* MFC of 281677:mckusick2015-09-224-14/+112
| | | | | | | | | | | | | | | | | | | | | | | More accurately collect name-cache statistics in sysctl functions sysctl_debug_hashstat_nchash() and sysctl_debug_hashstat_rawnchash(). These changes are in preparation for allowing changes in the size of the vnode hash tables driven by increases and decreases in the maximum number of vnodes in the system. Reviewed by: kib@ Phabric: D2265 MFC of 287497: Track changes to kern.maxvnodes and appropriately increase or decrease the size of the name cache hash table (mapping file names to vnodes) and the vnode hash table (mapping mount point and inode number to vnode). An appropriate locking strategy is the key to changing hash table sizes while they are in active use. Reviewed by: kib Tested by: Peter Holm Differential Revision: https://reviews.freebsd.org/D2265
* Fix a panic in SIOCSLAGG and SIOCGLAGGOPTS. This was caused by ahrs2015-09-211-4/+2
| | | | | | wrongly-MFC'd patch in r287723. Pointy hat to: hrs
* Re-add deprecated options as no-op to prevent breakage of backwardhrs2015-09-211-0/+6
| | | | | | compatibility. Spotted by: ume
* MFC 281734-281736,287997-287998:hrs2015-09-201-27/+16
| | | | | | | | | | | | | | | | | - Fix a crash on a rpc entry when an IPv6 address is explicitly specified in -a flag. - Fix a bug that sockaddr_in was used where sockaddr_in6 should have been used. This was not actually harmful because offsetof(struct sockaddr_in, sin_port) is equal to offsetof(struct sockaddr_in6, sin6_port). - Remove unused union p_un. - Use NI_MAXHOST-long buffer for getnameinfo(). Although INET6_ADDRSTRLEN was designed to hold the longest IPv6 address in IPv4-mapped address format a long time ago, getnameinfo() can return scope identifier in addition to it.
* MFC r287651, r287652, r287653.cy2015-09-191-6/+10
| | | | | | | | | | | | | | | | | | | | | | | Fix mutex errors, fixup typos in comments. Obtained from: NetBSD r1.4. -This lie, anr those below, will be ignored-- > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > MFH: Ports tree branch name. Request approval for merge. > Relnotes: Set to 'yes' for mention in release notes. > Security: Vulnerability reference (one per line) or description. > Sponsored by: If the change was sponsored by an organization. > Differential Revision: https://reviews.freebsd.org/D### (*full* phabric URL needed). > Empty fields above will be automatically removed. _M . M sys/contrib/ipfilter/netinet/ip_state.c
* MFC r266310melifaro2015-09-183-1/+4
| | | | | | | | | | | | | | Fix wrong formatting of 0.0.0.0/X table records in ipfw(8). Add `flags` u16 field to the hole in ipfw_table_xentry structure. Kernel has been guessing address family for supplied record based on xent length size. Userland, however, has been getting fixed-size ipfw_table_xentry structures guessing address family by checking address by IN6_IS_ADDR_V4COMPAT(). Fix this behavior by providing specific IPFW_TCF_INET flag for IPv4 records. PR: bin/189471,kern/200169
* MFC r280957rstone2015-09-1715-37/+42
| | | | | | | | | | | Fix integer truncation bug in malloc(9) A couple of internal functions used by malloc(9) and uma truncated a size_t down to an int. This could cause any number of issues (e.g. indefinite sleeps, memory corruption) if any kernel subsystem tried to allocate 2GB or more through malloc. zfs would attempt such an allocation when run on a system with 2TB or more of RAM.
* MFC r279410:rstone2015-09-171-0/+1
| | | | | | | Correct the use of an unitialized variable in sendfind_getobj() When sendfile_getobj() is called on a DTYPE_SHM file, it never initializes error, which is eventually returned to the caller.
* MFC r279413:rstone2015-09-171-0/+3
| | | | | | | Add a missing include of an options header. watchdog.c does an #ifdef DDB but does not #include "opt_ddb.h". Fixing this turned up a missing include file.
* MFC r263109rstone2015-09-176-3/+62
| | | | | | | | | | | | | Add MSI support to puc(9) Add support for MSI interrupts in the puc(9) driver. By default the driver will prefer MSI interrupts to legacy interrupts. A tunable, hw.puc.msi_disable, has been added to force the allocation of legacy interrupts. Reviewed by: jhb@ MFC after: 2 weeks Sponsored by: Sandvine Inc.
* MFC r286970:rstone2015-09-171-3/+4
| | | | | | | | | | | | | | | | | | Prevent ticks rollover from preventing vm_lowmem event Currently vm_pageout_scan() uses a ticks-based scheme to rate-limit the number of times that the vm_lowmem event will happen. However if no events happen for long enough for ticks to roll over, this leaves us in a long window in which vm_lowmem events will not happen. Replace the use of ticks with time_t to prevent rollover from ever being an issue. Reviewed by: ian MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3439
* MFC r286891, r286893:pfg2015-09-171-1/+5
| | | | | | | calendar(1): add a few more dates to the Christian calendar Bring some well established holidays that also happen to be legal holidays in many Catholic countries.
* MFC r287436:bdrewery2015-09-172-0/+8
| | | | Avoid sub-shell for realpath(1) for bmake by using its built-in :tA.
* Document EN-15:16, EN-15:17, EN-15:18.gjb2015-09-161-0/+24
| | | | Sponsored by: The FreeBSD Foundation
* MFC 281310, 287567:imp2015-09-163-16/+45
| | | | | | | | | | r287567 | imp | 2015-09-08 11:47:56 -0600 (Tue, 08 Sep 2015) | 16 lines Mark the swap pager as direct dispatch compatible. r281310 | mav | 2015-04-09 07:09:05 -0600 (Thu, 09 Apr 2015) | 4 lines Remove sleeps from geom_up thread on device destruction.
* MFC r287366:kib2015-09-161-8/+7
| | | | Use SLIST_FOREACH_SAFE() to fix iteration.
* MFC r287599:kib2015-09-161-1/+4
| | | | | | Correct handling of open("name", O_DIRECTORY | O_CREAT). PR: 202892
* MFC r287591:kib2015-09-161-10/+4
| | | | | There is no reason in the current kernel to disallow write access to the COW wired entry if the entry permissions allow it. Remove the check.
* MFC r287361:kib2015-09-161-19/+29
| | | | | | | | | | | | | | Handle excess of D_NEWBLK in the same way as excess of D_INODEDEP and D_DIRREM, by scheduling ast to flush dependencies. For 32bit arches, reduce the total amount of allowed dependencies by two. MFC r287479: Declare the writes around the call to VFS_SYNC() in softdep_ast_cleanup_proc(). MFC r287483: Do not consume extra reference.
* MFC r287238:yongari2015-09-161-7/+2
| | | | | | | Set DMA alignment constraint of status, TX and RX LEs(List Elements in Marvell terms) to 32768. 32768 looks overkill but it will ensure correct DMAed update. This change addresses occasional watchdog timeouts reported on 10.2-RELEASE.
* MFC: r287580bapt2015-09-151-3/+3
| | | | Remove extra debug that crept in
* MFC: r287579bapt2015-09-153-34/+181
| | | | | | | | | | | | | | | Implement pubkey support for the bootstrap Note that to not interfer with finger print it expects a signature on pkg itself which is named pkg.txz.pubkeysign To genrate it: echo -n "$(sha256 -q pkg.txz)" | openssl dgst -sha256 -sign /thekey \ -binary -out ./pkg.txz.pubkeysig Note the "echo -n" which prevent signing the '\n' one would get otherwise PR: 202622
* MFC r286700hiren2015-09-156-1/+30
| | | | Make LAG LACP fast timeout tunable through IOCTL.
* MFC r286062, r286063cperciva2015-09-144-34/+276
| | | | | | | Add support to blkfront for blkif indirect segment I/Os. Turn this support off by default in EC2 builds due to performance issues on some EC2 instance types.
* MFC r284618, r284663, r284664, r284670, r284723cperciva2015-09-143-167/+96
| | | | | Reorganization of blkfront code and updates to comments. No functional changes.
* MFC r284615, r284662cperciva2015-09-141-5/+5
| | | | Code cleanup; fix an error code; add a KASSERT.
* MFC r287320:delphij2015-09-141-4/+3
| | | | | | - uri is expected to be nul-terminated (strchr used later), so use strlcpy instead of strncpy. - replace the other two cases of strncpy+\0 with strlcpy.
* MFC r287319:delphij2015-09-141-4/+4
| | | | | | | Constify opt_f and opt_t and eliminate unneeded copying. This fixes memory leaks. Reported by: clang static analyzer
* MFC r287247: Plug memory leaks when running out of memory.delphij2015-09-141-1/+3
| | | | Reported by: clang scan-build
* MFC r287237: Respect locale settings.delphij2015-09-141-0/+3
|
* MFC r287236:delphij2015-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use exit() instead of return in main(). The difference in practice is subtle: C standard requires the language runtime to make return of int from main() behave like calling exit(), and in FreeBSD we do: exit(main(argc, argv, env)) In lib/csu/${ARCH}/crt1.c, so the real difference is using exit() explicitly would use an additional stack frame. Note however, if there is a on stack pointer is the last reference of an allocated memory block, returning from the function would, technically, result in a memory leak because we lost the last reference to the memory block, and calling exit() from C runtime could potentionally overwrite that stack frame that used to belong to the main() function. In practice, this is normally Okay because eventually the kernel would tear down the whole address space that belongs to the process in the _exit(2) system call, but the difference could confuse compilers (which may want to do stack overflow checks) and static analyzers. Replacing return with exit() in main() allows compilers/static analyzers to correctly omit or generate the right warnings when they do not treat main() specifically. With the current version of clang on FreeBSD/amd64, use of exit() would result in slightly smaller code being generated and eliminated a false positive warning of memory leak.
* MFC: r272715ray2015-09-141-0/+7
| | | | | | | | Allow vt(4) to disable terminal bell with `sysctl kern.vt.bell_enable=0`, similar as syscons(4) do. Submitted by: Tiwei Bie <btw@mail.ustc.edu.cn> Sponsored by: The FreeBSD Foundation
* MFC r286798 and r286827:ed2015-09-142-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Stop parsing digits if the value already exceeds UINT_MAX / 100. There is no need for us to support parsing values that are larger than the maximum terminal window size. In this case that would be the maximum of unsigned short. The problem with parsing larger values is that they can cause integer overflows when adjusting the cursor position, leading to all sorts of failing assertions. MFC r286981 and r287098: Don't truncate cursor arithmetic to 16 bits. When updating the row number when the cursor position escape sequence is issued, we should make sure to store the intermediate result in a 32-bit integer. If we fail to do this, the cursor may be set above the origin region, which is bad. This could cause libteken to crash when INVARIANTS is enabled, due to the strict set of assertions that libteken has. PR: 202326, 202540, 202612 Submitted by: kwcu csie org
* MFC: r287701bapt2015-09-141-0/+1
| | | | | | | | | | Regression: fix pw usermod -d Mark the user has having been edited if -d option is passed to usermod and so the request change of home directory actually happen PR: 203052 Reported by: lenzi.sergio@gmail.com
* MFC r268436,273243,278806,280920,286971: sh: Add various tests.jilles2015-09-1312-0/+65
| | | | These new tests from head pass with unmodified stable/10 sh.
* MFC r287148: sh: Fix out of bounds read when there is no ] after a [:class:].jilles2015-09-133-12/+17
| | | | | | | | | The initial check for a matching ] was incorrect if a ] may be consumed by a [:class:]. The subsequent loop assumed that there must be a ]. Remove the initial check and make the loop cope with a missing ]. Found with afl-fuzz.
* MFC r278826,279330: sh: Various cleanups to expand.c:jilles2015-09-131-60/+55
| | | | | | | | * Remove some gotos. * Remove unused parameter. * Remove duplicate code. This MFC is to avoid conflicts in the MFC of r287148.
* MFC r272575: sh: Eliminate some gotos.jilles2015-09-135-56/+43
| | | | This MFC is to avoid conflicts in the MFC of r287148.
* MFC r287081: sh: Don't create bad parse result when postponing a badjilles2015-09-134-2/+13
| | | | | | | | | | | | | | substitution error. An invalid substitution like ${var@} does not cause a parse error but is stored in the intermediate representation, to be written as part of the error message. If there is a CTL* byte in the stored part, this confuses some code such as the code to skip an unused alternative such as in ${var-alternative}. To keep things simple, do not store CTL* bytes. Found with afl-fuzz.
* MFC: r287522bapt2015-09-133-4/+10
| | | | | | | | | | Prefer pciids database from ports if present Given the pciids database on ports is updated more often than the one in base prefer this version if present, otherwise read the one from base. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D3391
* MFC 287615:hrs2015-09-131-5/+4
| | | | Use read to parse a line instead of set.
* MFC 287614:hrs2015-09-131-4/+11
| | | | | - Add uid check. - Report delay<0 as a warning.
* MFC 287613:hrs2015-09-131-1/+1
| | | | | | | Update only static routes when an interface is specified. This fixed a bad side-effect reported in PR 202144. PR: 202144
OpenPOWER on IntegriCloud