202056 Commits

Author SHA1 Message Date
emaste
b322fc6681 Fix compiled-in keymap generation for sc/vt consoles
In r298297 kbdcontrol's -P <path> option was MFC'd to stable/10, which
enables this change for a simplified compile-time default keymap build
process.

PR:		193865
MFC of:		r296899, r296914, r297363, r298402
2016-04-21 19:24:36 +00:00
jhb
6611085190 MFC 295930:
Add support for displaying thread IDs to truss(1).

- Consolidate duplicate code for printing the metadata at the start of
  each line into a shared function.
- Add an -H option which will log the thread ID of the relevant thread
  for each event.

While here, remove some extraneous calls to clock_gettime() in
print_syscall() and print_syscall_ret().  The caller of print_syscall_ret()
always updates the current thread's "after" time before it is called.
2016-04-21 18:44:53 +00:00
jhb
06f4ef3b04 MFC 295677,295678:
Fetch the current thread and it's syscall state from the trussinfo object
instead of passing some of that state as arguments to print_syscall() and
print_syscallret().  This just makes the calls of these functions shorter
and easier to read.
2016-04-21 15:25:17 +00:00
pfg
9d7941c5e3 MFC r297527, r297688:
chdone(): Prevent returning uninitialized scalar value.

Instead of attempting to initialize all the possible cases, just
move the check nearer to the case where it makes sense.

CID:		1006486
Reviewed by:	ken
2016-04-21 14:57:44 +00:00
wblock
b1bc0c99b3 MFC r298005:
Remove a link to the CTM section of the Handbook, which no longer exists.
2016-04-21 14:25:45 +00:00
pfg
d17a279cbd MFC 297942:
libgssapi: avoid NULL pointer dereferences.

While here also use NULL instead of zero for pointers.
2016-04-20 00:49:37 +00:00
pfg
89c6fc4bee MFC r297618:
fsck_msdosfs(8): Optimimize memsets

Obtained from:	NetBSD (bin/50908)
2016-04-20 00:44:13 +00:00
emaste
986113a7a3 Bump __FreeBSD_version for kbdcontrol's -P option
MFC'd in r298297
2016-04-19 21:06:39 +00:00
emaste
c730fb273c MFC r296926: kbdcontrol: add -P path option to add keymap search paths
PR:		193865
Sponsored by:	The FreeBSD Foundation
2016-04-19 20:56:02 +00:00
davidcs
d85a000ecd MFC r297884
Add support for Flash Update

Submitted by:nrapendra.singh@qlogic.com;vaishali.kulkarni@qlogic.com;davidcs@freebsd.org
2016-04-19 18:47:34 +00:00
davidcs
d5d1e76f09 MFC r297873
1. Process tx completions in bxe_periodic_callout_func() and restart
     transmissions if possible.
2. For SIOCSIFFLAGS call bxe_init_locked() only if !BXE_STATE_DISABLED
3. remove code not needed in bxe_init_internal_common()

Submitted by:vaishali.kulkarni@qlogic.com;venkata.bhavaraju@qlogic.com
2016-04-19 18:33:36 +00:00
avg
9d6f9c24b8 MFC r297521: fix zfs set canmount=off on an unmounted filesystem
No MFC to stable/9 because of a non-trivial merge conflict and no
way to test the edited code.
2016-04-19 12:20:28 +00:00
avg
d59220bdf7 MFC r297520: zfs receive: -u can be ignored sometimes
PR:		204705
2016-04-19 12:14:15 +00:00
thomas
ba53aa0560 MFC r295749:
Reorganize the handling all-zeroes terminal block in sparse mode

PR: 189284
(original PR whose fix introduced this bug)

PR: 207092
2016-04-19 07:34:31 +00:00
scottl
dab85cf430 Merge r298008
Update the devd.conf man page to describe the new CAM/periph system/subsystem.

Sponsored by:	Netflix
2016-04-17 01:38:37 +00:00
scottl
51a500ff3c MFC r298004:
Add a devctl/devd notification conduit for CAM errors that happen at the
periph level.

Due to not merging the changes to ata_res_sbuf(), this version is a little
messy.

