Commit 32b91413 authored by Helge Deller's avatar Helge Deller Committed by openeuler-sync-bot
Browse files

parisc: Mark ex_table entries 32-bit aligned in uaccess.h

mainline inclusion
from mainline-v6.7-rc3
commit a80aeb86542a50aa8521729ea4cc731ee7174f03
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9E2GP
CVE: CVE-2024-26706

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a80aeb86542a50aa8521729ea4cc731ee7174f03



--------------------------------

Add an align statement to tell the linker that all ex_table entries and as
such the whole ex_table section should be 32-bit aligned in vmlinux and modules.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org   # v6.0+
Signed-off-by: default avatarCheng Yu <serein.chengyu@huawei.com>
(cherry picked from commit 989f3f02)
parent f00291b1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ struct exception_table_entry {

#define ASM_EXCEPTIONTABLE_ENTRY( fault_addr, except_addr )\
	".section __ex_table,\"aw\"\n"			   \
	".align 4\n"					   \
	".word (" #fault_addr " - .), (" #except_addr " - .)\n\t" \
	".previous\n"