Skip to content
  • Andrey Konovalov's avatar
    kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_* · 46b2b863
    Andrey Konovalov authored and Vincenzo Frascino's avatar Vincenzo Frascino committed
    
    
    This is a preparatory commit for the upcoming addition of a new hardware
    tag-based (MTE-based) KASAN mode.
    
    The new mode won't be using shadow memory, but will still use the concept
    of memory granules. Each memory granule maps to a single metadata entry:
    8 bytes per one shadow byte for generic mode, 16 bytes per one shadow byte
    for software tag-based mode, and 16 bytes per one allocation tag for
    hardware tag-based mode.
    
    Rename KASAN_SHADOW_SCALE_SIZE to KASAN_GRANULE_SIZE, and KASAN_SHADOW_MASK
    to KASAN_GRANULE_MASK.
    
    Also use MASK when used as a mask, otherwise use SIZE.
    
    No functional changes.
    
    Signed-off-by: default avatarAndrey Konovalov <andreyknvl@google.com>
    Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
    Reviewed-by: default avatarMarco Elver <elver@google.com>
    ---
    Change-Id: Iac733e2248aa9d29f6fc425d8946ba07cca73ecf
    46b2b863