~ubuntu-kernel/ubuntu/+source/linux/+git/hirsute:master-next

Last commit made on 2022-01-19
Get this branch:
git clone -b master-next https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/hirsute
Members of Ubuntu Kernel Repositories can upload to this branch. Log in for directions.

Branch merges

Branch information

Recent commits

e20f718... by J. R. Okajima

UBUNTU: SAUCE: aufs: v5.16-rc1, use inode_update_time helper

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

Simply follows the commit in mainline,
e60feb445fce9 2021-10-26 fs: export an inode_update_time helper

Signed-off-by: J. R. Okajima <email address hidden>
(cherry picked from commit cf1efc74d5cf40c2d740991ee06e402a3ad11f9f sfjro/aufs5-linux.git)
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Luke Nowakowski-Krijger <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

57db4bc... by Kleber Sacilotto de Souza

UBUNTU: Ubuntu-5.11.0-50.56

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

bbb0156... by Kleber Sacilotto de Souza

UBUNTU: link-to-tracker: update tracking bug

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

b6b46cd... by Yang Shi <email address hidden>

mm: filemap: check if THP has hwpoisoned subpage for PMD page fault

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

commit eac96c3efdb593df1a57bb5b95dbe037bfa9a522 upstream.

When handling shmem page fault the THP with corrupted subpage could be
PMD mapped if certain conditions are satisfied. But kernel is supposed
to send SIGBUS when trying to map hwpoisoned page.

There are two paths which may do PMD map: fault around and regular
fault.

