194343 Commits

Author SHA1 Message Date
dim
58bc1e001e MFC r259839:
In sys/netinet/in_mcast.c, inm_is_ifp_detached() is only used whenever
KTR is defined, so put it between #ifdef KTR guards.  This avoids a
warning about a unused function if KTR is not enabled.
2013-12-28 01:15:34 +00:00
dim
20a8dfaced MFC r259833:
Remove another unused static const variable num_chip_names, from
aic7xxx.c this time.

Noticed by:	pluknet
2013-12-28 01:08:40 +00:00
peter
cb16a1bd34 MFC r259109: allow ZFS to co-habitate with crypto / aesni 2013-12-28 01:03:30 +00:00
dim
9536e2a918 MFC r259827:
Remove unused static const variable num_chip_names from aic79xx.c.

Reviewed by:	gibbs
2013-12-28 00:53:20 +00:00
dim
8bd563e158 MFC r259825:
Remove unused static function adwccbstatus() from adw(4).

Reviewed by:	gibbs
2013-12-28 00:16:58 +00:00
dim
7b0e1bcf7d MFC r259756:
Get rid of register keyword usage in gperf, it is totally obsolete for
C++, and this allows gperf to be compiled for C++11 without a warning
about it.
2013-12-28 00:03:15 +00:00
delphij
a74695269c MFC r259973:
Tighten default restrictions for ntpd(8) server and provide a link
to NTP access restriction documentation.
2013-12-27 23:09:40 +00:00
markj
62fbf016fd MFC r258000:
Consistently add the relocation offset only when the ELF type is not
ET_EXEC. This fixes several problems with the DTrace pid provider not
being able to match probes.
2013-12-27 23:00:56 +00:00
markj
c911703d60 MFC r257670:
Modify the libproc breakpoint add/remove functions to stop the target
process if it has not already been stopped, since this is required for
ptrace(2) to work.

libdtrace does not seem to stop target processes before trying to remove
their breakpoints, so we were previously failing to remove the breakpoint
on r_debug_state() in rtld. This was causing processes to die with SIGTRAP
if they called dlopen(3) after dtrace(1) had detached.
2013-12-27 22:30:36 +00:00
markj
c8ab069033 MFC r257300:
Fix an off-by-one error when checking whether a given address is within
the extent of a symbol.
2013-12-27 22:19:19 +00:00
adrian
899f5ffc89 Revert r252694 from stable/10 to fix instabilities seen with jemalloc + dhclient/sshd.
This is a direct commit to stable/10 as the VM code has changed
since the stable/10 branch.

PR:		kern/185046
2013-12-27 22:05:51 +00:00
jmmv
e125f95c9c Split and extend bsd.test.mk into {atf,plain,tap}.test.mk.
This is a MFC of:

- r256761 Clearly split the logic to build ATF and plain tests apart.
- r256762 Add the automatic generation of Atffile files.
- r256763 Add the automatic generation of Kyuafile files.
- r256764 Plug atf-run into the 'test' target.
- r256765 Plug kyua into the 'test' target.
- r257096 Move the TESTSBASE definition to bsd.own.mk.
- r257099 Add missing plain.test.mk.
- r258297 Remove registration of C++ test programs into PROGS.
- r258298 Fix the build of plain test programs.
- r258551 Install plain.test.mk.
- r259208 Add tap.test.mk.

Approved by:	rpaulo (mentor)
2013-12-27 22:00:22 +00:00
jhb
33f454b5c1 MFC 258063,258064,258066,258097,258185,259134:
- Add an -s option to the regression tests that specifies a path to an
  alternate etcupdate.sh script to test.  This allows a non-installed
  version of the script to be tested more easily.
- Add a pre-world mode of updating similar to the -p option that can be
  passed to mergemaster.
- Fix a couple of issues with -F:
  - Fix ALWAYS_INSTALL to take precedence over the FreeBSD ID checks.
  - Fix the -F option in the case that the only upstream change is a
    change in the FreeBSD ID and the local file is removed.
- Refresh /etc/localtime after each update using tzsetup -r.
- Regenerate /var/db/services.db when /etc/services changes.
2013-12-27 19:53:42 +00:00
pfg
020ad1f282 gcc: Merge upstream changes.
Include types in error message for build_binary_op.

Mostly cosmetic changes, to reduce differences with Apple's gcc.

Obtained from:	gcc 4.3 (rev. 120611, 124839, 125239; GPLv2)
2013-12-27 16:06:08 +00:00
jhb
285471a802 MFC 259014: There is no sysctl with the MIB { CTL_KERN, KERN_MAXID }. 2013-12-26 16:57:36 +00:00
pfg
a53893ff4d MFC r258904, r259780:
Small ext2fs updates.

Add two new reserved inodes.
Make the hashing algorithm match the linux code.

PR:		kern/183230
2013-12-26 01:12:35 +00:00
bz
5d40dd365f MFC r259267:
Add an FDT DTS and MDROOT kernel configuration for BERI on NetFPGA.

  At this point we only support one CPU, the PIC, and a UART console.

Sponsored by:	DARPA, AFRL
2013-12-25 23:57:01 +00:00
bz
3c552ab887 MFC r259265:
Use correct value pointing to previously selected FDT DTB.

Sponsored by:	DARPA, AFRL
2013-12-25 23:54:38 +00:00
markj
d6a22c4af9 MFC r256661 r257222 r257235 r257248 r257298.
MFC r256661:
Fix the libproc build when DEBUG is defined.

MFC r257222:
Clean up the debug printing in libproc a bit. In particular:

* Don't print any error messages to stderr unless DEBUG is defined.
* Add a DPRINTFX macro for use when errno isn't set.
* Print the error string from libelf when appropriate.

MFC r257235:
Remove an incorrect debug printf.

MFC r257248:
Fix the build with gcc.

MFC r257298:
Revert r257248 and fix the problem in a way that doesn't violate style(9).
2013-12-25 22:36:27 +00:00
pfg
e9055f74fe MFC r258826, r259555, r 259558:
libcpp: Merge fixes from upstream
Fixes:
GCC preprocessor/29966:
GCC preprocessor/28709:
GCC c/31924
GCC preprocessor/14331

gcc: add Apple-compatible -Wnewline-eof

Obtained from:	gcc per-4.3 (rev. 121340, 124356, 124358, 124730,
				  125212, 125255 ; GPLv2)
		Apple Inc. (Apple GCC 4.2 - 5531)
2013-12-25 21:59:56 +00:00
pluknet
ddabe064bb MFC r258469:
- Purge one more reference to ad(4)[1].
- NSWAPDEV limit has gone.

Noticed by:	Sergey V. Dyatko [1]
2013-12-25 15:40:15 +00:00
mav
440a3e9f89 MFC r259222:
Destroy mtx lock when failed to allocate memory during attach.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2013-12-25 12:41:53 +00:00
gjb
d3ac080f01 MFC r259729:
Bootstrap etcupdate(8) as part of the release build, similar
  to what is done for mergemaster(8).  This allows etcupdate(8)
  to work out-of-box after the first upgrade of a system.

Sponsored by:	The FreeBSD Foundation
2013-12-25 06:09:07 +00:00
dim
6978c9a485 MFC r259740:
In usr.bin/sort/radixsort.c, pop_ls_mt() is only referenced if
SORT_THREADS is defined, so make the whole function conditional, instead
of just the pthread calls in it.
2013-12-25 00:53:48 +00:00
dim
d51fec8133 MFC r259724:
Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file:

  don't write a char to a pointer.
