]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agobhyve: consider the bogus case of a negative bar idx.
pfg [Fri, 13 May 2016 14:59:02 +0000 (14:59 +0000)]
bhyve: consider the bogus case of a negative bar idx.

This is a followup to r297472 to squelch Coverity.

CID: 1194319

8 years agobhyve: replace uninitialized variable "offset".
pfg [Fri, 13 May 2016 14:38:04 +0000 (14:38 +0000)]
bhyve: replace uninitialized variable "offset".

Use io->io_req.br_offset instead.

Suggested by: grehan
CID: 1288937

8 years agoHandle case of class being set, but not parent when calling
hselasky [Fri, 13 May 2016 13:01:02 +0000 (13:01 +0000)]
Handle case of class being set, but not parent when calling
device_register() in the LinuxKPI.

Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoAdd more PAGE related defines to the LinuxKPI. Move the definition of
hselasky [Fri, 13 May 2016 12:41:21 +0000 (12:41 +0000)]
Add more PAGE related defines to the LinuxKPI. Move the definition of
"pgprot_t" to "linux/page.h" similar to what Linux does.

Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoVersion update patch.
kadesai [Fri, 13 May 2016 12:24:39 +0000 (12:24 +0000)]
Version update patch.

Submitted by:   Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:    Kashyap Desai <Kashyap.Desai@broadcom.com>
MFC after:  3 days
Sponsored by:   AVAGO Technologies

8 years agoFollowing bugs fixed as part of this patch:
kadesai [Fri, 13 May 2016 12:21:50 +0000 (12:21 +0000)]
Following bugs fixed as part of this patch:
.Kernel panic while collecting kdump (reported by Doug A.)
.NULL pointer dereference at sertain places
.Removed dead codes

Submitted by:   Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:    Kashyap Desai <Kashyap.Desai@broadcom.com>
MFC after:  3 days
Sponsored by:   AVAGO Technologies

8 years agoAdded supprot for Avago Intruder controller.
kadesai [Fri, 13 May 2016 12:18:12 +0000 (12:18 +0000)]
Added supprot for Avago Intruder controller.

Submitted by:   Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:    Kashyap Desai <Kashyap.Desai@broadcom.com>
MFC after:  3 days
Sponsored by:   AVAGO Technologies

8 years agoImplemented interrupt Config Hook in mrsas(4) to defer some of the tasks, like:
kadesai [Fri, 13 May 2016 12:15:20 +0000 (12:15 +0000)]
Implemented interrupt Config Hook in mrsas(4) to defer some of the tasks, like:
riegistering AEN, creating cdev.

Submitted by:   Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:    Kashyap Desai <Kashyap.Desai@broadcom.com>
MFC after:  3 days
Sponsored by:   AVAGO Technologies

8 years agoThis patch implements driver support for 1MB IO size.
kadesai [Fri, 13 May 2016 12:12:09 +0000 (12:12 +0000)]
This patch implements driver support for 1MB IO size.

NOTE:
The FreeBSD system currently restricts the MAX IO size to MAXPHYS which
in turn is 128KB. We tested the 1MB IO by converting the MAXPHYS to 1MB.

Following is the mail reference:
http://lists.freebsd.org/pipermail/freebsd-scsi/2015-January/006568.html

Submitted by:   Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:    Kashyap Desai <Kashyap.Desai@broadcom.com>
MFC after:  3 days
Sponsored by:   AVAGO Technologies

8 years agoSimilar to RAID map for Logical Drives, now JBOD map has been introduced for
kadesai [Fri, 13 May 2016 12:05:02 +0000 (12:05 +0000)]
Similar to RAID map for Logical Drives, now JBOD map has been introduced for
JBODs. Driver has to sync the JBOD map with firmware and use sequence number
as a reference for JBOD FastPath I/O's.

Submitted by:   Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:    Kashyap Desai <Kashyap.Desai@broadcom.com>
MFC after:  3 days
Sponsored by:   AVAGO Technologies

8 years agoThere was no ERROR handling for firmware command TIMEOUT. This patch
kadesai [Fri, 13 May 2016 12:00:46 +0000 (12:00 +0000)]
There was no ERROR handling for firmware command TIMEOUT. This patch
takes care of any firmware command timeout scenarios by initiating OCR.

Submitted by:   Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:    Kashyap Desai <Kashyap.Desai@broadcom.com>
MFC after:  3 days
Sponsored by:   AVAGO Technologies

8 years agoImplement "old_encode_dev()" for the LinuxKPI.
hselasky [Fri, 13 May 2016 11:51:43 +0000 (11:51 +0000)]
Implement "old_encode_dev()" for the LinuxKPI.

Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoDefine _IOC_SIZE() in the LinuxKPI.
hselasky [Fri, 13 May 2016 11:42:36 +0000 (11:42 +0000)]
Define _IOC_SIZE() in the LinuxKPI.

Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoAdd unlikely() statement to optimise the IS_ERR_VALUE() macro.
hselasky [Fri, 13 May 2016 11:30:56 +0000 (11:30 +0000)]
Add unlikely() statement to optimise the IS_ERR_VALUE() macro.

Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoFix a -Wformat warning by using %d, not %ld for md_iterations
ngie [Fri, 13 May 2016 11:27:49 +0000 (11:27 +0000)]
Fix a -Wformat warning by using %d, not %ld for md_iterations

md_iterations is int32_t, not long.

