From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org, sj@kernel.org
Cc: Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.15.y] mm/madvise: handle madvise_lock() failure during race unwinding
Date: Sat, 21 Jun 2025 04:51:51 -0400 [thread overview]
Message-ID: <20250621033546-1fcedcafae052ec1@stable.kernel.org> (raw)
In-Reply-To: <20250620164257.92454-1-sj@kernel.org>
[ Sasha's backport helper bot ]
Hi,
Summary of potential issues:
⚠️ Found matching upstream commit but patch is missing proper reference to it
Found matching upstream commit: 9c49e5d09f076001e05537734d7df002162eb2b5
Note: The patch differs from the upstream commit:
---
1: 9c49e5d09f076 ! 1: 0f9b85d494656 mm/madvise: handle madvise_lock() failure during race unwinding
@@ Commit message
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
+ (cherry picked from commit 9c49e5d09f076001e05537734d7df002162eb2b5)
## mm/madvise.c ##
@@ mm/madvise.c: static ssize_t vector_madvise(struct mm_struct *mm, struct iov_iter *iter,
+
/* Drop and reacquire lock to unwind race. */
- madvise_finish_tlb(&madv_behavior);
madvise_unlock(mm, behavior);
- madvise_lock(mm, behavior);
+ ret = madvise_lock(mm, behavior);
+ if (ret)
+ goto out;
- madvise_init_tlb(&madv_behavior, mm);
continue;
}
+ if (ret < 0)
@@ mm/madvise.c: static ssize_t vector_madvise(struct mm_struct *mm, struct iov_iter *iter,
- madvise_finish_tlb(&madv_behavior);
+ }
madvise_unlock(mm, behavior);
+out:
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.15.y | Success | Success |
prev parent reply other threads:[~2025-06-21 8:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-20 10:36 FAILED: patch "[PATCH] mm/madvise: handle madvise_lock() failure during race" failed to apply to 6.15-stable tree gregkh
2025-06-20 16:42 ` [PATCH 6.15.y] mm/madvise: handle madvise_lock() failure during race unwinding SeongJae Park
2025-06-21 8:51 ` Sasha Levin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250621033546-1fcedcafae052ec1@stable.kernel.org \
--to=sashal@kernel.org \
--cc=sj@kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox