diff options
author | Oleg Nesterov <[email protected]> | 2024-07-20 22:41:07 +0800 |
---|---|---|
committer | Huacai Chen <[email protected]> | 2024-07-20 22:41:07 +0800 |
commit | 998b17d4440b8559a8bf4926e86f493101995519 (patch) | |
tree | 5dd341a5700e6256a737ea63722d7bfdebcfe8a1 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 3892b11eac5aaaeefbf717f1953288b77759d9e2 (diff) |
LoongArch: Make the users of larch_insn_gen_break() constant
LoongArch defines UPROBE_SWBP_INSN as a function call and this breaks
arch_uprobe_trampoline() which uses it to initialize a static variable.
Add the new "__builtin_constant_p" helper, __emit_break(), and redefine
the current users of larch_insn_gen_break() to use it.
Fixes: ff474a78cef5 ("uprobe: Add uretprobe syscall to speed up return probe")
Reported-by: Nathan Chancellor <[email protected]>
Closes: https://lore.kernel.org/all/20240614174822.GA1185149@thelio-3990X/
Suggested-by: Andrii Nakryiko <[email protected]>
Tested-by: Tiezhu Yang <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions