Re: the printk problem

2008-07-05 Thread Denys Vlasenko
On Saturday 05 July 2008 00:01, Andrew Morton wrote: > > > We also jump through hoops to print things like sector_t and > > > resource_size_t. They always need to be cast to `unsiged long long', > > > which generates additional stack space and text in some setups. > > > > The thing is that GCC ch

[PATCH v8] powerpc: Do not make the entire heap executable

2016-12-15 Thread Denys Vlasenko
in 2012 by Jason Gunthorpe and apparently ignored: https://lkml.org/lkml/2012/9/30/138 Lightly run-tested. Signed-off-by: Jason Gunthorpe Signed-off-by: Denys Vlasenko Acked-by: Kees Cook Acked-by: Michael Ellerman Tested-by: Jason Gunthorpe CC: Andrew Morton CC: Benjamin Herrenschmidt C

[PATCH v6] powerpc: Do not make the entire heap executable

2016-10-03 Thread Denys Vlasenko
posted in 2012 by Jason Gunthorpe and apparently ignored: https://lkml.org/lkml/2012/9/30/138 Lightly run-tested. Signed-off-by: Jason Gunthorpe Signed-off-by: Denys Vlasenko Acked-by: Kees Cook Acked-by: Michael Ellerman CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: "Aneesh Kumar K.V

[PATCH v7] powerpc: Do not make the entire heap executable

2016-11-09 Thread Denys Vlasenko
posted in 2012 by Jason Gunthorpe and apparently ignored: https://lkml.org/lkml/2012/9/30/138 Lightly run-tested. Signed-off-by: Jason Gunthorpe Signed-off-by: Denys Vlasenko Acked-by: Kees Cook Acked-by: Michael Ellerman Tested-by: Jason Gunthorpe CC: Andrew Morton CC: Benjamin Herrenschmidt

[PATCH] powerpc: Do not make the entire heap executable

2016-08-01 Thread Denys Vlasenko
posted in 2012 by Jason Gunthorpe and apparently ignored: https://lkml.org/lkml/2012/9/30/138 Lightly run-tested. Signed-off-by: Jason Gunthorpe Signed-off-by: Denys Vlasenko CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: Florian Weimer CC: linuxppc-dev@lists.ozlabs.org

[PATCH v2] powerpc: Do not make the entire heap executable

2016-08-08 Thread Denys Vlasenko
posted in 2012 by Jason Gunthorpe and apparently ignored: https://lkml.org/lkml/2012/9/30/138 Lightly run-tested. Signed-off-by: Jason Gunthorpe Signed-off-by: Denys Vlasenko CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Kees Cook CC: Oleg Nesterov , CC: Michael Ellerman CC: Florian Weimer

Re: [PATCH v2] powerpc: Do not make the entire heap executable

2016-08-09 Thread Denys Vlasenko
On 08/08/2016 09:07 PM, Kees Cook wrote: On Mon, Aug 8, 2016 at 7:55 AM, Denys Vlasenko wrote: On 32-bit powerps the ELF PLT sections of binaries (built with --bss-plt, or with a toolchain which defaults to it) look like this: [17] .sbss NOBITS 0002aff8 01aff8 14

[PATCH v3] powerpc: Do not make the entire heap executable

2016-08-09 Thread Denys Vlasenko
posted in 2012 by Jason Gunthorpe and apparently ignored: https://lkml.org/lkml/2012/9/30/138 Lightly run-tested. Signed-off-by: Jason Gunthorpe Signed-off-by: Denys Vlasenko CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Kees Cook CC: Oleg Nesterov CC: Michael Ellerman CC: Florian Weimer

Re: [PATCH v3] powerpc: Do not make the entire heap executable

2016-08-10 Thread Denys Vlasenko
On 08/10/2016 06:36 AM, Michael Ellerman wrote: Denys Vlasenko writes: On 32-bit powerps the ELF PLT sections of binaries (built with --bss-plt, or with a toolchain which defaults to it) look like this: ... arch/powerpc/include/asm/page.h| 10 +- arch/powerpc/include/asm

Re: [PATCH v3] powerpc: Do not make the entire heap executable

2016-08-10 Thread Denys Vlasenko
On 08/10/2016 12:43 AM, Kees Cook wrote: -static int do_brk(unsigned long addr, unsigned long len) +static int do_brk_flags(unsigned long addr, unsigned long len, unsigned long flags) { struct mm_struct *mm = current->mm; struct vm_area_struct *vma, *prev; - unsigned long

[PATCH v4] powerpc: Do not make the entire heap executable

2016-08-10 Thread Denys Vlasenko
posted in 2012 by Jason Gunthorpe and apparently ignored: https://lkml.org/lkml/2012/9/30/138 Lightly run-tested. Signed-off-by: Jason Gunthorpe Signed-off-by: Denys Vlasenko Reviewed-by: Kees Cook CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Kees Cook CC: Oleg Nesterov CC: Michael

Re: [PATCH v4] powerpc: Do not make the entire heap executable

2016-08-19 Thread Denys Vlasenko
On 08/10/2016 03:00 PM, Denys Vlasenko wrote: On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, or with a toolchain which defaults to it) look like this: [17] .sbss NOBITS 0002aff8 01aff8 14 00 WA 0 0 4 [18] .plt NOBITS

Re: [PATCH v4] powerpc: Do not make the entire heap executable

2016-08-22 Thread Denys Vlasenko
On 08/21/2016 05:47 PM, Aneesh Kumar K.V wrote: Denys Vlasenko writes: On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, or with a toolchain which defaults to it) look like this: [17] .sbss NOBITS 0002aff8 01aff8 14 00 WA 0 0 4 [18

[PATCH v5] powerpc: Do not make the entire heap executable

2016-08-22 Thread Denys Vlasenko
posted in 2012 by Jason Gunthorpe and apparently ignored: https://lkml.org/lkml/2012/9/30/138 Lightly run-tested. Signed-off-by: Jason Gunthorpe Signed-off-by: Denys Vlasenko Reviewed-by: Kees Cook CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: "Aneesh Kumar K.V" CC: Kees Cook