]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kasan: check object_size in kasan_complete_mode_report_info
authorAndrey Konovalov <andreyknvl@google.com>
Mon, 20 Nov 2023 17:47:17 +0000 (18:47 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 20 Nov 2023 21:16:41 +0000 (13:16 -0800)
commite9e7ccbfe837ebc9a9fd4e8e2a25ef27d3e78e88
tree83cbbc4bb89238edbdf87f720178f2693b234054
parentd84ad3d0fcaac96403d5b70c1c93971dcda44df7
kasan: check object_size in kasan_complete_mode_report_info

Check the object size when looking up entries in the stack ring.

If the size of the object for which a report is being printed does not
match the size of the object for which a stack trace has been saved in the
stack ring, the saved stack trace is irrelevant.

Link: https://lkml.kernel.org/r/68c6948175aadd7e7e7deea61725103d64a4528f.1700502145.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kasan/report_tags.c