Reported by: clang
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd geliboot_crypt(..) definition to geliboot.h to mute a -Wimplicit-function-declaration
ngie [Fri, 13 May 2016 11:24:55 +0000 (11:24 +0000)]
Add geliboot_crypt(..) definition to geliboot.h to mute a -Wimplicit-function-declaration
warning

Reported by: clang
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoPut slba and elba under LOADER_GELI_SUPPORT ifdef to mute warning about them being
ngie [Fri, 13 May 2016 11:20:21 +0000 (11:20 +0000)]
Put slba and elba under LOADER_GELI_SUPPORT ifdef to mute warning about them being
unused in the non-GELI case

MFC after: 1 week
Reported by: clang
Sponsored by: EMC / Isilon Storage Division

8 years agoRemove unused const variable
ngie [Fri, 13 May 2016 11:18:29 +0000 (11:18 +0000)]
Remove unused const variable

MFC after: 1 week
Reported by: clang
Sponsored by: EMC / Isilon Storage Division

8 years agoWhen using IOPORT with pci_host_generic we are missing setting the rman_end()
bz [Fri, 13 May 2016 11:18:27 +0000 (11:18 +0000)]
When using IOPORT with pci_host_generic we are missing setting the rman_end()
which leads to end being before start and thus a signed extended very large
number of size later on, which kva_alloc() will fail upon and we will panic.
Add the missing call.

Debugged with: andrew
Reviewed by: br, andrew
Sponsored by: DARPA/AFRL
Found: while using virtio with gem5
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D6337

8 years agoInclude arpa/inet.h to get the htonl(3) definition
ngie [Fri, 13 May 2016 11:15:33 +0000 (11:15 +0000)]
Include arpa/inet.h to get the htonl(3) definition

MFC after: 2 weeks
Reported by: clang
Sponsored by: EMC / Isilon Storage Division

8 years agoImplement nsecs_to_jiffies() in the LinuxKPI and while at it
hselasky [Fri, 13 May 2016 11:02:02 +0000 (11:02 +0000)]
Implement nsecs_to_jiffies() in the LinuxKPI and while at it
streamline the rest of the xxx_to_jiffies() functions to have a
constant 64-bit argument and use identical range checks for the
result.

Specifically preserve msecs_to_jiffies(0) returning 0. See r282743 for
further details.

MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoAdd missing prototype for getchar(..)
ngie [Fri, 13 May 2016 10:59:46 +0000 (10:59 +0000)]
Add missing prototype for getchar(..)

MFC after: 1 week
Reported by: clang
Sponsored by: EMC / Isilon Storage Division

8 years agoRead the contents of the snapshot files properly
ngie [Fri, 13 May 2016 10:52:02 +0000 (10:52 +0000)]
Read the contents of the snapshot files properly

- Use fgetln instead of fgets; localize complexity related to fgetln(3)
  inside the loop.
- Skip over blank lines.
- Skip over lines (properly) that start with a "#"

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd more Linux defines. Improve some existing ones.
hselasky [Fri, 13 May 2016 10:10:43 +0000 (10:10 +0000)]
Add more Linux defines. Improve some existing ones.

Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoThe Linux error defines should all be positive, else frequently used
hselasky [Fri, 13 May 2016 09:21:22 +0000 (09:21 +0000)]
The Linux error defines should all be positive, else frequently used
error code checks might fail. ERESTART is in the BSD world defined as
-1. While at it add more Linux error codes.

Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoFix a bug introduced by the implementation of I-DATA support.
tuexen [Fri, 13 May 2016 09:11:41 +0000 (09:11 +0000)]
Fix a bug introduced by the implementation of I-DATA support.
There was the requirement that two structures are in sync,
which is not valid anymore. Therefore don't rely on this
in the code anymore.
Thanks to Radek Malcic for reporting the issue. He found this
when using the userland stack.

MFC after: 1 week

8 years agosfxge(4): rename falconsiena_filter_*
arybchik [Fri, 13 May 2016 07:17:38 +0000 (07:17 +0000)]
sfxge(4): rename falconsiena_filter_*

Falcon support has been removed, so this code only supports Siena.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): rename falconsiena_tx_*
arybchik [Fri, 13 May 2016 07:16:29 +0000 (07:16 +0000)]
sfxge(4): rename falconsiena_tx_*

Falcon support has been removed, so this code only supports Siena.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): rename falconsiena_rx_*
arybchik [Fri, 13 May 2016 07:15:51 +0000 (07:15 +0000)]
sfxge(4): rename falconsiena_rx_*

Falcon support has been removed, so this code only supports Siena.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): rename falconsiena_mac_*
arybchik [Fri, 13 May 2016 07:15:02 +0000 (07:15 +0000)]
sfxge(4): rename falconsiena_mac_*

Falcon support has been removed, so this code only supports Siena.

Reviewed by:    Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): rename falconsiena_intr_*
arybchik [Fri, 13 May 2016 07:12:14 +0000 (07:12 +0000)]
sfxge(4): rename falconsiena_intr_*

falcon support has been removed, so this code only supports Siena.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): rename falconsiena_ev_*
arybchik [Fri, 13 May 2016 07:11:36 +0000 (07:11 +0000)]
sfxge(4): rename falconsiena_ev_*

Falcon support has been removed, so this code only supports Siena.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_vpd_* to ef10_vpd.c
arybchik [Fri, 13 May 2016 07:10:07 +0000 (07:10 +0000)]
sfxge(4): move ef10_vpd_* to ef10_vpd.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_tx_* to ef10_tx.c
arybchik [Fri, 13 May 2016 07:08:33 +0000 (07:08 +0000)]
sfxge(4): move ef10_tx_* to ef10_tx.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_rx_* to ef10_rx.c
arybchik [Fri, 13 May 2016 07:06:57 +0000 (07:06 +0000)]
sfxge(4): move ef10_rx_* to ef10_rx.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_phy_* to ef10_phy.c
arybchik [Fri, 13 May 2016 07:05:40 +0000 (07:05 +0000)]
sfxge(4): move ef10_phy_* to ef10_phy.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_nvram_* to ef10_nvram.c
arybchik [Fri, 13 May 2016 07:04:28 +0000 (07:04 +0000)]
sfxge(4): move ef10_nvram_* to ef10_nvram.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_nic_* to ef10_nic.c
arybchik [Fri, 13 May 2016 07:03:04 +0000 (07:03 +0000)]
sfxge(4): move ef10_nic_* to ef10_nic.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_mcdi_* to ef10_mcdi.c
arybchik [Fri, 13 May 2016 07:00:46 +0000 (07:00 +0000)]
sfxge(4): move ef10_mcdi_* to ef10_mcdi.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_mac_* to ef10_mac.c
arybchik [Fri, 13 May 2016 06:59:20 +0000 (06:59 +0000)]
sfxge(4): move ef10_mac_* to ef10_mac.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_intr_* to ef10_intr.c
arybchik [Fri, 13 May 2016 06:58:20 +0000 (06:58 +0000)]
sfxge(4): move ef10_intr_* to ef10_intr.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_filter_* to ef10_filter.c
arybchik [Fri, 13 May 2016 06:57:08 +0000 (06:57 +0000)]
sfxge(4): move ef10_filter_* to ef10_filter.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): move ef10_ev_* to ef10_ev.c
arybchik [Fri, 13 May 2016 06:54:18 +0000 (06:54 +0000)]
sfxge(4): move ef10_ev_* to ef10_ev.c

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week

8 years agosfxge(4): comment on when we assume multicast chaining is available
arybchik [Fri, 13 May 2016 06:47:47 +0000 (06:47 +0000)]
sfxge(4): comment on when we assume multicast chaining is available

It's the same on Medford as Huntington.

Multicast chaining is not always on, even with Medford, as it's not
supported by low latency firmware.

Unlike the Linux driver, we don't need to support virtulization with
firmware released before support for multicast chaining was added.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D6319

8 years agosfxge(4): avoid duplicate delivery of packets when changing multicast mode with multi...
arybchik [Fri, 13 May 2016 06:47:07 +0000 (06:47 +0000)]
sfxge(4): avoid duplicate delivery of packets when changing multicast mode with multicast chaining enabled

With multicast chaining, if e.g. a specific multicast filter is
inserted and the multicast mis-match filter is then inserted, both may
match a packet and cause it to be delivered.

Copy the behaviour of the Linux driver, which is to remove the old filters
first, on the basis that customers are more likely to be able to handle
drops than duplicates (see bug49178 comment 4).

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D6331

8 years agoProperly compute the size argument to pass to malloc().
truckman [Fri, 13 May 2016 06:45:16 +0000 (06:45 +0000)]
Properly compute the size argument to pass to malloc().

Reported by: Coverity
CID: 1198856
MFC after: 1 week

8 years agoMove a call to cam_freeccb() to avoid a use after free error and
truckman [Fri, 13 May 2016 06:26:42 +0000 (06:26 +0000)]
Move a call to cam_freeccb() to avoid a use after free error and
a later double free.

Reported by: Coverity
CID: 1018507
MFC after: 1 week

8 years agoAlways return either a dynamically allocated string or NULL from
truckman [Fri, 13 May 2016 06:15:05 +0000 (06:15 +0000)]
Always return either a dynamically allocated string or NULL from
expand().  Never return the name parameter, which could be a the buf[]
buffer which is allocated on the stack by getdeadletter() and which
would then be used after getdeadletter() has returned.

Reported by: Coverity
CID: 1199383
MFC after: 1 week

8 years agoDon't jam the softc in the device_probe routine. The softc isn't owned by
scottl [Fri, 13 May 2016 05:57:21 +0000 (05:57 +0000)]
Don't jam the softc in the device_probe routine.  The softc isn't owned by
the driver here, so it shouldn't be accessed, let alone written to.  Remove
the nearby debug line, it's the only thing that depended on the softc, and
it depended on it in a way that couldn't work in this part of the code.

This fixes some reports of use-after-free and system instability with
DEBUG_MEMGUARD enabled.

Submitted by: Matthew Macy
MFC after: 3 days

8 years agoInstead of ignoring the EEXIST from link(), unconditionally unlink
truckman [Fri, 13 May 2016 05:49:02 +0000 (05:49 +0000)]
Instead of ignoring the EEXIST from link(), unconditionally unlink
the terget before calling link().  This should prevent links to an
old copy of the file from being retained.

8 years agoRevert r299584:
truckman [Fri, 13 May 2016 05:39:29 +0000 (05:39 +0000)]
Revert r299584:
  Mark usage() as __dead2 so that Coverity doesn't think that execution
  continues after the call and uses a negative array subscript.

Requested by: bde

8 years agoUpdate jemalloc to 4.2.0.
jasone [Fri, 13 May 2016 04:03:20 +0000 (04:03 +0000)]
Update jemalloc to 4.2.0.

8 years agoi2c(8): uninitialized variable (UNINIT).
pfg [Fri, 13 May 2016 02:58:11 +0000 (02:58 +0000)]
i2c(8): uninitialized variable (UNINIT).

If i2c_opt.width is somehow zero, the bufsize will be left uninitialized
and make cause trouble later on.

CID: 1331549

8 years agoDeclare line[] in the outermost scope of retrieve() instead of
truckman [Fri, 13 May 2016 01:52:41 +0000 (01:52 +0000)]
Declare line[] in the outermost scope of retrieve() instead of
declaring it in an inner scope and then using it via a pointer
in the outer scope.

Reported by:    Coverity
CID:            605895

8 years agoMark usage() as __dead2 so that Coverity doesn't think that execution
truckman [Fri, 13 May 2016 01:14:38 +0000 (01:14 +0000)]
Mark usage() as __dead2 so that Coverity doesn't think that execution
continues after the call and uses a negative array subscript.

Reported by: Coverity
CID: 1305629

8 years agoAvoid indexing an array with a negative value.
truckman [Fri, 13 May 2016 00:58:05 +0000 (00:58 +0000)]
Avoid indexing an array with a negative value.

Reported by: Coverity
CID: 971121

8 years agoSimplify some overly complex code so that both humans and Coverity
truckman [Fri, 13 May 2016 00:50:53 +0000 (00:50 +0000)]
Simplify some overly complex code so that both humans and Coverity
have a better chance of understanding it.

Reported by: Coverity
CID: 10096841006931

8 years agoUse strlcpy() instead of strncpy() to ensure that qf->fsname is NUL
truckman [Fri, 13 May 2016 00:26:14 +0000 (00:26 +0000)]
Use strlcpy() instead of strncpy() to ensure that qf->fsname is NUL
terminated.  Don't bother checking for truncation since the subsequent
stat() call should detect that and fail.

Reported by: Coverity
CID: 1018189
MFC after: 1 week

8 years agoUse strlcpy() instead of strncpy() to ensure that ret->name is
truckman [Fri, 13 May 2016 00:17:57 +0000 (00:17 +0000)]
Use strlcpy() instead of strncpy() to ensure that ret->name is
NUL terminated.  The source and destination buffers are the same
size and the source *should* be NUL terminated, but be paranoid.

Reported by: Coverity
CID: 1011274
MFC after: 1 week

8 years agoUse strlcpy() instead of strncpy() to ensure that qup->fsname is NUL
truckman [Fri, 13 May 2016 00:02:03 +0000 (00:02 +0000)]
Use strlcpy() instead of strncpy() to ensure that qup->fsname is NUL
terminated.  Don't bother checking for truncation since the subsequent
quota_read() should detect that and fail.

Reported by: Coverity
CID: 1009980
MFC after: 1 week

8 years agoIf fchdir() fails, call err() instead of warn().
truckman [Thu, 12 May 2016 23:37:58 +0000 (23:37 +0000)]
If fchdir() fails, call err() instead of warn().

8 years agoAvoid Coverity NUL termination warning about strncpy() by using
truckman [Thu, 12 May 2016 23:14:31 +0000 (23:14 +0000)]
Avoid Coverity NUL termination warning about strncpy() by using
memcpy() instead.  It's probably a bit more optimal in this case
anyway. [1]

The program logic leading up to the creation of the strncpy/memcpy
destination buffer is a bit hairy.  Add a call to assert() to make
it clear what is happening here and detect any potential buffer
overruns in the future.

Check a couple syscall error returns.  Ignore the EEXIST error from
link() to preserve existing behavior. [2] [3]

Reported by: Coverity
CID: 1009659 [1], 1009349 [2], 1009350 [3]

8 years agoFix broken cpio behavior.
mm [Thu, 12 May 2016 22:51:04 +0000 (22:51 +0000)]
Fix broken cpio behavior.
Suggested upstream as PR #704.

MFC: 1 month (together with libarchive 3.2.0)

8 years agonet80211: drop some unused variables / local macros
avos [Thu, 12 May 2016 22:17:00 +0000 (22:17 +0000)]
net80211: drop some unused variables / local macros

Most of them left after some commits (r178354, r191544, r287197 etc.);
some were never used.

Found by: Clang Static Analyzer

8 years agostdio.h: Fix function-type typedef style and use _types.h __ssize_t
cem [Thu, 12 May 2016 22:13:12 +0000 (22:13 +0000)]
stdio.h: Fix function-type typedef style and use _types.h __ssize_t

I'm still not sure why only Pypy runs into the error with the function
typedefs.  Fix it anyway.

Use __ssize_t instead of ssize_t for the types; it's possible for the size_t
type to not be visible if at the wrong POSIX_VISIBLE level.

A final (crossing my fingers) follow-up to r299456.

Sponsored by: EMC / Isilon Storage Division

8 years agoUse strlcpy() instead of strncpy() when copying to dom_domain to
truckman [Thu, 12 May 2016 21:35:40 +0000 (21:35 +0000)]
Use strlcpy() instead of strncpy() when copying to dom_domain to
ensure that the latter is NUL terminated since it is passed
as an argument to *printf().

Warn about NIS domains that are too long.

Reported by: Coverity
CID: 10096201009621
MFH: 1 week

8 years agolibc: Actually export fopencookie(3)
cem [Thu, 12 May 2016 21:30:22 +0000 (21:30 +0000)]
libc: Actually export fopencookie(3)

A follow-up to r299456.

Sponsored by: EMC / Isilon Storage Division

8 years agoPollute more places with off64_t and add __off64_t
cem [Thu, 12 May 2016 21:18:17 +0000 (21:18 +0000)]
Pollute more places with off64_t and add __off64_t

