Re: [PATCH v3 1/2] mm: slub: Print the broken data before restoring slub.

From: Hyesoo Yu
Date: Mon Feb 24 2025 - 20:13:32 EST


On Mon, Feb 24, 2025 at 09:24:42AM -0800, Christoph Lameter (Ampere) wrote:
> On Thu, 20 Feb 2025, Hyesoo Yu wrote:
>
> > @@ -1396,11 +1400,6 @@ static int check_object(struct kmem_cache *s, struct slab *slab,
> > ret = 0;
> > }
> >
> > - if (!ret && !slab_in_kunit_test()) {
>
>
> > - print_trailer(s, slab, object);
> > - add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE);
>
> No tainting and printing of the trailer anymore?
>

If there is an error before on check_object, the check_bytes_and_report
calls object_err that calls print_trailer and add_traint.

Thanks,
Regards.