~ubuntu-kernel/ubuntu/+source/linux/+git/xenial:master-current

Last commit made on 2019-10-16
Get this branch:
git clone -b master-current https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial
Members of Ubuntu Kernel Repositories can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
master-current
Repository:
lp:~ubuntu-kernel/ubuntu/+source/linux/+git/xenial

Recent commits

7e10e0e... by Will Deacon

arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ

https://bugs.launchpad.net/bugs/1844155

arch/arm/ defines a SIGMINSTKSZ of 2k, so we should use the same value
for compat tasks.

Cc: Arnd Bergmann <email address hidden>
Cc: Dominik Brodowski <email address hidden>
Cc: "Eric W. Biederman" <email address hidden>
Cc: Andrew Morton <email address hidden>
Cc: Al Viro <email address hidden>
Cc: Oleg Nesterov <email address hidden>
Reviewed-by: Dave Martin <email address hidden>
Reported-by: Steve McIntyre <email address hidden>
Tested-by: Steve McIntyre <email address hidden>
Signed-off-by: Will Deacon <email address hidden>
Signed-off-by: Catalin Marinas <email address hidden>

(cherry picked from commit 24951465cbd279f60b1fdc2421b3694405bcff42)
Acked-by: Stefan Bader <email address hidden>
Acked-by: Connor Kuehl <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>

706363f... by Will Deacon

signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack

https://bugs.launchpad.net/bugs/1844155

The sigaltstack(2) system call fails with -ENOMEM if the new alternative
signal stack is found to be smaller than SIGMINSTKSZ. On architectures
such as arm64, where the native value for SIGMINSTKSZ is larger than
the compat value, this can result in an unexpected error being reported
to a compat task. See, for example:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904385

This patch fixes the problem by extending do_sigaltstack to take the
minimum signal stack size as an additional parameter, allowing the
native and compat system call entry code to pass in their respective
values. COMPAT_SIGMINSTKSZ is just defined as SIGMINSTKSZ if it has not
been defined by the architecture.

Cc: Arnd Bergmann <email address hidden>
Cc: Dominik Brodowski <email address hidden>
Cc: "Eric W. Biederman" <email address hidden>
Cc: Andrew Morton <email address hidden>
Cc: Al Viro <email address hidden>
Cc: Oleg Nesterov <email address hidden>
Reported-by: Steve McIntyre <email address hidden>
Tested-by: Steve McIntyre <email address hidden>
Signed-off-by: Will Deacon <email address hidden>
Signed-off-by: Catalin Marinas <email address hidden>

(backported from commit 22839869f21ab3850fbbac9b425ccc4c0023926f)
[juergh: Adjusted context.]
Signed-off-by: Juerg Haefliger <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Connor Kuehl <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>

3d0c788... by Kleber Sacilotto de Souza

UBUNTU: Ubuntu-4.4.0-166.195

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

2ffc5da... by Khaled El Mously

UBUNTU: [packaging] Ignore new retpoline sequence

Ignore: yes
Signed-off-by: Khalid Elmously <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

0a4eb2b... by Kleber Sacilotto de Souza

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1846069
Properties: no-test-build
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

2336307... by Kleber Sacilotto de Souza

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

15a2119... by Khaled El Mously

UBUNTU: [Packaging] update helper scripts

BugLink: http://bugs.launchpad.net/bugs/1786013
Signed-off-by: Khalid Elmously <email address hidden>

1907be6... by Jason Yan <email address hidden>

scsi: libsas: direct call probe and destruct

CVE-2017-18232

