]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoFix 'may be used uninitialized' warning not caught by clang.
melifaro [Mon, 27 Apr 2015 10:01:22 +0000 (10:01 +0000)]
Fix 'may be used uninitialized' warning not caught by clang.

9 years agoUse free_nat_instance() for nat instance deletion.
melifaro [Mon, 27 Apr 2015 09:16:22 +0000 (09:16 +0000)]
Use free_nat_instance() for nat instance deletion.

Sponsored by: Yandex LLC

9 years agoIntroduce ddb(4) support for ARM64
zbb [Mon, 27 Apr 2015 09:12:54 +0000 (09:12 +0000)]
Introduce ddb(4) support for ARM64

Obtained from: Semihalf
Reviewed by:   emaste
Sponsored by:  The FreeBSD Foundation

9 years agoIntegrate tools/regression/mmap into the FreeBSD test suite as
ngie [Mon, 27 Apr 2015 09:06:27 +0000 (09:06 +0000)]
Integrate tools/regression/mmap into the FreeBSD test suite as
tests/sys/kern/mmap_test

MFC after: 1 week

9 years agoConvert this testcase over to a TAP format testcase
ngie [Mon, 27 Apr 2015 09:04:16 +0000 (09:04 +0000)]
Convert this testcase over to a TAP format testcase

MFC after: 1 week

9 years agoIntegrate tools/regression/aio/aiotest and tools/regression/aio/kqueue into the
ngie [Mon, 27 Apr 2015 08:51:40 +0000 (08:51 +0000)]
Integrate tools/regression/aio/aiotest and tools/regression/aio/kqueue into the
FreeBSD test suite as tests/sys/aio

MFC after: 1 week

9 years ago- Fix style(9) a bit
ngie [Mon, 27 Apr 2015 08:37:13 +0000 (08:37 +0000)]
- Fix style(9) a bit
-- Fix whitespace
-- Use err/errx
-- Remove superfluous braces
- Be a bit more defensive with input from the end-user
- Don't throw a floating point exception by dividing by 0 when processing a
  zero-byte file

MFC after: 1 week

9 years ago- Fix compilation (MAP_INHERIT's dead)
ngie [Mon, 27 Apr 2015 08:34:46 +0000 (08:34 +0000)]
- Fix compilation (MAP_INHERIT's dead)
- Fix warnings
- Use mkstemp instead of tmpnam

MFC after: 1 week

9 years agoIntegrate tools/regression/mqueue into the FreeBSD test suite as
ngie [Mon, 27 Apr 2015 08:31:43 +0000 (08:31 +0000)]
Integrate tools/regression/mqueue into the FreeBSD test suite as
tests/sys/mqueue

MFC after: 1 week

9 years agoMake rule table kernel-index rewriting support any kind of objects.
melifaro [Mon, 27 Apr 2015 08:29:39 +0000 (08:29 +0000)]
Make rule table kernel-index rewriting support any kind of objects.

Currently we have tables identified by their names in userland
with internal kernel-assigned indices. This works the following way:

When userland wishes to communicate with kernel to add or change rule(s),
it makes indexed sorted array of table names
(internally ipfw_obj_ntlv entries), and refer to indices in that
array in rule manipulation.
Prior to committing new rule to the ruleset kernel
a) finds all referenced tables, bump their refcounts and change
 values inside the opcodes to be real kernel indices
b) auto-creates all referenced but not existing tables and then
 do a) for them.

Kernel does almost the same when exporting rules to userland:
 prepares array of used tables in all rules in range, and
 prepends it before the actual ruleset retaining actual in-kernel
 indexes for that.

There is also special translation layer for legacy clients which is
able to provide 'real' indices for table names (basically doing atoi()).

While it is arguable that every subsystem really needs names instead of
numbers, there are several things that should be noted:

1) every non-singleton subsystem needs to store its runtime state
somewhere inside ipfw chain (and be able to get it fast)
2) we can't assume object numbers provided by humans will be dense.

Existing nat implementation (O(n) access and LIST inside chain) is a
good example.

Hence the following:
* Convert table-centric rewrite code to be more generic, callback-based
* Move most of the code from ip_fw_table.c to ip_fw_sockopt.c
* Provide abstract API to permit subsystems convert their objects
  between userland string identifier and in-kernel index.
  (See struct opcode_obj_rewrite) for more details
