Re: [PATCH] mm/slub: Add taint after the errors are printed

From: David Rientjes
Date: Fri Jun 18 2021 - 15:38:06 EST


On Wed, 16 Jun 2021, Georgi Djakov wrote:

> When running the kernel with panic_on_taint, the usual slub debug error
> messages are not being printed when object corruption happens. That's
> because we panic in add_taint(), which is called before printing the
> additional information. This is a bit unfortunate as the error messages
> are actually very useful, especially before a panic. Let's fix this by
> moving add_taint() after the errors are printed on the console.
>
> Signed-off-by: Georgi Djakov <quic_c_gdjako@xxxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>