]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMFH (r256875): start rtsold if necessary
des [Thu, 27 Feb 2014 13:19:17 +0000 (13:19 +0000)]
MFH (r256875): start rtsold if necessary
MFH (r256878): add a reload command

10 years agoMFH (r256768): don't report an error for no-op add / remove
des [Thu, 27 Feb 2014 13:08:43 +0000 (13:08 +0000)]
MFH (r256768): don't report an error for no-op add / remove

10 years agoMFC r262277:
davidxu [Thu, 27 Feb 2014 02:36:09 +0000 (02:36 +0000)]
MFC r262277:

malloc_aligned() may not leave enough space for pointer to allocated memory,
saving the pointer will overwrite bytes belongs to another memory block
unexpectly, to fix the problem, use (allocated address + sizeof(void *)) as
initial value, and slip to next aligned address, so maximum extra bytes is
sizeof(void *) + align - 1.

Tested by: Andre Albsmeier < mail at ma17 dot ata dot myota dot orgndre >

MFC r262334:

Increase alignment to size of pointer if the alignment is too small.
Some modules do not align data at least to size of pointer, they uses a
smaller alignment, but our pointer should be aligned to its native
boundary, otherwise on some platforms, hardware alignment checking
will cause bus error.

10 years agoMFC r262451:
eadler [Thu, 27 Feb 2014 01:01:02 +0000 (01:01 +0000)]
MFC r262451:

hier(7): Add /usr/lib/private

10 years agoMFC r261577:
yongari [Wed, 26 Feb 2014 06:25:36 +0000 (06:25 +0000)]
MFC r261577:
  Revert r234666.  Clearing TWSI IRQ seems to cause watchdog timeout
  on old Yukon II controllers.

10 years agoMFC: r261773
brueffer [Tue, 25 Feb 2014 07:55:03 +0000 (07:55 +0000)]
MFC: r261773

In acline_init(), initialize ac_line to SRC_UNKNOWN.  Previously
this could lead to the -n option effectively being ignored (in case
ac_line happened to be 0 aka SRC_AC), or other undefined behaviour.

PR: 169779
Submitted by: Alex Gonzalez <loox at e-shell.com>
Reviewed by: jhb

10 years agoMFC r262467: sh: Add -h option to SYNOPSIS
daichi [Tue, 25 Feb 2014 03:49:42 +0000 (03:49 +0000)]
MFC r262467: sh: Add -h option to SYNOPSIS

Reviewed by: jilles

10 years agoMFC r262310:
dim [Mon, 24 Feb 2014 21:22:44 +0000 (21:22 +0000)]
MFC r262310:

Move the part in bsd.own.mk that sets -Wno-c++11-extensions for clang to
bsd.sys.mk, where it really belongs.  This also causes the flag to get
added when clang is *not* the default system compiler, but is still
used, e.g. by setting WITH_CLANG_IS_CC manually.

10 years agoMFC r262309:
mjg [Mon, 24 Feb 2014 21:03:38 +0000 (21:03 +0000)]
MFC r262309:

Fix a race between kern_proc_{o,}filedesc_out and fdescfree leading
to use-after-free.

fdescfree proceeds to free file pointers once fd_refcnt reaches 0, but
kern_proc_{o,}filedesc_out only checked for hold count.

10 years agoMFC r262125:
dim [Mon, 24 Feb 2014 20:29:39 +0000 (20:29 +0000)]
MFC r262125:

In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
about uss820dci_odevd being unused, by adding it to the part that
handles getting descriptors.

Reported by: loos
Reviewed by: hselasky

10 years agoMFC r261774 by feld:
eadler [Mon, 24 Feb 2014 17:01:27 +0000 (17:01 +0000)]
MFC r261774 by feld:

Add caveat to zpool manpage indicating that we do not automatically activate
hot spares. This should be MFC'd to all STABLE branches.

Upon the availability of zfsd, the zpool manpage on relevant branches should
be updated to remove this caveat and document hot spare's reliance on zfsd.

Requested by: feld

10 years agoMFC r262142:
rodrigc [Mon, 24 Feb 2014 08:50:06 +0000 (08:50 +0000)]
MFC r262142:

   In ue_attach_post_task(), initialize curvnet to vnet0 before calling if_attach().
   Before this patch, curvnet was NULL.
   When the VIMAGE kernel option is enabled, this eliminates
   kernel panics when USB ethernet devices are plugged in.

PR: 183835
Submitted by: Hiroo Oono <hiroo.ono at gmail dot com>

10 years agoMFC: r262136
brueffer [Mon, 24 Feb 2014 08:21:49 +0000 (08:21 +0000)]
MFC: r262136

Remove the 3rd clause ("advertising clause") of the BSD license as
permitted by the University of Berkeley on July 22, 1999.

Reviewed by: imp

10 years agoMFC: r262135
brueffer [Mon, 24 Feb 2014 08:18:11 +0000 (08:18 +0000)]
MFC: r262135

Add $FreeBSD$.

10 years agoMFC: r261531
marius [Sun, 23 Feb 2014 21:08:41 +0000 (21:08 +0000)]
MFC: r261531

- Implement the RX EARLYOFF and RXDV GATED bits as done by RealTek's Linux
  driver as iof version 8.037.00 for RTL8168{E-VL,EP,F,G,GU} and RTL8411B.
  This makes reception of packets work with the RTL8168G (HW rev. 0x4c000000)
  in my Shuttle DS47.
- Consistently use RL_MSI_MESSAGES.
In joint forces with: yongari

10 years agoMFC: r261529
marius [Sun, 23 Feb 2014 21:03:30 +0000 (21:03 +0000)]
MFC: r261529

Try to make the style used here consistent.

10 years agoMFC: r261549
brueffer [Sun, 23 Feb 2014 20:13:01 +0000 (20:13 +0000)]
MFC: r261549

Add a manpage for the urndis driver.

Obtained from: OpenBSD

10 years agoMFC r261934:
bdrewery [Sun, 23 Feb 2014 20:07:30 +0000 (20:07 +0000)]
MFC r261934:

  Rework rctl(8) manpage

Approved by: bapt (mentor, implicit)

10 years agoMFC r261931,r261932:
bdrewery [Sun, 23 Feb 2014 20:04:29 +0000 (20:04 +0000)]
MFC r261931,r261932:

  Allow overriding rctl.conf(5) file location for /etc/rc.d/rctl

Approved by: bapt (mentor, implicit)

10 years agoMFC r261872:
hselasky [Sun, 23 Feb 2014 13:36:21 +0000 (13:36 +0000)]
MFC r261872:
Fix minor logical error in the XHCI driver. Set correct SETUP packet
direction value.

10 years agoMFC r261827:
hselasky [Sun, 23 Feb 2014 13:33:21 +0000 (13:33 +0000)]
MFC r261827:
- Remove not needed definitions from driver.
- Get USB input report length from HID descriptor.
- Use 1 finger TAP for devices which has no integrated button.
- Move data buffer to softc instead of allocating it.

10 years agoMFC r261981:
hselasky [Sun, 23 Feb 2014 13:25:43 +0000 (13:25 +0000)]
MFC r261981:
Add new PCI ID for hardware which needs port routing for USB 3.0.

PR: usb/186811

10 years agoMFC r261541, r261543 and r261544:
hselasky [Sun, 23 Feb 2014 13:22:04 +0000 (13:22 +0000)]
MFC r261541, r261543 and r261544:
Import USB RNDIS driver to FreeBSD from OpenBSD.
Useful for so-called USB tethering.
- Imported code from OpenBSD
- Adapted code to FreeBSD
- Removed some unused functions
- Fixed some buffer encoding and decoding issues
- Optimised data transport path a bit, by sending multiple packets at a time
- Increased receive buffer to 16K

10 years agoMFC r261795:
hselasky [Sun, 23 Feb 2014 13:11:33 +0000 (13:11 +0000)]
MFC r261795:
Issue doorbell twice before finally freeing the DMA descriptors. This
should fix DMA descriptor caching issues seen with the EHCI controller
found in Google Chromebook C720 during removal and insertion of USB
devices.

10 years agoMFC: r262243
brueffer [Sun, 23 Feb 2014 09:44:30 +0000 (09:44 +0000)]
MFC: r262243

Fix a cross-reference.

10 years agoMFC 259542:
jhb [Sun, 23 Feb 2014 01:34:40 +0000 (01:34 +0000)]
MFC 259542:
Use vmcs_read() and vmcs_write() in preference to vmread() and vmwrite()
respectively. The vmcs_xxx() functions provide inline error checking of
all accesses to the VMCS.

10 years agoMFC 258859,259081,259085,259205,259213,259275,259482,259537,259702,259779:
jhb [Sun, 23 Feb 2014 00:46:05 +0000 (00:46 +0000)]
MFC 258859,259081,259085,259205,259213,259275,259482,259537,259702,259779:
Several changes to the local APIC support in bhyve:
- Rename 'vm_interrupt_hostcpu()' to 'vcpu_notify_event()'.
- If a vcpu disables its local apic and then executes a 'HLT' then spin
  down the vcpu and destroy its thread context. Also modify the 'HLT'
  processing to ignore pending interrupts in the IRR if interrupts have
  been disabled by the guest.  The interrupt cannot be injected into the
  guest in any case so resuming it is futile.
- Use callout(9) to drive the vlapic timer instead of clocking it on each
  VM exit.
- When the guest is bringing up the APs in the x2APIC mode a write to the
  ICR register will now trigger a return to userspace with an exitcode of
  VM_EXITCODE_SPINUP_AP.
- Change the vlapic timer lock to be a spinlock because the vlapic can be
  accessed from within a critical section (vm run loop) when guest is using
  x2apic mode.
- Fix the vlapic version register.
- Add a command to bhyvectl to inject an NMI on a specific vcpu.
- Add an API to deliver message signalled interrupts to vcpus. This allows
  callers to treat the MSI 'addr' and 'data' fields as opaque and also lets
  bhyve implement multiple destination modes: physical, flat and clustered.
- Rename the ambiguously named 'vm_setup_msi()' and 'vm_setup_msix()' to
  'vm_setup_pptdev_msi()' and 'vm_setup_pptdev_msix()' respectively.
- Consolidate the virtual apic initialization in a single function:
  vlapic_reset()
- Add a generic routine to trigger an LVT interrupt that supports both
  fixed and NMI delivery modes.
- Add an ioctl and bhyvectl command to trigger local interrupts inside a
  guest.  In particular, a global NMI similar to that raised by SERR# or
  PERR# can be simulated by asserting LINT1 on all vCPUs.
- Extend the LVT table in the vCPU local APIC to support CMCI.
- Flesh out the local APIC error reporting a bit to cache errors and
  report them via ESR when ESR is written to.  Add support for asserting
  the error LVT when an error occurs.  Raise illegal vector errors when
  attempting to signal an invalid vector for an interrupt or when sending
  an IPI.
- Export table entries in the MADT and MP Table advertising the stock x86
  config of LINT0 set to ExtInt and LINT1 wired to NMI.

10 years agoMFC 257297:
jhb [Sat, 22 Feb 2014 23:34:39 +0000 (23:34 +0000)]
MFC 257297:
Remove unnecessary includes of <machine/pmap.h>

10 years agoMFC r262324: serf 1.3.4 - improve SSL handling with svn-1.8.8 and other
peter [Sat, 22 Feb 2014 18:55:49 +0000 (18:55 +0000)]
MFC r262324: serf 1.3.4 - improve SSL handling with svn-1.8.8 and other
speedups and quality of life fixes.

10 years agoMFC r261620: MFV r261619:
delphij [Sat, 22 Feb 2014 00:57:55 +0000 (00:57 +0000)]
MFC r261620: MFV r261619:

4574 get_clones_stat does not call zap_count in non-debug kernel

zap_count(...) is never called in non-DEBUG kernel.
As result "count" variable is always 0, and "goto fail" is always
reached.  This means get_clones_stat function never makes up list
of clones for "clones" properties.

10 years agoMFC r261618:
delphij [Sat, 22 Feb 2014 00:30:33 +0000 (00:30 +0000)]
MFC r261618:

In g_eli_crypto_hmac_init(), zero out after using the ipad buffer,
k_ipad.

Note that the two consumers in geli(4) are not affected by this
issue because the way the code is constructed and as such, we
believe there is no security impact with or without this change
with geli(4)'s usage.

Reported by: Serge van den Boom <serge vdboom.org>
Reviewed by: pjd

10 years agoMFC r261538:
mav [Fri, 21 Feb 2014 18:32:45 +0000 (18:32 +0000)]
MFC r261538:
Make CTL block backend return proper error code for operations unsupposed
by the underlying device.

10 years agoMFC r261867:
attilio [Fri, 21 Feb 2014 09:43:34 +0000 (09:43 +0000)]
MFC r261867:
Use the right index to free swapspace after vm_page_rename().

10 years agoMFC: r261900
brueffer [Fri, 21 Feb 2014 09:25:52 +0000 (09:25 +0000)]
MFC: r261900

In chat_UpdateSet(), initialize the input buffer to prevent stale data
from previous timed out commands.

PR: 186530
Submitted by: Alexander Zagrebin <alexz at visp.ru>
Reviewed by: brian

10 years agoMFC: r261885
brueffer [Fri, 21 Feb 2014 09:19:16 +0000 (09:19 +0000)]
MFC: r261885

In sgetpwnam(), save and free pw_class like all other char members
of struct passwd.  This fixes spurious "login_getclass: unknown class"
errors.

PR: 186439
Submitted by: UEMURA Tetsuya <t_uemura at macome.co.jp>

10 years agoMFC r259330,r259331:
mjg [Thu, 20 Feb 2014 21:52:39 +0000 (21:52 +0000)]
MFC r259330,r259331:

rlimit: add and utilize lim_shared

rlimit: avoid unnecessary copying of rlimits

If refcount is 1 just modify rlimits in place.

10 years agoMFC r260233:
mjg [Thu, 20 Feb 2014 21:36:05 +0000 (21:36 +0000)]
MFC r260233:

Plug a memory leak in dup2 when both old and new fd have ioctl caps.

10 years agoMFC r261835:
ae [Thu, 20 Feb 2014 21:01:59 +0000 (21:01 +0000)]
MFC r261835:
  Drop packets to multicast address whose scop field contains the
  reserved value 0.

Sponsored by: Yandex LLC

10 years agoMFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdal
peter [Thu, 20 Feb 2014 20:51:27 +0000 (20:51 +0000)]
MFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdal
build with high -j concurrency.

10 years agoMFC r257129,257936,258084,258569,258602,262250,262251
peter [Thu, 20 Feb 2014 20:34:01 +0000 (20:34 +0000)]
MFC r257129,257936,258084,258569,258602,262250,262251
  svn-1.8.4, 1.8.5, 1.8.8 and self-contained private support libraries

10 years agoMFC: r261858
brueffer [Thu, 20 Feb 2014 08:55:59 +0000 (08:55 +0000)]
MFC: r261858

Fix a bug in be_uuid_dec(); it called le16dec() instead of be16dec(),
probably due to copy+pasting le_uuid_dec().

PR: 146588
Submitted by: Erwin Rol <erwin at erwinrol.com>
Reviewed by: marcel

