From 0d26837f66cad4b46891d8560414c72325bedc5c Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 8 Apr 2024 12:34:14 +0200 Subject: [PATCH] 5.4-stable patches added patches: s390-entry-align-system-call-table-on-8-bytes.patch --- ...y-align-system-call-table-on-8-bytes.patch | 33 +++++++++++++++++++ queue-5.4/series | 1 + 2 files changed, 34 insertions(+) create mode 100644 queue-5.4/s390-entry-align-system-call-table-on-8-bytes.patch diff --git a/queue-5.4/s390-entry-align-system-call-table-on-8-bytes.patch b/queue-5.4/s390-entry-align-system-call-table-on-8-bytes.patch new file mode 100644 index 00000000000..a07c1500963 --- /dev/null +++ b/queue-5.4/s390-entry-align-system-call-table-on-8-bytes.patch @@ -0,0 +1,33 @@ +From 378ca2d2ad410a1cd5690d06b46c5e2297f4c8c0 Mon Sep 17 00:00:00 2001 +From: Sumanth Korikkar +Date: Tue, 26 Mar 2024 18:12:13 +0100 +Subject: s390/entry: align system call table on 8 bytes + +From: Sumanth Korikkar + +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 +Reviewed-by: Alexander Gordeev +Signed-off-by: Sumanth Korikkar +Signed-off-by: Vasily Gorbik +Signed-off-by: Greg Kroah-Hartman +--- + arch/s390/kernel/entry.S | 1 + + 1 file changed, 1 insertion(+) + +--- a/arch/s390/kernel/entry.S ++++ b/arch/s390/kernel/entry.S +@@ -1542,6 +1542,7 @@ ENDPROC(cleanup_critical) + .quad .Lsie_skip - .Lsie_entry + #endif + .section .rodata, "a" ++ .balign 8 + #define SYSCALL(esame,emu) .quad __s390x_ ## esame + .globl sys_call_table + sys_call_table: diff --git a/queue-5.4/series b/queue-5.4/series index 8fed2812e43..d98f7d67ab4 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -171,3 +171,4 @@ scsi-mylex-fix-sysfs-buffer-lengths.patch ata-sata_mv-fix-pci-device-id-table-declaration-comp.patch alsa-hda-realtek-update-panasonic-cf-sz6-quirk-to-support-headset-with-microphone.patch x86-mce-make-sure-to-grab-mce_sysfs_mutex-in-set_bank.patch +s390-entry-align-system-call-table-on-8-bytes.patch -- 2.47.3