Sponsored by:	Netflix
2016-04-17 01:35:57 +00:00
loos
99b723c568 MFC r287009, r287120 and r298131:
Add ALTQ(9) support for the CoDel algorithm.

CoDel is a parameterless queue discipline that handles variable bandwidth
and RTT.

It can be used as the single queue discipline on an interface or as a sub
discipline of existing queue disciplines such as PRIQ, CBQ, HFSC, FAIRQ.

Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
2016-04-16 22:02:32 +00:00
loos
b3015d8f28 Fix the build.
pointy hat to:	loos
Reported by:	gjb, Herbert J. Skuhra
2016-04-16 13:41:10 +00:00
scottl
cc8bcf841c Partial MFC of r297933
Add sbuf variants ata_cmd_sbuf()

Sponsored by:	Netflix
2016-04-16 05:14:55 +00:00
scottl
2732738c9f MFC r297925, r297926:
Add scsi_cdb_sbuf() for handling CDB strings.  Reimplement scsi_cdb_string()
 in terms of it.

 Use scsi_cdb_sbuf() inside of scsi_command_string now that the temporary
 string storage is no longer needed.

Sponsored by:	Netflix
2016-04-16 02:47:46 +00:00
loos
8113adf547 MFC r284777, r284814, r284863 and r298088:
ALTQ FAIRQ discipline import from DragonFLY.

Differential Revision:	https://reviews.freebsd.org/D2847
Obtained from:	pfSense
Sponsored by:	Rubicon Communications (Netgate)
2016-04-16 02:11:04 +00:00
ngie
0fe8ad6bc5 MFC r297637:
Disable the NetBSD-specific EFAULT requirements test in gettimeofday_err

FreeBSD doesn't specifically list this as a supported error, and in some
configurations/versions of FreeBSD, this test will segfault as the memory
address might be evaluated in userspace, instead of in kernel space like
in NetBSD.
2016-04-15 01:20:14 +00:00
vangyzen
00f0196ec6 MFC r295012
kqueue EVFILT_PROC: avoid collision between NOTE_CHILD and NOTE_EXIT

NOTE_CHILD and NOTE_EXIT return something in kevent.data: the parent
pid (ppid) for NOTE_CHILD and the exit status for NOTE_EXIT.
Do not let the two events be combined, since one would overwrite
the other's data.

PR:		180385
Submitted by:	David A. Bright <david_a_bright@dell.com>
Sponsored by:	Dell Inc.
2016-04-14 17:14:11 +00:00
asomers
9b388bff95 MFC 297838
Fix an intermittent bug in sbin/devd/client_test.stream

In case where the two events were being received in separate reads, the
event buffer was being null-terminated at the wrong offset.

Also, factored out some common code between the tests, and fixed a comment.
2016-04-14 15:24:45 +00:00
gahr
7f331c8ab2 MFC 297678: Enhance uuencode with a -r option to produce raw output.
This matches with uudecode's -r option to decode raw data without initial and
final framing lines.

$ echo Test | uuencode -mr - | uudecode -mr
Test

Approved by:	cognet
2016-04-14 11:45:52 +00:00
mav
5a7f6237bc MFC r297672: Alike to r293708 relax pool check in vdev_geom_open_by_path().
This made impossible spare disk open by known path, which kind of worked
only because the same fix was applied to vdev_geom_attach_by_guids() in
r293708.
2016-04-14 09:10:09 +00:00
markj
7d48c1b04d MFC r297827:
libdtrace: Add a missing unlock to an error handler.
2016-04-14 04:54:47 +00:00
kevlo
a2a5fb1296 MFC r297479, r297695:
Update comment: Linux does set a randomized generation number of an inode
on ext2/3/4.  While here use arc4random() instead of random().

Reviewed by:	pfg
2016-04-14 01:24:00 +00:00
wblock
a977dbd919 MFC r297571:
Add another real-life example of setting a quirk for a USB gaming
keyboard.  From forum thread: https://forums.freebsd.org/threads/55717/
2016-04-13 20:12:02 +00:00
brooks
aedb89a595 MFC r297476:
Add a cross reference to ktrace(2).

Obtained from:	CheriBSD (9cb420d6b7f04c1b7d2006180b80932e5d3fe50e)
Sponsored by:	DARPA, AFRL
2016-04-13 16:47:14 +00:00
brooks
a96e6cea4d MFC r297475:
Document KTRFAC_FAULT and KTRFAC_FAULTEND.

