On Thu, Jan 09, 2020 at 09:38:46AM +0800, Wang ShaoBo wrote:
currently arm64 use __arm64_sys_arm64_personality() as its defaultThanks for your patch!
syscall. But using a normal hook arch_check_personality() can reject
personality settings for special case of different archs.
SYSCALL_DEFINE1(personality, unsigned int, personality)Please leave the default check and call to set_personality()
{
- unsigned int old = current->personality;
+ int check;
- if (personality != 0xffffffff)
- set_personality(personality);
+ check = arch_check_personality(personality);
+ if (check)
+ return check;
- return old;
+ return ksys_personality(personality);
}
in here and remove the now-unneeded ksys_personality() from
include/linux/syscalls.h
Thanks,
Dominik
.