* Create another per-chain index (in next commit) shared among all subsystems
* Convert current NAT44 implementation to use new API, O(1) lookups,
 shared index and names instead of numbers (in next commit).

Sponsored by: Yandex LLC

9 years agoIntegrate tools/regression/fifo into the FreeBSD test suite as tests/sys/fifo
ngie [Mon, 27 Apr 2015 08:15:17 +0000 (08:15 +0000)]
Integrate tools/regression/fifo into the FreeBSD test suite as tests/sys/fifo
and tools/regression/file into the FreeBSD test suite as tests/sys/file

MFC after: 1 week

9 years agoSmall change in header order to allow this to compile.
scottl [Mon, 27 Apr 2015 07:38:46 +0000 (07:38 +0000)]
Small change in header order to allow this to compile.

Obtained from: Netflix, Inc.
MFC after: 3 days

9 years agoIntegrate tools/regression/kqueue into the FreeBSD test suite as
ngie [Mon, 27 Apr 2015 07:37:48 +0000 (07:37 +0000)]
Integrate tools/regression/kqueue into the FreeBSD test suite as
tests/sys/kqueue

MFC after: 1 week

9 years agoFix -Wformat warnings by using proper format string qualifiers for
ngie [Mon, 27 Apr 2015 07:28:41 +0000 (07:28 +0000)]
Fix -Wformat warnings by using proper format string qualifiers for
long and unsigned[ long] types

MFC after: 1 week

9 years agoIntegrate tools/regression/execve into the FreeBSD test suite as
ngie [Mon, 27 Apr 2015 07:22:18 +0000 (07:22 +0000)]
Integrate tools/regression/execve into the FreeBSD test suite as
tests/sys/kern/execve

MFC after: 1 week

9 years agoMove etc/tests/rc.d to etc/rc.d/tests to match the directory layout jmmv@
ngie [Mon, 27 Apr 2015 07:00:34 +0000 (07:00 +0000)]
Move etc/tests/rc.d to etc/rc.d/tests to match the directory layout jmmv@
documented and implemented in other areas of the FreeBSD tree

MFC after: 1 week

9 years agoBuild/install libc, librt, libthr, and msun NetBSD test suites on all
ngie [Mon, 27 Apr 2015 06:49:27 +0000 (06:49 +0000)]
Build/install libc, librt, libthr, and msun NetBSD test suites on all
architectures

MFC after: 1 week

9 years agoThe fmodl compat shims on arm/mips/powerpc aren't complete
ngie [Mon, 27 Apr 2015 06:46:33 +0000 (06:46 +0000)]
The fmodl compat shims on arm/mips/powerpc aren't complete

Disable the test code for now on those architectures

MFC after: 1 week
PR: 199422

9 years agoath3kfw, bcmfw, bthidcontrol, bthidd all require usb(4); build them
ngie [Mon, 27 Apr 2015 06:34:51 +0000 (06:34 +0000)]
ath3kfw, bcmfw, bthidcontrol, bthidd all require usb(4); build them
conditionally if MK_USB != no

MFC after: 1 week

9 years agoFix memory leak.
glebius [Mon, 27 Apr 2015 05:44:09 +0000 (05:44 +0000)]
Fix memory leak.

PR: 199670
Reviewed by: ae

9 years agoPass the supplied buffer length instead of a fixed size.
loos [Mon, 27 Apr 2015 01:36:16 +0000 (01:36 +0000)]
Pass the supplied buffer length instead of a fixed size.

9 years agoMake ipsec_in_reject() static. We use ipsec[46]_in_reject() instead.
ae [Mon, 27 Apr 2015 01:12:51 +0000 (01:12 +0000)]
Make ipsec_in_reject() static. We use ipsec[46]_in_reject() instead.

Sponsored by: Yandex LLC

9 years agoRemove now unneded KEY_FREESP() for case when ipsec[46]_process_packet()
ae [Mon, 27 Apr 2015 01:11:09 +0000 (01:11 +0000)]
Remove now unneded KEY_FREESP() for case when ipsec[46]_process_packet()
returns EJUSTRETURN.

