v1
2026-10-19
KASAN覆盖未对齐加载 · v1
让load_unaligned_zeropad在六种架构内检查首字节以暴露KASAN/KCSAN,并新增KUnit覆盖未对齐字读取。
原始补丁链接
子 Patch(2)
1/2
word-at-a-time: check the first byte in load_unaligned_zeropad()
load_unaligned_zeropad() reads a word that may run into an unmapped page and recovers through an exception fixup. It does the word loads of sized_strscpy() and of the name compare in dentry_string_cmp
2/2
kasan/test: cover load_unaligned_zeropad()
On architectures with CONFIG_DCACHE_WORD_ACCESS, load_unaligned_zeropad() does the word loads of the dcache name compare and of path name hashing. None of the KASAN test cases reads memory through it