Despite the private namespace, several broken ports depend on the __off64_t
name for the type.  Export it exactly the same way off_t and __off_t are
exported.

A follow-up to r299456.

Suggested by: php56
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd loadable module for gpiokeys
gonzo [Thu, 12 May 2016 20:20:54 +0000 (20:20 +0000)]
Add loadable module for gpiokeys

8 years agoFix detach routine for gpiokeys
gonzo [Thu, 12 May 2016 20:15:23 +0000 (20:15 +0000)]
Fix detach routine for gpiokeys

- Release pin only when all per=key callouts are stopped
- Unregister keyboard when detaching device node

8 years agoProperly release mapped pin in gpio_pin_release
gonzo [Thu, 12 May 2016 20:13:16 +0000 (20:13 +0000)]
Properly release mapped pin in gpio_pin_release

8 years agoAdd gpiobus_release_pin function to release mapped pin
gonzo [Thu, 12 May 2016 20:12:45 +0000 (20:12 +0000)]
Add gpiobus_release_pin function to release mapped pin

Add gpiobus_release_pin as a counterpart for gpiobus_map_pin. Without it
it's impossible to properly release pin so if kernel module is reloaded
it can't re-use pins again

8 years agoAdd myself to the list of src committers. I've never been added it
n_hibma [Thu, 12 May 2016 20:04:09 +0000 (20:04 +0000)]
Add myself to the list of src committers. I've never been added it
seems.

8 years agoAllow silencing of 'promiscuous mode enabled/disabled' messages.
n_hibma [Thu, 12 May 2016 19:42:13 +0000 (19:42 +0000)]
Allow silencing of 'promiscuous mode enabled/disabled' messages.

PR: 166255
Submitted by: eugen.grosbein.net
Obtained from: eugen.grosbein.net
MFC after: 1 week

8 years agoDocument r296633, OpenSSH updated to 7.2p2.
skreuzer [Thu, 12 May 2016 19:32:40 +0000 (19:32 +0000)]
Document r296633, OpenSSH updated to 7.2p2.

Approved by: gjb@ (implicit with re@ hat on)

8 years agoixl: Re-add a change to TC0 setup made in D5203.
erj [Thu, 12 May 2016 18:22:34 +0000 (18:22 +0000)]
ixl: Re-add a change to TC0 setup made in D5203.

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.27-k.
erj [Thu, 12 May 2016 18:22:12 +0000 (18:22 +0000)]
ixl: Update to 1.4.27-k.

Changes:

Kevin Scott i40e-shared: Save off VSI resource count when updating VSI
Anjali Singhai Jain i40e-shared: Expose some registers to program parser, FD and RSS logic
Eric Joyner ixl: Fix errors in queue interrupt setup in MSIX mode.
Shannon Nelson i40e-shared: implement and use rx ctl helper functions
Shannon Nelson i40e-shared: don't use AQ calls from clear_hw
Eric Joyner ixl: Use rx ctl read/write functions instead of register accesses in certain places.
Shannon Nelson i40e-shared: add adminq commands for rx ctl registers
Shannon Nelson i40e-shared: implement and use rx ctl helper functions
Jeremiah Kyle i40e-shared: Corrected function name in comment block
Deepthi Kavalur i40e-shared: correcting a HW capability display info
Shannon Nelson i40e-shared: fixups for (Linux) upstream consistency
Eric Joyner ixl: Only stop firmware's LLDP agent on older firmware versions.

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.24-k.
erj [Thu, 12 May 2016 18:21:52 +0000 (18:21 +0000)]
ixl: Update to 1.4.24-k.

Changes by author:

Eric Joyner ixl: Fix compile error when IXL_DEBUG is defined.
Eric Joyner ixl: Fix taskqueues created in init() not being freed in stop().
Eric Joyner ixl: Add additional debug sysctls, for Tx and Rx queue stats.
Eric Joyner ixl: Enable dynamic itr by default.
Eric Joyner ixl: Edit spacing, comments,  function signatures (to conform to style(9)).
Eric Joyner ixl: Check for errors when tearing down msix interrupts.
Eric Joyner ixl: Remove unnecessary register reads/writes.
Eric Joyner ixl: Remove admin queue interrupt enable from general interrupt enable.
Eric Joyner ixl: Update switch config after teardown/reset flow in init().
Eric Joyner ixl: Add additional admin queue error code output to admin queue call errors.
Eric Joyner ixl: Don't destroy i40e spinlock if it's already uninitialized.
Shannon Nelson i40e-shared: clean event descriptor before use
Anjali Singhai Jain i40e-shared: When in promisc mode apply promisc mode to Tx Traffic as well
Kevin Scott i40e_shared: Increase timeout when checking GLGEN_RSTAT_DEVSTATE bit
Eric Joyner ixlv: Fix IXL_DEBUG compile issue.
Eric Joyner ixlv: Attempt to fix panic/other issues when rapidly unloading/loading driver.
Eric Joyner ixl/ixlv: Revert m_collapse() in ixl_xmit() to m_defrag().
Deepthi Kavalur i40e_shared: Trace logging HW capabilities
Eric Joyner ixlv: Correctly unlock/relock around init() call in vc_completion().
Eric Joyner ixl: Stop preventing changing flow control mode for CR4 media.
Eric Joyner ixl: Set IPv6 TCP offload flag when doing TSO.

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.20-k.
erj [Thu, 12 May 2016 18:21:34 +0000 (18:21 +0000)]
ixl: Update to 1.4.20-k.

