Commit Graph

198875 Commits

Author SHA1 Message Date
jgh
11393ed285 MFC: r281324
- ggatel.8 currently doesn't mention the 'rescue' command and
  documents a non-existing 'attach' command instead.
- while here address a spelling error

Approved by:	wblock (mentor)
Differential Revision:	https://reviews.freebsd.org/D2346
2015-04-22 18:54:51 +00:00
kib
5ddf292b71 MFC r281549:
Implement support for -z global linker option.
2015-04-22 10:59:05 +00:00
kib
62ec6c0a01 MFC r281548:
Implement support for binary to request specific stack size for the
initial thread.
2015-04-22 10:57:00 +00:00
pluknet
8ed3961fe9 Fix r281843 mis-merge.
Reported by:	Thomas Mueller tmueller at sysgo com
2015-04-22 10:25:08 +00:00
dteske
8bc086afd3 MFC revisions 277693,278335,280382-280385,280923-280926,280931,
280933-280939,280974-280976,281002,281009,281081,281176-281180,
281271,281275,281616 (described in-breif below):
r277693: Font fix (des)
r278335: Revert that
r280382: Whitespace, comments, and copyright update
r280383: Prevent inadvertent bootlock condition
r280384: Increase max passowrd length from 16 to 255 chars
r280385: Add missing variable hints to loader.conf(5) defaults
r280923: Whitespace
r280924: Comments
r280925: Optimize bootmsg to use fg/bg/me from screen.4th
r280926: Whitespace and cleanup
r280931: Comments
r280933: Move beastie to logo-*.4th; brands to brand-*.4th
r280934: Add remainder of supported ANSI escape sequences
r280935: Securely overwrite (zero) user input after password checks
r280936: Use equals for ASCII double frames
r280937: Solve dreaded "dictionary full" issue
r280938: Add "GELI Passphrase:" prompt to boot loader
r280939: Revert that (premature commit)
r280974: Use fg/b/me from screen.4th instead of literals
r280975: Eliminate literal escape sequences from *.4th
r280976: Use ^[[m mode-ending versus ^[[37m
r281002: Install newly added brand-*.4th and logo-*.4th files (jkim)
r281009: Revert .PATH changes to fix mips build (jkim)
r281081: Make sure forth manpages are only installed once (bapt)
r281176: Back to previous mode-endings based on feedback
r281177: Back to previous mode-endings based on feedback
r281178: Back to previous mode-endings based on feedback
r281179: Back to previous mode-endings based on feedback
r281180: Eliminate literal escape sequences from *.rc
r281271: Fix a bootlock condition if loader_version is set
NB: Commit message of r281271 has a typo, s/_logo/_version/
r281275: Re-do proper mode-endings
r281616: Add "GELI Passphrase:" prompt to boot loader

Relnotes:	Added "GELI Passphrase:" prompt to boot loader
2015-04-22 01:08:40 +00:00
pfg
3d58bff4f8 MFC r281670, r281703:
Drop experimental ext2fs dir_index support.

The htree directory index is a highly desirable feature for research
purposes and was meant to improve performance in our ext2/3 driver.
Unfortunately our implementation has two problems:

- It never really delivered any performance improvement.
- It appears to corrupt the filesystem in undetermined circumstances.

Strictly speaking dir_index is not required for read/write support in
ext2/3 and our limited ext4 support still works fine without it.

Regain stability in the ext2 driver by removing it. We may need it back
(fixed) if we want to support encrypted ext4 support but thanks to the
wonders of version control we can always revert this change and bring it
back.

PR:	191895
PR:	198731
PR:	199309
2015-04-22 00:38:11 +00:00
garga
a669f5aa38 MFC r270155, r274490, r274593, r274607
Add native-xtools target to stable/10

Differential Revision:	https://reviews.freebsd.org/D2044
Reviewed by:	sbruno@
Approved by:	sbruno@
Sponsored by:	Netgate
2015-04-21 17:02:55 +00:00
gjb
5a1ef38103 Document SA-15:07, SA-15:08, SA-15:09.
Sponsored by:	The FreeBSD Foundation
2015-04-21 16:54:21 +00:00
garga
ae09e2fca2 Replace LDFLAGS by LDADD to fix sort build with -DNO_SHARED
Differential Revision:	https://reviews.freebsd.org/D2044
Reviewed by:	sbruno@
Approved by:	sbruno@
Sponsored by:	Netgate
2015-04-21 15:47:00 +00:00
brooks
aba8da87cb MFC r281605,281768:
r281605:
	Fix a minor function definition inconsistancy.

r281768:
	Bump doc date missed in r281605.
2015-04-21 14:22:45 +00:00
mav
ad311f67aa MFC r280347: Remove MAXBSIZE use from drivers where it has nothing to do.
In some cases limits are just not needed, in others -- DFLTPHYS is the
right constant to use instead.
2015-04-21 11:27:50 +00:00
alc
48e295fadf MFC r278402
Preset the object's color, or alignment, to maximize superpage usage.
2015-04-20 17:43:36 +00:00
alc
248744ce23 MFC r279400
Eliminate a variable that became unused when VFS_LOCK_GIANT() was
  eliminated.
2015-04-20 17:36:43 +00:00
jilles
bde9d93b63 MFC r280919: wordexp: Explicitly pass along IFS.
Per Austin group issue #884, sh should not import IFS from the environment
but always set it to $' \t\n'. For wordexp(), however, it is documented and
useful for it to use IFS from the environment.

Since sh currently imports IFS from the environment, this change has no
functional effect.
2015-04-19 13:51:25 +00:00
jilles
87307718d2 MFC r280830: wordexp(): Add testcase for non-default IFS in environment.
The non-default IFS is expected to be used.
2015-04-19 13:46:13 +00:00
jilles
d7f7bac629 MFC r281082: fts: Don't return FTS_SLNONE if it's not a symlink (if race).
When following symlinks, fts returned FTS_SLNONE when fstatat(flag=0)
failed, but a subsequent fstatat(flag=AT_SYMLINK_NOFOLLOW) succeeded. This
incorrectly triggered if a filename existed to be read from the directory,
was deleted before the fstatat(flag=0) and created again after the
fstatat(flag=0).

Fix this by only returning FTS_SLNONE if the result from
fstatat(flag=AT_SYMLINK_NOFOLLOW) is actually a symlink. If it is not a
symlink, treat it as if fstatat(flag=0) succeeded.

PR:		196724
2015-04-19 13:28:32 +00:00
kib
020b763fcf MFC r281462:
Define capabilities bits from the revision 007 of the document 302223.
2015-04-19 08:31:26 +00:00
pluknet
b15891e482 MFC r280688 (by ru):
Corrected descriptions of net.inet.icmp.icmplim and icmplim_output.
2015-04-19 07:49:39 +00:00
pluknet
88f74cc93e MFC r274933 (by bapt), r281470:
r274933 - Ta is only allowed with Bl -column not in Bl -item
r281470 - Remove obsolete bits about maximum number of file systems.
2015-04-19 07:46:32 +00:00
jilles
a7e03e04be MFC r260571: fts: Stat things relative to the directory fd, if possible.
As a result, the kernel needs to process shorter pathnames if fts is not
changing directories (if fts follows symlinks (-L option to utilities), fts
cannot open "." or FTS_NOCHDIR was specified).

Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the
stat stage but later (opendir or application fts_accpath) or not at all.
2015-04-18 21:31:36 +00:00
rpaulo
1f951dbd73 MFC r281441:
Add support for controlling the trackpoint when Synaptics is enabled.
2015-04-18 21:26:47 +00:00
rpaulo
327faf2bf9 MFC r281440:
Improve Synaptics support for newer touchpads.

  Enable two finger scrolling by default and disable the edge scrolling if
  the touchpad has no physical zone for it.  Disable directional scrolling
  by default to avoid using extended buttons as scroll buttons.

  Add support for ClickPad.  On Lenovo laptops, this is the button
  reported when one presses the touchpad.

  While there, fix a problem where the extended buttons were not reporting
  the button release event correctly: we need to save the state of the
  buttons and report it to sysmouse until we receive a packet from the
  touchpad indicating the button has been released.  This makes it
  possible to use an extended button to resize a window.  On Lenovo
  laptops, the major buttons are actually reported as extended buttons.
2015-04-18 21:24:46 +00:00
rpaulo
f7ab4ffe11 MFC r281406:
netmap: improve the netmap attach message on FreeBSD.
2015-04-18 21:22:26 +00:00
jkim
c90c234f29 MFC: r281396, r281475
Merge ACPICA 20150410.

Relnotes:	yes
2015-04-18 08:01:12 +00:00
eadler
07d63652f3 MFC r280206:
Implement pax -O option to permit limiting a PAX archive to a single volume.

-O Force the archive to be one volume.  If a volume ends prematurely, pax will
not prompt for a new volume.

PR:		198481
2015-04-17 18:33:59 +00:00
rrs
5b2ecd3071 MFC of r280785, r280871, r280872, r281510, r218511 - callout fixes.
Sponsored by:   Netflix Inc.
2015-04-17 15:39:42 +00:00
markj
8089a48fdb MFC r272378:
Add net.inet.icmp.tstamprepl.

PR:	193689
2015-04-16 19:09:25 +00:00
markj
198e1fb903 MFC r281225:
Add B_KVAALLOC and B_UNMAPPED to the buf flag name list.
2015-04-16 19:04:38 +00:00
jhb
ef9ac77665 MFC 280222:
Clear an mbuf's external storage flags in m_extaddref(). They are cleared
in other places that set the external storage type (ext_type) such as
m_cljset(), m_extadd(), mb_ctor_clust(), and vn_sendfile().
2015-04-16 15:09:46 +00:00
allanjude
7d91984689 MFC: r277328:
Fix minor syntax and grammar errors in the markup of the ee(1) man page

Approved by:	eadler (mentor, implicit)
Sponsored by:	ScaleEngine Inc.
2015-04-16 00:44:05 +00:00
allanjude
68d15d29f8 MFC: r280191:
Document that nextboot(8) doesn't work as expected with ZFS

Approved by:	eadler (mentor, implicit)
Sponsored by:	ScaleEngine Inc.
2015-04-16 00:39:16 +00:00
allanjude
e90214f923 MFC: r272135, r272174
Update man(1) to list the different sections of the manual

Approved by:	eadler (mentor, implicit)
Sponsored by:	ScaleEngine Inc.
2015-04-16 00:37:05 +00:00
allanjude
ce64c0080f MFC: r281209:
Fix missing AUTHOR section for jot(1), rs(1), and lam(1)

Approved by:	eadler (mentor, implicit)
Sponsored by:	ScaleEngine Inc.
2015-04-16 00:34:41 +00:00
allanjude
642a35345c MFC: r266774:
improve ifconfig(8) man page by describing special behaviour of -l ether

MFC: r267141:
	Style cleanups on ifconfig.8

Approved by:	eadler (mentor, implicit)
Sponsored by:	ScaleEngine Inc.
2015-04-16 00:31:51 +00:00
allanjude
decd42bef5 MFC: r269089:
Update the freebsd-tips example to use drill instead of dig since bind is no longer in base

Approved by:	eadler (mentor, implicit)
Sponsored by:	ScaleEngine Inc.
2015-04-16 00:29:49 +00:00
allanjude
5c6401a4f8 MFC: r280301:
Fix grammar in epair(4) man page

Approved by:	eadler (mentor, implicit)
Sponsored by:	ScaleEngine Inc.
2015-04-16 00:27:53 +00:00
allanjude
8c0a1c61db MFC: r266671, r266725:
Merge strcspn.3 into strspn.3 and clarify the explaination

Approved by:	eadler (mentor, implicit)
Sponsored by:	ScaleEngine Inc.
2015-04-16 00:24:21 +00:00
rakuco
489ab0737e MFC r281146.
bthidd: Remove unused macros from hid.c.

ASIZE() was never used, and min() stopped being used in r207812.

Differential Revision:	https://reviews.freebsd.org/D2230
Reviewed by:		emax
Approved by:		emax
2015-04-15 22:07:51 +00:00
rakuco
62386cb488 MFC r281116.
bthidd: Consider usage ranges when dealing with array inputs.

So far, we were always using HID_USAGE() to determine the Usage ID of a
certain HID report input item. This does not work as intended if a field
is an array and the allowed usages are specified with a usage range, as
HID_USAGE() will return 0. We need to use the field value as an index in
the usage range list in this case instead.

This makes the volume keys in a Microsoft Bluetooth Mobile Keyboard
5000 be properly recognized. The relevant part of the HID report looks
like this:

  0xA1, 0x01,        // Collection (Application)
  0x85, 0x07,        //   Report ID (7)
  0x05, 0x0C,        //   Usage Page (Consumer)
  0x19, 0x00,        //   Usage Minimum (Unassigned)
  0x2A, 0xFF, 0x03,  //   Usage Maximum (0x03FF)
  0x95, 0x01,        //   Report Count (1)
  0x75, 0x10,        //   Report Size (16)
  0x15, 0x00,        //   Logical Minimum (0)
  0x27, 0xFF, 0x03, 0x00, 0x00,  //   Logical Maximum (1023)
  0x81, 0x00,        //   Input (Data,Array,Abs,No Wrap,Linear,Preferred
                     //   State,No Null Position)

When a key such as "volume down" is pressed, the following data is
transferred through Interrupt In:

  0x07 0xEA 0x00

Differential Revision:	https://reviews.freebsd.org/D2229
2015-04-15 22:02:52 +00:00
slm
77f96f7deb MFI r257381:
Adjust to handle either a 32-bit or 64-bit lun_id_t in printf.

MFC r266615:
    Increase taskqueue thread priority from idle to PRIBIO.

MFC r279253:
    - Copyright to Avago
    - SSU changes
    - SATA ID timeout handling (PR 191348)
    - reset handling changes
    - Bump version to 20.00.00.00-fbsd

MFC r279695:
    Change that should have been done with r279253
2015-04-15 21:47:15 +00:00
jhb
5967aacd0b MFC 278325,280866:
Revert the IPI startup sequence to match what is described in the
Intel Multiprocessor Specification v1.4.  The Intel SDM claims that

278325:
Revert the IPI startup sequence to match what is described in the
Intel Multiprocessor Specification v1.4.  The Intel SDM claims that
the INIT IPIs here are invalid, but other systems follow the MP
spec instead.

While here, fix the IPI wait routine to accept a timeout in microseconds
instead of a raw spin count, and don't spin forever during AP startup.
Instead, panic if a STARTUP IPI is not delivered after 20 us.

280866:
Wait 100 microseconds for a local APIC to dispatch each startup-related IPI
rather than 20.  The MP 1.4 specification states in Appendix B.2:

  "A period of 20 microseconds should be sufficient for IPI dispatch to
   complete under normal operating conditions".

(Note that this appears to be separate from the 10 millisecond (INIT) and
200 microsecond (STARTUP) waits after the IPIs are dispatched.)  The
Intel SDM is silent on this issue as far as I can tell.

At least some hardware requires 60 microseconds as noted in the PR, so
bump this to 100 to be on the safe side.

PR:		196542, 197756
2015-04-15 16:52:34 +00:00
kib
dcb9c46825 MFC r281272:
Explain that vm_page_array is mapped to describe the memory, not the
memory itself.  Provide the formula to calculate the number of
required page tables.  Correct the size of the struct vm_page for
non-PAE case.
2015-04-15 06:59:53 +00:00
kib
57545f1ca4 MFC r281254:
Account for the offset of the page run when allocating the
dmar_map_entry.
2015-04-15 06:56:51 +00:00
dchagin
adf6ad45fa MFC r281162, r281451:
Use flexible array for per cpu uma_cache to avoid allocating
an extra struct uma_cache.

PR:		199169
2015-04-15 05:13:41 +00:00
jhb
887f061ed2 MFC 278474,278476,280279:
Expand the bitcount*() API and use it to implement CPU_COUNT for cpusets.

278474:
Use __builtin_popcnt() to implement a BIT_COUNT() operation for bitsets and
use this to implement CPU_COUNT() to count the number of CPUs in a cpuset.

278476:
Use __builtin_popcountl() instead of __builtin_popcount().

280279:
Expand the bitcount* API to support 64-bit integers, plain ints and longs
and create a "hidden" API that can be used in other system headers without
adding namespace pollution.
- If the POPCNT instruction is enabled at compile time, use
  __builtin_popcount*() to implement __bitcount*(), otherwise fall back
  to software implementations.
- Use the existing bitcount16() and bitcount32() from <sys/systm.h> to
  implement the non-POPCNT __bitcount16() and __bitcount32() in
  <sys/types.h>.
- For the non-POPCNT __bitcount64(), use a similar SWAR method on 64-bit
  systems.  For 32-bit systems, use two __bitcount32() operations on the
  two halves.
- Use __bitcount32() to provide a __bitcount() that operates on plain ints.
- Use either __bitcount32() or __bitcount64() to provide a
  __bitcountl() that operates on longs.
- Add public bitcount*() wrappers for __bitcount*() for use in the kernel
  in <sys/libkern.h>.
- Use __bitcountl() instead of __builtin_popcountl() in BIT_COUNT().
2015-04-14 20:05:26 +00:00
pfg
f3aa91c084 MFC r281181, r281182;
sort(1): Cleanups and a small memory leak.
Remove custom getdelim(3) and fix a small memory leak.

Obtained from:  OpenBSD
2015-04-14 18:57:50 +00:00
pfg
af53064a71 MFC r281320:
Update documented OEM string in newfs_msdos(8).

This was updated in r203868 to better match the naming scheme
in other OSs that use FAT.
2015-04-14 18:45:30 +00:00
mav
25a103ace6 MFC r281199: Remove hard limits on number of accepting NFS connections.
Limits of 5 connections set long ago creates problems for SPEC benchmark.
Make the NFS follow system-wide maximum.
2015-04-14 09:58:10 +00:00
delphij
edfb896790 MFC r280716,280767,280914:
- Correct type for checkAgainst.
 - Staticify flags that are not used outside the file scope.
 - Fix warnings.
 - Constify parameters.
2015-04-14 00:32:03 +00:00
delphij
0f18b563c9 MFC r266417 (bjk):
Assorted updates to md5.1

Note that the -c argument's parameter is compared against the digest of
the file, not the file. [1]

Update the "current time" parentheticals for notes about reversing
and colliding the hash functions. [1]

Some general mdoc updates.

PR:		docs/188043 [1]
Submitted by:	Jamie Landeg-Jones [1]
2015-04-14 00:27:54 +00:00