Re: [PATCH v2 18/19] kasan: check object_size in kasan_complete_mode_report_info

From: Alexander Potapenko
Date: Mon Oct 09 2023 - 08:19:54 EST


On Wed, Sep 13, 2023 at 7:18 PM <andrey.konovalov@xxxxxxxxx> wrote:
>
> From: Andrey Konovalov <andreyknvl@xxxxxxxxxx>
>
> 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.
>
> Signed-off-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx>
Reviewed-by: Alexander Potapenko <glider@xxxxxxxxxx>