]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
s390/entry: align system call table on 8 bytes
authorSumanth Korikkar <sumanthk@linux.ibm.com>
Tue, 26 Mar 2024 17:12:13 +0000 (18:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:42 +0000 (16:19 +0200)
commit 378ca2d2ad410a1cd5690d06b46c5e2297f4c8c0 upstream.

Align system call table on 8 bytes. With sys_call_table entry size
of 8 bytes that eliminates the possibility of a system call pointer
crossing cache line boundary.

Cc: stable@kernel.org
Suggested-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/entry.S

index d530eb4dc413fcb3cb7f9344122e6073eb6eac49..74ef903f94e7ede5bdf297976084a7efff8f3d85 100644 (file)
@@ -685,6 +685,7 @@ ENDPROC(stack_overflow)
 .Lthis_cpu:    .short  0
 .Lstosm_tmp:   .byte   0
        .section .rodata, "a"
+       .balign 8
 #define SYSCALL(esame,emu)     .quad __s390x_ ## esame
        .globl  sys_call_table
 sys_call_table: