-
- Downloads
kasan: remove PG_skip_kasan_poison flag
Code inspection reveals that PG_skip_kasan_poison is redundant with kasantag, because the former is intended to be set iff the latter is the match-all tag. It can also be observed that it's basically pointless to poison pages which have kasantag=0, because any pages with this tag would have been pointed to by pointers with match-all tags, so poisoning the pages would have little to no effect in terms of bug detection. Therefore, change the condition in should_skip_kasan_poison() to check kasantag instead, and remove PG_skip_kasan_poison and associated flags. Link: https://lkml.kernel.org/r/20230310042914.3805818-3-pcc@google.com Link: https://linux-review.googlesource.com/id/I57f825f2eaeaf7e8389d6cf4597c8a5821359838 Signed-off-by:Peter Collingbourne <pcc@google.com> Reviewed-by:
Andrey Konovalov <andreyknvl@gmail.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Evgenii Stepanov <eugenis@google.com> Cc: Vincenzo Frascino <vincenzo.frascino@arm.com> Cc: Will Deacon <will@kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- include/linux/gfp_types.h 13 additions, 17 deletionsinclude/linux/gfp_types.h
- include/linux/page-flags.h 0 additions, 9 deletionsinclude/linux/page-flags.h
- include/trace/events/mmflags.h 2 additions, 11 deletionsinclude/trace/events/mmflags.h
- mm/kasan/hw_tags.c 1 addition, 1 deletionmm/kasan/hw_tags.c
- mm/page_alloc.c 30 additions, 51 deletionsmm/page_alloc.c
- mm/vmalloc.c 1 addition, 1 deletionmm/vmalloc.c
Loading
Please register or sign in to comment