Before commit f9ce0be71d1f ("mm: Cleanup faultaround and finish_fault()
codepaths") the thing was even worse in fault around path. The THP
could be PMD mapped as long as the VMA fits regardless what subpage is
accessed and corrupted. After this commit as long as head page is not
corrupted the THP could be PMD mapped.

In the regular fault path the THP could be PMD mapped as long as the
corrupted page is not accessed and the VMA fits.

This loophole could be fixed by iterating every subpage to check if any
of them is hwpoisoned or not, but it is somewhat costly in page fault
path.

So introduce a new page flag called HasHWPoisoned on the first tail
page. It indicates the THP has hwpoisoned subpage(s). It is set if any
subpage of THP is found hwpoisoned by memory failure and after the
refcount is bumped successfully, then cleared when the THP is freed or
split.

The soft offline path doesn't need this since soft offline handler just
marks a subpage hwpoisoned when the subpage is migrated successfully.
But shmem THP didn't get split then migrated at all.

Link: https://<email address hidden>
Fixes: 800d8c63b2e9 ("shmem: add huge pages support")
Signed-off-by: Yang Shi <email address hidden>
Reviewed-by: Naoya Horiguchi <email address hidden>
Suggested-by: Kirill A. Shutemov <email address hidden>
Cc: Hugh Dickins <email address hidden>
Cc: Matthew Wilcox <email address hidden>
Cc: Oscar Salvador <email address hidden>
Cc: Peter Xu <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>
Acked-by: Thadeu Lima de Souza Cascardo <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

a09b521... by Kamal Mostafa

Revert "mm: filemap: check if THP has hwpoisoned subpage for PMD page fault"

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

This reverts commit 327aa2137d989f278ece7e8e31c218dfb3416c35.

This Ubuntu backport is bogus (hunk applied to routine finish_fault()
should have been applied to do_set_pmd()). To be replaced by corrected
backport.

Signed-off-by: Kamal Mostafa <email address hidden>
Acked-by: Thadeu Lima de Souza Cascardo <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

3a5a316... by Po-Hsu Lin

selftests: icmp_redirect: pass xfail=0 to log_test()

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

If any sub-test in this icmp_redirect.sh is failing but not expected
to fail. The script will complain:
    ./icmp_redirect.sh: line 72: [: 1: unary operator expected

This is because when the sub-test is not expected to fail, we won't
pass any value for the xfail local variable in log_test() and thus
it's empty. Fix this by passing 0 as the 4th variable to log_test()
for non-xfail cases.

v2: added fixes tag

Fixes: 0a36a75c6818 ("selftests: icmp_redirect: support expected failures")
Signed-off-by: Po-Hsu Lin <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit 3748939bce3fc7a15ef07161826507fbe410bb7a)
Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

977f749... by Kamal Mostafa

UBUNTU: upstream stable to v5.10.82, v5.15.5

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

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

d3000b5... by Evan Quan <email address hidden>

drm/amd/pm: avoid duplicate powergate/ungate setting

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

commit 6ee27ee27ba8b2e725886951ba2d2d87f113bece upstream.

Just bail out if the target IP block is already in the desired
powergate/ungate state. This can avoid some duplicate settings
which sometimes may cause unexpected issues.

Link: https://<email address hidden>/
Bug: https://bugzilla.kernel.org/show_bug.cgi?id=214921
Bug: https://bugzilla.kernel.org/show_bug.cgi?id=215025
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1789
Fixes: bf756fb833cb ("drm/amdgpu: add missing cleanups for Polaris12 UVD/VCE on suspend")
Signed-off-by: Evan Quan <email address hidden>
Tested-by: Borislav Petkov <email address hidden>
Reviewed-by: Lijo Lazar <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
Cc: <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

8a77b5f... by Imre Deak <email address hidden>

drm/i915/dp: Ensure max link params are always valid

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

commit cc99bc62ff6902688ee7bd3a7b25eefc620fbb6a upstream.

Atm until the DPCD for a connector is read the max link rate and lane
count params are invalid. If the connector is modeset, in
intel_dp_compute_config(), intel_dp_common_len_rate_limit(max_link_rate)
will return 0, leading to a intel_dp->common_rates[-1] access.

Fix the above by making sure the max link params are always valid.

The above access leads to an undefined behaviour by definition, though
not causing a user visible problem to my best knowledge, see the previous
patch why. Nevertheless it is an undefined behaviour and it triggers a
BUG() in CONFIG_UBSAN builds, hence CC:stable.

Cc: Ville Syrjälä <email address hidden>
Cc: <email address hidden>
Signed-off-by: Imre Deak <email address hidden>
Reviewed-by: Ville Syrjälä <email address hidden>
Acked-by: Jani Nikula <email address hidden>
Link: https://patchwork<email address hidden>
(cherry picked from commit 9ad87de4735620ffc555592e8c5f580478fa3ed0)
Signed-off-by: Rodrigo Vivi <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

72bb7f2... by Anand K Mistry <email address hidden>

drm/prime: Fix use after free in mmap with drm_gem_ttm_mmap

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

commit 8244a3bc27b3efd057da154b8d7e414670d5044f upstream.

drm_gem_ttm_mmap() drops a reference to the gem object on success. If
the gem object's refcount == 1 on entry to drm_gem_prime_mmap(), that
drop will free the gem object, and the subsequent drm_gem_object_get()
will be a UAF. Fix by grabbing a reference before calling the mmap
helper.

This issue was forseen when the reference dropping was adding in
commit 9786b65bc61ac ("drm/ttm: fix mmap refcounting"):
  "For that to work properly the drm_gem_object_get() call in
  drm_gem_ttm_mmap() must be moved so it happens before calling
  obj->funcs->mmap(), otherwise the gem refcount would go down
  to zero."

Signed-off-by: Anand K Mistry <email address hidden>
Fixes: 9786b65bc61a ("drm/ttm: fix mmap refcounting")
Cc: Gerd Hoffmann <email address hidden>
Cc: Daniel Vetter <email address hidden>
Cc: Maarten Lankhorst <email address hidden>
Cc: Maxime Ripard <email address hidden>
Cc: Thomas Zimmermann <email address hidden>
Cc: David Airlie <email address hidden>
Cc: Daniel Vetter <email address hidden>
Cc: <email address hidden>
Cc: <email address hidden> # v5.5+
Signed-off-by: Thomas Zimmermann <email address hidden>
Link: https://patchwork.freedesktop.org/patch/msgid/20210930085932.1.I8043d61cc238e0168e2f4ca5f4783223434aa587@changeid
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>