Sponsored by: Yandex LLC

9 years agoFix possible use after free due to security policy deletion.
ae [Mon, 27 Apr 2015 00:55:56 +0000 (00:55 +0000)]
Fix possible use after free due to security policy deletion.

When we are passing mbuf to IPSec processing via ipsec[46]_process_packet(),
we hold one reference to security policy and release it just after return
from this function. But IPSec processing can be deffered and when we release
reference to security policy after ipsec[46]_process_packet(), user can
delete this security policy from SPDB. And when IPSec processing will be
done, xform's callback function will do access to already freed memory.

To fix this move KEY_FREESP() into callback function. Now IPSec code will
release reference to SP after processing will be finished.

Differential Revision: https://reviews.freebsd.org/D2324
No objections from: #network
Sponsored by: Yandex LLC

9 years agoEnable root mounting from mmc/sd card.
ganbold [Mon, 27 Apr 2015 00:39:57 +0000 (00:39 +0000)]
Enable root mounting from mmc/sd card.

9 years agoDon't panic under INVARIANTS when receiving a SACK which cumacks
tuexen [Sun, 26 Apr 2015 21:47:15 +0000 (21:47 +0000)]
Don't panic under INVARIANTS when receiving a SACK which cumacks
a TSN never sent.
While there, fix two typos.

MFC after: 1 week

9 years agohexdump: Don't use uninitialized struct stat.
jilles [Sun, 26 Apr 2015 21:34:55 +0000 (21:34 +0000)]
hexdump: Don't use uninitialized struct stat.

9 years agoDon't use ifm_data. It was used only for self checking debug.
glebius [Sun, 26 Apr 2015 21:31:30 +0000 (21:31 +0000)]
Don't use ifm_data.  It was used only for self checking debug.

Reviewed by: np

9 years agofd: plug an always overwritten initialization in fdalloc
mjg [Sun, 26 Apr 2015 17:27:55 +0000 (17:27 +0000)]
fd: plug an always overwritten initialization in fdalloc

9 years agoConsistently use p instead of td->td_proc in create_thread
mjg [Sun, 26 Apr 2015 17:22:59 +0000 (17:22 +0000)]
Consistently use p instead of td->td_proc in create_thread

No functional changes.

9 years agoCleanup a little more:
andrew [Sun, 26 Apr 2015 16:37:27 +0000 (16:37 +0000)]
Cleanup a little more:
 - Remove whitespace at the end of lines
 - Use a tab after instructions, not spaces

9 years agoFix the style of locore-v4.S and locore-v6.S to help find any common code.
andrew [Sun, 26 Apr 2015 16:18:41 +0000 (16:18 +0000)]
Fix the style of locore-v4.S and locore-v6.S to help find any common code.

9 years agoRemove the armv6 code from locore-v4.S, it's not needed there.
andrew [Sun, 26 Apr 2015 15:57:02 +0000 (15:57 +0000)]
Remove the armv6 code from locore-v4.S, it's not needed there.

9 years agoImprove smb(4) man page.
grembo [Sun, 26 Apr 2015 12:24:42 +0000 (12:24 +0000)]
Improve smb(4) man page.

Differential Revision: https://reviews.freebsd.org/D2368
Reviewed by: wblock
Approved by: wblock

9 years agoUse ARMv7 style unaligned access on ARMv6. We set this bit in locore, but
andrew [Sun, 26 Apr 2015 11:54:25 +0000 (11:54 +0000)]
Use ARMv7 style unaligned access on ARMv6. We set this bit in locore, but
it was missing from here.

9 years agomdoc: fix rendering issues
bapt [Sun, 26 Apr 2015 11:39:25 +0000 (11:39 +0000)]
mdoc: fix rendering issues

9 years agoAllow DSP basename cloning to be disabled or enabled at boot and
hselasky [Sun, 26 Apr 2015 11:39:13 +0000 (11:39 +0000)]
Allow DSP basename cloning to be disabled or enabled at boot and
runtime. This is useful when implementing OSS sound stacks in
userspace via libcuse for example.

MFC after: 2 weeks

