linux/arch/arc/include/asm
Vladimir Isaev 969de0f659 ARC: mm: PAE: use 40-bit physical page mask
commit c5f756d8c6 upstream.

32-bit PAGE_MASK can not be used as a mask for physical addresses
when PAE is enabled. PAGE_MASK_PHYS must be used for physical
addresses instead of PAGE_MASK.

Without this, init gets SIGSEGV if pte_modify was called:

| potentially unexpected fatal signal 11.
| Path: /bin/busybox
| CPU: 0 PID: 1 Comm: init Not tainted 5.12.0-rc5-00003-g1e43c377a79f-dirty
| Insn could not be fetched
|     @No matching VMA found
|  ECR: 0x00040000 EFA: 0x00000000 ERET: 0x00000000
| STAT: 0x80080082 [IE U     ]   BTA: 0x00000000
|  SP: 0x5f9ffe44  FP: 0x00000000 BLK: 0xaf3d4
| LPS: 0x000d093e LPE: 0x000d0950 LPC: 0x00000000
| r00: 0x00000002 r01: 0x5f9fff14 r02: 0x5f9fff20
| ...
| Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

Signed-off-by: Vladimir Isaev <isaev@synopsys.com>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: stable@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-19 10:13:10 +02:00
..
arcregs.h
asm-offsets.h
asserts.h
atomic.h
barrier.h
bitops.h
bug.h
cache.h
cacheflush.h
checksum.h
cmpxchg.h
current.h
delay.h
disasm.h
dma.h
dsp-impl.h
dsp.h
dwarf.h
elf.h
entry-arcv2.h
entry-compact.h
entry.h
exec.h
fb.h
fpu.h
futex.h
highmem.h
hugepage.h
io.h
irq.h
irqflags-arcv2.h
irqflags-compact.h
irqflags.h
jump_label.h
Kbuild
kdebug.h
kgdb.h
kmap_types.h
kprobes.h
linkage.h
mach_desc.h
mmu_context.h
mmu.h
mmzone.h
module.h
page.h
pci.h
perf_event.h
pgalloc.h
pgtable.h
processor.h
ptrace.h
sections.h
segment.h
serial.h
setup.h
shmparam.h
smp.h
spinlock_types.h
spinlock.h
stacktrace.h
string.h
switch_to.h
syscall.h
syscalls.h
thread_info.h
timex.h
tlb-mmu1.h
tlb.h
tlbflush.h
uaccess.h
unaligned.h
unwind.h
vermagic.h
vmalloc.h