Changes by author:

Eric Joyner ixl: Add more error messages/checks to ixl_vsi_assign_msix().
Eric Joyner ixl/ixlv: Clarify a comment about descriptors.
Eric Joyner ixl/ixlv: Improve i40e_debug() implementation.
Eric Joyner ixl/ixlv: Remove unused ASSERT() macro; move struct around.
Eric Joyner ixl: Set initial advertised speed value in init_locked().
Eric Joyner ixl: Fix flow control sysctl value being stored when new value is invalid.
Eric Joyner Edit comments and spacing.
Carolyn Wyborny i40e-shared: Add functions to blink led on Coppervale PHY
Eric Joyner ixl: Re-do interrupt setup.
Eric Joyner ixl: Remove VFLR task setup from legacy flow.
Eric Joyner ixl: Shutdown/setup HMC when handling an EMPR reset.

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.17-k.
erj [Thu, 12 May 2016 18:21:17 +0000 (18:21 +0000)]
ixl: Update to 1.4.17-k.

Changes:

Kiran Patil i40e-shared: APIs to Add/remove port mirroring rules
Shannon Nelson i40e-shared: add VEB stat control and remove L2 cloud filter
Eric Joyner ixl: Update NVM version information shown.
Eric Joyner ixl: Remove empty else block.
Eric Joyner ixl: Slightly re-work ixl_init_msix().
Eric Joyner ixl: Remove duplicate queue enablement.
Shannon Nelson i40e-shared: implement the API function for aq_set_switch_config
Eric Joyner ixl: Update nvm version string shown in sysctl.
Eric Joyner ixl/ixlv: Changes to PF/VF minor version checking/handling.
Eric Joyner ixlv: Reduce maximum wait time for responses to VF AQ messages.
Eric Joyner ixl/ixlv: Edit comments, comment out code, and edit spacing.
Eric Joyner ixl: Print log message when SR-IOV init is successful.
Eric Joyner ixl: Add Tx Flow Control filter from main PF VSI.
Eric Joyner ixlv: Add extra error message when ixlv_get_vf_config times out.
Eric Joyner ixl: Assign current MOCS optics the XLPPI media type.
Eric Joyner ixl: Remove conditional wait after link status event.
Eric Joyner ixl: Add line break and remove extraneous return statement.
Eric Joyner ixl: Allow 40G speeds in the advertise_speed sysctl.
Eric Joyner ixl: Add "CRC enable" field to link_status sysctl output.
Eric Joyner ixl: Move sbuf.h include out of IXL_DEBUG* defines.
Eric Joyner ixl: Move remaining debug sysctl funcs to IXL_DEBUG_SYSCTL define.
Eric Joyner ixl: Add cases for all remaining media types in shared code to media_status().

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.13-k.
erj [Thu, 12 May 2016 18:20:59 +0000 (18:20 +0000)]
ixl: Update to 1.4.13-k.

Changes:

Shannon Nelson i40e-shared: set shared bit for multicast filters
Piotr Raczynski i40e-shared: Bump AQ minor version for FVL/FPK
Eric Joyner ixl: Remove call to i40e_aq_set_mac_config() in init path.
Eric Joyner ixl: Always add interface mac address to driver+hw filter list.
Eric Joyner ixl: Edit comments.
Eric Joyner ixl: Add more descriptive sysctl help messages.
Eric Joyner ixl: Report more info in link_status sysctl.
Eric Joyner ixl: Flip set_aq_phy_int_mask mask bits.

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.12-k.
erj [Thu, 12 May 2016 18:20:36 +0000 (18:20 +0000)]
ixl: Update to 1.4.12-k.

Changes by author:

Eric Joyner ixl: Remove substitution of EACCES for EPERM when perrno is set on an nvmupdate command return.
Eric Joyner ixl: Print message when hardware sends GRST interrupt.
Eric Joyner ixl: Fix kernel panic when driver fails to initialize admin queue.
Eric Joyner ixl: Print out messages when a non-handled other interrupt occurs.
Eric Joyner ixl: Fix spaces in a couple messages.
Eric Joyner ixl: Add lock around nvmupd command entry point and reconvert EPERM errors to EACCES.
Anjali Singhai Jain i40e-shared: Make some changes in the nvm read code
Shannon Nelson i40e-shared: AQ Add Run PHY Activity struct
Shannon Nelson i40e-shared: AQ Add Geneve cloud tunnel type
Shannon Nelson i40e-shared: AQ Add external power class to get link status response struct
Shannon Nelson i40e-shared: AQ Add shared resource flags for macvlan filters
Shannon Nelson i40e-shared: AQ Add set_switch_config
Shannon Nelson i40e-shared: AQ Add VXLAN-GPE tunnel type for cloud filter and tunnel commands
Shannon Nelson i40e-shared: AQ thermal sensor control struct
Shannon Nelson i40e-shared: Bump AQ minor version to 1.5 for FVL5 features
Shannon Nelson i40e-shared: add a little more to an NVM update debug message
Carolyn Wyborny i40e-shared: Fix for PHY NVM interaction problem
Eric Joyner i40e-shared: Add prototypes for private NVM write functions
Eric Joyner ixl/ixlv: Remove unused define from ixl.h.
Eric Joyner ixl: Add handling of EMP reset for nvm update purposes.
Eric Joyner ixl: Move addition of device sysctls to separate function.
Eric Joyner ixl: Fix up a couple error messages in ixl_attach().
Eric Joyner ixl: Update the hardware resource allocation debug sysctl.

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.9-k.
erj [Thu, 12 May 2016 18:20:18 +0000 (18:20 +0000)]
ixl: Update to 1.4.9-k.

