Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-25 Thread dongbo (E)
On 2017/4/24 23:58, Catalin Marinas wrote: > On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: >> On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: >>> On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: On 18 April 2017 at 18:01, Catalin Marinas

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-25 Thread dongbo (E)
On 2017/4/24 23:58, Catalin Marinas wrote: > On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: >> On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: >>> On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: On 18 April 2017 at 18:01, Catalin Marinas wrote:

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Catalin Marinas
On Mon, Apr 24, 2017 at 04:58:41PM +0100, Catalin Marinas wrote: > On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: > > On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > > > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > > > On 18 April 2017 at

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Catalin Marinas
On Mon, Apr 24, 2017 at 04:58:41PM +0100, Catalin Marinas wrote: > On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: > > On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > > > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > > > On 18 April 2017 at

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Will Deacon
On Mon, Apr 24, 2017 at 04:58:41PM +0100, Catalin Marinas wrote: > On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: > > On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > > > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > > > On 18 April 2017 at

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Will Deacon
On Mon, Apr 24, 2017 at 04:58:41PM +0100, Catalin Marinas wrote: > On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: > > On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > > > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > > > On 18 April 2017 at

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Catalin Marinas
On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: > On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > > On 18 April 2017 at 18:01, Catalin Marinas > > > wrote: > > > > On

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Catalin Marinas
On Mon, Apr 24, 2017 at 04:40:23PM +0100, Will Deacon wrote: > On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > > On 18 April 2017 at 18:01, Catalin Marinas > > > wrote: > > > > On Thu, Apr 13, 2017 at

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Will Deacon
On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > On 18 April 2017 at 18:01, Catalin Marinas wrote: > > > On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: > > >> From: Dong Bo

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-24 Thread Will Deacon
On Wed, Apr 19, 2017 at 11:33:14AM +0100, Catalin Marinas wrote: > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > > On 18 April 2017 at 18:01, Catalin Marinas wrote: > > > On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: > > >> From: Dong Bo > > >> > > >> In

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-19 Thread dongbo (E)
On 2017/4/19 18:33, Catalin Marinas wrote: > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: >> On 18 April 2017 at 18:01, Catalin Marinas wrote: >>> On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: From: Dong Bo

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-19 Thread dongbo (E)
On 2017/4/19 18:33, Catalin Marinas wrote: > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: >> On 18 April 2017 at 18:01, Catalin Marinas wrote: >>> On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: From: Dong Bo In load_elf_binary(), once the

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-19 Thread Peter Maydell
On 19 April 2017 at 11:33, Catalin Marinas wrote: > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: >> >> > That's affecting most architectures with a risk of ABI breakage. We >> > could do it on arm64 only, though I'm not yet clear on the ABI >> >

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-19 Thread Peter Maydell
On 19 April 2017 at 11:33, Catalin Marinas wrote: > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: >> >> > That's affecting most architectures with a risk of ABI breakage. We >> > could do it on arm64 only, though I'm not yet clear on the ABI >> > implications (at a first look,

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-19 Thread Catalin Marinas
On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > On 18 April 2017 at 18:01, Catalin Marinas wrote: > > On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: > >> From: Dong Bo > >> > >> In load_elf_binary(), once the

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-19 Thread Catalin Marinas
On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > On 18 April 2017 at 18:01, Catalin Marinas wrote: > > On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: > >> From: Dong Bo > >> > >> In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, > >> the flag is

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-18 Thread Peter Maydell
On 18 April 2017 at 18:01, Catalin Marinas wrote: > On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: >> From: Dong Bo >> >> In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, >> the flag is propagated to its child processes, even

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-18 Thread Peter Maydell
On 18 April 2017 at 18:01, Catalin Marinas wrote: > On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: >> From: Dong Bo >> >> In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, >> the flag is propagated to its child processes, even the elf >> files are marked as not requiring

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-18 Thread Catalin Marinas
On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: > From: Dong Bo > > In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, > the flag is propagated to its child processes, even the elf > files are marked as not requiring executable stack. It may > cause

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-18 Thread Catalin Marinas
On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: > From: Dong Bo > > In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, > the flag is propagated to its child processes, even the elf > files are marked as not requiring executable stack. It may > cause superfluous operations

[PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-13 Thread dongbo (E)
From: Dong Bo In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, the flag is propagated to its child processes, even the elf files are marked as not requiring executable stack. It may cause superfluous operations on some arch, e.g. __sync_icache_dcache on aarch64

[PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-13 Thread dongbo (E)
From: Dong Bo In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, the flag is propagated to its child processes, even the elf files are marked as not requiring executable stack. It may cause superfluous operations on some arch, e.g. __sync_icache_dcache on aarch64 due to a PROT_READ