lkml.org 
[lkml]   [2023]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] maple_tree: Fix mas_empty_area_rev() lower bound validation
From
Date
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>

\
 
 \ /
  Last update: 2023-03-26 23:36    [W:0.029 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site