9 years agomdoc: fix function declaration
bapt [Sun, 26 Apr 2015 11:35:36 +0000 (11:35 +0000)]
mdoc: fix function declaration

9 years agomdoc: remove empty line
bapt [Sun, 26 Apr 2015 11:35:07 +0000 (11:35 +0000)]
mdoc: remove empty line

9 years agoRemove end of line whitespace
bapt [Sun, 26 Apr 2015 11:30:27 +0000 (11:30 +0000)]
Remove end of line whitespace

9 years agomdoc: remove end of line whitespace
bapt [Sun, 26 Apr 2015 10:56:06 +0000 (10:56 +0000)]
mdoc: remove end of line whitespace

9 years agomdoc: rendering fixes
bapt [Sun, 26 Apr 2015 10:55:39 +0000 (10:55 +0000)]
mdoc: rendering fixes

9 years agoUse mdoc(7) macros to handle parenthesis
bapt [Sun, 26 Apr 2015 10:54:52 +0000 (10:54 +0000)]
Use mdoc(7) macros to handle parenthesis

9 years agomdoc: fix functions declarations
bapt [Sun, 26 Apr 2015 10:53:50 +0000 (10:53 +0000)]
mdoc: fix functions declarations

9 years agoGeneralize object reference handling in ipfw rules.
melifaro [Sun, 26 Apr 2015 10:53:35 +0000 (10:53 +0000)]
Generalize object reference handling in ipfw rules.
No ABI changes.

9 years agoEscape "Ed"
bapt [Sun, 26 Apr 2015 10:52:37 +0000 (10:52 +0000)]
Escape "Ed"

9 years agoPet manlint
bapt [Sun, 26 Apr 2015 10:38:26 +0000 (10:38 +0000)]
Pet manlint

9 years agoEscape "Ed"
bapt [Sun, 26 Apr 2015 10:29:43 +0000 (10:29 +0000)]
Escape "Ed"

9 years agoRemove End Of Line whitespaces
bapt [Sun, 26 Apr 2015 10:20:11 +0000 (10:20 +0000)]
Remove End Of Line whitespaces

9 years agoFix 2 rendering issue with mandoc
bapt [Sun, 26 Apr 2015 10:18:44 +0000 (10:18 +0000)]
Fix 2 rendering issue with mandoc

9 years agoUse mdoc(7) macros for curly braces
bapt [Sun, 26 Apr 2015 10:09:26 +0000 (10:09 +0000)]
Use mdoc(7) macros for curly braces

9 years agomdoc: escape Re
bapt [Sun, 26 Apr 2015 10:03:05 +0000 (10:03 +0000)]
mdoc: escape Re

9 years agoAdd a forgotten vi.chars
bapt [Sun, 26 Apr 2015 09:49:57 +0000 (09:49 +0000)]
Add a forgotten vi.chars

Reported by: ngie

9 years agoDo not modify locales
bapt [Sun, 26 Apr 2015 09:25:44 +0000 (09:25 +0000)]
Do not modify locales

9 years agoReincorporate documentation lost with update to nvi 2.1.3
bapt [Sun, 26 Apr 2015 07:52:43 +0000 (07:52 +0000)]
Reincorporate documentation lost with update to nvi 2.1.3

9 years agoSet ARM_L2_PIPT for A10 and RPI2, they are probably missing by accident.
loos [Sat, 25 Apr 2015 22:42:03 +0000 (22:42 +0000)]
Set ARM_L2_PIPT for A10 and RPI2, they are probably missing by accident.

Noted by: Michal Meloun <meloun@miracle.cz>

9 years agoMake the pcf8563 RTC work on FDT systems and on interrupt based i2c
loos [Sat, 25 Apr 2015 21:43:29 +0000 (21:43 +0000)]
Make the pcf8563 RTC work on FDT systems and on interrupt based i2c
controllers.

Call iicbus_transfer() from the device context and not from the iicbus
context.

I am committing a slightly different patch, so if something break, it is
probably my fault.

PR: 199496
Submitted by: Juraj Lutter <otis@sk.FreeBSD.org>

9 years agolibarchive: Allow setting nanosecond timestamps.
jilles [Sat, 25 Apr 2015 21:25:00 +0000 (21:25 +0000)]
libarchive: Allow setting nanosecond timestamps.

