[PATCH] traps:Recover undefined user instruction on ARM

2018-10-04 Thread Manjeet Pawar
recover the instruction and continue execution normally instead of crashing. Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar --- arch/arm/kernel/traps.c | 100 +++- 1 file changed, 90 insertions(+), 10 deletions(-) diff --git a/arch/arm

[PATCH] mm: Replace-simple_strtoul-with-kstrtoul

2017-11-09 Thread Manjeet Pawar
simple_strtoul() is obselete now, so using newer function kstrtoul() Signed-off-by: Manjeet Pawar Signed-off-by: Vinay Kumar Rijhwani Signed-off-by: Rohit Thapliyal --- mm/page_alloc.c | 3 +-- mm/shmem.c | 11 +-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a

[PATCH] arm:fix negation of -2147483648 warning with UBSASN

2017-10-12 Thread Manjeet Pawar
== In order to remove these warnings, it seems harmless to modify the signed ints with unsigned long as a fix of negation of -2147483648 in signed int. Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar --- arch/arm/include/asm/bitops.h | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH] ALSA: Adjust structure(snd_timer_tread) members to avoid 8 padding bytes

2017-05-29 Thread Manjeet Pawar
p;id=9a47e9cff994f37f7f0dbd9ae23740d0f64f9fe6 These patches does memset on structure object to initialize 8 padding bytes, which can be skipped by adjusting structure members. Signed-off-by: Manjeet Pawar Signed-off-by: Vaneet Narang --- include/uapi/sound/asound.h | 2 +- 1 file changed, 1 inser

[PATCH] ipv6:ip6_xmit and ping_v6_sendmsg remove np NULL check

2016-12-06 Thread Manjeet Pawar
ff-by: Manjeet Pawar Reviewed-by: Akhilesh Kumar --- v4->v5: Modified as per the suggestion from David Miller and Eric, ip6_xmit calls are made without checking NULL np pointer, so no need to explicitly check NULL np in ip6_xmit and ping_v6_sendmsg. net/ipv6/ip6_outp

[PATCH] ipv6:ip6_xmit remove unnecessary np NULL check

2016-11-28 Thread Manjeet Pawar
From: Rohit Thapliyal np NULL check doesn't seem required here as it shall never be NULL anyways in inet6_sk(sk). Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar Signed-off-by: David Miller Reviewed-by: Akhilesh Kumar --- v2->v3: Modified as per the suggestion from Davi

[PATCH v2] ipv6:ipv6_pinfo dereferenced after NULL check

2016-11-24 Thread Manjeet Pawar
From: Rohit Thapliyal np checked for NULL and then dereferenced. It should be modified for NULL case. Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar Signed-off-by: Hannes Frederic Sowa Reviewed-by: Akhilesh Kumar --- v1->v2: Modified as per the suggestion of Hannes

[PATCH] ipv6:ipv6_pinfo dereferenced after NULL check

2016-11-21 Thread Manjeet Pawar
From: Rohit Thapliyal np checked for NULL and then dereferenced. It should be modified for NULL case. Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar --- net/ipv6/ip6_output.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/ipv6/ip6_output.c b/net

Re: Re: [PATCH] arm:swiotlb:keep disabled in default configuration

2016-06-26 Thread Manjeet Pawar
d otherwise. --- Original Message --- Sender : Stefano Stabellini Date : Jun 24, 2016 01:00 (GMT+09:00) Title : Re: [PATCH] arm:swiotlb:keep disabled in default configuration On Thu, 23 Jun 2016, Stefano Stabellini wrote: > On Jun 23, 2016 8:27 AM, "Manjeet Pawar" wrote: > &

Re: Re: [PATCH] arm:swiotlb:keep disabled in default configuration

2016-06-23 Thread Manjeet Pawar
> > On Jun 23, 2016 8:27 AM, "Manjeet Pawar" wrote: >> > >> > From: Rohit Thapliyal >> > >> > swiotlb implementation not required to be enabled in arm and >> > disabling it reduces uImage size by 16KB. >> > >> >>

[PATCH] arm:swiotlb:keep disabled in default configuration

2016-06-23 Thread Manjeet Pawar
From: Rohit Thapliyal swiotlb implementation not required to be enabled in arm and disabling it reduces uImage size by 16KB. Signed-off-by: Rohit Thapliyal Signed-off-by: Ajeet Kumar Yadav --- arch/arm/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kco

[PATCH] arm64:swiotlb:Enable only when Input size through command line

2016-06-23 Thread Manjeet Pawar
. Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar Reviewed-by: Akhilesh Kumar Reviewed-by: Ajeet Kumar Yadav --- Documentation/kernel-parameters.txt |3 +++ arch/arm64/mm/init.c|3 ++- include/linux/swiotlb.h |1 + lib/swiotlb.c

Re: Re: [PATCHv3] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-09 Thread Manjeet Pawar
>> MINSIGSTKSZ and SIGSTKSZ for ARM64 are not correctly set in latest kernel. >> This patch fixes this issue. >> >> This issue is reported in LTP (testcase: sigaltstack02.c). >> Testcase failed when sigaltstack() called with stack size "MINSIGSTKSZ - 1" >> Since in Glibc-2.22, MINSIGSTKSZ is set t

[PATCHv3] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-09 Thread Manjeet Pawar
850] https://sourceware.org/bugzilla/show_bug.cgi?id=16850 Signed-off-by: Akhilesh Kumar Signed-off-by: Manjeet Pawar Signed-off-by: Rohit Thapliyal --- v1 -> Changes in uapi overall header v2 -> Changes done in arm64 headers v3 -> Changes done in both uapi & arm64 headers arch/arm64/in

Re: [PATCHv2] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-09 Thread Manjeet Pawar
>> This looks correct now. A few more points though: >> >> * My first thought would have been to do this by first defining the >> two symbols before the #include, and then adding an #ifdef in >> the generic file. Both approaches work though, any other opinions >> on this? >That's what I

[PATCHv2] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-05 Thread Manjeet Pawar
bug.cgi?id=16850 Bugfix in Glibc-2.22: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=blob;f=sysdeps/unix/ sysv/linux/aarch64/bits/sigstack.h;h=8f2fb76e3e81734ef8a9cf9ae40daf4705 f31c35;hb=b763f6ae859ecea70a5dacb8ad45c71d5f667e2e Signed-off-by: Akhilesh Kumar Signed-off-by: Manjeet Pawar Sig

[PATCH] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-05 Thread Manjeet Pawar
bug.cgi?id=16850 Bugfix in Glibc-2.22: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=blob;f=sysdeps/unix/ sysv/linux/aarch64/bits/sigstack.h;h=8f2fb76e3e81734ef8a9cf9ae40daf4705 f31c35;hb=b763f6ae859ecea70a5dacb8ad45c71d5f667e2e Signed-off-by: Akhilesh Kumar Signed-off-by: Manjeet Pawar Sig