]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2024 10:34:14 +0000 (12:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2024 10:34:14 +0000 (12:34 +0200)
added patches:
s390-entry-align-system-call-table-on-8-bytes.patch

queue-5.4/s390-entry-align-system-call-table-on-8-bytes.patch [new file with mode: 0644]
queue-5.4/series

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 (file)
index 0000000..a07c150
--- /dev/null
@@ -0,0 +1,33 @@
+From 378ca2d2ad410a1cd5690d06b46c5e2297f4c8c0 Mon Sep 17 00:00:00 2001
+From: Sumanth Korikkar <sumanthk@linux.ibm.com>
+Date: Tue, 26 Mar 2024 18:12:13 +0100
+Subject: s390/entry: align system call table on 8 bytes
+
+From: Sumanth Korikkar <sumanthk@linux.ibm.com>
+
+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 |    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:
index 8fed2812e439a6c0bc69d153b8e94906fa15b6cb..d98f7d67ab4b55b4dd61bfbcf39368813562a711 100644 (file)
@@ -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