From: "Holger Hoffstätte" <holger@applied-asynchrony.com>
To: Liam Howlett <liam.howlett@oracle.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
"maple-tree@lists.infradead.org" <maple-tree@lists.infradead.org>
Cc: "stable@vger.kernel.org" <stable@vger.kernel.org>,
"amanieu@gmail.com" <amanieu@gmail.com>
Subject: Re: [PATCH] maple_tree: Fix mas_empty_area_rev() lower bound validation
Date: Wed, 11 Jan 2023 21:52:22 +0100 [thread overview]
Message-ID: <ae39b767-3356-d0a6-4a2d-9154d2eede4f@applied-asynchrony.com> (raw)
In-Reply-To: <20230111200136.1851322-1-Liam.Howlett@oracle.com>
On 2023-01-11 21:02, Liam Howlett wrote:
> mas_empty_area_rev() was not correctly validating the start of a gap
> against the lower limit. This could lead to the range starting lower
> than the requested minimum.
>
> Fix the issue by better validating a gap once one is found.
>
> This commit also adds tests to the maple tree test suite for this issue
> and tests the mas_empty_area() function for similar bound checking.
>
> Cc: stable@vger.kernel.org
> BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=216911
> Reported-by: amanieu@gmail.com
> Fixes: 54a611b60590 ("Maple Tree: add new data structure")
> Link: https://lore.kernel.org/linux-mm/0b9f5425-08d4-8013-aa4c-e620c3b10bb2@leemhuis.info/
> Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
prev parent reply other threads:[~2023-01-11 20:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-11 20:02 Liam Howlett
2023-01-11 20:52 ` Holger Hoffstätte [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=ae39b767-3356-d0a6-4a2d-9154d2eede4f@applied-asynchrony.com \
--to=holger@applied-asynchrony.com \
--cc=akpm@linux-foundation.org \
--cc=amanieu@gmail.com \
--cc=liam.howlett@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=maple-tree@lists.infradead.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
all inboxes | Powered by JetHome®