Re: [PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-06 Thread Dave Martin
On Tue, Nov 06, 2018 at 12:29:33PM +, Mark Rutland wrote: > On Tue, Nov 06, 2018 at 11:32:50AM +, Dave P Martin wrote: > > On Tue, Nov 06, 2018 at 11:00:19AM +, Mark Rutland wrote: > > > On Tue, Nov 06, 2018 at 08:57:51AM +, Daniel Thompson wrote: > > > > On Tue, Nov 06, 2018 at 08:

Re: [PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-06 Thread Mark Rutland
On Tue, Nov 06, 2018 at 11:32:50AM +, Dave P Martin wrote: > On Tue, Nov 06, 2018 at 11:00:19AM +, Mark Rutland wrote: > > On Tue, Nov 06, 2018 at 08:57:51AM +, Daniel Thompson wrote: > > > On Tue, Nov 06, 2018 at 08:39:01AM +, Mark Rutland wrote: > > > > On Tue, Nov 06, 2018 at 03:

Re: [PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-06 Thread Daniel Thompson
On Tue, Nov 06, 2018 at 11:00:19AM +, Mark Rutland wrote: > On Tue, Nov 06, 2018 at 08:57:51AM +, Daniel Thompson wrote: > > On Tue, Nov 06, 2018 at 08:39:01AM +, Mark Rutland wrote: > > > On Tue, Nov 06, 2018 at 03:19:35PM +0800, Zhaoyang Huang wrote: > > > > From: Zhaoyang Huang > >

Re: [PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-06 Thread Dave P Martin
On Tue, Nov 06, 2018 at 11:00:19AM +, Mark Rutland wrote: > On Tue, Nov 06, 2018 at 08:57:51AM +, Daniel Thompson wrote: > > On Tue, Nov 06, 2018 at 08:39:01AM +, Mark Rutland wrote: > > > On Tue, Nov 06, 2018 at 03:19:35PM +0800, Zhaoyang Huang wrote: > > > > From: Zhaoyang Huang > >

Re: [PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-06 Thread Mark Rutland
On Tue, Nov 06, 2018 at 08:57:51AM +, Daniel Thompson wrote: > On Tue, Nov 06, 2018 at 08:39:01AM +, Mark Rutland wrote: > > On Tue, Nov 06, 2018 at 03:19:35PM +0800, Zhaoyang Huang wrote: > > > From: Zhaoyang Huang > > > > > > In some cases, the instruction of "bl foo1" will be the last

Re: [PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-06 Thread Daniel Thompson
On Tue, Nov 06, 2018 at 08:39:01AM +, Mark Rutland wrote: > On Tue, Nov 06, 2018 at 03:19:35PM +0800, Zhaoyang Huang wrote: > > From: Zhaoyang Huang > > > > In some cases, the instruction of "bl foo1" will be the last one of the > > foo2[1], which will cause the lr be the first instruction of

Re: [PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-06 Thread Mark Rutland
On Tue, Nov 06, 2018 at 03:19:35PM +0800, Zhaoyang Huang wrote: > From: Zhaoyang Huang > > In some cases, the instruction of "bl foo1" will be the last one of the > foo2[1], which will cause the lr be the first instruction of the adjacent > foo3[2]. Hence, the backtrace will show the weird result

[PATCH] arch/arm64 : fix error in dump_backtrace

2018-11-05 Thread Zhaoyang Huang
From: Zhaoyang Huang In some cases, the instruction of "bl foo1" will be the last one of the foo2[1], which will cause the lr be the first instruction of the adjacent foo3[2]. Hence, the backtrace will show the weird result as bellow[3]. The patch will fix it by miner 4 of the lr when dump_backtr