10 years agoMFC r257883:
eadler [Wed, 19 Feb 2014 19:38:25 +0000 (19:38 +0000)]
MFC r257883:

Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)

PR: kern/182217

10 years agoMFC 261512,261514:
jhb [Wed, 19 Feb 2014 19:28:49 +0000 (19:28 +0000)]
MFC 261512,261514:
- Partially revert r52493 and change client side interval statistics to
  report the actual number of RPCs issued, not the theoretical number
  that would be issued if all caching was disabled.
- Use the DELTA() macro to tidy the server-side interval stats code a bit.

10 years agoMFC 261780:
jhb [Wed, 19 Feb 2014 19:11:14 +0000 (19:11 +0000)]
MFC 261780:
Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an
explicit object type.

10 years agoMFC 261607:
jhb [Wed, 19 Feb 2014 18:36:53 +0000 (18:36 +0000)]
MFC 261607:
Mark the I/O ports used by the bhyve console and debug devices as system
resources.

10 years agoMFC 261524,261526,261527:
jhb [Wed, 19 Feb 2014 18:34:47 +0000 (18:34 +0000)]
MFC 261524,261526,261527:
- Properly set the alignment flags when allocating the initial range for a
  BAR.  This only really matters when pci_do_realloc_bars is enabled and
  the initial allocation of a specific range fails.
- Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
  the resource after creating a resource list entry rather than reimplementing
  it by hand.
- Add two tunables to ignore certain firmware-assigned resources.  These
  are mostly useful for debugging.
  - hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
    set.
  - hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
    bridge I/O windows when set.

10 years agoallow building without INET
luigi [Wed, 19 Feb 2014 08:15:09 +0000 (08:15 +0000)]
allow building without INET

10 years agoMFC r261977:
dim [Wed, 19 Feb 2014 08:05:42 +0000 (08:05 +0000)]
MFC r261977:

In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
being unused, by adding it to the part that handles getting descriptors.

Reviewed by: hselasky

10 years agoMFC r261916:
dim [Wed, 19 Feb 2014 07:59:50 +0000 (07:59 +0000)]
MFC r261916:

In sys/dev/xen/console/console.c, #if 0 an unused static function.

10 years agoMFC r261914:
dim [Wed, 19 Feb 2014 07:55:28 +0000 (07:55 +0000)]
MFC r261914:

In sys/fs/nandfs/nandfs_vfsops.c, #if 0 an unused static function.

10 years agoMFC r261915:
dim [Wed, 19 Feb 2014 07:51:58 +0000 (07:51 +0000)]
MFC r261915:

Under sys/netpfil/ipfw, surround two IPv6-specific static functions with
#ifdef INET6, since they are unused when INET6 is disabled.

10 years agoMFC 261517,261520:
jhb [Tue, 18 Feb 2014 20:27:17 +0000 (20:27 +0000)]
MFC 261517,261520:
Convert the license on files where I am the sole copyright holder to
2 clause BSD licenses.

10 years agoMFC 261518:
jhb [Tue, 18 Feb 2014 20:16:32 +0000 (20:16 +0000)]
MFC 261518:
- Update a few places to account for va_copy().
- Create a separate 'return values' section and move some statements about
  return values to that section.
- Note that each invocation of va_start() and va_copy() must be paired with
  va_end() in the same function.

10 years agoMFC r259052: Expose spa_asize_inflation
avg [Tue, 18 Feb 2014 15:39:59 +0000 (15:39 +0000)]
MFC r259052: Expose spa_asize_inflation

10 years agoMFC r260236:
mav [Tue, 18 Feb 2014 14:56:44 +0000 (14:56 +0000)]
MFC r260236:
In dmu_zfetch_stream_reclaim() replace division with multiplication and
move it out of the loop and lock.

10 years agomissing files from previous commit...
luigi [Tue, 18 Feb 2014 05:46:19 +0000 (05:46 +0000)]
missing files from previous commit...

10 years agoMFH: sync the netmap code with the one in HEAD
luigi [Tue, 18 Feb 2014 05:01:04 +0000 (05:01 +0000)]
MFH: sync the netmap code with the one in HEAD
(enhanced VALE switch, netmap pipes, emulated netmap mode).
See details in the log for svn 261909.

10 years agoMFC r261895:
wblock [Tue, 18 Feb 2014 03:39:20 +0000 (03:39 +0000)]
MFC r261895:

Remove mention of minimum password length and upper/lower case checking,
patch supplied by Allan Jude <freebsd@allanjude.com>.  Add xref to
pam_passwdqc(8), where that testing is now done.

10 years agoMFC r261800:
wblock [Tue, 18 Feb 2014 03:33:51 +0000 (03:33 +0000)]
MFC r261800:

Remove obsolete vnode(9) man page references.

10 years agoMFC 259140:
jhb [Tue, 18 Feb 2014 01:15:32 +0000 (01:15 +0000)]
MFC 259140:
Move constants for indices in the local APIC's local vector table from
apicvar.h to apicreg.h.

10 years agoMFC r258036:
markj [Mon, 17 Feb 2014 22:40:05 +0000 (22:40 +0000)]
MFC r258036:
Add IDs for the ASIX 88179 and 88178A USB to GigE adapters.

MFC r258331:
Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernet
adapters. Both devices support Gigabit Ethernet and USB 2.0, and the AX88179
supports USB 3.0.

MFC r258617 (by lwhsu):
Also note to add xhci(4) to kernel configuration to utilize USB 3.0

MFC r258618 (by lwhsu):
Mention axge(4)

10 years agoMFC 260926:
jhb [Mon, 17 Feb 2014 22:19:49 +0000 (22:19 +0000)]
MFC 260926:
Add support for displaying VPD for PCI devices via pciconf.
- Store the length of each read-only VPD value since not all values are
  guaranteed to be ASCII values (though most are).
- Add a new pciio ioctl to fetch VPD for a single PCI device.  The values
  are returned as a list of variable length records, one for the device
  name and each keyword.
- Add a new -V flag to pciconf's list mode which displays VPD data for
  each device.

10 years agoMFC r261907:
dim [Mon, 17 Feb 2014 20:45:39 +0000 (20:45 +0000)]
MFC r261907:

In cxgbe, conditionalize the t4_pgprot_wc() function, since it is only
used when DOT5 is defined.

Reviewed by: np

10 years agoMFC r261903:
dim [Mon, 17 Feb 2014 20:37:15 +0000 (20:37 +0000)]
MFC r261903:

Disable warning about unused static const variables for sys/pci/ncr.c.

10 years agoMFC r261902:
dim [Mon, 17 Feb 2014 20:31:54 +0000 (20:31 +0000)]
MFC r261902:

In r260111, in sys/conf/files, I disabled warning about unused functions
for the wrong mcg.c, the one in ofed/drivers/infiniband/hw/mlx4.
Disable the warning for ofed/drivers/net/mlx4/mcg.c instead.

10 years agoMFC r261896:
dim [Mon, 17 Feb 2014 20:25:17 +0000 (20:25 +0000)]
MFC r261896:

After r251709, avoid a clang 3.4 warning about an unused static const
variable (uma_max_ipers), when asserts are disabled.

Reviewed by: glebius

10 years agoMFC r261899:
dim [Mon, 17 Feb 2014 20:19:34 +0000 (20:19 +0000)]
MFC r261899:

Similar to r260026, disable warning about unused functions for
ieee80211_adhoc.c, ieee80211_hostap.c and ieee80211_sta.c.

10 years agoMFC r260486:
mav [Mon, 17 Feb 2014 20:04:16 +0000 (20:04 +0000)]
MFC r260486:
Remove very low default limit of 4 nfsd threads.  nfsd's own default is
8 * hw.ncpu, that sounds more appropriate for these SMP/NCQ/... days.

10 years agoMFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit...
avg [Mon, 17 Feb 2014 18:25:41 +0000 (18:25 +0000)]
MFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit bug 4390

10 years agoMFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done
avg [Mon, 17 Feb 2014 18:16:25 +0000 (18:16 +0000)]
MFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done

10 years agoMFC r260704,260717: zfs: getnewvnode_reserve must be called outside of a
avg [Mon, 17 Feb 2014 18:00:24 +0000 (18:00 +0000)]
MFC r260704,260717: zfs: getnewvnode_reserve must be called outside of a
zfs transaction

10 years agoMFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT
avg [Mon, 17 Feb 2014 17:51:50 +0000 (17:51 +0000)]
MFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT

10 years agoMFC r260811: zdb -R: do not treat numeric parameters to a flag as more flags
avg [Mon, 17 Feb 2014 17:48:38 +0000 (17:48 +0000)]
MFC r260811: zdb -R: do not treat numeric parameters to a flag as more flags

10 years agoMFC r260703: zinject must use ioctl(2) compatibility wrapper
avg [Mon, 17 Feb 2014 17:46:15 +0000 (17:46 +0000)]
MFC r260703: zinject must use ioctl(2) compatibility wrapper

10 years agoMFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_remove
avg [Mon, 17 Feb 2014 17:27:52 +0000 (17:27 +0000)]
MFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_remove

10 years agoMFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow for
avg [Mon, 17 Feb 2014 17:11:38 +0000 (17:11 +0000)]
MFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow for
fine-grained control

10 years agoMFC r261401:
bdrewery [Mon, 17 Feb 2014 15:57:16 +0000 (15:57 +0000)]
MFC r261401:

  Fix newsyslog(8) to use the size of the file instead of the blocks it
  takes on disk, as advertised in newsyslog.conf(5).

Approved by: bapt (mentor, implicit)

10 years agoMFC r258715: opensolaris compat: add taskq_wait emulation
avg [Mon, 17 Feb 2014 15:38:10 +0000 (15:38 +0000)]
MFC r258715: opensolaris compat: add taskq_wait emulation

10 years agoMFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc
avg [Mon, 17 Feb 2014 15:35:11 +0000 (15:35 +0000)]
MFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc

10 years agoMFC r258713,262062: add taskqueue_drain_all
avg [Mon, 17 Feb 2014 15:32:08 +0000 (15:32 +0000)]
MFC r258713,262062: add taskqueue_drain_all

10 years agoMFC r260051:
markj [Mon, 17 Feb 2014 14:51:02 +0000 (14:51 +0000)]
MFC r260051:
When clearing relocations to __dtrace* symbols, handle both SHT_REL and
SHT_RELA sections properly instead of assuming that the relocation section
is of type SHT_REL.

10 years agoMFC r258625: sdt: add support for solaris/illumos style DTRACE_PROBE macros
avg [Mon, 17 Feb 2014 14:47:52 +0000 (14:47 +0000)]
MFC r258625: sdt: add support for solaris/illumos style DTRACE_PROBE macros

Note: in head KDTRACE_HOOKS is defined in opt_global.h and thus there is
no need to explicitly include any header to check that option.
In this branch we have to include opt_kdtrace.h and, so, this commit
carries additional changes to accomodate for that difference.

Sponsored by: HybridCluster

10 years agoMFC r260132: Allocate the probe ID unrhdr before the DTrace kld_* event
avg [Mon, 17 Feb 2014 13:36:35 +0000 (13:36 +0000)]
MFC r260132: Allocate the probe ID unrhdr before the DTrace kld_* event
handlers are registered

10 years agoMFC r258291: change the ioctl definition so that the fasttrap ioctl
avg [Mon, 17 Feb 2014 13:11:15 +0000 (13:11 +0000)]
MFC r258291: change the ioctl definition so that the fasttrap ioctl
handler is responsible for copying in userland data

