Commit Graph

197785 Commits

Author SHA1 Message Date
nyan
f42424055b MFC: r272492
Merge pc98's machdep.c into i386/i386/machdep.c.
2014-12-23 12:13:31 +00:00
kib
d2f5d57eaa MFC r271208:
Add a define for index of IA32_XSS MSR.
2014-12-23 12:04:23 +00:00
kib
10220d0061 MFC r271206:
Adjust the definition of struct xstate_hdr according to SDM rev. 50.
2014-12-23 12:00:41 +00:00
kib
5a03dd693d MFC r271197:
Add more bits for the XSAVE features from CPUID 0xd, sub-function 1
%eax report.  Print the XSAVE features 0xd/1 in the boot banner.
2014-12-23 11:55:53 +00:00
nyan
8ae47063b1 MFC: r272491
Reduce diffs against i386.
2014-12-23 10:59:15 +00:00
nyan
84499dcf21 MFC: r272490 (partial)
- MFi386: Add compile-with option for tau32-ddk.c.
  - Whitespace change.
2014-12-23 09:46:23 +00:00
ae
57be9990bd Add if_inc_counter() and if_get_counter_default() functions that do
access to ifnet counters for code compatibility with FreeBSD 11.

This is direct commit to stable/10.

Discussed with:	glebius@, arch@
2014-12-23 09:39:40 +00:00
pfg
5b60997187 MFC r274437;
ifdef ext2_print_inode which is not really used.

ext2_print_inode was nice to have for initial development work but
is not really used anymore. #ifdef it under a new EXT2FS_DEBUG knob
so that we don't spend time compiling it.
2014-12-23 03:24:16 +00:00
pfg
7b207849cb MFC r275838;
sed: Bounds check the file path used in the 'w' command.

Modified version of a diff from Sebastien Marie to prevent a crash found
with the afl fuzzer.

Obtained from:	OpenBSD (CVS Rev. 1.37)
2014-12-23 02:46:00 +00:00
des
347db77978 Strip trailing / characters from paths in "not present" index entries.
Errata:		FreeBSD-EN-14:13.freebsd-update
Approved by:	so@
2014-12-22 22:11:39 +00:00
jhb
3f04bf5b7c MFC 275035:
MFamd64: Check for invalid flags in the machine context in sigreturn()
and setcontext().
2014-12-22 21:46:35 +00:00
jhb
5ae50f92a8 MFC 273988,273989,273995,274057:
MFamd64: Add support for extended FPU states on i386.  This includes
support for AVX on i386.
2014-12-22 21:32:39 +00:00
delphij
2194e37061 MFC r275530:
Use %d instead of %u for error number.  This way we see ERESTART as -1
not 4294967295 when doing DTrace.
2014-12-22 21:06:26 +00:00
delphij
1ad38ed4f0 MFC r274337,r274673,274681,r275515:
ZFS large block support.  The default recordsize remains at 128KB.

A new tunable/sysctl variable, vfs.zfs.max_recordsize is added to
allow adjusting the permitted maximum record size, or
zfs_max_recordsize, with a default of 1MB.  ZFS will not allow
setting recordsize greater than zfs_max_recordsize as a safety
belt, because larger recordsize means greater read and write
latency and more memory usage.

Please note that booting from datasets that have recordsize greater
than 128KB is not supported (but it's Okay to enable the feature on
the pool).

Limited safety belt is provided for mounted root filesystem but use
caution when using a larger value.

Illumos issue:
    5027 zfs large block support
2014-12-22 20:58:51 +00:00
jhb
af2ee162da MFC 273991:
MFamd64: Move extern declaration of _ucodesel and _udatasel to
<machine/md_var.h>
2014-12-22 20:53:45 +00:00
jhb
71f9e38fa2 MFC 271405,271408,271409,272658:
MFamd64: Use initializecpu() to set various model-specific registers on
AP startup and AP resume (it was already used for BSP startup and BSP
resume).
2014-12-22 19:53:55 +00:00
delphij
77f68eb34a MFC r276071:
Fix multiple ntp vulnerabilities.

Reviewed by:	roberto (earlier revision), philip
Security:	CVE-2014-9293, CVE-2014-9294
Security:	CVE-2014-9295, CVE-2014-9296
Security:	FreeBSD-SA-14:31.ntp
2014-12-22 19:07:16 +00:00
jhb
2b345a08ed MFC 260557,271076,271077,271082,271083,271098:
- Remove spaces from boot messages when we print the CPU ID/Family/Stepping
- Move prototypes for various functions into out of C files and into
  <machine/md_var.h>.
- Reduce diffs between i386 and amd64 initcpu.c and identcpu.c files.
- Move blacklists of broken TSCs out of the printcpuinfo() function
  and into the TSC probe routine.
- Merge the amd64 and i386 identcpu.c into a single x86 implementation.
2014-12-22 18:40:59 +00:00
ae
9a4e55b147 MFC r271917 by hrs:
Virtualize interface cloner for gif(4).  This fixes a panic when destroying
  a vnet jail which has a gif(4) interface.
2014-12-22 17:54:26 +00:00
ae
3449c92ea5 MFC r258167:
ANSIfy function defintions.
2014-12-22 17:32:13 +00:00
ngie
cf14b8acec MFC r275622:
Add makewhatis to ITOOLS if MK_MAN != no

  This will fix installation with differing host targets in installworld, so
  one can build i386/i386 on an amd64 host, then install to an i386/i386 target

  Reported by: alfred
  Phabric: D1280
2014-12-22 02:22:01 +00:00
ngie
964f5a1f13 MFC r273803,r273810:
r273803:

  Filter out TESTS_SUBDIRS already added to SUBDIR instead of blindly
  appending the TESTS_SUBDIRS variable to SUBDIR

  Duplicate directory entries can cause unexpected side effects, like
  installing the same files multiple times. This can be easily
  reproduced via the following testcase prior to this commit:

    SUBDIR= dir
    TESTS_SUBDIRS+= dir

    .include <bsd.test.mk>

  Sponsored by: EMC / Isilon Storage Division

r273810:

  Fix the logic inversion in the previous commit by ensuring that the matched
  expression (:M) is empty, not the not matched (:N) is empty. The former case
  means we have not found the TEST_SUBDIR value in SUBDIR

  Reported by: rodrigc
  Pointyhat to: me (did not use a clean install root)
  Sponsored by: EMC / Isilon Storage Division
2014-12-22 00:50:08 +00:00
ngie
8cd5c94ddb MFC r273186,r273873:
r273186:

  Don't define rules based on PROGS if PROGS is empty.

  Reviewed by:	sjg, ngie
  Sponsored by:	EMC / Isilon Storage Division

r273873:

  Use the right depend file for each program.

  bsd.progs.mk generates a separate depend file for every program being
  built, but then it does not properly tell each submake to use those
  individual files.  Properly propagate the depend file to use.

  Discovered while preparing the update of atf to 0.21 and noticing that
  the test programs were not being relinked to the new library.

  This change is "make tinderbox" clean.
2014-12-22 00:21:24 +00:00
smh
5f92f0907a MFC r272223:
Prevent possible use after free in ahci direct mode

Sponsored by:	Multiplay
2014-12-21 16:43:56 +00:00
smh
3b6e56e0bc MFC r268156:
Various bugfixes from Stefano GarzarellaA

This has been proved to fix reproducable panics on 10.x.

Sponsored by:	Multiplay
2014-12-21 15:39:19 +00:00
trasz
d7139ba7f6 MFC r274784:
Fix smbfs to not zero out statfs f_flags field. Previously, this
made getmntinfo() return empty flags for smbfs filesystems when
called with MNT_WAIT. It's not visible with mount(8), since it uses
MNT_NOWAIT, but broke autounmount(8) operation.

PR:		195161
Sponsored by:	The FreeBSD Foundation
2014-12-21 11:33:18 +00:00
trasz
40ef49f52b MFC r274742:
Uniformly refer to a file system as "file system".

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:26:51 +00:00
trasz
84195308d0 MFC r274741:
Add example on how to use gpart before growfs.  While here, reorder examples
so that the simplest one comes first.

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:25:26 +00:00
trasz
950a2d5097 MFC r274738:
Document growfs(8) feature apparently nobody knows about.

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:23:59 +00:00
trasz
83b038683b MFC r274737:
Use proper ordering in EXAMPLES section in growfs(8).

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:22:15 +00:00
trasz
0ba11869de MFC r274796:
Document use of wildcards (*) and ampersands (&) in autofs map files.

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:15:35 +00:00
ngie
2e865a9c0a MFC r273482,r274078:
r273482:

  The NetBSD libc tests use several definitions/macros that aren't available in
  FreeBSD

  Add the missing compat definitions/macros to lib/libnetbsd so the testcases
  can be compiled with libnetbsd without having to invent ad hoc #define's, or
  having to convert things over to FreeBSD idioms

  Reviewed by: brooks
  Phabric: D993
  Sponsored by: EMC / Isilon Storage Division

r274078:

  Commit missing header for sys/time.h compat on NetBSD to unbreak the amd64/i386
  build

  Pointyhat to: me (forgot to svn add it sooner)
2014-12-21 11:11:17 +00:00
trasz
88d4dfb90e MFC r274723:
Make the auto_master(5) man page clearer on how auto_master
and map files work together, and add example for smbfs.

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:03:59 +00:00
trasz
a740f64591 MFC r274621:
The "intr" option is NFS-specific; fix examples in auto_master(5).

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:00:48 +00:00
trasz
5654688c96 MFC r274549:
Make it possible to do "iscsictl -Rt xxx -p yyy", to remove a session
that matches both -t and -p.

Sponsored by:	The FreeBSD Foundation
2014-12-21 10:56:06 +00:00
ngie
dc3ad5131f MFC r273929:
r273929 (by jmmv):

  MFV: Import atf-0.21.
2014-12-21 08:30:18 +00:00
dchagin
1a3934911c Regen for r275986 (ppoll). 2014-12-21 08:00:38 +00:00
dchagin
dfe2ad4d46 MFC r274462: Add the ppoll() system call. 2014-12-21 07:58:28 +00:00
smh
f73f068967 MFC r274819:
Prevent overflow issues in timeout processing

MFC r274852:
Fix build with asr driver

Sponsored by:	Multiplay
2014-12-21 03:06:11 +00:00
smh
4ae371d305 MFC r269615:
Various fixes to hptrr(4)

Sponsored by:	Multiplay
2014-12-21 03:00:44 +00:00
smh
4ffc79821f MFC r269613:
Various fixes to hptnr(4)

Sponsored by:	Multiplay
2014-12-21 02:57:03 +00:00
smh
c7e8e234ac MFC r267290:
Make the hpt27xx(4) driver MPSAFE

Sponsored by:	Multiplay
2014-12-21 02:52:40 +00:00
smh
e3ea8796d6 MFC r266772:
Various cleanups and fixes including switching from timeout to callout

Sponsored by:	Multiplay
2014-12-21 02:47:38 +00:00
smh
34faa04ea6 MFC r272000:
Switch from timeout(9) to callout(9)

Sponsored by:	Multiplay
2014-12-21 02:39:10 +00:00
smh
4749aacddd MFC r272735:
Support upto 256VD.

MFC r272737:
Support 32-bit linux binaries on FreeBSD 64bit.

MFC r272738:
Fix the minor svn add issue.

MFC r272739:
Extended MSI-x vectors support for Invader and Fury(12Gb/s HBA).

MFC r272740:
Add d_poll support.

MFC r272741:
Fix leak of mfi cmd in the passthru and correctly limit oustanding.

MFC r272742:
Import vendor Phase 6.5 driver

MFC r272744:
Style (9) fixes.

MFC r273040:
Fix for build issue on i386.xen and amd64.xen.

Sponsored by:	Multiplay
2014-12-21 02:35:22 +00:00
smh
90167d8975 MFC: r274487
Lock iir(4) and mark it MPSAFE.

Sponsored by:	Multiplay
2014-12-21 01:39:21 +00:00
kib
32facbd8ab MFC r275744:
Only sleep interruptible while waiting for suspension end when
filesystem specified VFCF_SBDRY flag, i.e. for NFS.
2014-12-20 15:49:12 +00:00
kib
febae1567d MFC r275743:
Put the buffer cleanup code after inactivation.
2014-12-20 15:46:15 +00:00
brueffer
f419d174a9 MFC: r274960 (slightly modified)
Limit descriptors and enter capability mode.  Since the header was renamed in HEAD, this
commit includes sys/capability.h.

Differential:	D1009
Reviewed by:	jonathan, pjd
Relnotes:	yes
2014-12-19 23:18:22 +00:00
ae
98ddab22ac MFC r275729:
Increase the buffer size to keep the list of programm names when
  parsing programm specification. It is safe to not check out of bounds
  access, because !isprint(p[i]) check will stop reading, when '\0'
  character will be read from the input string.

Sponsored by:	Yandex LLC
2014-12-19 13:22:02 +00:00