Changes by author:

Kamil Krawczyk i40e-shared: use explicit cast from u16 to u8
Anjali Singhai Jain i40e-shared: Add a Virtchnl offload for RSS PCTYPE V2
Eric Joyner ixl: Remove HP device IDs.
Jesse Brandeburg i40e-shared: add small bit of debug
Mitch Williams i40e-shared: check for stopped admin queue
Mitch Williams i40e-shared: set aq count after memory allocation
Jesse Brandeburg i40e-shared: remove forever unused ID
Eric Joyner ixl: Fix bug where RSS does not hash to more than 16 queues.
Shannon Nelson i40e-shared: define function capabilities in only one place
Eric Joyner ixl: Change spacing, comments, and a single error message.
Eric Joyner ixl: Save admin queue phy interrupt mask as a define.
Eric Joyner ixl: Move callout_reset() to later in init_locked(), and stop clearing OACTIVE in driver flags.
Eric Joyner ixl: Add new reset+build flow to init() if it detects that the admin queue is stopped.
Eric Joyner ixl: Return EACCES instead of EPERM when an nvmupdate command fails.
Eric Joyner ixl: Remove KX_A device ID.

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.7-k.
erj [Thu, 12 May 2016 18:19:53 +0000 (18:19 +0000)]
ixl: Update to 1.4.7-k.

Changes by author:

Helin Zhang i40e_shared: Fix compilation error - pointer-arith
Paul M Stillwell Jr i40e-shared: Replace sprintf with i40e_debug
Anjali Singhai Jain i40e-shared: Fix an accidental error with BIT_ULL replacement
Jesse Brandeburg i40e-shared: remove useless assignments
Anjali Singhai Jain i40e-shared: Add a workaround to drop all flow control frames
Anjali Singhai Jain i40e-shared: Add new response struct from FW for AQ command i40e_aqc_lldp_set_local_mib
Anjali Singhai Jain i40e-shared: Acquire NVM, before issuing an AQ read nvm command
Eric Joyner ixl/ixlv: Remove unused MAX_LOOP define.
Eric Joyner ixl: Remove extra aq_get_link_info() call in attach().
Eric Joyner ixl: Modify a couple error messages in attach() to be more informative.
Eric Joyner ixl: Add i40e_get_link_status() call to init_locked().
Eric Joyner ixl: Move callout_stop() to earlier in ixl_stop().
Eric Joyner ixl: Add extra comments around link ITR code.
Eric Joyner ixl: Attempt to enhance link event handling.
Eric Joyner ixl: Style, spacing, and comment changes.
Eric Joyner ixl: Add I40E_NVM_ACCESS definition.
Eric Joyner ixl: Add interface for nvmupdate tool ioctl to driver.
Eric Joyner ixl: Don't strip out nvm update support from the driver anymore.
Eric Joyner ixl: Interrupts are now allocated/setup and torn down/released on init()/stop().

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.6-k.
erj [Thu, 12 May 2016 18:19:31 +0000 (18:19 +0000)]
ixl: Update to 1.4.6-k.

Changes by author:

Greg Rose ixl: Add MAC+VLAN filter for LAA MAC assignment
Carolyn Wyborny i40e_shared: fix for PHY NVM interaction problem
Anjali Singhai Jain i40e-shared: Fix an accidental error with BIT_ULL replacement
Eric Joyner ixl: Fix potential crash when loading driver a startup and cannot setup all requested MSIX vectors.
Eric Joyner ixl: Add max of 8 queues limit to autoconfig.
Eric Joyner ixl: Re-add ian@'s sysctl fixes from upstream (r280043).

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoixl: Update to 1.4.5-k.
erj [Thu, 12 May 2016 18:18:55 +0000 (18:18 +0000)]
ixl: Update to 1.4.5-k.

This first update will revert some upstream changes; forthcoming updates will reinstate them.

Changes, by author:

Anjali Singhai Jain i40e-shared: Add WB_ON_ITR offload support
Shannon Nelson i40e-shared: fix phy_types bitmap type
Kevin Scott i40e-shared: Store off PHY capabilities
Shannon Nelson i40e-shared: fix byteswap of phy_type
Jingjing Wu i40e-shared: Fix compile issue related to const string
Greg Bowers i40e-shared: Add AQ defines for non-willing Apps (DCB)
Greg Bowers i40e-shared: Support for non-willing Apps (DCB)
Shannon Nelson i40e-shared: use upper-32 bit macro for address
Shannon Nelson i40e-shared: grab the AQ spinlocks before clearing registers
Eric Joyner ixl: Properly strip out X722_SUPPORT (temporarily).
Eric Joyner ixl: Allow Fort Pond devices to advertise 100M in set_advertise sysctl.

Differential Revision:  https://reviews.freebsd.org/D6211
Reviewed by:    sbruno, kmacy, jeffrey.e.pieper@intel.com
MFC after:      2 weeks
Sponsored by:   Intel Corporation

8 years agoMove mutex initialization from PCI probe to PCI attach. Drivers are not
scottl [Thu, 12 May 2016 17:47:30 +0000 (17:47 +0000)]
Move mutex initialization from PCI probe to PCI attach.  Drivers are not
allowed to create any persistent state in their probe routine because it's
not guaranteed that they'll win the election and be allowed to attach.

Submitted by: Matthew Macy
MFC after: 3 days

8 years agoRetire net.inet.sctp.strict_sacks and net.inet.sctp.strict_data_order
tuexen [Thu, 12 May 2016 16:34:59 +0000 (16:34 +0000)]
Retire net.inet.sctp.strict_sacks and net.inet.sctp.strict_data_order
sysctl's, since they where only there to interop with non-conformant
implementations. This should not be a problem anymore.

8 years agoxen-netfront: fix feature detection
royger [Thu, 12 May 2016 16:18:02 +0000 (16:18 +0000)]
xen-netfront: fix feature detection

Current netfront code relies on xs_scanf returning a value < 0 on error,
which is not right, xs_scanf returns a positive value on error.

MFC after: 3 days
Tested by: Stephen Jones <StephenJo@LivingComputerMuseum.org>
Sponsored by: Citrix Systems R&D

8 years ago[siba] add more MCS tx power offset decoding.
adrian [Thu, 12 May 2016 16:14:16 +0000 (16:14 +0000)]
[siba] add more MCS tx power offset decoding.

This is required by the bwn(4) N-PHY support.

Obtained from: Linux ssb (definitions)

8 years ago[siba] add TX power index entry parsing.
adrian [Thu, 12 May 2016 16:01:33 +0000 (16:01 +0000)]
[siba] add TX power index entry parsing.

This is required by the bwn(4) N-PHY support.

Obtained from: Linux ssb (definitions)

8 years agoEnable SACK Immediately per default.
tuexen [Thu, 12 May 2016 15:48:08 +0000 (15:48 +0000)]
Enable SACK Immediately per default.

This has been tested for a long time and implements covered by RFC 7053.

MFC after: 1 week

8 years agoRename the internal BUC_DMA_* flags to BF_* so they won't conflict with
andrew [Thu, 12 May 2016 15:24:36 +0000 (15:24 +0000)]
Rename the internal BUC_DMA_* flags to BF_* so they won't conflict with
the flags in sys/bus_dma.h.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years ago[siba] add extra methods for chipcommon access and PLL configuration.
adrian [Thu, 12 May 2016 15:18:36 +0000 (15:18 +0000)]
[siba] add extra methods for chipcommon access and PLL configuration.

This is needed by the PHY-N bwn(4) support.

Obtained from: Linux b43 (definitions)

8 years agoUse a format string in snprintf() for consistency.
tuexen [Thu, 12 May 2016 14:41:53 +0000 (14:41 +0000)]
Use a format string in snprintf() for consistency.

This was reported by Radek Malcic when using the userland stack in
combination with MinGW.

MFC after: 1 week

8 years agoRestrict the memory barriers in bus_dmamap_sync to just the operations
andrew [Thu, 12 May 2016 12:13:28 +0000 (12:13 +0000)]
Restrict the memory barriers in bus_dmamap_sync to just the operations
where it's needed.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agoFix handling of IOCTLs in the LinuxKPI.
hselasky [Thu, 12 May 2016 11:38:28 +0000 (11:38 +0000)]
Fix handling of IOCTLs in the LinuxKPI.

Linux requires that all IOCTL data resides in userspace. FreeBSD
always moves the main IOCTL structure into a kernel buffer before
invoking the IOCTL handler and then copies it back into userspace,
before returning. Hide this difference in the "linux_copyin()" and
"linux_copyout()" functions by remapping userspace addresses in the
range from 0x10000 to 0x20000, to the kernel IOCTL data buffer.

It is assumed that the userspace code, data and stack segments starts
no lower than memory address 0x400000, which is also stated by "man 1
ld", which means any valid userspace pointer can be passed to regular
LinuxKPI handled IOCTLs.

Bump the FreeBSD version to force recompilation of all kernel modules.

Discussed with: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoMFV r299425:
mm [Thu, 12 May 2016 10:16:16 +0000 (10:16 +0000)]
MFV r299425:

Update libarchive to 3.2.0

New features:
- new bsdcat command-line utility
- LZ4 compression (in src only via external utility from ports)
- Warc format support
- 'Raw' format writer
- Zip: Support archives >4GB, entries >4GB
- Zip: Support encrypting and decrypting entries
- Zip: Support experimental streaming extension
- Identify encrypted entries in several formats
- New --clear-nochange-flags option to bsdtar tries to remove noschg and
  similar flags before deleting files
- New --ignore-zeros option to bsdtar to handle concatenated tar archives
- Use multi-threaded LZMA decompression if liblzma supports it
- Expose version info for libraries used by libarchive

Patched files (fixed compiler warnings):

contrib/libarchive/cat/bsdcat.c (vendor PR #702)
contrib/libarchive/cat/bsdcat.h (vendor PR #702)
contrib/libarchive/libarchive/archive_read_support_format_mtree.c (PR #701)
contrib/libarchive/libarchive_fe/err.c (vendor PR #703)

MFC after: 1 month
Relnotes: yes

8 years agoRemove redundant "task_struct_set()".
hselasky [Thu, 12 May 2016 09:11:18 +0000 (09:11 +0000)]
Remove redundant "task_struct_set()".
This is done by the "linux_kthread_fn()".

MFC after: 1 week
Sponsored by: Mellanox Technologies

8 years agoCreate a dummy "task_struct" on the stack which is returned by
hselasky [Thu, 12 May 2016 09:06:54 +0000 (09:06 +0000)]
Create a dummy "task_struct" on the stack which is returned by
"current" inside all LinuxKPI file operation callbacks. The "current"
is frequently used for various debug prints, printing the thread name
and thread ID for example.

Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies