diff options
| -rw-r--r-- | arch/s390/include/uapi/asm/unistd.h | 3 | ||||
| -rw-r--r-- | arch/s390/kernel/compat_wrapper.c | 1 | ||||
| -rw-r--r-- | arch/s390/kernel/syscalls.S | 1 | ||||
| -rw-r--r-- | arch/s390/kernel/uprobes.c | 2 | ||||
| -rw-r--r-- | arch/s390/lib/probes.c | 2 | ||||
| -rw-r--r-- | arch/s390/mm/pgtable.c | 6 | ||||
| -rw-r--r-- | drivers/s390/char/Kconfig | 2 |
7 files changed, 10 insertions, 7 deletions
diff --git a/arch/s390/include/uapi/asm/unistd.h b/arch/s390/include/uapi/asm/unistd.h index 940ac49198db..4197c89c52d4 100644 --- a/arch/s390/include/uapi/asm/unistd.h +++ b/arch/s390/include/uapi/asm/unistd.h | |||
| @@ -286,7 +286,8 @@ | |||
| 286 | #define __NR_seccomp 348 | 286 | #define __NR_seccomp 348 |
| 287 | #define __NR_getrandom 349 | 287 | #define __NR_getrandom 349 |
| 288 | #define __NR_memfd_create 350 | 288 | #define __NR_memfd_create 350 |
| 289 | #define NR_syscalls 351 | 289 | #define __NR_bpf 351 |
| 290 | #define NR_syscalls 352 | ||
| 290 | 291 | ||
| 291 | /* | 292 | /* |
| 292 | * There are some system calls that are not present on 64 bit, some | 293 | * There are some system calls that are not present on 64 bit, some |
diff --git a/arch/s390/kernel/compat_wrapper.c b/arch/s390/kernel/compat_wrapper.c index faf6caa510dc..c4f7a3d655b8 100644 --- a/arch/s390/kernel/compat_wrapper.c +++ b/arch/s390/kernel/compat_wrapper.c | |||
| @@ -217,3 +217,4 @@ COMPAT_SYSCALL_WRAP5(renameat2, int, olddfd, const char __user *, oldname, int, | |||
| 217 | COMPAT_SYSCALL_WRAP3(seccomp, unsigned int, op, unsigned int, flags, const char __user *, uargs) | 217 | COMPAT_SYSCALL_WRAP3(seccomp, unsigned int, op, unsigned int, flags, const char __user *, uargs) |
| 218 | COMPAT_SYSCALL_WRAP3(getrandom, char __user *, buf, size_t, count, unsigned int, flags) | 218 | COMPAT_SYSCALL_WRAP3(getrandom, char __user *, buf, size_t, count, unsigned int, flags) |
| 219 | COMPAT_SYSCALL_WRAP2(memfd_create, const char __user *, uname, unsigned int, flags) | 219 | COMPAT_SYSCALL_WRAP2(memfd_create, const char __user *, uname, unsigned int, flags) |
| 220 | COMPAT_SYSCALL_WRAP3(bpf, int, cmd, union bpf_attr *, attr, unsigned int, size); | ||
diff --git a/arch/s390/kernel/syscalls.S b/arch/s390/kernel/syscalls.S index 6fe886ac2db5..9f7087fd58de 100644 --- a/arch/s390/kernel/syscalls.S +++ b/arch/s390/kernel/syscalls.S | |||
| @@ -359,3 +359,4 @@ SYSCALL(sys_renameat2,sys_renameat2,compat_sys_renameat2) | |||
| 359 | SYSCALL(sys_seccomp,sys_seccomp,compat_sys_seccomp) | 359 | SYSCALL(sys_seccomp,sys_seccomp,compat_sys_seccomp) |
| 360 | SYSCALL(sys_getrandom,sys_getrandom,compat_sys_getrandom) | 360 | SYSCALL(sys_getrandom,sys_getrandom,compat_sys_getrandom) |
| 361 | SYSCALL(sys_memfd_create,sys_memfd_create,compat_sys_memfd_create) /* 350 */ | 361 | SYSCALL(sys_memfd_create,sys_memfd_create,compat_sys_memfd_create) /* 350 */ |
| 362 | SYSCALL(sys_bpf,sys_bpf,compat_sys_bpf) | ||
diff --git a/arch/s390/kernel/uprobes.c b/arch/s390/kernel/uprobes.c index 956f4f7a591c..f6b3cd056ec2 100644 --- a/arch/s390/kernel/uprobes.c +++ b/arch/s390/kernel/uprobes.c | |||
| @@ -5,13 +5,13 @@ | |||
| 5 | * Author(s): Jan Willeke, | 5 | * Author(s): Jan Willeke, |
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | #include <linux/kprobes.h> | ||
| 9 | #include <linux/uaccess.h> | 8 | #include <linux/uaccess.h> |
| 10 | #include <linux/uprobes.h> | 9 | #include <linux/uprobes.h> |
| 11 | #include <linux/compat.h> | 10 | #include <linux/compat.h> |
| 12 | #include <linux/kdebug.h> | 11 | #include <linux/kdebug.h> |
| 13 | #include <asm/switch_to.h> | 12 | #include <asm/switch_to.h> |
| 14 | #include <asm/facility.h> | 13 | #include <asm/facility.h> |
| 14 | #include <asm/kprobes.h> | ||
| 15 | #include <asm/dis.h> | 15 | #include <asm/dis.h> |
| 16 | #include "entry.h" | 16 | #include "entry.h" |
| 17 | 17 | ||
diff --git a/arch/s390/lib/probes.c b/arch/s390/lib/probes.c index c5d64a099719..ae90e1ae3607 100644 --- a/arch/s390/lib/probes.c +++ b/arch/s390/lib/probes.c | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | * Copyright IBM Corp. 2014 | 4 | * Copyright IBM Corp. 2014 |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #include <linux/kprobes.h> | 7 | #include <asm/kprobes.h> |
| 8 | #include <asm/dis.h> | 8 | #include <asm/dis.h> |
| 9 | 9 | ||
| 10 | int probe_is_prohibited_opcode(u16 *insn) | 10 | int probe_is_prohibited_opcode(u16 *insn) |
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c index 296b61a4af59..1b79ca67392f 100644 --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c | |||
| @@ -656,7 +656,7 @@ void __gmap_zap(struct gmap *gmap, unsigned long gaddr) | |||
| 656 | } | 656 | } |
| 657 | pgste_set_unlock(ptep, pgste); | 657 | pgste_set_unlock(ptep, pgste); |
| 658 | out_pte: | 658 | out_pte: |
| 659 | pte_unmap_unlock(*ptep, ptl); | 659 | pte_unmap_unlock(ptep, ptl); |
| 660 | } | 660 | } |
| 661 | EXPORT_SYMBOL_GPL(__gmap_zap); | 661 | EXPORT_SYMBOL_GPL(__gmap_zap); |
| 662 | 662 | ||
| @@ -943,7 +943,7 @@ retry: | |||
| 943 | } | 943 | } |
| 944 | if (!(pte_val(*ptep) & _PAGE_INVALID) && | 944 | if (!(pte_val(*ptep) & _PAGE_INVALID) && |
| 945 | (pte_val(*ptep) & _PAGE_PROTECT)) { | 945 | (pte_val(*ptep) & _PAGE_PROTECT)) { |
| 946 | pte_unmap_unlock(*ptep, ptl); | 946 | pte_unmap_unlock(ptep, ptl); |
| 947 | if (fixup_user_fault(current, mm, addr, FAULT_FLAG_WRITE)) { | 947 | if (fixup_user_fault(current, mm, addr, FAULT_FLAG_WRITE)) { |
| 948 | up_read(&mm->mmap_sem); | 948 | up_read(&mm->mmap_sem); |
| 949 | return -EFAULT; | 949 | return -EFAULT; |
| @@ -974,7 +974,7 @@ retry: | |||
| 974 | pgste_val(new) |= PGSTE_UC_BIT; | 974 | pgste_val(new) |= PGSTE_UC_BIT; |
| 975 | 975 | ||
| 976 | pgste_set_unlock(ptep, new); | 976 | pgste_set_unlock(ptep, new); |
| 977 | pte_unmap_unlock(*ptep, ptl); | 977 | pte_unmap_unlock(ptep, ptl); |
| 978 | up_read(&mm->mmap_sem); | 978 | up_read(&mm->mmap_sem); |
| 979 | return 0; | 979 | return 0; |
| 980 | } | 980 | } |
diff --git a/drivers/s390/char/Kconfig b/drivers/s390/char/Kconfig index dc24ecfac2d1..db2cb1f8a1b5 100644 --- a/drivers/s390/char/Kconfig +++ b/drivers/s390/char/Kconfig | |||
| @@ -105,7 +105,7 @@ config SCLP_ASYNC | |||
| 105 | config HMC_DRV | 105 | config HMC_DRV |
| 106 | def_tristate m | 106 | def_tristate m |
| 107 | prompt "Support for file transfers from HMC drive CD/DVD-ROM" | 107 | prompt "Support for file transfers from HMC drive CD/DVD-ROM" |
| 108 | depends on 64BIT | 108 | depends on S390 && 64BIT |
| 109 | select CRC16 | 109 | select CRC16 |
| 110 | help | 110 | help |
| 111 | This option enables support for file transfers from a Hardware | 111 | This option enables support for file transfers from a Hardware |
