[no subject]

2015-03-24 Thread Anurag Aggarwal
unsubscribe linux-kernel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Fwd:

2015-03-24 Thread Anurag Aggarwal
unsubscribe linux-kernel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[no subject]

2015-03-24 Thread Anurag Aggarwal
unsubscribe linux-kernel -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Fwd:

2015-03-24 Thread Anurag Aggarwal
unsubscribe linux-kernel -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH V7] ARM : unwinder : Prevent data abort due to stack overflow

2014-01-21 Thread Anurag Aggarwal
Any more update on the patch.? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH V7] ARM : unwinder : Prevent data abort due to stack overflow

2014-01-21 Thread Anurag Aggarwal
Any more update on the patch.? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH V7] ARM : unwinder : Prevent data abort due to stack overflow

2014-01-07 Thread Anurag Aggarwal
, where a check for feasibility is made before reading each word from the stack. Signed-off-by: Anurag Aggarwal Reviewed-by: Dave Martin --- arch/arm/kernel/unwind.c | 137 +- 1 file changed, 100 insertions(+), 37 deletions(-) diff --git a/arch/arm

[PATCH V7] ARM : unwinder : Prevent data abort due to stack overflow

2014-01-07 Thread Anurag Aggarwal
, where a check for feasibility is made before reading each word from the stack. Signed-off-by: Anurag Aggarwal a.anu...@samsung.com Reviewed-by: Dave Martin dave.mar...@arm.com --- arch/arm/kernel/unwind.c | 137 +- 1 file changed, 100 insertions

Re: [PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-14 Thread Anurag Aggarwal
uiet a few times in dmesg log. So, the error condition is being handled. If you have some test cases for verifying the unwinder, please share the same. They might help in thorough testing of unwinder. Regards On Wed, Dec 11, 2013 at 3:10 PM, Anurag Aggarwal wrote: >>You could try adding som

Re: [PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-14 Thread Anurag Aggarwal
condition is being handled. If you have some test cases for verifying the unwinder, please share the same. They might help in thorough testing of unwinder. Regards On Wed, Dec 11, 2013 at 3:10 PM, Anurag Aggarwal a.anu...@samsung.com wrote: You could try adding some debug printks to see how

Re: [PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-11 Thread Anurag Aggarwal
>You could try adding some debug printks to see how the backtrace fails. >You could also try adding a few hand-crafted assembler functions >with appropriate code and unwind directives to trigger different kinds >of backtrace failure. You might have to add a way to artificially limit >sp_high to

Re: [PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-11 Thread Anurag Aggarwal
You could try adding some debug printks to see how the backtrace fails. You could also try adding a few hand-crafted assembler functions with appropriate code and unwind directives to trigger different kinds of backtrace failure. You might have to add a way to artificially limit sp_high to check

Re: [PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-10 Thread Anurag Aggarwal
s that such corner cases are being handled by the above code Regards Anurag On Tue, Dec 10, 2013 at 9:24 AM, Anurag Aggarwal wrote: >>Reviewed-by: Dave Martin >> >>I can confirm that the kernel "doesn't crash" with this applied, and >>that backtracing at least p

Re: [PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-10 Thread Anurag Aggarwal
are being handled by the above code Regards Anurag On Tue, Dec 10, 2013 at 9:24 AM, Anurag Aggarwal a.anu...@samsung.com wrote: Reviewed-by: Dave Martin dave.mar...@arm.com I can confirm that the kernel doesn't crash with this applied, and that backtracing at least partially works

Re: [PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-09 Thread Anurag Aggarwal
>Reviewed-by: Dave Martin > >I can confirm that the kernel "doesn't crash" with this applied, and >that backtracing at least partially works. But this is not really >sufficient to demontrate that the now code works better than the old >code in corner cases (which is the point of the patch). >

[PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-09 Thread Anurag Aggarwal
, where a check for feasibility is made before reading each word from the stack. Signed-off-by: Anurag Aggarwal --- arch/arm/kernel/unwind.c | 137 + 1 files changed, 100 insertions(+), 37 deletions(-) diff --git a/arch/arm/kernel/unwind.c b/arch/arm

[PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-09 Thread Anurag Aggarwal
, where a check for feasibility is made before reading each word from the stack. Signed-off-by: Anurag Aggarwal a.anu...@samsung.com --- arch/arm/kernel/unwind.c | 137 + 1 files changed, 100 insertions(+), 37 deletions(-) diff --git a/arch/arm/kernel

Re: [PATCH V6] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-09 Thread Anurag Aggarwal
Reviewed-by: Dave Martin dave.mar...@arm.com I can confirm that the kernel doesn't crash with this applied, and that backtracing at least partially works. But this is not really sufficient to demontrate that the now code works better than the old code in corner cases (which is the point of the

Re: [PATCH] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-07 Thread Anurag Aggarwal
41 PM, Dave Martin wrote: > On Fri, Dec 06, 2013 at 06:09:53AM +, Anurag Aggarwal wrote: >> While unwinding backtrace, stack overflow is possible. This stack >> overflow can sometimes lead to data abort in system if the area after >> stack is not mapped to physical memory

Re: [PATCH] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-07 Thread Anurag Aggarwal
, Anurag Aggarwal wrote: While unwinding backtrace, stack overflow is possible. This stack overflow can sometimes lead to data abort in system if the area after stack is not mapped to physical memory. To prevent this problem from happening, execute the instructions that can cause a data abort

[PATCH] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-05 Thread Anurag Aggarwal
, where a check for feasibility is made before reading each word from the stack. Signed-off-by: Anurag Aggarwal --- arch/arm/kernel/unwind.c | 138 ++- 1 file changed, 100 insertions(+), 38 deletions(-) diff --git a/arch/arm/kernel/unwind.c b/arch/arm

Re: [PATCH V4] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-05 Thread Anurag Aggarwal
;>That should probably be checked if it's not done already. I think this should be handled in separate patch I would also like to hear more your ideas for the file Regards Anurag On Thu, Dec 5, 2013 at 7:29 PM, Dave Martin wrote: > On Thu, Dec 05, 2013 at 11:26:25AM +, Anurag Aggarwal wrot

[PATCH V4] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-05 Thread Anurag Aggarwal
, where a check for feasibility is made before reading each word from the stack. Signed-off-by: Anurag Aggarwal --- arch/arm/kernel/unwind.c | 127 - 1 files changed, 90 insertions(+), 37 deletions(-) diff --git a/arch/arm/kernel/unwind.c b/arch/arm

[PATCH V4] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-05 Thread Anurag Aggarwal
, where a check for feasibility is made before reading each word from the stack. Signed-off-by: Anurag Aggarwal a.anu...@samsung.com --- arch/arm/kernel/unwind.c | 127 - 1 files changed, 90 insertions(+), 37 deletions(-) diff --git a/arch/arm/kernel

Re: [PATCH V4] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-05 Thread Anurag Aggarwal
. I think this should be handled in separate patch I would also like to hear more your ideas for the file Regards Anurag On Thu, Dec 5, 2013 at 7:29 PM, Dave Martin dave.mar...@arm.com wrote: On Thu, Dec 05, 2013 at 11:26:25AM +, Anurag Aggarwal wrote: While unwinding backtrace, stack overflow

[PATCH] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-05 Thread Anurag Aggarwal
, where a check for feasibility is made before reading each word from the stack. Signed-off-by: Anurag Aggarwal a.anu...@samsung.com --- arch/arm/kernel/unwind.c | 138 ++- 1 file changed, 100 insertions(+), 38 deletions(-) diff --git a/arch/arm/kernel

[PATCH V3] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-03 Thread Anurag Aggarwal
Signed-off-by: Anurag Aggarwal While unwinding backtrace, stack overflow is possible. This stack overflow can sometimes lead to data abort in system if the area after stack is not mapped to physical memory. To prevent this problem from happening, execute the instructions that can cause a data

[PATCH V3] ARM : unwinder : Prevent data abort due to stack overflow

2013-12-03 Thread Anurag Aggarwal
Signed-off-by: Anurag Aggarwal a.anu...@samsung.com While unwinding backtrace, stack overflow is possible. This stack overflow can sometimes lead to data abort in system if the area after stack is not mapped to physical memory. To prevent this problem from happening, execute the instructions

Re: [PATCH V2] ARM : unwinder : Prevent data abort due to stack overflow while executing unwind instructions Signed-off-by: Anurag Aggarwal

2013-11-30 Thread Anurag Aggarwal
>> Looks like you still need to move your S-o-B line. It needs to be at >> the end of the commit message. >> >> On Fri, Nov 29, 2013 at 09:34:31AM +, Anurag Aggarwal wrote: >>> While unwinding backtrace, stack overflow is possible. This stack overflow >>

Re: [PATCH V2] ARM : unwinder : Prevent data abort due to stack overflow while executing unwind instructions Signed-off-by: Anurag Aggarwal

2013-11-30 Thread Anurag Aggarwal
> Looks like you still need to move your S-o-B line. It needs to be at > the end of the commit message. > > On Fri, Nov 29, 2013 at 09:34:31AM +0000, Anurag Aggarwal wrote: >> While unwinding backtrace, stack overflow is possible. This stack overflow >> can sometim

Re: [PATCH V2] ARM : unwinder : Prevent data abort due to stack overflow while executing unwind instructions Signed-off-by: Anurag Aggarwal a.anu...@samsung.com

2013-11-30 Thread Anurag Aggarwal
Looks like you still need to move your S-o-B line. It needs to be at the end of the commit message. On Fri, Nov 29, 2013 at 09:34:31AM +, Anurag Aggarwal wrote: While unwinding backtrace, stack overflow is possible. This stack overflow can sometimes lead to data abort in system

Re: [PATCH V2] ARM : unwinder : Prevent data abort due to stack overflow while executing unwind instructions Signed-off-by: Anurag Aggarwal a.anu...@samsung.com

2013-11-30 Thread Anurag Aggarwal
Looks like you still need to move your S-o-B line. It needs to be at the end of the commit message. On Fri, Nov 29, 2013 at 09:34:31AM +, Anurag Aggarwal wrote: While unwinding backtrace, stack overflow is possible. This stack overflow can sometimes lead to data abort in system

[PATCH V2] ARM : unwinder : Prevent data abort due to stack overflow while executing unwind instructions Signed-off-by: Anurag Aggarwal

2013-11-29 Thread Anurag Aggarwal
While unwinding backtrace, stack overflow is possible. This stack overflow can sometimes lead to data abort in system if the area after stack is not mapped to physical memory. To prevent this problem from happening execute the instructions that can cause data abort in there seperate functions

[PATCH V2] ARM : unwinder : Prevent data abort due to stack overflow while executing unwind instructions Signed-off-by: Anurag Aggarwal a.anu...@samsung.com

2013-11-29 Thread Anurag Aggarwal
While unwinding backtrace, stack overflow is possible. This stack overflow can sometimes lead to data abort in system if the area after stack is not mapped to physical memory. To prevent this problem from happening execute the instructions that can cause data abort in there seperate functions

Re: [PATCH] ARM : unwinder : Prevent data abort due to stack overflow in unwind_exec_insn Signed-off-by: Anurag Aggarwal

2013-11-28 Thread Anurag Aggarwal
documentation I could find and t he current code written. So I believe that this condition will provide good optimization and will not create additional ways for the code to go wrong Regards Anurag Aggarwal --- Original Message --- Sender : Dave Martin Date : Nov 29, 2013 01:54 (GMT+05:3

[PATCH] ARM : unwinder : Prevent data abort due to stack overflow in unwind_exec_insn Signed-off-by: Anurag Aggarwal

2013-11-28 Thread Anurag Aggarwal
While executing some unwind instructions stack overflow can cause a data abort when area beyond stack is not mapped to physical memory. To prevent the data abort check whether it is possible to execute these instructions before unwinding the stack --- arch/arm/kernel/unwind.c | 59

[PATCH] ARM : unwinder : Prevent data abort due to stack overflow in unwind_exec_insn Signed-off-by: Anurag Aggarwal a.anu...@samsung.com

2013-11-28 Thread Anurag Aggarwal
While executing some unwind instructions stack overflow can cause a data abort when area beyond stack is not mapped to physical memory. To prevent the data abort check whether it is possible to execute these instructions before unwinding the stack --- arch/arm/kernel/unwind.c | 59

Re: [PATCH] ARM : unwinder : Prevent data abort due to stack overflow in unwind_exec_insn Signed-off-by: Anurag Aggarwal a.anu...@samsung.com

2013-11-28 Thread Anurag Aggarwal
and t he current code written. So I believe that this condition will provide good optimization and will not create additional ways for the code to go wrong Regards Anurag Aggarwal --- Original Message --- Sender : Dave Martindave.mar...@arm.com Date : Nov 29, 2013 01:54 (GMT+05:30) Title

Re: Re: [PATCH] ARM: unwinder: Handle Stackoverflow in unwind_exec_insn

2013-11-25 Thread Anurag Aggarwal
or not. The above method will add some extra code but will avoid additional checks that are not required every where. and solve our purpose also as we need to avoid data abort due to stack overflow not stack overflow completely. Regards Anurag Aggarwal --- Original Message --- Sender : Dave

Re: Re: [PATCH] ARM: unwinder: Handle Stackoverflow in unwind_exec_insn

2013-11-25 Thread Anurag Aggarwal
or not. The above method will add some extra code but will avoid additional checks that are not required every where. and solve our purpose also as we need to avoid data abort due to stack overflow not stack overflow completely. Regards Anurag Aggarwal --- Original Message --- Sender : Dave

Re: [PATCH] ARM: unwinder: Handle Stackoverflow in unwind_exec_insn

2013-11-08 Thread Anurag Aggarwal
Regards Anurag On Fri, Nov 8, 2013 at 6:51 PM, Dave Martin wrote: > On Wed, Nov 06, 2013 at 03:20:48PM +0530, Anurag Aggarwal wrote: >> Altough stack overflow is expected in unwind_exec_insn, but in cases when >> area beyond stack is not mapped to physical memory this can c

Re: [PATCH] ARM: unwinder: Handle Stackoverflow in unwind_exec_insn

2013-11-08 Thread Anurag Aggarwal
Regards Anurag On Fri, Nov 8, 2013 at 6:51 PM, Dave Martin dave.mar...@arm.com wrote: On Wed, Nov 06, 2013 at 03:20:48PM +0530, Anurag Aggarwal wrote: Altough stack overflow is expected in unwind_exec_insn, but in cases when area beyond stack is not mapped to physical memory this can cause data

[PATCH] ARM: unwinder: Handle Stackoverflow in unwind_exec_insn

2013-11-06 Thread Anurag Aggarwal
Altough stack overflow is expected in unwind_exec_insn, but in cases when area beyond stack is not mapped to physical memory this can cause data abort. To avoid above condition handle stack overflow in unwind_exec_insn by checking vsp pointer from top of stack Signed-off-by: Anurag Aggarwal

[PATCH] ARM: unwinder: Handle Stackoverflow in unwind_exec_insn

2013-11-06 Thread Anurag Aggarwal
Altough stack overflow is expected in unwind_exec_insn, but in cases when area beyond stack is not mapped to physical memory this can cause data abort. To avoid above condition handle stack overflow in unwind_exec_insn by checking vsp pointer from top of stack Signed-off-by: Anurag Aggarwal

Re: [Query] Stack Overflow in "arch/arm/kernel/unwind.c" while unwinding frame

2013-10-06 Thread Anurag Aggarwal
hought that checks can also be added in unwind_exec_insn() function for stack overflow. On Wed, Oct 2, 2013 at 11:41 PM, Catalin Marinas wrote: > On 24 September 2013 07:23, Anurag Aggarwal > wrote: >> While executing unwind backtrace instructions in ARM, in the function &

Re: [Query] Stack Overflow in arch/arm/kernel/unwind.c while unwinding frame

2013-10-06 Thread Anurag Aggarwal
that checks can also be added in unwind_exec_insn() function for stack overflow. On Wed, Oct 2, 2013 at 11:41 PM, Catalin Marinas catalin.mari...@arm.com wrote: On 24 September 2013 07:23, Anurag Aggarwal anurag19aggar...@gmail.com wrote: While executing unwind backtrace instructions in ARM

Re: [Query] Stack Overflow in "arch/arm/kernel/unwind.c" while unwinding frame

2013-09-24 Thread Anurag Aggarwal
n_address.o > arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: > return_address should use unwind tables" > > Regards, > Jean > > On 24 September 2013 07:23, Anurag Aggarwal > wrote: >> Hi All, >> >> While executing unw

Re: [Query] Stack Overflow in arch/arm/kernel/unwind.c while unwinding frame

2013-09-24 Thread Anurag Aggarwal
/return_address.o arch/arm/kernel/return_address.c:63:2: warning: #warning TODO: return_address should use unwind tables Regards, Jean On 24 September 2013 07:23, Anurag Aggarwal anurag19aggar...@gmail.com wrote: Hi All, While executing unwind backtrace instructions in ARM, in the function

[Query] Stack Overflow in "arch/arm/kernel/unwind.c" while unwinding frame

2013-09-23 Thread Anurag Aggarwal
place to ask the question. -- Anurag Aggarwal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[Query] Stack Overflow in arch/arm/kernel/unwind.c while unwinding frame

2013-09-23 Thread Anurag Aggarwal
. -- Anurag Aggarwal -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/