Commit Graph

271394 Commits

Author SHA1 Message Date
hikaru 8c80fd2599 Disable MSI-X before writing the MSI-X table.
That fixes MSI-X interrupt lost on VMware ESXi 6.7 PCI passthrough devices.

ok knakahara@
2019-11-13 02:54:59 +00:00
ozaki-r a8d6848953 Get rid of unnecessary NULL checks for rt_ifa and ifa_ifp
They are always non-NULL nowadays.
2019-11-13 02:51:22 +00:00
mrg d96b7a130a put the ucode not found message under #ifdef DEBUG. use printf()
instead of aprint_error().

there's an error returned to userland and displayed by cpuctl.
2019-11-13 01:31:47 +00:00
kre a4e7b926c7 Appease gcc. Init "terminator".
It is plainly obvious that the init value cannot be used (the
var was never used uninit'd - could not be) but gcc apparently cannot
work that out.   Revert this if we ever get a compiler with a brain.
2019-11-13 00:19:46 +00:00
christos cfe16cc4b6 remove debugging. 2019-11-12 23:54:34 +00:00
christos 341414cc0c new tmux 2019-11-12 21:03:49 +00:00
christos 29e2eaddc1 new files and bump version 2019-11-12 21:02:46 +00:00
christos 0a274e8662 merge conflicts 2019-11-12 21:02:28 +00:00
christos b9ecc063aa PR/54654: Soren Tempel: Make sure el_cursor.v < el_terminal.t_size.v when
moving around.
2019-11-12 20:59:46 +00:00
maya df21d24007 Fix whitespace. From vezhlys 2019-11-12 19:44:46 +00:00
christos ef36e74738 CHANGES FROM 2.9 to 2.9a
* Fix bugs in select-pane and the main-horizontal and main-vertical layouts.

CHANGES FROM 2.8 to 2.9

* Attempt to preserve horizontal cursor position as well as vertical with
  reflow.

* Rewrite main-vertical and horizontal and change layouts to better handle the
  case where all panes won't fit into the window size, reduce problems with
  pane border status lines and fix other bugs mostly found by Thomas Sattler.

* Add format variables for the default formats in the various modes
  (tree_mode_format and so on) and add a -a flag to display-message to list
  variables with values.

* Add a -v flag to display-message to show verbose messages as the format is
  parsed, this allows formats to be debugged

* Add support for HPA (\033[`).

* Add support for origin mode (\033[?6h).

* No longer clear history on RIS.

* Extend the #[] style syntax and use that together with previous format
  changes to allow the status line to be entirely configured with a single
  option.

  Now that it is possible to configure their content, enable the existing code
  that lets the status line be multiple lines in height. The status option can
  now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to
  configure more than one line. The new status-format array option configures
  the format of each line, the default just references the existing status-*
  options, although some of the more obscure status options may be eliminated
  in time.

  Additions to the #[] syntax are: "align" to specify alignment (left, centre,
  right), "list" for the window list and "range" to configure ranges of text
  for the mouse bindings.

  The "align" keyword can also be used to specify alignment of entries in tree
  mode and the pane status lines.

* Add E: and T: format modifiers to expand a format twice (useful to expand the
  value of an option).

* The individual -fg, -bg and -attr options have been removed; they
  were superseded by -style options in tmux 1.9.

* Allow more than one mode to be opened in a pane. Modes are kept on a stack
  and retrieved if the same mode is entered again. Exiting the active mode goes
  back to the previous one.

* When showing command output in copy mode, call it view mode instead (affects
  pane_mode format).

* Add -b to display-panes like run-shell.

* Handle UTF-8 in word-separators option.

* New "terminal" colour allowing options to use the terminal default colour
  rather than inheriting the default from a parent option.

* Do not move the cursor in copy mode when the mouse wheel is used.

* Use the same working directory rules for jobs as new windows rather than
  always starting in the user's home.

* Allow panes to be one line or column in size.

* Go to last line when goto-line number is out of range in copy mode.

* Yank previously cut text if any with C-y in the command prompt, only use the
  buffer if no text has been cut.

* Add q: format modifier to quote shell special characters.

* Add StatusLeft and StatusRight mouse locations (keys such as
  MouseDown1StatusLeft) for the status-left and status-right areas of the
  status line.

* Add -Z to find-window.

* Support for windows larger than the client. This adds two new options,
  window-size and default-size, and a new command, resize-window. The
  force-width and force-height options and the session_width and session_height
  formats have been removed.

  The new window-size option tells tmux how to work out the size of windows:
  largest means it picks the size of the largest session, smallest the smallest
  session (similar to the old behaviour) and manual means that it does not
  automatically resize windows. aggressive-resize modifies the choice of
  session for largest and smallest as it did before.

  If a window is in a session attached to a client that is too small, only part
  of the window is shown. tmux attempts to keep the cursor visible, so the part
  of the window displayed is changed as the cursor moves (with a small delay,
  to try and avoid excess redrawing when applications redraw status lines or
  similar that are not currently visible).

  Drawing windows which are larger than the client is not as efficient as those
  which fit, particularly when the cursor moves, so it is recommended to avoid
  using this on slow machines or networks (set window-size to smallest or
  manual).

  The resize-window command can be used to resize a window manually. If it is
  used, the window-size option is automatically set to manual for the window
  (undo this with "setw -u window-size"). resize-window works in a similar way
  to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a
  sets the window to the size of the smallest client (what it would be if
  window-size was smallest) and -A the largest.

  For the same behaviour as force-width or force-height, use resize-window -x
  or -y.

  If the global window-size option is set to manual, the default-size option is
  used for new windows. If -x or -y is used with new-session, that sets the
  default-size option for the new session.

  The maximum size of a window is 10000x10000. But expect applications to
  complain and higher memory use if making a window that big. The minimum size
  is the size required for the current layout including borders.

  The refresh-client command can be used to pan around a window, -U -D -L -R
  moves up, down, left or right and -c returns to automatic cursor
  tracking. The position is reset when the current window is changed.
2019-11-12 19:18:21 +00:00
kre 5bb52324f6 Add a missing ("quoting") '>' in an atf_fail error message string.
Since the tests don't (usually) fail no-one ever noticed the missing char.

That is, the "received this" and "expected this" strings were supposed
to appear in the output err message as "<<string>>" but one of those
closing '>' chars was missing.

No-one should ever notice this change in normal operation, as the tests
are not intended to fail.
2019-11-12 18:59:51 +00:00
kamil 84cacc6757 Rework thread_concurrent_signals and trace_thread_lwpcreate_and_exit
Change the code to remove the LWP id assumptions that broke after
src/sys/kern/kern_lwp.c r. 1.206.

Original code by <mgorny>, tested and tweaked by myself.
2019-11-12 18:18:04 +00:00
martin f6c1538729 PR 54467: we trust our own sets, extract them with -P to allow symlink
redirection (especially for updates and chroot services - back out
once a better solution for those is implemented)
2019-11-12 18:04:37 +00:00
maxv f7244b19a6 Mitigation for CVE-2019-11135: TSX Asynchronous Abort (TAA).
Two sysctls are added:

	machdep.taa.mitigated = {0/1} user-settable
	machdep.taa.method = {string} constructed by the kernel

There are two cases:

 (1) If the CPU is affected by MDS, then the MDS mitigation will also
mitigate TAA, and we have nothing else to do. We make the 'mitigated' leaf
read-only, and force:
	machdep.taa.mitigated = machdep.mds.mitigated
	machdep.taa.method = [MDS]
The kernel already enables the MDS mitigation by default.

 (2) If the CPU is not affected by MDS but is affected by TAA, then we use
the new TSX_CTRL MSR to disable RTM. This MSR is provided via a microcode
update, now available on the Intel website. The kernel will automatically
enable the TAA mitigation if the updated microcode is present. If the new
microcode is not present, the user can load it via cpuctl, and set
machdep.taa.mitigated=1.
2019-11-12 18:00:13 +00:00
macallan 0186e0f5d2 add missing usb at ehci
thanks Romain Dolbeau for noticing
2019-11-12 17:27:59 +00:00
martin f77b58b179 Add options to the various partitioning stages that allow cloning of
alien partitions (optionally including data).
2019-11-12 16:33:14 +00:00
msaitoh 14f8299ec0 - Define IPGPHY_SCR's address.
- Whitespace fix.
2019-11-12 14:07:09 +00:00
msaitoh 6565c0bf2b Add missing initialization of sc_dev. 2019-11-12 13:17:43 +00:00
msaitoh bda26ac8c9 Initialize sc_dev correctly to avoid null pointer dereference when
bus_space_map() failed.
2019-11-12 13:10:51 +00:00
wiz 5b72b9d868 Remove list of audio drivers, moved to audio(4). 2019-11-12 12:50:30 +00:00
wiz 625842098e Remove self-reference 2019-11-12 12:50:04 +00:00
wiz 3f63b553ac Update list of audio drivers in SEE ALSO.
Based on audioplay(1) man page, where I'll remove them shortly.
2019-11-12 12:49:06 +00:00
uki d81276d301 Give syspkg names to lintlib packages 2019-11-12 10:14:11 +00:00
hkenken 99121566be Fixed bug.
* typo
2019-11-12 08:40:57 +00:00
mrg aa82221a57 fix the date for mos(4) import, and mention moscom(4) removal in prev. 2019-11-12 08:35:56 +00:00
maxv 624f3f7406 Add more checks in ip6_pullexthdr, to prevent a panic in m_copydata. The
Rip6 entry point could see a garbage Hop6 option.

Not a big issue, since it's a clean panic only triggerable if the socket
has the IN6P_DSTOPTS/IN6P_RTHDR option.

Reported-by: syzbot+3b07b3511b4ceb8bf1e2@syzkaller.appspotmail.com
2019-11-12 08:11:55 +00:00
mrg 8f0a47505d dynamically calculate the list of usb hubs from drvctl if available. 2019-11-12 07:41:50 +00:00
mrg 41f22f4f02 match DIE_ID of 9 (SILERGY_DIE_ID_SYR83X), seen on some rockpro64s. 2019-11-12 07:40:04 +00:00
knakahara 52329830f1 Fix SA can be expaired wrongly when there are many SPs.
When key_timehandler_spd() spent over one second, the "now" argument of
key_timehandler_sad() could be older than sav->created. That caused SA
was expired immediately.
2019-11-12 05:13:29 +00:00
hkenken c372cef6d7 IPG clock is used instead of ENET_PLL clock to set MII Speed Control Register. 2019-11-12 05:09:29 +00:00
hkenken 535c3d00ab Add imxccm_clk_set_rate_div().
+ Fixed BUG in imxccm_clk_get_rate_div().
2019-11-12 04:32:36 +00:00
joerg 76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
chs 9be678b1cd revert rev 1.7 (which removed the fd_local field from frdest_t).
this structure is part of the kernel/user ABI and so we would need to
version the ioctl ABI again in order to remove this field.  but that's
a big pain so let's just leave the field there.  the problem that
was being fixed in FreeBSD related to this was a failure to locate
filter rules in certain situations, but having an unused always-zero
field there won't cause that problem.
2019-11-11 19:33:43 +00:00
scole cfc9dfaf24 ski should run on i386 and amd64 with patches from http://gnats.netbsd.org/54690 2019-11-11 18:06:47 +00:00
joerg 856452fc2a Spell the largest 32bit signed value as INT32_MAX. Explicitly cast to
float, because it is not precisely representable.
2019-11-11 15:40:42 +00:00
roy 8a7de48817 rtadvd: Add C flag to control the zeroing of the leaving configuration
This is only intended to assist the testing of clients which consume
Router Advertisement messages, such as dhcpcd(8).
2019-11-11 13:42:49 +00:00
wiz 5952ea0ef1 Make a sentence easier to read, and fix some nits. 2019-11-11 11:06:27 +00:00
wiz 899b15813c Fix a typo. Fix some xrefs, comment out references to non-existing man pages. 2019-11-11 11:04:15 +00:00
maxv 0cc65d2126 Remove lockless reads of 'xc_donep'. This is an uint64_t, and we cannot
expect the accesses to be MP-safe on 32bit arches.

Found by KCSAN.
2019-11-11 09:50:11 +00:00
tnn 6aff709faf silence sign-conversion warning from clang 2019-11-11 09:24:56 +00:00
msaitoh d80b6f6e68 Fix IP broadcast + checksum offload problem.
When a machine sends a IP broadcast packet to an Ethernet interface that the
checksum offload flags are set, the packet goes through ether_output() ->
looutput() and the offload flags is cleard without calculating the checksum.
And then, ip_input() calculate the packet's checksum because it's csum_flags is
zero. It regard as bad checksum and it's dropped because the packet's ifp
is s not lo0's. Fixes this bug by passing csum_flags as "calculated and good"
when IN_LOOPBACK_NEED_CHECKSUM() is false. Adviced by ryo@.

 This problem was seen when "routed -s" was used and the machine's interface's
offload flags were set. bad checksum field of "netstat -s" was increased every
30 minutes.
2019-11-11 08:12:35 +00:00
nonaka 11d4ba7451 nvme(4): Use the SET_FEATURES command to get the number of allocated queues. 2019-11-11 07:27:48 +00:00
pgoyette 834dafbf7a Add UPC - universal product code 2019-11-11 04:11:53 +00:00
msaitoh 18f068bbc4 Remove acorn26's upc(4) devices. 2019-11-11 04:04:29 +00:00
yamaguchi 0c3bbc580c atf: add test cases for MTU that is increased on SIOCSETVLAN
From t-kusaba@IIJ, thanks
2019-11-11 02:40:48 +00:00
yamaguchi 721fbb307c Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.

From t-kusaba@IIJ
2019-11-11 02:34:46 +00:00
joerg ffac73eb32 Ensure that the second LWP of a new process uses a free LWP ID.
Document overflow behavior.
2019-11-10 23:39:03 +00:00
gutteridge 2ce1a612c2 re.4: note additional cards supported, and tweak another detail
This driver also works as-is with a D-Link DGE-530T rev. D2 and a
TP-Link TG-3468 v3, as both match pre-existing PCI vendor and device ID
values. (It should also work with a TG-3468 v2, but would need another
vendor ID match added for that variant.) While here, also note it
supports UDP checksum offload, too.
2019-11-10 23:14:16 +00:00
sevan cacc7f27a4 https://twitter.com/sei6r/status/1182433546331279360 2019-11-10 22:42:21 +00:00