diff options
author | Thomas Gleixner <[email protected]> | 2020-09-22 09:58:52 +0200 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2020-09-22 22:13:34 +0200 |
commit | a7b3474cbb2864d5500d5e4f48dd57c903975cab (patch) | |
tree | 51faaf4fae8f85c76632c12da92b4fe247c457f7 /scripts | |
parent | 98477740630f270aecf648f1d6a9dbc6027d4ff1 (diff) |
x86/irq: Make run_on_irqstack_cond() typesafe
Sami reported that run_on_irqstack_cond() requires the caller to cast
functions to mismatching types, which trips indirect call Control-Flow
Integrity (CFI) in Clang.
Instead of disabling CFI on that function, provide proper helpers for
the three call variants. The actual ASM code stays the same as that is
out of reach.
[ bp: Fix __run_on_irqstack() prototype to match. ]
Fixes: 931b94145981 ("x86/entry: Provide helpers for executing on the irqstack")
Reported-by: Nathan Chancellor <[email protected]>
Reported-by: Sami Tolvanen <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Tested-by: Sami Tolvanen <[email protected]>
Cc: <[email protected]>
Link: https://github.com/ClangBuiltLinux/linux/issues/1052
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions