Version 6 of Intel LAM kernel patches
(https://lore.kernel.org/all/20220815041803.17954-1-kirill.shutemov@linux.intel.com/)
introduces arch_prctl(ARCH_GET_MAX_TAG_BITS), which (unlike
ARCH_GET_UNTAG_MASK) can be used to determine if the kernel really
supports pointer tagging.
Depends on D132545
Does it have to kTagBits? Could it be 'num_bits < kTagBits' because you would be able to fit tag if it is >= kTagBits?