diff options
| author | Guilherme Giacomo Simoes <[email protected]> | 2025-04-28 20:14:09 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-13 06:50:49 +0000 |
| commit | 69eadd6a05409ca3725cabf8d60ccf6c8f87e193 (patch) | |
| tree | 953ebb87b9b75eded20278176265b5eda6581072 /lib/xarray.c | |
| parent | mm: perform VMA allocation, freeing, duplication in mm (diff) | |
| download | kernel-69eadd6a05409ca3725cabf8d60ccf6c8f87e193.tar.gz kernel-69eadd6a05409ca3725cabf8d60ccf6c8f87e193.zip | |
mm: page-flags-layout.h: change the KASAN_TAG_WIDTH for HW_TAGS
KASAN_TAG_WIDTH is 8 bits for both (HW_TAGS and SW_TAGS), but for HW_TAGS
the KASAN_TAG_WIDTH can be 4 bits bits because due to the design of the
MTE the memory words for storing metadata only need 4 bits. Change the
preprocessor define KASAN_TAG_WIDTH for check if SW_TAGS is define, so
KASAN_TAG_WIDTH should be 8 bits, but if HW_TAGS is define, so
KASAN_TAG_WIDTH should be 4 bits to save a few flags bits.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Guilherme Giacomo Simoes <[email protected]>
Suggested-by: Andrey Konovalov <[email protected]>
Reviewed-by: Andrey Konovalov <[email protected]>
Cc: Pasha Tatashin <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions
