199432 Commits

Author SHA1 Message Date
tuexen
a3f1c54c9d MFC r277034:
Remove dead code.

Reported by:	Coverity
CID:		748663
2015-05-29 12:13:52 +00:00
tuexen
b7947552da MFC r277033:
Remove dead code.

Reported by:	Coverity
CID:		748660, 748661
2015-05-29 12:11:14 +00:00
tuexen
6e1abed81c MFC r277031
Remove dead code.

Reported by:	Coverity
CID:		748665
2015-05-29 12:08:49 +00:00
tuexen
da3006cf8b MFC r277030:
Remove dead code.

Reported by:	Coverity
CID:		748666
2015-05-29 12:06:00 +00:00
tuexen
369d8e1e68 MFC r276914:
Minimize the usage of SCTP_BUF_IS_EXTENDED.
This should help Robert...
2015-05-29 12:03:02 +00:00
tuexen
9b5b9e6473 MFC r276009:
Don't check twice that inp is not NULL.

Reported by:	Coverity
CID:		748671
2015-05-29 11:52:32 +00:00
tuexen
be4dc0520d MFC r275967:
Fix and harmonize the validation of PR-SCTP policies.

Reported by:	Coverity
CID:		1232044
2015-05-29 11:47:54 +00:00
tuexen
25101e7981 MFC r275954:
Cleanup the code.

Reported by:	Coverity
CID:		1232003
2015-05-29 11:43:51 +00:00
tuexen
0a467bef43 MFC r275869:
Add a missing break.

Reported by:	Coverity
CID:		1232014
2015-05-29 11:40:50 +00:00
tuexen
551a3dd3e4 MFC r275868:
Plug a memory leak in an error code path.

Reported by:	Coverity
CID:		1018936
2015-05-29 11:25:38 +00:00
tuexen
4f47290362 MFC r275857:
Initilize the msg_flags field consistently in all code paths.

Reported by:	Coverity
CID:		1018726
2015-05-29 11:21:34 +00:00
tuexen
532bc501f8 MFC r275682:
Fix a typo reported by Lennart Grahl.
2015-05-29 11:19:30 +00:00
tuexen
76a9701748 MFC r275574:
Include the received chunk padding when reporting an unknown chunk.
2015-05-29 11:18:06 +00:00
tuexen
4e7201cd30 MFC r275567:
Fix the support of mapped IPv4 addresses.
Thanks to Mark Bonnekessel and Markus Boese for making me aware of the
problems.
2015-05-29 11:15:00 +00:00
tuexen
3c88229c08 MFC r273925:
Don't zero the stats before they are read out.
2015-05-29 11:04:55 +00:00
tuexen
1076c79452 MFC r273634:
Fix a use of an uninitialized variable by makeing sure
that sctp_med_chunk_output() always initialized the reason_code
instead of relying on the caller.
The variable is only used for debugging purpose.
This issue was reported by Peter Bostroem from Google.
2015-05-29 11:01:46 +00:00
kib
b06cb03ceb MFC r282948:
Use bare mmap(2) to allocate space for the per-thread keys,
instead of malloc(). This allows third party mallocs, which use
pthread_setspecific(3) on the allocation path, to work.
2015-05-29 07:48:30 +00:00
arybchik
197df5ee5d MFC: r283599
sfxge: mask ifmedia options (pauses) when looking for matching mode

Sponsored by:   Solarflare Communications, Inc.
2015-05-29 05:58:21 +00:00
markj
ec234b9b79 MFC r277915:
Don't attempt to disable enabled fasttrap probes in an exiting process.

MFC r277914:
fasttrap_sigtrap(): use tdsendsignal() to send SIGTRAP.
2015-05-29 04:22:57 +00:00
markj
9bbe24351d MFC r281915:
Make vpanic() externally visible.

MFC r281916:
Fix DTrace's panic() action.
2015-05-29 04:01:39 +00:00
markj
aff03409ef MFC r282331:
Don't drop the idr lock before verifying that the newly-inserted element
is present in the tree.

MFC r282741:
find_next_bit() and find_next_zero_bit(): if the caller-specified offset
lies within the last block of the bit set and no bits are set beyond the
offset, terminate the search immediately instead of continuing as though
there are further blocks in the set and subsequently returning an incorrect
result.

MFC r282743:
Ensure that msecs_to_jiffies(0) == 0.
2015-05-29 03:47:35 +00:00
gjb
444aa14df4 MFC r283573, r283574, r283575, r283576, r283580, r283593, r283618:
r283573:
  Remove a continuation on error, since the relevant behavior can
  only occur if a particular file exists.

 r283574:
  Set STAGE_TARGETS only if RELEASEDIR exists.

 r283575:
  Remove duplicate exists() sanity check.

 r283576:
  Reindent after previous commit.

 r283580:
  Use SVNREVISION and BUILDDATE if passed into the make(1)
  environment, fallback to trying to figure it out otherwise.

 r283593:
  Fix a typo in a comment.

 r283618:
  Invert the build date and svn revision to match the namimg
  convention that has been in use for a while.

Sponsored by:	The FreeBSD Foundation
2015-05-29 00:46:14 +00:00
erj
6e387585c4 Fix build issue and incompatibilites introduced by r283620.
- Re-introduce "device ixgbe" option for kernel configs. This allows
  users to continue using existing kernel configurations, while still
  letting if_ix and if_ixv exist to allow ifconfig magic to work.
  Though the amd64 GENERIC config has "device ix" and "device ixv" instead of
  "device ixgbe".

  This is achieved by making the if_ixgbe module a stub that depends
  on if_ix and if_ixv.

- Replace if_baudrate assignment with if_initbaudrate() call.

Thanks to jhb@ for the stub module suggestion and pointing out the if_baudrate
error.

Approved by:	jfv (mentor)
2015-05-28 20:56:11 +00:00
jhb
34675faa3b Fix COMPAT_FREEBSD32 build on ia64. This is a direct commit to
stable/10 since ia64 is not present in head.
2015-05-28 13:12:05 +00:00
whu
4530c56768 MFC r283053
Submitted by:	whu
Reviewed by:	royger
Approved by:	royger
Sponsored by:	Microsoft OSTC
Differential Revision:	https://reviews.freebsd.org/D2661
2015-05-28 09:20:35 +00:00
dim
fafc9e7ad4 MFC r283254:
Ensure that the static structs emitted by the MODULE_DEPEND() and
MODULE_VERSION() macros don't end up as .comm symbols, when all the
version fields are zero.

Normally, such symbols will end up in .bss, but for kernel module
version objects, this can lead to "garbage" version numbers.

Fix this by instructing the compiler to always put these structs in the
.data segment instead.

Reported by:	delphij, ae
2015-05-28 06:45:13 +00:00
mckusick
c94542bef3 MFC of 269533:
Limit the number of cylinder groups that will be searched when
trying to build a cluster. The limit is tunable using the sysctl
vfs.ffs.maxclustersearch. The current limit is 10 cylinder groups
per block allocation. It was previously limited to the number of
cylinder groups in the filesystem per block allocation. When there
were no clusters of the needed size left, it repeatedly searched
the whole filesystem for a non-existent cluster on every block
allocation. The result was very slow filesystem allocation with
100% CPU utilization. The old behavior can be had by setting
vfs.ffs.maxclustersearch to a huge number (1,000,000).

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

Reported by: Dmitry Sivachenko (demon@)
Tested by:   Dmitry Sivachenko (demon@)
2015-05-28 00:11:36 +00:00
erj
e12c5d1ed6 MFC ixgbe commits for 10.2:
- r280182 - Split the driver into independent pf/vf loadables
- r280197 - Resolve build issues
- r280204 - Fix multiple same-name devclasses
- r280228 - Fix i386 LINT build issues / remove unused variable
- r280252 - Fix building ixgbe with gcc
- r280962 - Make changes to busdma code similar to r257541
- r281772 & r281773 - Remove unused variable
- partial r282280 - stats counter update (ix-only)
- r282289 - Add X550 support
- r282290 - Add X550 makefile updates
- r282293 - Add ixgbe_x550.c to conf/files
- r282299 - Fix gcc compile (extraneous extern declaration)

Finally, add ix_txrx.c to conf/files because it's required for compile in stable/10.

Approved by:	jfv (mentor)
2015-05-27 17:44:11 +00:00
jhb
38c6ad8c69 MFC 282241:
Don't free mbufs when stopping an interface in netmap mode.

Currently if you ifconfig down a vtnet interface while it is being used
via netmap, the kernel panics due to trying to treat the cookie values
in the virtio rings as mbufs to be freed. When netmap is enabled, these
cookie values are pointers to something else.

Note that other netmap-aware drivers don't seem to need this as they
store the mbuf pointers in the software rings that mirror the hardware
descriptor rings, and since netmap doesn't touch those, the software
state always has NULL mbuf pointers causing the loops to free mbufs to
not do anything. However, vtnet reuses the same state area for both
netmap and non-netmap mode, so it needs to explicitly avoid looking at
the rings and treating the cookie values as mbufs if netmap is
enabled.

Sponsored by:	Norse Corp, Inc.
2015-05-27 14:29:39 +00:00
hselasky
1f42ff868a MFC r283064:
Fix an off-by-one error by adding proper range checks when parsing the
HDA association descriptors. This fixes a crash during device probe
for some HDA PCI devices.
2015-05-27 13:23:02 +00:00
kib
3162ff437e MFC r283162:
Set VPO_UNMANAGED on the freed page when insertion of the page into the
object queue failed, to satisfy the assertion.

MFC r283163:
Do grammar fix in the comment to record the right commit message for
r283162.
2015-05-27 08:30:16 +00:00
kib
aed85e60ed MFC r283153:
Remove the write-only variable phent.
2015-05-27 08:23:23 +00:00
luigi
cf32ec5d9e MFC: 272451, 272653 add CAP_EVENT so that we can poll() on netmap and pcap
file descriptors
2015-05-26 21:12:02 +00:00
julian
fcb7b0e8b6 MFH: r283114
Fixup to the kern_psignal manpage

  r283105 misspelled kern_psignal as kernel_psignal in one occurrence, and
added trailing whitespace.

 While here, change 'call' to the more standard 'function', and say why
 the name was changed (taken from the commit message for r225617).
2015-05-26 03:58:18 +00:00
emaste
7c2005346d MFC r283110: Add GRP_COMDAT section group flag to ELF header
Sponsored by:	The FreeBSD Foundation
2015-05-26 02:50:30 +00:00
julian
e1986546b0 MFH: r283105
Only several years late, catch the psignal man page up to the
 fact that psignal has been renamed to kern_psignal since 9.0.
2015-05-26 02:18:10 +00:00
gjb
14c563db5d MFC r283307:
Use mkimg(1) to create the i386 memstick images, similar to
 how is done for amd64.  The exception here is there is no
 EFI partition for i386.

Sponsored by:	The FreeBSD Foundation
2015-05-26 00:44:29 +00:00
gjb
e8dfad8565 MFC r282785, r282787, r282789, r282790, r282791, r282792, r282793,
r282794, r282795, r282796, r282797, r282798, r282799, r283265,
r283266, r283268, r283271, r283272, r283298, r283302:

 Add a new file, Makefile.mirrors, which is intended to replace
 a 474-line kludge of a shell script to pre-create the directory
 hierarchy on ftp-master.

 This is not in any way connected to the build, and there is no
 intention to do so.  This only intent here is to try to make
 things a little bit easier.

 Always use the 'make install' directory as the source for images.
 For RE purposes, we use the default (/R within the chroot), so
 this helps avoid copying files multiple times and xz(1)-compressing
 additional times when not needed.

 Fix staging virtual machine images for ftp propagation.

 This Makefile is not for general consumption.

Sponsored by:	The FreeBSD Foundation
2015-05-25 22:12:30 +00:00
avg
b7743f6ee4 MFC r282475: zfs: do not hold an extra reference on a root vnode 2015-05-25 11:35:27 +00:00
avg
d1a5bd2d1e MFC r282473: dmu_recv_end_check: don't leak hold if dsl_destroy_snapshot_check_impl fails 2015-05-25 11:33:45 +00:00
avg
5456df9c8c MFC r282632: MFV r282630: 5809 Blowaway full receive in v1 pool causes kernel panic 2015-05-25 11:32:10 +00:00
ian
a210991c80 MFC r283033, r283062, r283066, r283069:
Do not set preload_addr_relocate for ARM.

  Refactor net_getparams() to make it easier to get params from sources other
  than bootp and rarp.

  Add a routine to obtain netboot parameters from the U-Boot env vars

  Enable the NETIF_OPEN_CLOSE_ONCE option for ubldr.
2015-05-25 01:29:45 +00:00
ian
e82e4a2984 MFC r277962, r277988, r282661, r282727, r282731, r283013, r283035:
Add support for booting relocatable kernels on PowerPC.

  Add code to support loading relocatable kernels at offsets that are
  not zero.

  Move ubldr text section to the start of the output file, so that when you
  create a stripped .bin file from it the entry point is the first byte of
  the file.  (Will allow "load $addr $file ; go $addr" in u-boot.)

  Create a relocatable instance of ubldr for ARM (ubldr.bin).

  Re-link ubldr when any of its libraries change.

  An ARM kernel can be loaded at any 2MB boundary, make ubldr aware of that.
2015-05-25 01:06:55 +00:00
sbruno
78deac1ab8 MFC r283290
Bump rx_overruns when indicated by the ICR mask.

PR:		199716
Sponsored by:	Limelight Networks
2015-05-25 00:30:26 +00:00
ian
1cf579b9a3 MFC r282516:
Add the code necessary to run the imx6 chip at its lowest clock/power
  operating point (396MHz/950mV).
2015-05-24 19:00:46 +00:00
ian
d6c6dd582e MFC r268838, r277644:
Add support for Toradex Apalis i.MX6 development board.

  Add support for imx6 audio transmitting, include drivers for:
  o Digital Audio Multiplexer (AUDMUX)
  o Smart Direct Memory Access Controller (SDMA)
  o Synchronous Serial Interface (SSI)
2015-05-24 18:59:45 +00:00
ian
83a17cbb77 MFC r282418:
On an icache sync by address/len, round the length up if the operation
  spans a cacheline boundary.
2015-05-24 18:23:57 +00:00
ian
6bbf63ab35 MFC r281371: Use OF_getencpropalloc() to handle endianess of the properties. 2015-05-24 18:00:29 +00:00
ian
ad1acff252 MFC r281073, r281074, r281077, r281200:
Use OF_getencprop over OF_getprop and fdt32_to_cpu. The latter may give
  us the wrong data in the failure case if shift was not zero.

  Remove the extra copy of uart_fdt_get_clock and uart_fdt_get_shift. While
  here also use OF_getencprop in uart_fdt_get_clock.

  Move uart_fdt_get_clock and uart_fdt_get_shift to uart_bus_fdt.c, we may
  not build uart_cpu_fdt.c in all configs.

  Fix uart_fdt_get_clock. It should have been using the cell variable passed
  in, not value on the stack.
2015-05-24 17:57:29 +00:00
ian
ef273b2b34 MFC r279368, r280772, r280848:
Allow creating subclass of FDT simplebus

  Make simplebus a base class of ofwbus.

  Fix bug in xrefinfo_find() for 64-bit platforms
2015-05-24 17:51:57 +00:00