linux-stable/arch
Qi Zheng 00de2c9f26 arm64: mm: use ptep_clear() instead of pte_clear() in clear_flush()
In clear_flush(), the original pte may be a present entry, so we should
use ptep_clear() to let page_table_check track the pte clearing operation,
otherwise it may cause false positive in subsequent set_pte_at().

Link: https://lkml.kernel.org/r/20230810093241.1181142-1-qi.zheng@linux.dev
Fixes: 42b2547137 ("arm64/mm: enable ARCH_SUPPORTS_PAGE_TABLE_CHECK")
Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Acked-by: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Qi Zheng <zhengqi.arch@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-08-24 16:20:27 -07:00
..
alpha mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
arc mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
arm mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
arm64 arm64: mm: use ptep_clear() instead of pte_clear() in clear_flush() 2023-08-24 16:20:27 -07:00
csky mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
hexagon mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
ia64 ia64: implement the new page table range API 2023-08-24 16:20:21 -07:00
loongarch mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
m68k mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
microblaze microblaze: implement the new page table range API 2023-08-24 16:20:21 -07:00
mips mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
nios2 mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
openrisc openrisc: implement the new page table range API 2023-08-24 16:20:22 -07:00
parisc mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
powerpc powerpc: implement the new page table range API 2023-08-24 16:20:23 -07:00
riscv riscv: implement the new page table range API 2023-08-24 16:20:23 -07:00
s390 s390: implement the new page table range API 2023-08-24 16:20:23 -07:00
sh mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
sparc mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
um um: implement the new page table range API 2023-08-24 16:20:24 -07:00
x86 x86: implement the new page table range API 2023-08-24 16:20:24 -07:00
xtensa mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
.gitignore
Kconfig - Arnd Bergmann has fixed a bunch of -Wmissing-prototypes in 2023-06-28 10:59:38 -07:00