2013-12-25 00:48:08 +00:00
dim
525a40cc11 MFC r259720:
For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.
2013-12-25 00:40:42 +00:00
ae
c0cbf2ad7b MFC r259520:
Fix copy/paste typo.
2013-12-24 23:23:44 +00:00
jhb
bf62f8539b MFC 259013:
Fix the processor table entry structure to use a fixed-width type for
32-bit fields so it is the correct size on amd64.  Remove a workaround
for the broken structure from bhyve(8).
2013-12-24 19:10:56 +00:00
jhb
4620ae454b MFC 258869:
Fix an off-by-one error in r228960.  The maximum priority delta provided
by SCHED_PRI_TICKS should be SCHED_PRI_RANGE - 1 so that the resulting
priority value (before nice adjustment) is between SCHED_PRI_MIN and
SCHED_PRI_MAX, inclusive.
2013-12-24 19:01:08 +00:00
jhb
af9076fcae MFC 258177:
Remove an incorrectly copied and pasted clause from these license
statements.
2013-12-24 18:48:29 +00:00
dim
fef52f4b6c MFC r259473:
Enable llvm's integrated assembler for PowerPC, since it should now be
good enough for typical usage.

Requested by:	rdivacky
2013-12-24 14:26:31 +00:00
jilles
20e995f743 MFC r259677: swapon: Fix buffer overflow when configuring swap on GBDE.
PR:		bin/184950
2013-12-24 13:46:54 +00:00
kib
7baf16ac14 MFC r259522:
If vn_open_vnode() succeeded in opening the vnode, but subsequent
advisory lock cannot be obtained, prevent double-close of the vnode in
vn_close() called from the fdrop(), by resetting file' f_ops methods.
2013-12-24 07:32:06 +00:00
kib
d30d9d8d87 MFC r259521:
Do not allow O_EXEC opens for fifo, return EINVAL.
2013-12-24 07:25:49 +00:00
rodrigc
5c0abc1ae6 MFC r259808
Add pointer to wiki for Hyper-V information.

  Wiki content for Hyper-V in FreeBSD 10 was significantly updated by
  Abhishek Gupta <abgupta@microsoft.com>.
2013-12-24 05:17:24 +00:00
np
30cdcf32e9 MFC r259527:
Do not create a hardware IPv6 server if the listen address is not
in6addr_any and is not in the CLIP table either.  This fixes a reported
TOE+IPv6 NULL-dereference panic in do_pass_open_rpl().

While here, stop creating hardware servers for any loopback address.
It's just a waste of server tids.
2013-12-24 02:10:12 +00:00
gjb
b7566d44e9 Switch references to -CURRENT to -STABLE.
This is a direct commit to stable/10/.

Sponsored by:	The FreeBSD Foundation
2013-12-23 21:07:02 +00:00
gjb
df3dfecf5f Update FreeBSD version entity values.
This is a direct commit to stable/10/, because the values differ
between stable/10/ and head/.

Sponsored by:	The FreeBSD Foundation
2013-12-23 20:52:29 +00:00
delphij
c1209e6340 MFC r259058,r259060:
Remove -q from usage.

Document -q and --quiet as discouraged compatibility option.
2013-12-23 20:20:46 +00:00
delphij
907f6b0d31 MFC r259131:
Don't panic when we get ZPOOL_STATUS_NON_NATIVE_ASHIFT
while listing importable pools.
2013-12-23 20:16:54 +00:00
rodrigc
707365826f MFC r259781:
Mention jemalloc upgrade to 3.4.0
2013-12-23 19:51:30 +00:00
rodrigc
ccce1779de MFC:
Merge release note updates.
2013-12-23 11:48:22 +00:00
imp
8313ffe035 MFC r259685:
Plumb the cn_grab and cn_ungrab routines down into the uart
 clients. Mask RX interrupts while grabbed on the atmel serial
 driver. This UART interrupts every character. When interrupts are
 enabled at the mountroot> prompt, this means the ISR eats the
 characters. Rather than try to create a cooperative buffering system
 for the low level kernel console, instead just mask out the ISR. For
 NS8250 and decsendents this isn't needed, since interrupts only happen
 after 14 or more characters (depending on the fifo settings). Plumb
 such that these are optional so there's no change in behavior for all
 the other UART clients. ddb worked on this platform because all
 interrupts were disabled while it was running, so this problem wasn't
 noticed. The mountroot> issue has been around for a very very long
 time.