In commit 87c8331fcf72 ("[SCSI] libsas: prevent domain rediscovery
competing with ata error handling") introduced disco mutex to prevent
rediscovery competing with ata error handling and put the whole
revalidation in the mutex. But the rphy add/remove needs to wait for the
error handling which also grabs the disco mutex. This may leads to dead
lock.So the probe and destruct event were introduce to do the rphy
add/remove asynchronously and out of the lock.

The asynchronously processed workers makes the whole discovery process
not atomic, the other events may interrupt the process. For example,
if a loss of signal event inserted before the probe event, the
sas_deform_port() is called and the port will be deleted.

And sas_port_delete() may run before the destruct event, but the
port-x:x is the top parent of end device or expander. This leads to
a kernel WARNING such as:

[ 82.042979] sysfs group 'power' not found for kobject 'phy-1:0:22'
[ 82.042983] ------------[ cut here ]------------
[ 82.042986] WARNING: CPU: 54 PID: 1714 at fs/sysfs/group.c:237
sysfs_remove_group+0x94/0xa0
[ 82.043059] Call trace:
[ 82.043082] [<ffff0000082e7624>] sysfs_remove_group+0x94/0xa0
[ 82.043085] [<ffff00000864e320>] dpm_sysfs_remove+0x60/0x70
[ 82.043086] [<ffff00000863ee10>] device_del+0x138/0x308
[ 82.043089] [<ffff00000869a2d0>] sas_phy_delete+0x38/0x60
[ 82.043091] [<ffff00000869a86c>] do_sas_phy_delete+0x6c/0x80
[ 82.043093] [<ffff00000863dc20>] device_for_each_child+0x58/0xa0
[ 82.043095] [<ffff000008696f80>] sas_remove_children+0x40/0x50
[ 82.043100] [<ffff00000869d1bc>] sas_destruct_devices+0x64/0xa0
[ 82.043102] [<ffff0000080e93bc>] process_one_work+0x1fc/0x4b0
[ 82.043104] [<ffff0000080e96c0>] worker_thread+0x50/0x490
[ 82.043105] [<ffff0000080f0364>] kthread+0xfc/0x128
[ 82.043107] [<ffff0000080836c0>] ret_from_fork+0x10/0x50

Make probe and destruct a direct call in the disco and revalidate function,
but put them outside the lock. The whole discovery or revalidate won't
be interrupted by other events. And the DISCE_PROBE and DISCE_DESTRUCT
event are deleted as a result of the direct call.

Introduce a new list to destruct the sas_port and put the port delete after
the destruct. This makes sure the right order of destroying the sysfs
kobject and fix the warning above.

In sas_ex_revalidate_domain() have a loop to find all broadcasted
device, and sometimes we have a chance to find the same expander twice.
Because the sas_port will be deleted at the end of the whole revalidate
process, sas_port with the same name cannot be added before this.
Otherwise the sysfs will complain of creating duplicate filename. Since
the LLDD will send broadcast for every device change, we can only
process one expander's revalidation.

[mkp: kbuild test robot warning]

Signed-off-by: Jason Yan <email address hidden>
CC: John Garry <email address hidden>
CC: Johannes Thumshirn <email address hidden>
CC: Ewan Milne <email address hidden>
CC: Christoph Hellwig <email address hidden>
CC: Tomas Henzl <email address hidden>
CC: Dan Williams <email address hidden>
Reviewed-by: Hannes Reinecke <email address hidden>
Signed-off-by: Martin K. Petersen <email address hidden>
(backported from commit 0558f33c06bb910e2879e355192227a8e8f0219d)
[ Connor Kuehl: The hunk that removed variants from 'enum
  discover_event' required manual placement. I did take the liberty of
  removing the hardcoded enum values from this enum as is done in
  upstream commit 0d78f969b10f "scsi: libsas: remove the numbering for
  each event enum" but only for this enum to reduce confusion over
  renumbering. It seemed overkill to take in the entire patch alongside
  this backport. ]
Signed-off-by: Connor Kuehl <email address hidden>
Acked-by: Kamal Mostafa <email address hidden>
Acked-by: Tyler Hicks <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>

d774555... by Sanjay Konduri <email address hidden>

rsi: add fix for crash during assertions

CVE-2018-21008

Observed crash in some scenarios when assertion has occurred,
this is because hw structure is freed and is tried to get
accessed in some functions where null check is already
present. So, avoided the crash by making the hw to NULL after
freeing.

Signed-off-by: Sanjay Konduri <email address hidden>
Signed-off-by: Sushant Kumar Mishra <email address hidden>
Signed-off-by: Kalle Valo <email address hidden>
(backported from commit abd39c6ded9db53aa44c2540092bdd5fb6590fa8)
[ Connor Kuehl: offset adjustment ]
Signed-off-by: Connor Kuehl <email address hidden>
Acked-by: Tyler Hicks <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

329e17c... by Greg Kroah-Hartman <email address hidden>

Linux 4.4.194

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

Signed-off-by: Connor Kuehl <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>