Re: [PATCH 4/6] slab: move validate_slab_ptr() from alloc_consistency_checks() to its caller

Harry Yoo
2025-09-12T10:41:26Z

On Thu, Sep 11, 2025 at 07:02:37PM +0200, Vlastimil Babka wrote:
> In alloc_debug_processing() we can call validate_slab_ptr() upfront and
> then don't need to recheck when alloc_consistency_checks() fails for
> other reasons.
>
> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
> ---

Looks good to me,
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>

> mm/slub.c | 30 ++++++++++++++----------------
> 1 file changed, 14 insertions(+), 16 deletions(-)

--
Cheers,
Harry / Hyeonggon