diff options
author | Catalin Marinas <[email protected]> | 2022-06-10 16:21:39 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2022-07-07 10:48:37 +0100 |
commit | 70c248aca9e7efa85a6664d5ab56c17c326c958f (patch) | |
tree | 1cee0c376af4662b3f7bf8982187e3492dff1b63 /lib/mpi/mpi-cmp.c | |
parent | ed0a6d1d973e9763989b44913ae1bd2a5d5d5777 (diff) |
mm: kasan: Skip unpoisoning of user pages
Commit c275c5c6d50a ("kasan: disable freed user page poisoning with HW
tags") added __GFP_SKIP_KASAN_POISON to GFP_HIGHUSER_MOVABLE. A similar
argument can be made about unpoisoning, so also add
__GFP_SKIP_KASAN_UNPOISON to user pages. To ensure the user page is
still accessible via page_address() without a kasan fault, reset the
page->flags tag.
With the above changes, there is no need for the arm64
tag_clear_highpage() to reset the page->flags tag.
Signed-off-by: Catalin Marinas <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Cc: Peter Collingbourne <[email protected]>
Cc: Vincenzo Frascino <[email protected]>
Reviewed-by: Vincenzo Frascino <[email protected]>
Reviewed-by: Andrey Konovalov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions