From: Greg Kroah-Hartman Date: Sat, 21 Jun 2025 11:01:37 +0000 (+0200) Subject: 6.15-stable patches X-Git-Tag: v5.4.295~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc68b44fd6f62c11fcebe873fa2440c7abae2a2b;p=thirdparty%2Fkernel%2Fstable-queue.git 6.15-stable patches added patches: drm-appletbdrm-make-appletbdrm-depend-on-x86.patch mm-madvise-handle-madvise_lock-failure-during-race-unwinding.patch --- diff --git a/queue-6.15/drm-appletbdrm-make-appletbdrm-depend-on-x86.patch b/queue-6.15/drm-appletbdrm-make-appletbdrm-depend-on-x86.patch new file mode 100644 index 0000000000..15b69ee682 --- /dev/null +++ b/queue-6.15/drm-appletbdrm-make-appletbdrm-depend-on-x86.patch @@ -0,0 +1,32 @@ +From de5fbbe1531f645c8b56098be8d1faf31e46f7f0 Mon Sep 17 00:00:00 2001 +From: Aditya Garg +Date: Thu, 10 Apr 2025 23:50:01 +0530 +Subject: drm/appletbdrm: Make appletbdrm depend on X86 + +From: Aditya Garg + +commit de5fbbe1531f645c8b56098be8d1faf31e46f7f0 upstream. + +The appletbdrm driver is exclusively for Touch Bars on x86 Intel Macs. +The M1 Macs have a separate driver. So, lets avoid compiling it for +other architectures. + +Signed-off-by: Aditya Garg +Reviewed-by: Alyssa Rosenzweig +Link: https://lore.kernel.org/r/PN3PR01MB95970778982F28E4A3751392B8B72@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM +Signed-off-by: Alyssa Rosenzweig +Signed-off-by: Greg Kroah-Hartman +--- + drivers/gpu/drm/tiny/Kconfig | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/gpu/drm/tiny/Kconfig ++++ b/drivers/gpu/drm/tiny/Kconfig +@@ -3,6 +3,7 @@ + config DRM_APPLETBDRM + tristate "DRM support for Apple Touch Bars" + depends on DRM && USB && MMU ++ depends on X86 || COMPILE_TEST + select DRM_GEM_SHMEM_HELPER + select DRM_KMS_HELPER + help diff --git a/queue-6.15/mm-madvise-handle-madvise_lock-failure-during-race-unwinding.patch b/queue-6.15/mm-madvise-handle-madvise_lock-failure-during-race-unwinding.patch new file mode 100644 index 0000000000..432d3b1460 --- /dev/null +++ b/queue-6.15/mm-madvise-handle-madvise_lock-failure-during-race-unwinding.patch @@ -0,0 +1,53 @@ +From 9c49e5d09f076001e05537734d7df002162eb2b5 Mon Sep 17 00:00:00 2001 +From: SeongJae Park +Date: Mon, 2 Jun 2025 10:49:26 -0700 +Subject: mm/madvise: handle madvise_lock() failure during race unwinding + +From: SeongJae Park + +commit 9c49e5d09f076001e05537734d7df002162eb2b5 upstream. + +When unwinding race on -ERESTARTNOINTR handling of process_madvise(), +madvise_lock() failure is ignored. Check the failure and abort remaining +works in the case. + +Link: https://lkml.kernel.org/r/20250602174926.1074-1-sj@kernel.org +Fixes: 4000e3d0a367 ("mm/madvise: remove redundant mmap_lock operations from process_madvise()") +Signed-off-by: SeongJae Park +Reported-by: Barry Song <21cnbao@gmail.com> +Closes: https://lore.kernel.org/CAGsJ_4xJXXO0G+4BizhohSZ4yDteziPw43_uF8nPXPWxUVChzw@mail.gmail.com +Reviewed-by: Jann Horn +Reviewed-by: Lorenzo Stoakes +Acked-by: David Hildenbrand +Reviewed-by: Shakeel Butt +Reviewed-by: Barry Song +Cc: Liam Howlett +Cc: Vlastimil Babka +Cc: +Signed-off-by: Andrew Morton +Signed-off-by: Greg Kroah-Hartman +--- + mm/madvise.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +--- a/mm/madvise.c ++++ b/mm/madvise.c +@@ -1832,7 +1832,9 @@ static ssize_t vector_madvise(struct mm_ + + /* Drop and reacquire lock to unwind race. */ + madvise_unlock(mm, behavior); +- madvise_lock(mm, behavior); ++ ret = madvise_lock(mm, behavior); ++ if (ret) ++ goto out; + continue; + } + if (ret < 0) +@@ -1841,6 +1843,7 @@ static ssize_t vector_madvise(struct mm_ + } + madvise_unlock(mm, behavior); + ++out: + ret = (total_len - iov_iter_count(iter)) ? : ret; + + return ret; diff --git a/queue-6.15/series b/queue-6.15/series index d435b8e1e4..9383fa4a4b 100644 --- a/queue-6.15/series +++ b/queue-6.15/series @@ -494,3 +494,5 @@ alsa-hda-realtek-add-mute-led-support-for-hp-victus-16-s1xxx-and-hp-victus-15-fa alsa-hda-realtek-enable-headset-mic-on-latitude-5420-rugged.patch alsa-hda-realtek-fix-built-in-mic-on-asus-vivobook-x513ea.patch alsa-hda-realtek-add-quirk-for-asus-gu605c.patch +drm-appletbdrm-make-appletbdrm-depend-on-x86.patch +mm-madvise-handle-madvise_lock-failure-during-race-unwinding.patch