s390/gs: add compat regset for the guarded storage broadcast control block
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 28 Nov 2017 16:20:53 +0000 (17:20 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 28 Nov 2017 16:33:15 +0000 (17:33 +0100)
git commit e525f8a6e696210d15f8b8277d4da12fc4add299
"s390/gs: add regset for the guarded storage broadcast control block"
added the missing regset to the s390_regsets array but failed to add it
to the s390_compat_regsets array.

Fixes: e525f8a6e696 ("add compat regset for the guarded storage broadcast control block")
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/ptrace.c

index 26c0523..cd3df55 100644 (file)
@@ -1651,6 +1651,14 @@ static const struct user_regset s390_compat_regsets[] = {
                .set = s390_gs_cb_set,
        },
        {
+               .core_note_type = NT_S390_GS_BC,
+               .n = sizeof(struct gs_cb) / sizeof(__u64),
+               .size = sizeof(__u64),
+               .align = sizeof(__u64),
+               .get = s390_gs_bc_get,
+               .set = s390_gs_bc_set,
+       },
+       {
                .core_note_type = NT_S390_RI_CB,
                .n = sizeof(struct runtime_instr_cb) / sizeof(__u64),
                .size = sizeof(__u64),