Re: ARM FDPIC_FUNCPTRS personality flag handling looks broken

2021-03-25 Thread Nicolas Pitre
On Thu, 25 Mar 2021, Jann Horn wrote: > Hi! > > Tavis noticed that on ARM kernels with CONFIG_BINFMT_ELF_FDPIC, it > looks like the FDPIC_FUNCPTRS personality flag is not reset on > execve(). This would mean that if a process first executes an ELF > FDPIC binary (which forces the personality to P

ARM FDPIC_FUNCPTRS personality flag handling looks broken

2021-03-25 Thread Jann Horn
Hi! Tavis noticed that on ARM kernels with CONFIG_BINFMT_ELF_FDPIC, it looks like the FDPIC_FUNCPTRS personality flag is not reset on execve(). This would mean that if a process first executes an ELF FDPIC binary (which forces the personality to PER_LINUX_FDPIC), and then executes a non-FDPIC bina