kernel: refine prctl harden
* I am not sure if this gonna defeats the main purpose or not, but it fix prctl issue. Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
#include "linux/key.h"
|
||||
|
||||
#if defined(CONFIG_X86)
|
||||
#define KCOMPAT_BARRIER() barrier_nospec()
|
||||
#define kcompat_barrier() barrier_nospec()
|
||||
#elif defined(CONFIG_ARM) || defined(CONFIG_ARM64)
|
||||
#define KCOMPAT_BARRIER() isb() // arch/arm64/include/asm/barrier.h
|
||||
#define kcompat_barrier() isb() // arch/arm64/include/asm/barrier.h
|
||||
#else
|
||||
#define KCOMPAT_BARRIER() barrier() // well, compiler atleast.
|
||||
#define kcompat_barrier() barrier() // well, compiler atleast.
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user