Commit Graph

194954 Commits

Author SHA1 Message Date
emaste
958843c32b MFC r258054: Update LLDB to upstream r194122 snapshot
Inludes minor changes relative to upstream, for compatibility with
  FreeBSD's in-tree LLVM 3.3:

  - Reverted LLDB r191806, restoring use of previous API.
  - Reverted part of LLDB r189317, restoring previous enum names.
  - Work around missing LLVM r192504, using previous registerEHFrames API
    (limited functionality).
  - Removed PlatformWindows header include and init/terminate calls.

Sponsored by:	DARPA, AFRL
2014-03-19 13:11:35 +00:00
kib
2a9993c246 MFC r263095:
Initialize paddr to handle the case of zero size.
2014-03-19 13:09:17 +00:00
kib
741b07ba7d MFC r263092:
Do not vdrop() the tmpfs vnode until it is unlocked.  The hold
reference might be the last, and then vdrop() would free the vnode.
2014-03-19 13:04:16 +00:00
kib
5484edfdac MFC r263080:
Use correct types for sizeof() in the calculations for the malloc(9) sizes.
2014-03-19 13:02:17 +00:00
kib
7b315234ad MFC r263079:
The auio structure is only initialized when the vnode is symlink,
avoid reading from it otherwise.
2014-03-19 12:55:57 +00:00
glebius
78bde64905 Merge r259562,r259566,r259638,r259645,r260124 by melifaro:
Switch netstat -rn to use standard API for retrieving list
  of routes instead of peeking inside in-kernel radix via kget.
2014-03-19 09:36:29 +00:00
glebius
73a339242d Merge r262747: remove extraneous ifa_ref()/ifa_free(). 2014-03-19 09:23:58 +00:00
gjb
9fe35c7245 MFC r263105, r263106:
r263105:
  Add hyperv manual pages provided by Microsoft, formatted
  for FreeBSD standards.  Very little, if any, content was
  modified.

r263106:
  Connect the hyperv driver manuals to the build.

Sponsored by:	The FreeBSD Foundation
2014-03-19 01:43:03 +00:00
bdrewery
109ba62b95 MFC r263021:
Support Last-Modified behind proxies which return UTC instead of GMT.
2014-03-19 00:53:24 +00:00
glebius
ad70c4103e Merge r263091: fix mbuf flags clash that lead to failure of operation
of IPSEC and packet filters.

PR:		kern/185876
PR:		kern/186755
2014-03-18 16:56:05 +00:00
mav
5e93044a78 MFC r262741:
Do not retry on CAM_FUNC_NOTAVAIL error, but return immediately.
2014-03-18 14:18:45 +00:00
delphij
a44a1e412b MFC r262754: MFV r253848 (mm):
Update vendor/xz from v5.0 branch to post-5.0.5
2014-03-18 00:59:49 +00:00
markj
f17aef0675 MFC r262325:
Print a backtrace if the SDT(9) stub gets called so that there's at least
some hope of figuring out how it happened.
2014-03-18 00:55:19 +00:00
markj
437134881a MFC r259535:
The fasttrap fork handler is responsible for removing tracepoints in the
child process that were inherited from its parent. However, this should
not be done in the case of a vfork, since the fork handler ends up removing
the tracepoints from the shared vm space, and userland DTrace probes in the
parent will no longer fire as a result.

Now the child of a vfork may trigger userland DTrace probes enabled in its
parent, so modify the fasttrap probe handler to handle this case and handle
the child process in the same way that it would handle the traced process.
In particular, if once traces function foo() in a process that vforks, and
the child calls foo(), fasttrap will treat this call as having come from the
parent. This is the behaviour of the upstream code.

While here, add #ifdef guards to some code that isn't present upstream.
2014-03-18 00:29:33 +00:00
dim
f674f353ee MFC r263120:
Pull in r201021 from upstream libc++ trunk:

  Fix for PR18735 - self-assignment for map/multimap gives incorrect
  results in C++03

(Please note: that is an LLVM PR identifier, not a FreeBSD one.)

Reported by:	rakuco
2014-03-17 20:42:45 +00:00
delphij
78a6a60426 MFC r262676:
All callers of static method load_nvlist() in spa.c handles error case,
so there is no reason to assert that we won't hit an error.  Instead,
just return that error to caller and have the upper layer handle it.

Obtained from:	FreeNAS
Reported by:	rodrigc
Reviewed by:	Matthew Ahrens
2014-03-17 19:09:00 +00:00
hselasky
7024a257ca MFC r262972:
Ignore USB keyboard driver calls from critical sections.
2014-03-17 06:38:40 +00:00
davidxu
fedd035484 MFC r263107:
To avoid missing a chance to cancel thread, call _pthread_testcancel at the
beginning of _sem_timedwait.

Submitted by:	Eric van Gyzen < eric at vangyzen dot net >
2014-03-17 05:03:53 +00:00
kevlo
bcee023c7f MFC r263153, r263154:
- Similar to r246614, fix panic on removing urtwn(4).  It happens because
  nodes are freed after the adapter is gone.

- Reset the bit of the R92C_MCUFWDL associated with checksum report
  before loading firmware page.  It may fix this problem:
  "urtwn0: timeout waiting for checksum report"
2014-03-17 02:14:13 +00:00
dim
fc82e35795 Pull in r192123 from upstream llvm trunk (by Benjamin Kramer):
X86: Fix type check. Just because an integer type is illegal doesn't
  mean it's i64.

  Fixes PR17495, where an i24 triggered this code. It's intended to
  optimize i64 loads on 32 bit x86.

Fixes "Cannot select" fatal errors when building the audio/jack port
with ALSA support turned on.

This is a direct commit to stable/9 and stable/10, since head already
has the commit as part of an upgrade to llvm/clang 3.4.

Reported by:	Radim Kolar <hsn@sendmail.cz> via http://llvm.org/bugs/
2014-03-16 16:33:25 +00:00
hselasky
394eaed7a5 MFC r262663:
- Make pointer easier to control when moving slowly.
- Increase chance of vertical scrolling as vertical scrolling is used more often.
2014-03-15 18:19:09 +00:00
jhibbits
1bd2d12e6e MFC r261421
Add driver for the ADT7460/ADT7467 fan controller found in later PowerBooks
and iBooks.  Original work by andreast.
2014-03-15 00:23:35 +00:00
jhibbits
fdeb176830 MFC r261422
Make gas accept any PowerPC instruction by default.  This is a local change,
and will not be submitted upstream.

Discussed with:       nwhitehorn,rdivacky
2014-03-14 16:42:20 +00:00
hselasky
2489b5a552 MFC
Sync usb.conf file to head branch.
2014-03-14 09:42:57 +00:00
hselasky
89df0f33c3 MFC r262550, r262551 and r262554:
Add support for kqfilter to USB character devices.
2014-03-14 09:11:09 +00:00
mav
855ff9ecbb MFC r262886:
Fix support for increased logical sector size (4K-native drives).

- Logical sector size is measured in words, not bytes.
- If physical sector is not bigger then logical sector, it does not mean
it should be set equal to 512 bytes, but set to logical sector.

PR:		misc/187269
Submitted by:	Ravi Pokala <rpokala@panasas.com>
2014-03-14 07:47:28 +00:00
jhibbits
f44e8da41c MFC r262547
Fix callchain capture for hwpmc(4).  While here, some style(9) fixes, too.
2014-03-14 04:35:18 +00:00
jhibbits
51b0a860f7 MFC r262530
Add missing file to Makefile
2014-03-14 02:37:07 +00:00
delphij
dda91b34ac MFC r262577: MFV r262570:
4626 libzfs memleak in zpool_in_use()
2014-03-14 01:09:42 +00:00
delphij
90e0538945 MFC r262572:
Get rid of the 'chan' from softc structure and use the latter
directly as sleep channel.

PR:		kern/174684
Submitted by:	jmg
2014-03-14 00:57:32 +00:00
jhibbits
74bf659c83 MFC r261342
Add hwpmc(4) support for the PowerPC 970 class processors, direct events.
This also fixes asserts on removal of the module for the mpc74xx.

The PowerPC 970 processors have two different types of events: direct events
and indirect events.  Thus far only direct events are supported.  I included
some documentation in the driver on how indirect events work, but support is
for the future.
2014-03-14 00:12:53 +00:00
eadler
a2a8cc80bf MFC r262540:
r262540 | eadler | 2014-02-26 19:52:34 -0500 (Wed, 26 Feb 2014) | 2 lines

	I had some unrelated (wrong) changes to makewhatis.  Undo them.
2014-03-13 04:25:59 +00:00
eadler
bb8499be4f MFC r262539:
linprocfs: add support for /sys/kernel/random/uuid

PR:		kern/186187
2014-03-13 03:42:00 +00:00
bdrewery
846573e969 MFC r262220:
Add missing Save Cursor support for VT520

PR:		conf/174937
2014-03-13 01:12:27 +00:00
glebius
f105bc7d5b Merge r256514:
- While we are spreading the counter(9) across network stack, more userland
  tools would need to know about the counter_u64_t type. Allow to include
  sys/counter.h from userspace.
2014-03-12 11:09:17 +00:00
glebius
f937dcf2bd Bulk sync of pf changes from head, in attempt to fixup broken build I
made in r263029.

Merge r257186,257215,257349,259736,261797.

These changesets split pfvar.h into several smaller headers and make
userland utilities to include only some of them.
2014-03-12 10:45:58 +00:00
hselasky
eeff801556 MFC r262732:
Add new quirk.

PR:             usb/187188
2014-03-12 08:32:01 +00:00
hselasky
94dc79faf2 MFC r262795:
- Temporary fix for race in RUN driver which can
cause freed memory to be accessed.
- Properly lock callout_reset()'s.
2014-03-12 08:25:25 +00:00
hselasky
2e7d226fc3 MFC r262477:
Updates for WSP driver.
2014-03-12 08:23:27 +00:00
brueffer
8a10179d87 MFC: r261710
Only count table lookups when we're actually processing packets.

PR:		183462
Submitted by:	Sven-Thorsten Dietrich <thebigcorporation at gmail.com>
Reviewed by:	bms
2014-03-12 08:15:15 +00:00
mav
b589beb47e MFC r262789, r262847:
Remove custom bus scanner code and fix use of CAM's default scanner.

This fixes kernel panic during boot, caused by incompatibility of recent
CAM locking changes and this bus scanner code.

Submitted by:	Microsoft
2014-03-12 07:27:05 +00:00
hselasky
cc379b8b7b MFC r262417, r262439, r262454, r262455 and r262478:
- Several updates and improvements to ATP driver.
- Start effort merging WSP and ATP driver.
2014-03-12 07:15:41 +00:00
edwin
6aa8774c6d MFC of 263041, tzdata2014a:
- Fix historical info about asia/Zion, Ukraine
- Fiji starts DST at 02:00 instead of 03:00
- Turkey will move to DST at 31 March this year.
2014-03-11 20:47:01 +00:00
glebius
71d3a4f585 Merge r261882, r261898, r261937, r262760, r262799:
Once pf became not covered by a single mutex, many counters in it became
  race prone. Some just gather statistics, but some are later used in
  different calculations.

  A real problem was the race provoked underflow of the states_cur counter
  on a rule. Once it goes below zero, it wraps to UINT32_MAX. Later this
  value is used in pf_state_expires() and any state created by this rule
  is immediately expired.

  Thus, make fields states_cur, states_tot and src_nodes of struct
  pf_rule be counter(9)s.
2014-03-11 15:43:06 +00:00
jhb
cbdb898ddf MFC 261030:
Similar to cap_mkdb(1), add endianness support to services_mkdb(1)
to support cross-builds once this is invoked during releases.
2014-03-11 15:28:41 +00:00
glebius
6f16f3acfd Merge r261029: remove NULL pointer dereference. 2014-03-11 15:20:47 +00:00
glebius
c517ab4bf1 Merge r261028: fix resource leak and simplify code for DIOCCHANGEADDR. 2014-03-11 15:19:11 +00:00
glebius
67ee44d895 Merge r261169: Fix compilation with IGB_LEGACY_TX defined.
PR:		185909
2014-03-11 15:17:04 +00:00
achim
d9fd2797e5 MFC r257847, r260243: Update aacraid to version 3.2.5.
Approved by:	emaste (co-mentor)
2014-03-11 14:59:34 +00:00
jhb
c157604f42 MFC 261243:
Some BIOSes incorrectly use standard memory resource ranges to list
the memory ranges that they decode for downstream devices rather than
creating ResourceProducer range resource entries.  The result is that
we allocate the full range to the PCI root bridge device causing
allocations in child devices to all fail.

As a workaround, ignore any standard memory resources on a PCI root
bridge device.  It is normal for a PCI root bridge to allocate an I/O
resource for the I/O ports used for PCI config access, but I have not
seen any PCI root bridges that legitimately allocate a memory resource.
2014-03-11 14:33:42 +00:00