~bromer/ubuntu/+source/linux/+git/xenial:master-next

Last commit made on 2018-05-23
Get this branch:
git clone -b master-next https://git.launchpad.net/~bromer/ubuntu/+source/linux/+git/xenial
Only Ben Romer can upload to this branch. If you are Ben Romer please log in for upload directions.

Branch merges

Branch information

Name:
master-next
Repository:
lp:~bromer/ubuntu/+source/linux/+git/xenial

Recent commits

e4314ed... by Ryan Hsu <email address hidden>

ath10k: update the IRAM bank number for QCA9377

BugLink: https://bugs.launchpad.net/bugs/1748345

Preparation for a new QCA9377 firmware release. The new firmware release
requires more IRAM banks, hence update that on ath10k.

The IRAM banks promotion won't break any backwards compatibility, as those IRAM
banks were not getting used in previous firmware releases.

Signed-off-by: Ryan Hsu <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
(backported from commit fc8b92635f79cfc4dd3015384bebafada0b08f19)
Signed-off-by: AceLan Kao <email address hidden>
Acked-by: Colin King <email address hidden>
Acked-by: Anthony Wong <<email address hidden>
Acked-by: Wen-chien Jesse Sung <email address hidden>
Signed-off-by: Brad Figg <email address hidden>

80d06b8... by Seth Forshee

UBUNTU: ubuntu: i915_bpo - Add MODULE_FIRMWARE for Geminilake's DMC

BugLink: http://bugs.launchpad.net/bugs/1752536

We ship this firmware but it fails to load because it is not
present in the initrd. Add a MODULE_FIRMWARE statement to fix
this.

Signed-off-by: Seth Forshee <email address hidden>
Acked-by: Juerg Haefliger <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

f421860... by Greg Kroah-Hartman <email address hidden>

Linux 4.4.131

BugLink: http://bugs.launchpad.net/bugs/1768825

Signed-off-by: Juerg Haefliger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

86499dd... by Romain Izard <email address hidden>

serial: mctrl_gpio: Add missing module license

BugLink: http://bugs.launchpad.net/bugs/1768825

commit 82a3f87f6e80e0bf7978152021eb8938976721cb upstream.

As the mctrl_gpio driver can be built as a module, it needs to have its
license specified with MODULE_LICENSE. Otherwise, it cannot access
required symbols exported through EXPORT_SYMBOL_GPL.

Signed-off-by: Romain Izard <email address hidden>
Acked-by: Uwe Kleine-König <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Cc: Daniel Wagner <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

bdbb926... by =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <email address hidden>

serial: mctrl_gpio: export mctrl_gpio_disable_ms and mctrl_gpio_init

BugLink: http://bugs.launchpad.net/bugs/1768825

commit 4f71a2e0a282611e55bacb60b564eaef5d16c27b upstream.

To be able to make use of the mctrl-gpio helper from a module these
functions must be exported. This was forgotten in the commit introducing
support interrupt handling for these functions (while it was done for
mctrl_gpio_enable_ms, *sigh*).

Fixes: ce59e48fdbad ("serial: mctrl_gpio: implement interrupt handling")
Signed-off-by: Uwe Kleine-König <email address hidden>
Cc: Daniel Wagner <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

14ee8bb... by Yazen Ghannam <email address hidden>

x86/smpboot: Don't use mwait_play_dead() on AMD systems

BugLink: http://bugs.launchpad.net/bugs/1768825

commit da6fa7ef67f07108a1b0cb9fd9e7fcaabd39c051 upstream.

Recent AMD systems support using MWAIT for C1 state. However, MWAIT will
not allow deeper cstates than C1 on current systems.

play_dead() expects to use the deepest state available. The deepest state
available on AMD systems is reached through SystemIO or HALT. If MWAIT is
available, it is preferred over the other methods, so the CPU never reaches
the deepest possible state.

Don't try to use MWAIT to play_dead() on AMD systems. Instead, use CPUIDLE
to enter the deepest state advertised by firmware. If CPUIDLE is not
available then fallback to HALT.

Signed-off-by: Yazen Ghannam <email address hidden>
Signed-off-by: Thomas Gleixner <email address hidden>
Reviewed-by: Borislav Petkov <email address hidden>
Cc: <email address hidden>
Cc: Yazen Ghannam <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

1854236... by Arnd Bergmann

x86/ipc: Fix x32 version of shmid64_ds and msqid64_ds

BugLink: http://bugs.launchpad.net/bugs/1768825

commit 1a512c0882bd311c5b5561840fcfbe4c25b8f319 upstream.

A bugfix broke the x32 shmid64_ds and msqid64_ds data structure layout
(as seen from user space) a few years ago: Originally, __BITS_PER_LONG
was defined as 64 on x32, so we did not have padding after the 64-bit
__kernel_time_t fields, After __BITS_PER_LONG got changed to 32,
applications would observe extra padding.

In other parts of the uapi headers we seem to have a mix of those
expecting either 32 or 64 on x32 applications, so we can't easily revert
the path that broke these two structures.

Instead, this patch decouples x32 from the other architectures and moves
it back into arch specific headers, partially reverting the even older
commit 73a2d096fdf2 ("x86: remove all now-duplicate header files").

It's not clear whether this ever made any difference, since at least
glibc carries its own (correct) copy of both of these header files,
so possibly no application has ever observed the definitions here.

Based on a suggestion from H.J. Lu, I tried out the tool from
https://github.com/hjl-tools/linux-header to find other such
bugs, which pointed out the same bug in statfs(), which also has
a separate (correct) copy in glibc.

Fixes: f4b4aae18288 ("x86/headers/uapi: Fix __BITS_PER_LONG value for x32 builds")
Signed-off-by: Arnd Bergmann <email address hidden>
Signed-off-by: Thomas Gleixner <email address hidden>
Cc: "H . J . Lu" <email address hidden>
Cc: Jeffrey Walton <email address hidden>
Cc: <email address hidden>
Cc: "H. Peter Anvin" <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

cdd0e2a... by Ilya Dryomov <email address hidden>

libceph: validate con->state at the top of try_write()

BugLink: http://bugs.launchpad.net/bugs/1768825

commit 9c55ad1c214d9f8c4594ac2c3fa392c1c32431a7 upstream.

ceph_con_workfn() validates con->state before calling try_read() and
then try_write(). However, try_read() temporarily releases con->mutex,
notably in process_message() and ceph_con_in_msg_alloc(), opening the
window for ceph_con_close() to sneak in, close the connection and
release con->sock. When try_write() is called on the assumption that
con->state is still valid (i.e. not STANDBY or CLOSED), a NULL sock
gets passed to the networking stack:

  BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
  IP: selinux_socket_sendmsg+0x5/0x20

Make sure con->state is valid at the top of try_write() and add an
explicit BUG_ON for this, similar to try_read().

Cc: <email address hidden>
Link: https://tracker.ceph.com/issues/23706
Signed-off-by: Ilya Dryomov <email address hidden>
Reviewed-by: Jason Dillaman <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

c037300... by Nicolin Chen <email address hidden>

ASoC: fsl_esai: Fix divisor calculation failure at lower ratio

BugLink: http://bugs.launchpad.net/bugs/1768825

commit c656941df9bc80f7ec65b92ca73c42f8b0b62628 upstream.

When the desired ratio is less than 256, the savesub (tolerance)
in the calculation would become 0. This will then fail the loop-
search immediately without reporting any errors.

But if the ratio is smaller enough, there is no need to calculate
the tolerance because PM divisor alone is enough to get the ratio.

So a simple fix could be just to set PM directly instead of going
into the loop-search.

Reported-by: Marek Vasut <email address hidden>
Signed-off-by: Nicolin Chen <email address hidden>
Tested-by: Marek Vasut <email address hidden>
Reviewed-by: Fabio Estevam <email address hidden>
Signed-off-by: Mark Brown <email address hidden>
Cc: <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

c264a74... by Geert Uytterhoeven <email address hidden>

ARM: amba: Don't read past the end of sysfs "driver_override" buffer

BugLink: http://bugs.launchpad.net/bugs/1768825

commit d2ffed5185df9d8d9ccd150e4340e3b6f96a8381 upstream.

When printing the driver_override parameter when it is 4095 and 4094
bytes long, the printing code would access invalid memory because we
need count + 1 bytes for printing.

Cfr. commits 4efe874aace57dba ("PCI: Don't read past the end of sysfs
"driver_override" buffer") and bf563b01c2895a4b ("driver core: platform:
Don't read past the end of "driver_override" buffer").

Fixes: 3cf385713460eb2b ("ARM: 8256/1: driver coamba: add device binding path 'driver_override'")
Signed-off-by: Geert Uytterhoeven <email address hidden>
Reviewed-by: Todd Kjos <email address hidden>
Cc: stable <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>