9 years agoSTOS/STOSB/STOSW/STOSD/STOSQ instruction emulation.
tychon [Sat, 25 Apr 2015 19:02:06 +0000 (19:02 +0000)]
STOS/STOSB/STOSW/STOSD/STOSQ instruction emulation.

Reviewed by: neel

9 years agoCleanup a bit the clang attributes for type safety checking.
pfg [Sat, 25 Apr 2015 18:17:08 +0000 (18:17 +0000)]
Cleanup a bit the clang attributes for type safety checking.

Cleanup r281861 by moving the definitions to their own section but
still leave the definitions out of lint.

In addition to the 'argument_with_type_tag' attribute, bring
'type_tag_for_datatype' which is necessary for annotating the
data types.

9 years agoExpand SMBUS API to add smbus_trans() function.
grembo [Sat, 25 Apr 2015 16:15:01 +0000 (16:15 +0000)]
Expand SMBUS API to add smbus_trans() function.

Differential Revision: https://reviews.freebsd.org/D1955
Reviewed by: adrian, jhb, wblock
Approved by: adrian, jhb

9 years agoCurrently there is no easy way to specify net.isr.maxthreads = all cpus. We need
hiren [Sat, 25 Apr 2015 16:12:06 +0000 (16:12 +0000)]
Currently there is no easy way to specify net.isr.maxthreads = all cpus. We need
to specify exact number of cpus in loader.conf which get annoying when you have
mix of machines which don't have equal number of total cpus. I propose "-1" as
that value. When loader.conf has net.isr.maxthreads = -1, netisr will use all
available cpus.

In collaboration with: davide
Reviewed by: gnn
Differential Revision: https://reviews.freebsd.org/D2318
MFC after: 2 weeks
Sponsored by: Limelight Networks

9 years agoAdjust PROF_ARTIFICIAL_FRAMES in the DTrace profile provider on ARM to
rwatson [Sat, 25 Apr 2015 15:43:12 +0000 (15:43 +0000)]
Adjust PROF_ARTIFICIAL_FRAMES in the DTrace profile provider on ARM to
skip 10, rather than 9, frames.  This appears to work quite well in
practice on the BeagleBone Black, so remove a comment about the value
being bogus and replace it with a slightly less negative one.  However,
the number of frames to skip is quite sensitive to details of the timer
and interrupt handling paths, so this is necessarily fragile -- but no
more so than on x86.

Sponsored by: DARPA, AFRL

9 years agosh: Pass along SIGINT from a child if job control is enabled, even when not
jilles [Sat, 25 Apr 2015 13:34:25 +0000 (13:34 +0000)]
sh: Pass along SIGINT from a child if job control is enabled, even when not
interactive.

I added the interactive check in r208881 to be safe, but in actual use
(scripts in set -m mode) passing along SIGINT seems best.

Discussed with: bdrewery

9 years agoo Properly init prevtime, so that we don't print bogus value in the
sobomax [Sat, 25 Apr 2015 04:58:08 +0000 (04:58 +0000)]
o Properly init prevtime, so that we don't print bogus value in the
first entry reported by the relative mode (-R).

o Properly print negative offsets, which I guess may happen if
records get re-ordered somehow, possibly due to the locking. Right
now we report huge bogus diff (i.e. 2 seconds or so).