Approved by:	re@ (gjb@)
2013-12-23 01:24:32 +00:00
jilles
d08ecc86b4 MFC r256650: kldxref: Add static keyword to the new function only used in the
same file.

The WARNS level is not such that the omission broke the build.
2013-12-22 23:08:33 +00:00
dumbbell
7ed70e99db MFC r259717:
drm: Lower priority of "EDID checksum is invalid" message

The priority goes from "error" to "debug".

Connectors are polled every 10 seconds. Reading EDID is part of this
polling. However, when an invalid EDID is returned, this error message
is logged. When using Newcons for instance, having a kernel message
every 10 seconds is getting annoying.

Now that it's a debug message, it'll be logged only if hw.dri.debug is
enabled. This fix console spamming for some users.

Tested by:	Larry Rosenman <ler@lerctr.org>
2013-12-22 21:53:08 +00:00
dumbbell
088efa66e6 MFC r259684:
drm/ttm, drm/radeon: Replace EINTR/ERESTART by ERESTARTSYS...

... for msleep/cv_*wait() return values, where wait_event*() is used
on Linux. ERESTARTSYS is the return code expected by callers when the
operation was interrupted.

For instance, this is the case of radeon_cs_ioctl() (radeon_cs.c): if
an error occurs, and the code isn't ERESTARTSYS (eg. EINTR), it logs an
error.

Note that ERESTARTSYS is defined as ERESTART, but this keeps callers'
code close to Linux.

Submitted by:	avg@ (previous version)
2013-12-22 21:18:21 +00:00
dumbbell
d96320dc31 MFC r259679:
vga_pci: Improve boot display detection

The previous code was checking the "VGA Enable" bit on the video card's
parent PCI-to-PCI bridge only. This didn't work for the case where the
video card is attached to the root PCI bus (ie. the card has no parent
PCI-to-PCI bridge).

Now, the new code:
    1. checks the "VGA Enable" bit on the parent bridge only if it's a
       PCI-to-PCI bridge;
    2. always checks the "I/O" and "Memory address space decoding" bits
       on the video card itself.

However, vendor-specific bits are not used.

This fixes the use of many integrated Radeon cards: without this patch,
we fail to detect them as the boot display and, when radeonkms looks for
the Video BIOS, it skips the shadow copy made by the System BIOS. It
then fails to fully initialize the card, because the shadow copy is the
only way to read the Video BIOS in these situations. A workaround was to
force the boot display selection using the "hw.pci.default_vgapci_unit"
tunable.

A previous version of this patch added a new function doing the checks.
Now, the vga_pci_is_boot_display() function is used to perform the
checks (only until the boot display is found) and return if the given
device is the boot display or not.

Furthermore, vga_pci_attach() logs "Boot video device" if the card being
attached it the Chosen One:
    vgapci0: <VGA-compatible display> [...]
    vgapci0: Boot video device

Reviewed by:	kib@, jhb@ (both a previous version)
Tested by:	lunatic_ (#freebsd-xorg, integrated Radeon card,
		xmj (#freebsd-xorg, i915+NVIDIA cards)
2013-12-22 21:09:43 +00:00
pjd
9a484465f6 MFC r259576:
MFV r258923: 4188 assertion failed in dmu_tx_hold_free(): dn_datablkshift != 0

illumos/illumos-gate@bb411a08b0
2013-12-22 19:36:08 +00:00
mav
53624fa293 MFC r259108:
When comparing device IDs, make sure that they have the same type
(like NAA assigned) and identify the same entity (like device or port).
Otherwise there can be false positives since at least some models of
Seagate disks use same IDs for the whole device and one of its ports.
2013-12-22 13:02:34 +00:00
pfg
68205669ab MFC r258017, r258429, r258748, r258817:
Merge updates from FSF pre4.3 GCC inspired on Apple's gcc:

  Updates to libiberty and mangling.
  New align attribute.
  Merge Apple updates to libstdc++.
2013-12-21 18:47:00 +00:00