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

Last commit made on 2021-03-16
Get this branch:
git clone -b master-next https://git.launchpad.net/~ilasc/ubuntu/+source/linux/+git/xenial
Only Ioana Lasc can upload to this branch. If you are Ioana Lasc please log in for upload directions.

Branch merges

Branch information

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

Recent commits

b423ec9... by Dave Chinner <email address hidden>

xfs: More robust inode extent count validation

When the inode is in extent format, it can't have more extents that
fit in the inode fork. We don't currenty check this, and so this
corruption goes unnoticed by the inode verifiers. This can lead to
crashes operating on invalid in-memory structures.

Attempts to access such a inode will now error out in the verifier
rather than allowing modification operations to proceed.

Reported-by: Wen Xu <email address hidden>
Signed-off-by: Dave Chinner <email address hidden>
Reviewed-by: Darrick J. Wong <email address hidden>
[darrick: fix a typedef, add some braces and breaks to shut up compiler warnings]
Signed-off-by: Darrick J. Wong <email address hidden>
(backported from commit 23fcb3340d033d9f081e21e6c12c2db7eaa541d3)
Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
CVE-2018-13095
Signed-off-by: Kelsey Skunberg <email address hidden>

bc1b612... by Carolyn Wyborny

i40e: change behavior on PF in response to MDD event

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

TX MDD events reported on the PF are the result of the
PF misconfiguring a descriptor and not because of "bad actions"
by anything else. No need to reset now because if it
results in a Tx hang, the Tx hang check will take care of it.

Signed-off-by: Carolyn Wyborny <email address hidden>
Tested-by: Andrew Bowers <email address hidden>
Signed-off-by: Jeff Kirsher <email address hidden>
(backported from commit a1df906c5be75ce2c7633e06c688607ec088ca35)
Signed-off-by: Heitor Alves de Siqueira <email address hidden>
[halves: context adjustment]
Acked-by: Tim Gardner <email address hidden>
Acked-by: Guilherme G. Piccoli <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>

bdb5b63... by Kamal Mostafa

UBUNTU: upstream stable to v4.4.260

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

Ignore: yes
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>

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

Linux 4.4.260

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

Tested-by: Jon Hunter <email address hidden>
Tested-by: Jason Self <email address hidden>
Tested-by: Linux Kernel Functional Testing <email address hidden>
Tested-by: Guenter Roeck <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>

e378e91... by Sakari Ailus <email address hidden>

media: v4l: ioctl: Fix memory leak in video_usercopy

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

commit fb18802a338b36f675a388fc03d2aa504a0d0899 upstream.

When an IOCTL with argument size larger than 128 that also used array
arguments were handled, two memory allocations were made but alas, only
the latter one of them was released. This happened because there was only
a single local variable to hold such a temporary allocation.

Fix this by adding separate variables to hold the pointers to the
temporary allocations.

Reported-by: Arnd Bergmann <email address hidden>
Reported-by: <email address hidden>
Fixes: d14e6d76ebf7 ("[media] v4l: Add multi-planar ioctl handling code")
Cc: <email address hidden>
Signed-off-by: Sakari Ailus <email address hidden>
Acked-by: Arnd Bergmann <email address hidden>
Acked-by: Hans Verkuil <email address hidden>
Reviewed-by: Laurent Pinchart <email address hidden>
Signed-off-by: Mauro Carvalho Chehab <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>

274210d... by axboe

swap: fix swapfile read/write offset

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

commit caf6912f3f4af7232340d500a4a2008f81b93f14 upstream.

We're not factoring in the start of the file for where to write and
read the swapfile, which leads to very unfortunate side effects of
writing where we should not be...

[This issue only affects swapfiles on filesystems on top of blockdevs
that implement rw_page ops (brd, zram, btt, pmem), and not on top of any
other block devices, in contrast to the upstream commit fix.]

Fixes: dd6bd0d9c7db ("swap: use bdev_read_page() / bdev_write_page()")
Cc: <email address hidden> # 4.4
Signed-off-by: Anthony Iliopoulos <email address hidden>
Signed-off-by: Jens Axboe <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>

49c3fc0... by Rokudo Yan <email address hidden>

zsmalloc: account the number of compacted pages correctly

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

commit 2395928158059b8f9858365fce7713ce7fef62e4 upstream.

There exists multiple path may do zram compaction concurrently.
1. auto-compaction triggered during memory reclaim
2. userspace utils write zram<id>/compaction node

So, multiple threads may call zs_shrinker_scan/zs_compact concurrently.
But pages_compacted is a per zsmalloc pool variable and modification
of the variable is not serialized(through under class->lock).
There are two issues here:
1. the pages_compacted may not equal to total number of pages
freed(due to concurrently add).
2. zs_shrinker_scan may not return the correct number of pages
freed(issued by current shrinker).

The fix is simple:
1. account the number of pages freed in zs_compact locally.
2. use actomic variable pages_compacted to accumulate total number.

Link: https://<email address hidden>
Fixes: 860c707dca155a56 ("zsmalloc: account the number of compacted pages")
Signed-off-by: Rokudo Yan <email address hidden>
Cc: Minchan Kim <email address hidden>
Cc: Sergey Senozhatsky <email address hidden>
Cc: <email address hidden>
Signed-off-by: Andrew Morton <email address hidden>
Signed-off-by: Linus Torvalds <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>

eac2eec... by Jan Beulich <email address hidden>

xen-netback: respect gnttab_map_refs()'s return value

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

commit 2991397d23ec597405b116d96de3813420bdcbc3 upstream.

Commit 3194a1746e8a ("xen-netback: don't "handle" error by BUG()")
dropped respective a BUG_ON() without noticing that with this the
variable's value wouldn't be consumed anymore. With gnttab_set_map_op()
setting all status fields to a non-zero value, in case of an error no
slot should have a status of GNTST_okay (zero).

This is part of XSA-367.

Cc: <email address hidden>
Reported-by: kernel test robot <email address hidden>
Signed-off-by: Jan Beulich <email address hidden>
Reviewed-by: Juergen Gross <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Juergen Gross <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>

97dcf04... by Jan Beulich <email address hidden>

Xen/gnttab: handle p2m update errors on a per-slot basis

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

commit 8310b77b48c5558c140e7a57a702e7819e62f04e upstream.

Bailing immediately from set_foreign_p2m_mapping() upon a p2m updating
error leaves the full batch in an ambiguous state as far as the caller
is concerned. Instead flags respective slots as bad, unmapping what
was mapped there right away.

HYPERVISOR_grant_table_op()'s return value and the individual unmap
slots' status fields get used only for a one-time - there's not much we
can do in case of a failure.

Note that there's no GNTST_enomem or alike, so GNTST_general_error gets
used.

The map ops' handle fields get overwritten just to be on the safe side.

This is part of XSA-367.

Cc: <email address hidden>
Signed-off-by: Jan Beulich <email address hidden>
Reviewed-by: Juergen Gross <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Juergen Gross <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>

56ac2c0... by Ricardo Ribalda <email address hidden>

media: uvcvideo: Allow entities with no pads

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

[ Upstream commit 7532dad6634031d083df7af606fac655b8d08b5c ]

Avoid an underflow while calculating the number of inputs for entities
with zero pads.

Signed-off-by: Ricardo Ribalda <email address hidden>
Signed-off-by: Laurent Pinchart <email address hidden>
Signed-off-by: Mauro Carvalho Chehab <email address hidden>
Signed-off-by: Sasha Levin <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kelsey Skunberg <email address hidden>