Skip to content

Commit c4301c3

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 updates from Martin Schwidefsky: "One patch to enable the BPF system call and three more bug fixes" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/uprobes: fix kprobes dependency s390: wire up bpf syscall s390/mm: fixing calls of pte_unmap_unlock s390/hmcdrv: Restrict s390 HMC driver to S390 arch
2 parents c2661b8 + d6fe5be commit c4301c3

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

arch/s390/include/uapi/asm/unistd.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@
286286
#define __NR_seccomp 348
287287
#define __NR_getrandom 349
288288
#define __NR_memfd_create 350
289-
#define NR_syscalls 351
289+
#define __NR_bpf 351
290+
#define NR_syscalls 352
290291

291292
/*
292293
* There are some system calls that are not present on 64 bit, some

arch/s390/kernel/compat_wrapper.c

+1
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,4 @@ COMPAT_SYSCALL_WRAP5(renameat2, int, olddfd, const char __user *, oldname, int,
217217
COMPAT_SYSCALL_WRAP3(seccomp, unsigned int, op, unsigned int, flags, const char __user *, uargs)
218218
COMPAT_SYSCALL_WRAP3(getrandom, char __user *, buf, size_t, count, unsigned int, flags)
219219
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);

arch/s390/kernel/syscalls.S

+1
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,4 @@ SYSCALL(sys_renameat2,sys_renameat2,compat_sys_renameat2)
359359
SYSCALL(sys_seccomp,sys_seccomp,compat_sys_seccomp)
360360
SYSCALL(sys_getrandom,sys_getrandom,compat_sys_getrandom)
361361
SYSCALL(sys_memfd_create,sys_memfd_create,compat_sys_memfd_create) /* 350 */
362+
SYSCALL(sys_bpf,sys_bpf,compat_sys_bpf)

arch/s390/kernel/uprobes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
* Author(s): Jan Willeke,
66
*/
77

8-
#include <linux/kprobes.h>
98
#include <linux/uaccess.h>
109
#include <linux/uprobes.h>
1110
#include <linux/compat.h>
1211
#include <linux/kdebug.h>
1312
#include <asm/switch_to.h>
1413
#include <asm/facility.h>
14+
#include <asm/kprobes.h>
1515
#include <asm/dis.h>
1616
#include "entry.h"
1717

arch/s390/lib/probes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright IBM Corp. 2014
55
*/
66

7-
#include <linux/kprobes.h>
7+
#include <asm/kprobes.h>
88
#include <asm/dis.h>
99

1010
int probe_is_prohibited_opcode(u16 *insn)

arch/s390/mm/pgtable.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ void __gmap_zap(struct gmap *gmap, unsigned long gaddr)
656656
}
657657
pgste_set_unlock(ptep, pgste);
658658
out_pte:
659-
pte_unmap_unlock(*ptep, ptl);
659+
pte_unmap_unlock(ptep, ptl);
660660
}
661661
EXPORT_SYMBOL_GPL(__gmap_zap);
662662

@@ -943,7 +943,7 @@ int set_guest_storage_key(struct mm_struct *mm, unsigned long addr,
943943
}
944944
if (!(pte_val(*ptep) & _PAGE_INVALID) &&
945945
(pte_val(*ptep) & _PAGE_PROTECT)) {
946-
pte_unmap_unlock(*ptep, ptl);
946+
pte_unmap_unlock(ptep, ptl);
947947
if (fixup_user_fault(current, mm, addr, FAULT_FLAG_WRITE)) {
948948
up_read(&mm->mmap_sem);
949949
return -EFAULT;
@@ -974,7 +974,7 @@ int set_guest_storage_key(struct mm_struct *mm, unsigned long addr,
974974
pgste_val(new) |= PGSTE_UC_BIT;
975975

976976
pgste_set_unlock(ptep, new);
977-
pte_unmap_unlock(*ptep, ptl);
977+
pte_unmap_unlock(ptep, ptl);
978978
up_read(&mm->mmap_sem);
979979
return 0;
980980
}

drivers/s390/char/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ config SCLP_ASYNC
105105
config HMC_DRV
106106
def_tristate m
107107
prompt "Support for file transfers from HMC drive CD/DVD-ROM"
108-
depends on 64BIT
108+
depends on S390 && 64BIT
109109
select CRC16
110110
help
111111
This option enables support for file transfers from a Hardware

0 commit comments

Comments
 (0)