Files
linux/mm
Georgi Djakov a2e00b4b5d FROMGIT: mm/slub: add taint after the errors are printed
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.

Link: https://lkml.kernel.org/r/1623860738-146761-1-git-send-email-quic_c_gdjako@quicinc.com
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
Acked-by: Rafael Aquini <aquini@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Bug: 178973415
(cherry picked from commit f4e665120eb4 https://github.com/hnaz/linux-mm tags/v5.13-rc6-mmots-2021-06-16-22-17)
Change-Id: Id0ca1466ac570e0e9ac5f4f6b3e8b842d8d02d7c
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
2021-06-22 19:10:07 +00:00
..
2021-06-04 11:15:16 -07:00
2021-04-30 09:13:34 -07:00
2021-05-20 15:35:25 +02:00
2021-06-12 14:48:14 +02:00
2021-03-25 19:20:09 +00:00
2021-05-20 15:35:25 +02:00
2021-05-20 15:35:25 +02:00
2021-04-30 09:13:34 -07:00
2021-05-20 15:35:25 +02:00
2021-02-25 19:36:38 +00:00
2021-04-30 09:13:34 -07:00
2020-06-08 11:05:55 -07:00
2021-04-15 14:23:41 +02:00
2021-04-22 11:12:08 +02:00
2021-05-15 09:28:55 +02:00
2021-03-07 12:53:30 +01:00
2021-03-07 12:53:30 +01:00