Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-11-02 Thread Ard Biesheuvel
On 2 November 2018 at 18:40, Catalin Marinas wrote: > On Tue, Oct 30, 2018 at 11:10:51AM -0300, Ard Biesheuvel wrote: >> On 30 October 2018 at 08:49, Ard Biesheuvel >> wrote: >> >> On 30 Oct 2018, at 08:38, Anders Roxell wrote: >> >> >> >> Commit 1404d6f13e47 ("arm64: dump: Add checking for

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-11-02 Thread Ard Biesheuvel
On 2 November 2018 at 18:40, Catalin Marinas wrote: > On Tue, Oct 30, 2018 at 11:10:51AM -0300, Ard Biesheuvel wrote: >> On 30 October 2018 at 08:49, Ard Biesheuvel >> wrote: >> >> On 30 Oct 2018, at 08:38, Anders Roxell wrote: >> >> >> >> Commit 1404d6f13e47 ("arm64: dump: Add checking for

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-11-02 Thread Catalin Marinas
On Tue, Oct 30, 2018 at 11:10:51AM -0300, Ard Biesheuvel wrote: > On 30 October 2018 at 08:49, Ard Biesheuvel wrote: > >> On 30 Oct 2018, at 08:38, Anders Roxell wrote: > >> > >> Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and > >> exectuable pages") > >> has successfully

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-11-02 Thread Catalin Marinas
On Tue, Oct 30, 2018 at 11:10:51AM -0300, Ard Biesheuvel wrote: > On 30 October 2018 at 08:49, Ard Biesheuvel wrote: > >> On 30 Oct 2018, at 08:38, Anders Roxell wrote: > >> > >> Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and > >> exectuable pages") > >> has successfully

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-11-02 Thread Catalin Marinas
On Tue, Oct 30, 2018 at 12:38:50PM +0100, Anders Roxell wrote: > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at address

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-11-02 Thread Catalin Marinas
On Tue, Oct 30, 2018 at 12:38:50PM +0100, Anders Roxell wrote: > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at address

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Ard Biesheuvel
On 30 October 2018 at 08:49, Ard Biesheuvel wrote: > Hi Anders, > >> On 30 Oct 2018, at 08:38, Anders Roxell wrote: >> >> Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable >> pages") >> has successfully identified code that leaves a page with W+X >> permissions. >> >>

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Ard Biesheuvel
On 30 October 2018 at 08:49, Ard Biesheuvel wrote: > Hi Anders, > >> On 30 Oct 2018, at 08:38, Anders Roxell wrote: >> >> Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable >> pages") >> has successfully identified code that leaves a page with W+X >> permissions. >> >>

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Ard Biesheuvel
Hi Anders, > On 30 Oct 2018, at 08:38, Anders Roxell wrote: > > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Ard Biesheuvel
Hi Anders, > On 30 Oct 2018, at 08:38, Anders Roxell wrote: > > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Will Deacon
On Tue, Oct 30, 2018 at 12:38:50PM +0100, Anders Roxell wrote: > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at address

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Will Deacon
On Tue, Oct 30, 2018 at 12:38:50PM +0100, Anders Roxell wrote: > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at address

[PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Anders Roxell
Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable pages") has successfully identified code that leaves a page with W+X permissions. [3.245140] arm64/mm: Found insecure W+X mapping at address (ptrval)/0x00d9 [3.245771] WARNING: CPU: 0 PID: 1

[PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Anders Roxell
Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable pages") has successfully identified code that leaves a page with W+X permissions. [3.245140] arm64/mm: Found insecure W+X mapping at address (ptrval)/0x00d9 [3.245771] WARNING: CPU: 0 PID: 1