Skip to content

Commit 5dbbb3e

Browse files
samitolvanenkees
authored andcommitted
init: Drop __nocfi from __init
It's no longer necessary to disable CFI checking for all __init functions. Drop the __nocfi attribute from __init. Signed-off-by: Sami Tolvanen <[email protected]> Reviewed-by: Kees Cook <[email protected]> Tested-by: Kees Cook <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5f20997 commit 5dbbb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/init.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
/* These are for everybody (although not all archs will actually
4949
discard it in modules) */
50-
#define __init __section(".init.text") __cold __latent_entropy __noinitretpoline __nocfi
50+
#define __init __section(".init.text") __cold __latent_entropy __noinitretpoline
5151
#define __initdata __section(".init.data")
5252
#define __initconst __section(".init.rodata")
5353
#define __exitdata __section(".exit.data")

0 commit comments

Comments
 (0)