[PATCH V2] kernel: dma: contigous: Make CMA parameters __initdata/__initconst

2019-10-19 Thread Shyam Saini
These parameters are only referenced by __init routine calls during early boot so they should be marked as __initdata and __initconst accordingly. Cc: Christoph Hellwig Cc: Marek Szyprowski Cc: Robin Murphy Cc: Matthew Wilcox Cc: Christopher Lameter Cc: Kees Cook Signed-off-by: Shyam Saini

Re: [PATCH] kernel: dma: Make CMA boot parameters __ro_after_init

2019-10-18 Thread Shyam Saini
k Szyprowski > > Cc: Robin Murphy > > Cc: Matthew Wilcox > > Cc: Christopher Lameter > > Cc: Kees Cook > > Signed-off-by: Shyam Saini > > --- > > kernel/dma/contiguous.c | 8 > > 1 file changed, 4 insertions(+), 4 deletions(-) >

Re: [PATCH] kernel: dma: Make CMA boot parameters __ro_after_init

2019-10-16 Thread Shyam Saini
Hi Nathan, On Mon, Oct 14, 2019 at 7:55 AM Nathan Chancellor wrote: > > On Sat, Oct 12, 2019 at 05:59:18PM +0530, Shyam Saini wrote: > > This parameters are not changed after early boot. > > By making them __ro_after_init will reduce any attack surface in the > > ker

[PATCH] kernel: dma: Make CMA boot parameters __ro_after_init

2019-10-12 Thread Shyam Saini
-off-by: Shyam Saini --- kernel/dma/contiguous.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c index 69cfb4345388..1b689b1303cd 100644 --- a/kernel/dma/contiguous.c +++ b/kernel/dma/contiguous.c @@ -42,10 +42,10