Skip to content

Commit 8d15d5e

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Will Deacon: "Two tiny arm64 fixes for -rc6. One fixes a build breakage when MAX_ORDER can be nonsensical if CONFIG_EXPERT=y and the other fixes the address masking for perf's page fault software events so that it is consistent amongst them: - Fix build breakage due to bogus MAX_ORDER definitions on !4k pages - Avoid masking fault address for perf software events" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: mm: pass original fault address to handle_mm_fault() in PER_VMA_LOCK block arm64: Remove the ARCH_FORCE_MAX_ORDER config input prompt
2 parents 25041a4 + 0e2aba6 commit 8d15d5e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

arch/arm64/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ config XEN
15161516
# 16K | 27 | 14 | 13 | 11 |
15171517
# 64K | 29 | 16 | 13 | 13 |
15181518
config ARCH_FORCE_MAX_ORDER
1519-
int "Order of maximal physically contiguous allocations" if EXPERT && (ARM64_4K_PAGES || ARM64_16K_PAGES)
1519+
int
15201520
default "13" if ARM64_64K_PAGES
15211521
default "11" if ARM64_16K_PAGES
15221522
default "10"

arch/arm64/mm/fault.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,7 @@ static int __kprobes do_page_fault(unsigned long far, unsigned long esr,
600600
vma_end_read(vma);
601601
goto lock_mmap;
602602
}
603-
fault = handle_mm_fault(vma, addr & PAGE_MASK,
604-
mm_flags | FAULT_FLAG_VMA_LOCK, regs);
603+
fault = handle_mm_fault(vma, addr, mm_flags | FAULT_FLAG_VMA_LOCK, regs);
605604
vma_end_read(vma);
606605

607606
if (!(fault & VM_FAULT_RETRY)) {

0 commit comments

Comments
 (0)