kernel: Fix execve filename access on ARM64
This commit is contained in:
24
kernel/util.h
Normal file
24
kernel/util.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef __KSU_UTIL_H
|
||||
#define __KSU_UTIL_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#ifndef preempt_enable_no_resched_notrace
|
||||
#define preempt_enable_no_resched_notrace() \
|
||||
do { \
|
||||
barrier(); \
|
||||
__preempt_count_dec(); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef preempt_disable_notrace
|
||||
#define preempt_disable_notrace() \
|
||||
do { \
|
||||
__preempt_count_inc(); \
|
||||
barrier(); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
bool try_set_access_flag(unsigned long addr);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user