Obtained from:	CheriBSD (9d70f563f1b033e6a9b51eaf3b145a8cbbc6617c)
Sponsored by:	DARPA, AFRL
2016-04-13 16:45:17 +00:00
bdrewery
4e6bbd6d77 MFC r297626:
Follow-up r295924: Only sync hash-based db files open for writing when
  closing.
2016-04-13 01:54:36 +00:00
mav
57d12b01ce MFC r297387: Add some device IDs found on AMD FCH shipsets. 2016-04-12 07:54:55 +00:00
mav
eb38e24ae4 MFC r297386: Add support for AMD FCH watchdog timers. 2016-04-12 07:54:03 +00:00
glebius
69db0b60a3 Merge r285713 (by zec@) from head:
Prevent null-pointer dereferencing.
2016-04-11 17:23:47 +00:00
emaste
c7d5202520 MFC r296685: libelf: correct byte count in cross-endian note translation
Sponsored by:	The FreeBSD Foundation
2016-04-11 14:45:36 +00:00
emaste
51b775d978 MFC r275430: libelf: Fix cross-endian ELF note file / memory conversion
The namesz and descsz variables need to be used in native endianness.
The sizes are in native order after swapping in the file to memory case,
and before swapping in the memory to file case.

This change is not identical to r275430 because r273443 was never merged
to stable/10, and libelf moved from lib/ to contrib/elftoolchain/.
2016-04-11 14:44:18 +00:00
emaste
48db6cc4af MFC r296769: boot/efi: Prefer nm to objdump
Both objdump and nm are equally capable of reporting undefined symbols.

  This gets us a step closer to building without binutils as we have an nm
  implementation from ELF Tool Chain.

Sponsored by:	The FreeBSD Foundation
2016-04-11 14:26:02 +00:00
kib
d1b3dae178 MFC r297535:
Remove unused variable.
2016-04-11 09:29:08 +00:00
gnn
e992763185 MFC 297358
Add ethertype reserved for network testing
2016-04-11 02:42:04 +00:00
ache
fb5000eaff MFC r297557:
SJIS encoding don't have single byte characters >= 224
2016-04-11 02:21:42 +00:00
mp
c433aab6ad MFC 297673:
Revert r296969 by removing SAVESIGVEC and switching to fork instead. This
fixes usage with system libraries which maintain their own signal state.

PR:	208132
2016-04-10 18:12:04 +00:00
kib
811669954b MFC r297311:
Ensure that TRIMs are finished before unmount destroys ufsmount.
2016-04-10 16:32:21 +00:00
kib
27423b3aa6 MFC r297308:
Style: wrap long lines.
2016-04-10 16:27:46 +00:00
jilles
2ee68855a4 MFC r278817: touch: Fix some subtle bugs related to NULL times fallback:
* Do not subvert vfs.timestamp_precision by reading the time and passing
  that to utimensat(). Instead, pass UTIME_NOW. A fallback to a NULL times
  pointer is no longer used.

* Do not ignore -a/-m if the user has write access but does not own the
  file. Leave timestamps unchanged using UTIME_OMIT and do not fall back to
  a NULL times pointer (which would set both timestamps) if that fails.
2016-04-10 15:24:07 +00:00
jilles
4c6d087886 MFC r277645: cp,mv,touch: Set timestamps with nanosecond precision.
This uses utimensat().
2016-04-10 15:02:29 +00:00
dchagin
e29b7097a2 MFCR r297519, r297525 (by pfg@):
Move Linux specific times tests up to guarantee the values are defined.
2016-04-10 06:36:58 +00:00
jilles
8699198909 MFC r259017: test: Avoid looking up again the type of a known binary
operator.
2016-04-09 21:55:58 +00:00
jilles
f631ef3d78 MFC r258799: test: Simplify the code by unifying op_num and op_type.
The global variable t_wp_op is no longer needed.
2016-04-09 21:49:57 +00:00
jilles
e010ff64d6 MFC r281086: utimensat: Correct Capsicum required capability rights. 2016-04-09 21:04:51 +00:00