Skip to content

Commit 7f530fb

Browse files
jpoimboePeter Zijlstra
authored andcommitted
objtool: Add stackleak instrumentation to uaccess safe list
If a function has a large stack frame, the stackleak plugin adds a call to stackleak_track_stack() after the prologue. This function may be called in uaccess-enabled code. Add it to the uaccess safe list. Fixes the following warning: vmlinux.o: warning: objtool: kasan_report+0x12: call to stackleak_track_stack() with UACCESS enabled Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/42e9b487ef89e9b237fd5220ad1c7cf1a2ad7eb8.1681320562.git.jpoimboe@kernel.org
1 parent e18398e commit 7f530fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/objtool/check.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,8 @@ static const char *uaccess_safe_builtin[] = {
12791279
"__ubsan_handle_type_mismatch_v1",
12801280
"__ubsan_handle_shift_out_of_bounds",
12811281
"__ubsan_handle_load_invalid_value",
1282+
/* STACKLEAK */
1283+
"stackleak_track_stack",
12821284
/* misc */
12831285
"csum_partial_copy_generic",
12841286
"copy_mc_fragile",

0 commit comments

Comments
 (0)