10 years agoMFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrap
avg [Mon, 17 Feb 2014 13:08:20 +0000 (13:08 +0000)]
MFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrap

10 years agoMFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push %rbp"
avg [Mon, 17 Feb 2014 13:02:09 +0000 (13:02 +0000)]
MFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push %rbp"

10 years agoMFC r257417: Remove references to an unused fasttrap probe hook
avg [Mon, 17 Feb 2014 12:57:13 +0000 (12:57 +0000)]
MFC r257417:  Remove references to an unused fasttrap probe hook

10 years agoMFC r257152: Do some cleanup of the SDT code
avg [Mon, 17 Feb 2014 12:48:05 +0000 (12:48 +0000)]
MFC r257152: Do some cleanup of the SDT code

10 years agoMFC r259587: Invoke the kld_* event handlers from linker_load_file() ...
avg [Mon, 17 Feb 2014 12:45:35 +0000 (12:45 +0000)]
MFC r259587: Invoke the kld_* event handlers from linker_load_file() ...

10 years agoMFC r261719:
mav [Mon, 17 Feb 2014 09:35:30 +0000 (09:35 +0000)]
MFC r261719:
Fix wrong device name in example.

PR: docs/185602
Submitted by: koitsu

10 years agoMFC r260043:
markj [Mon, 17 Feb 2014 05:07:43 +0000 (05:07 +0000)]
MFC r260043:
The arguments to sched:::off-cpu are the thread and associated process of
the thread selected to run, not the currently running thread.

10 years agoMFC r261506:
kevlo [Mon, 17 Feb 2014 01:40:33 +0000 (01:40 +0000)]
MFC r261506:

Correct setting R92C_TXAGC_MCS11_MCS08 register.

10 years agoMFC r260463:
kevlo [Mon, 17 Feb 2014 01:39:03 +0000 (01:39 +0000)]
MFC r260463:

Replace deprecated M_DONTWAIT with M_NOWAIT.

10 years agoMFC r260444:
kevlo [Mon, 17 Feb 2014 01:36:53 +0000 (01:36 +0000)]
MFC r260444:

Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED.

The origin of WEP comes from IEEE Std 802.11-1997 where it defines
whether the frame body of MAC frame has been encrypted using WEP
algorithm or not.
IEEE Std. 802.11-2007 changes WEP to Protected Frame, indicates
whether the frame is protected by a cryptographic encapsulation
algorithm.

Reviewed by: adrian, rpaulo

10 years agoMFC r260175:
marcel [Sun, 16 Feb 2014 23:08:21 +0000 (23:08 +0000)]
MFC r260175:
Implement atomic_swap_<type>.

10 years agoMFC r260914:
marcel [Sun, 16 Feb 2014 22:12:13 +0000 (22:12 +0000)]
MFC r260914:
In pmap_set_pte(), make sure to enforce ordering by inserting a memory fence.

10 years agoMFC r260666:
marcel [Sun, 16 Feb 2014 22:01:44 +0000 (22:01 +0000)]
MFC r260666:
In the nested TLB fault handler, for a direct-mapped address, make
sure to clear the lower 12 bits.

10 years agoMFC r259908:
marcel [Sun, 16 Feb 2014 20:54:26 +0000 (20:54 +0000)]
MFC r259908:
For ia64, use pmap_remove_pages() and not pmap_remove().

10 years agoMFC r259838:
marcel [Sun, 16 Feb 2014 20:45:12 +0000 (20:45 +0000)]
MFC r259838:
Add another HP iLO serial (console) port, found on Itanium servers.

10 years agoMFC r259441:
marcel [Sun, 16 Feb 2014 20:37:39 +0000 (20:37 +0000)]
MFC r259441:
Properly drain the TTY when both revoke(2) and close(2) end up closing
the TTY.