9 years agoAssuming a system has /bin/csh on it is a bad idea (especially it being
ngie [Sat, 25 Apr 2015 04:35:43 +0000 (04:35 +0000)]
Assuming a system has /bin/csh on it is a bad idea (especially it being
optional on FreeBSD). Look for /bin/cat instead

MFC after: 3 days

9 years agoAdd #include sys/types.h for register_t for mips
ngie [Sat, 25 Apr 2015 04:30:01 +0000 (04:30 +0000)]
Add #include sys/types.h for register_t for mips

MFC after: 3 days

9 years agoFix the NFS server's handling of a bogus NFSv2 ROOT RPC.
rmacklem [Sat, 25 Apr 2015 00:58:24 +0000 (00:58 +0000)]
Fix the NFS server's handling of a bogus NFSv2 ROOT RPC.
The ROOT RPC is deprecated in the NFSv2 RFC, RFC-1094
and should never be used by a client.

Tested by: thmu@freenet.de
MFC after: 1 week

9 years agoMAXBSIZE defines both the largest UFS block size and the
rmacklem [Sat, 25 Apr 2015 00:52:01 +0000 (00:52 +0000)]
MAXBSIZE defines both the largest UFS block size and the
largest size for a buffer in the buffer cache. This patch
defines a new constant MAXBCACHEBUF, which is the largest
size for a buffer in the buffer cache. Having a separate
constant allows MAXBCACHEBUF to be set larger than MAXBSIZE
on a per-architecture basis, so that NFS can do larger read/writes
for these architectures. It modifies sys/param.h so that BKVASIZE
can also be set on a per-architecture basis.
A couple of cases where NFS used MAXBSIZE instead of NFS_MAXBSIZE
is fixed as well.

Differential Revision: https://reviews.freebsd.org/D2330
Reviewed by: mav, kib
MFC after: 2 weeks

9 years agoTry alternate addresses more agressively.
delphij [Sat, 25 Apr 2015 00:51:44 +0000 (00:51 +0000)]
Try alternate addresses more agressively.

Attempt to connect to alternate addresses if the connect doesn't
succeed in 180ms, and cut wait time between connection attempts
in half for each additional, if no connection was established.

Take the first connection to succeed and close the others.

This makes whois more responsive when e.g. IPv6 service took long
time or fail to respond.

PR: 158125
Submitted by: Mark Andrews <marka isc org> (with changes from me)
MFC after: 2 weeks

9 years agoLimit the number of cylinder groups that will be searched when
mckusick [Fri, 24 Apr 2015 23:27:50 +0000 (23:27 +0000)]
Limit the number of cylinder groups that will be searched when
trying to build a cluster. The limit is tunable using the sysctl
vfs.ffs.maxclustersearch. The current limit is 10 cylinder groups
per block allocation. It was previously limited to the number of
cylinder groups in the filesystem per block allocation. When there
were no clusters of the needed size left, it repeatedly searched
the whole filesystem for a non-existent cluster on every block
allocation. The result was very slow filesystem allocation with
100% CPU utilization. The old behavior can be had by setting
vfs.ffs.maxclustersearch to a huge number (1,000,000).

This change affects only the layout policy routines so is not able
to interfere with the integrity of the filesystem.

Reported by: Dmitry Sivachenko (demon@)
Tested by:   Dmitry Sivachenko (demon@)
MFC after:   2 weeks

9 years agoUse correct length for sparse uiomove(). It must be the clipped to
kib [Fri, 24 Apr 2015 22:05:12 +0000 (22:05 +0000)]
Use correct length for sparse uiomove().  It must be the clipped to
the page size, len is the total transfer length, which may be larger
than zero_region.

Reported and tested by: clusteradm (gjb)
Sponsored by: The FreeBSD Foundation
X-MFC-With: r281442

9 years agoAdd LLDB to BROKEN_OPTIONS for arm prior to armv6
emaste [Fri, 24 Apr 2015 22:04:59 +0000 (22:04 +0000)]
Add LLDB to BROKEN_OPTIONS for arm prior to armv6

LLVM lacks support on FreeBSD for ARMv4/ARMv5 64-bit atomic operations.

Sponsored by: The FreeBSD Foundation

9 years agoFix possible reference leak.
ae [Fri, 24 Apr 2015 21:05:29 +0000 (21:05 +0000)]
Fix possible reference leak.

Sponsored by: Yandex LLC

9 years agoDon't allow guest to modify readonly bits in the PCI config 'status' register.
neel [Fri, 24 Apr 2015 19:15:38 +0000 (19:15 +0000)]
Don't allow guest to modify readonly bits in the PCI config 'status' register.

Reported by: Leon Dang (ldang@nahannisys.com)
MFC after: 2 weeks

9 years agoAdd definition to support alloc_align attribute.
pfg [Fri, 24 Apr 2015 18:07:34 +0000 (18:07 +0000)]
Add definition to support alloc_align attribute.

gcc 4.9 added support for new alignment attribute alloc_align:

The alloc_align attribute is used to tell the compiler that the function
return value points to memory, where the returned pointer minimum
alignment is given by one of the functions parameters. GCC uses this
information to improve pointer alignment analysis.

This attribute is not (yet) available on clang.

9 years agovt(4): Simplify mouse area detection
emaste [Fri, 24 Apr 2015 17:36:26 +0000 (17:36 +0000)]
vt(4): Simplify mouse area detection

vt_is_cursor_in_area needs to return true if any part of the mouse
cursor is visible in the rectangle area. Replace the existing test with
a simpler version of a test for overlapping rectangles.

Differential Revision: https://reviews.freebsd.org/D2356
Reviewed by: ray
Sponsored by: The FreeBSD Foundation

9 years agoRevert r281451. It causes a panic/hang early in boot for a number of
scottl [Fri, 24 Apr 2015 17:03:53 +0000 (17:03 +0000)]
Revert r281451.  It causes a panic/hang early in boot for a number of
users, myself included.  The original code is likely papering over a
larger bug that needs to be explored, but for now get things back to
a working state.

Obtained from: Netflix, Inc.
MFC after: immediately

9 years agoWatchdog drivers need to support rearming the watchdog in contexts which
jhb [Fri, 24 Apr 2015 16:56:23 +0000 (16:56 +0000)]
Watchdog drivers need to support rearming the watchdog in contexts which
are not permitted to sleep.  Only use the IPMI watchdog with backends
which poll driver-initiated requests to meet this requirement.

In practice this means that watchdogs will no longer be used on systems
that use the SSIF backend.

Differential Revision: https://reviews.freebsd.org/D2062
MFC after: 2 weeks

9 years agoMove common code from sys/i386/i386/mp_machdep.c and
kib [Fri, 24 Apr 2015 16:20:56 +0000 (16:20 +0000)]
Move common code from sys/i386/i386/mp_machdep.c and
sys/amd64/amd64/mp_machdep.c, to the new common x86 source
sys/x86/x86/mp_x86.c.

Proposed and reviewed by: jhb
Review: https://reviews.freebsd.org/D2347
Sponsored by: The FreeBSD Foundation

9 years agoMerge from CheriBSD: 1065cf515a7c2062598009c1318055aacbb39e80
brooks [Fri, 24 Apr 2015 16:11:22 +0000 (16:11 +0000)]
Merge from CheriBSD: 1065cf515a7c2062598009c1318055aacbb39e80

Convert the pfsync dissector to use the netdissect framework.

Differential Revision: https://reviews.freebsd.org/D2359
Reviewed by: glebius
Sponsored by: DARPA, AFRL

9 years agoRename the kld for oce(4) to if_oce.ko. ifconfig(8) has special knowledge
jhb [Fri, 24 Apr 2015 14:47:53 +0000 (14:47 +0000)]
Rename the kld for oce(4) to if_oce.ko.  ifconfig(8) has special knowledge
about kld filenames for network drivers that requires them to follow the
pattern of if_<foo>.  This also fixes the existing documentation in the
manpage which says to use if_oce_load=YES in loader.conf.

PR: 199095
MFC after: 1 week

9 years agoFix minor mdoc issues.
joel [Fri, 24 Apr 2015 14:36:06 +0000 (14:36 +0000)]
Fix minor mdoc issues.

9 years agoUpdate this driver to not save copies of registers that are no longer used
jhb [Fri, 24 Apr 2015 13:12:04 +0000 (13:12 +0000)]
Update this driver to not save copies of registers that are no longer used
after r281874.  While here, also update it to always write the parent's
PCI bus number to the primary bus register.

9 years agoFix growfs(8) build with debug enabled (make -DGFSDBG).
trasz [Fri, 24 Apr 2015 12:48:48 +0000 (12:48 +0000)]
Fix growfs(8) build with debug enabled (make -DGFSDBG).

PR: 199641
Submitted by: Willem Jan Withagen <wjw at digiware dot nl>
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAvoid an infinite loop by ensuring that the amount of bytes read is greater
ngie [Fri, 24 Apr 2015 11:03:47 +0000 (11:03 +0000)]
Avoid an infinite loop by ensuring that the amount of bytes read is greater
than 0 in MDXFileChunk when calculating the checksum

This edgecase can be triggered if the file is truncated while the checksum
is being calculated (i.e. the EOF is reached)

Differential Revision: https://reviews.freebsd.org/D2351 (patch by darius)
PR: 196694
Reviewed by: delphij, ngie
Submitted by: Daniel O'Connor <darius@dons.net.au>
Sponsored by: EMC / Isilon Storage Division

9 years ago__xlocale_C_ctype should not be const. It contains a reference count that is modifie...
theraven [Fri, 24 Apr 2015 10:21:20 +0000 (10:21 +0000)]
__xlocale_C_ctype should not be const.  It contains a reference count that is modified by newlocale / duplocale / freelocale.

MFC after: 1 week

9 years agoSmall changes to locale-related man pages.
theraven [Fri, 24 Apr 2015 10:17:55 +0000 (10:17 +0000)]
Small changes to locale-related man pages.
Fix a missing .h and change the recommended include for the POSIX2008 functions from xlocale.h to locale.h.  Including xlocale.h is for legacy / Darwin compatibility so should not be encouraged.

9 years agoOops, add missing comma.
mav [Fri, 24 Apr 2015 09:52:41 +0000 (09:52 +0000)]
Oops, add missing comma.

MFC after: 1 week

9 years agoAdd link to mvs(4).
mav [Fri, 24 Apr 2015 09:47:10 +0000 (09:47 +0000)]
Add link to mvs(4).

MFC after: 1 week

9 years agoMake nfsstat(1) build with WARNS=6.
trasz [Fri, 24 Apr 2015 07:57:59 +0000 (07:57 +0000)]
Make nfsstat(1) build with WARNS=6.

Sponsored by: The FreeBSD Foundation

9 years agoAdd Lynx-Point LP smbus controller ID.
takawata [Fri, 24 Apr 2015 07:24:31 +0000 (07:24 +0000)]
Add Lynx-Point LP smbus controller ID.

9 years agoPlural fix.
kevlo [Fri, 24 Apr 2015 05:00:57 +0000 (05:00 +0000)]
Plural fix.

9 years ago- Fix the length of efuse content.
kevlo [Fri, 24 Apr 2015 04:57:18 +0000 (04:57 +0000)]
- Fix the length of efuse content.
- Replace the magic numbers with something more readable.

9 years agoFix DTrace's panic() action.
markj [Fri, 24 Apr 2015 03:19:30 +0000 (03:19 +0000)]
Fix DTrace's panic() action.

It would previously call into some unfinished Solaris compatibility code and
return without actually calling panic(9). The compatibility code is
unneeded, however, so just remove it and have dtrace_panic() call vpanic(9)
directly.

Differential Revision: https://reviews.freebsd.org/D2349
Reviewed by: avg
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoMake vpanic() externally visible so that it can be called as part of the
markj [Fri, 24 Apr 2015 03:17:21 +0000 (03:17 +0000)]
Make vpanic() externally visible so that it can be called as part of the
DTrace panic() action.

Differential Revision: https://reviews.freebsd.org/D2349
Reviewed by: avg
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd the SOC_IMX51, SOC_IMX53, and SOC_IMX6 options. These are used to
andrew [Thu, 23 Apr 2015 22:20:43 +0000 (22:20 +0000)]
Add the SOC_IMX51, SOC_IMX53, and SOC_IMX6 options. These are used to
select which SoCs the kernel config will support.

Use these options to merge files.imx51 and files.imx53.

9 years agoReduce the diff between files.imx51 and files.imx53
andrew [Thu, 23 Apr 2015 21:39:32 +0000 (21:39 +0000)]
Reduce the diff between files.imx51 and files.imx53

9 years agoPull out the common parts of the ODROIDC1 and VSATV102 kernels to a new
andrew [Thu, 23 Apr 2015 21:31:06 +0000 (21:31 +0000)]
Pull out the common parts of the ODROIDC1 and VSATV102 kernels to a new
kernel config. This also removes the per-board config files from universe.

9 years agoRemove the need for board specific std files on aml8726 by moving the
andrew [Thu, 23 Apr 2015 20:53:29 +0000 (20:53 +0000)]
Remove the need for board specific std files on aml8726 by moving the
options they set to the main kernel config.