linux-uconsole/arch/s390/include/asm
Gerald Schaefer 582b4e5540 s390/mm: fix panic in gup_fast on large pud
On s390 there currently is no implementation of pud_write(). That was ok
as long as we had our own implementation of get_user_pages_fast() which
checked for pud protection by testing the bit directly w/o using
pud_write(). The other callers of pud_write() are not reachable on s390.

After commit 1a42010cdc ("s390/mm: convert to the generic
get_user_pages_fast code") we use the generic get_user_pages_fast(), which
does call pud_write() in pud_access_permitted() for FOLL_WRITE access on
a large pud. Without an s390 specific pud_write(), the generic version is
called, which contains a BUG() statement to remind us that we don't have a
proper implementation. This results in a kernel panic.

Fix this by providing an implementation of pud_write().

Cc: <stable@vger.kernel.org> # 5.2+
Fixes: 1a42010cdc ("s390/mm: convert to the generic get_user_pages_fast code")
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2020-03-04 11:18:03 +01:00
..
fpu
trace
airq.h
alternative-asm.h
alternative.h
ap.h
appldata.h
archrandom.h
asm-prototypes.h
atomic.h
atomic_ops.h
barrier.h
bitops.h
boot_data.h
bug.h
bugs.h
cache.h
ccwdev.h
ccwgroup.h
checksum.h
chpid.h
cio.h
clp.h
cmb.h
cmpxchg.h
compat.h
cpacf.h
cpcmd.h
cpu.h
cpu_mcf.h
cpu_mf-insn.h
cpu_mf.h
cpufeature.h
cputime.h
crw.h
css_chars.h
ctl_reg.h
current.h
debug.h
delay.h
diag.h
dis.h
dma.h
dwarf.h
eadm.h
ebcdic.h
elf.h
exec.h
extable.h
extmem.h
facility.h
fcx.h
ftrace.h
futex.h
gmap.h
hardirq.h
hugetlb.h
hw_irq.h
idals.h
idle.h
io.h
ipl.h
irq.h
irqflags.h
isc.h
itcw.h
jump_label.h
kasan.h
Kbuild
kdebug.h
kexec.h
kprobes.h
kvm_host.h
kvm_para.h
linkage.h
livepatch.h
lowcore.h
mem_detect.h
mem_encrypt.h
mmu.h
mmu_context.h
mmzone.h
module.h
nmi.h
nospec-branch.h
nospec-insn.h
numa.h
os_info.h
page-states.h
page.h s390/mm: Explicitly compare PAGE_DEFAULT_KEY against zero in storage_key_init_range 2020-02-17 18:01:57 +01:00
pci.h
pci_clp.h
pci_debug.h
pci_dma.h
pci_insn.h
pci_io.h
percpu.h
perf_event.h
pgalloc.h
pgtable.h s390/mm: fix panic in gup_fast on large pud 2020-03-04 11:18:03 +01:00
pkey.h
pnet.h
preempt.h
processor.h s390: remove obsolete ieee_emulation_warnings 2020-02-19 13:51:46 +01:00
ptrace.h
purgatory.h
qdio.h s390/qdio: fill SBALEs with absolute addresses 2020-02-19 17:26:32 +01:00
runtime_instr.h
schid.h
sclp.h
scsw.h
seccomp.h
sections.h
serial.h
set_memory.h
setup.h
shmparam.h
signal.h
sigp.h
smp.h
sparsemem.h
spinlock.h
spinlock_types.h
stacktrace.h
stp.h
string.h
switch_to.h
syscall.h
syscall_wrapper.h
sysinfo.h
termios.h
thread_info.h
timex.h s390/time: Fix clk type in get_tod_clock 2020-02-11 20:15:42 +01:00
tlb.h
tlbflush.h
topology.h
uaccess.h
unistd.h
unwind.h
uprobes.h
user.h
uv.h
vdso.h
vga.h
vmalloc.h
vmlinux.lds.h
vtime.h
vtimer.h
vx-insn.h
xor.h