Re: [PATCH] maple_tree: Fix mas_prev() state separation code

2023-12-08 Thread Liam R. Howlett
* Kees Cook [231207 16:04]: > On Thu, Dec 07, 2023 at 02:33:19PM -0500, Liam R. Howlett wrote: > > mas_prev() was setting the ma_underflow condition when the limit was > > reached and not when the limit was attempting to go lower. This > > resulted in the incorrect behaviour on subsequent

Re: [PATCH] maple_tree: Fix mas_prev() state separation code

2023-12-07 Thread Kees Cook
On Thu, Dec 07, 2023 at 02:33:19PM -0500, Liam R. Howlett wrote: > mas_prev() was setting the ma_underflow condition when the limit was > reached and not when the limit was attempting to go lower. This > resulted in the incorrect behaviour on subsequent actions. > > This commit fixes the status

[PATCH] maple_tree: Fix mas_prev() state separation code

2023-12-07 Thread Liam R. Howlett
mas_prev() was setting the ma_underflow condition when the limit was reached and not when the limit was attempting to go lower. This resulted in the incorrect behaviour on subsequent actions. This commit fixes the status setting to only set ma_underflow when the lower limit is attempted to be