linux/arch/arm64
Barry Song 70565f2be8 mm: arm64: document why pte is not advanced in contpte_ptep_set_access_flags()
According to David and Ryan, there isn't a bug here, even though we
don't advance the PTE entry, because __ptep_set_access_flags() only
uses the access flags from the entry.

However, we always check pte_same(pte, entry) using the first entry
in __ptep_set_access_flags(). This means that the checks from 1 to
nr - 1 are not comparing the same PTE indexes (thus, they always
return false), which can be a bit confusing. To clarify the code, let's
add some comments.

Reviewed-by: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Barry Song <v-songbaohua@oppo.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Will Deacon <will@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20240905081124.9576-1-21cnbao@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
2024-09-06 12:28:33 +01:00
..
boot arm64: dts: ti: k3-j784s4-main: Correct McASP DMAs 2024-08-06 06:39:23 -05:00
configs sound updates for 6.11-rc1 2024-07-19 12:39:34 -07:00
crypto crypto: arm64 - add missing MODULE_DESCRIPTION() macros 2024-06-21 22:04:16 +10:00
hyperv x86/hyperv: Use Hyper-V entropy to seed guest random number generator 2024-03-18 22:01:52 +00:00
include arm64: Expose the end of the linear map in PHYSMEM_END 2024-09-04 16:39:58 +01:00
kernel arm64 fixes: 2024-08-02 13:46:43 -07:00
kvm ARM: 2024-07-20 12:41:03 -07:00
lib arm64: crypto: use CC_FLAGS_FPU for NEON CFLAGS 2024-05-19 14:36:18 -07:00
mm mm: arm64: document why pte is not advanced in contpte_ptep_set_access_flags() 2024-09-06 12:28:33 +01:00
net bpf, arm64: Fix trampoline for BPF_TRAMP_F_CALL_ORIG 2024-07-11 17:56:30 +02:00
tools arm64 fixes for -rc1 2024-07-26 10:39:10 -07:00
xen
Kbuild
Kconfig arm64: errata: Expand speculative SSBS workaround (again) 2024-08-01 16:11:28 +01:00
Kconfig.debug
Kconfig.platforms Updates for the interrupt subsystem: 2024-07-22 13:52:05 -07:00
Makefile arm64: allow installing compressed image by default 2024-07-26 10:07:56 -07:00