提交 06b8b107 编写于 作者: G Gaosheng Cui 提交者: Zheng Zengkai

arm32: kaslr: Bugfix of fiq when enabled kaslr

hulk inclusion
category: bugfix
bugzilla: 51838
CVE: NA

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

Fix vector fiq offset when enabled kaslr, we need to get the real symbol
address according to __kaslr_offset, otherwise the fiq interrupt will
fail to register.
Signed-off-by: NGaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 3c17e7f0
......@@ -48,10 +48,17 @@
#include <asm/irq.h>
#include <asm/traps.h>
#ifdef CONFIG_RANDOMIZE_BASE
#define FIQ_OFFSET ({ \
extern void *vector_fiq_offset; \
(unsigned)&vector_fiq_offset - kaslr_offset(); \
})
#else
#define FIQ_OFFSET ({ \
extern void *vector_fiq_offset; \
(unsigned)&vector_fiq_offset; \
})
#endif
static unsigned long dfl_fiq_insn;
static struct pt_regs dfl_fiq_regs;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册