2009-06-15 12:48:18

by Catalin Marinas

[permalink] [raw]
Subject: kallsyms broken on ARM by commit 17b1f0d

Hi Mike,

With the above commit, kallsyms on ARM no longer show correct
information. That's a trace with this commit:

[<c007bfec>] _etext+0xffd9bfec/0x126d8
[<c00795e4>] _etext+0xffd995e4/0x126d8
[<c0147d94>] _etext+0xffe67d94/0x126d8
[<c0147f10>] _etext+0xffe67f10/0x126d8
[<c01481bc>] _etext+0xffe681bc/0x126d8
[<c0148218>] _etext+0xffe68218/0x126d8
[<c0143db0>] _etext+0xffe63db0/0x126d8
[<c0143e18>] _etext+0xffe63e18/0x126d8
[<c007f250>] _etext+0xffd9f250/0x126d8
[<c007c238>] _etext+0xffd9c238/0x126d8
[<c007c2b8>] _etext+0xffd9c2b8/0x126d8
[<c0023dc0>] _etext+0xffd43dc0/0x126d8

and with the commit reverted:

[<c007bfec>] kmemleak_alloc+0x14c/0x260
[<c00795e4>] kmem_cache_alloc+0xd4/0x108
[<c0147d94>] tty_ldisc_try_get+0x18/0xb0
[<c0147f10>] tty_ldisc_get+0x18/0x40
[<c01481bc>] tty_ldisc_reinit+0x28/0x5c
[<c0148218>] tty_ldisc_release+0x28/0x3c
[<c0143db0>] tty_release_dev+0x3cc/0x428
[<c0143e18>] tty_release+0xc/0x14
[<c007f250>] __fput+0x104/0x1c4
[<c007c238>] filp_close+0x70/0x7c
[<c007c2b8>] sys_close+0x74/0xa8
[<c0023dc0>] ret_fast_syscall+0x0/0x28

Any idea what went wrong? I haven't looked at your commit in detail.

Thanks.

--
Catalin


2009-06-15 12:52:19

by Mike Frysinger

[permalink] [raw]
Subject: Re: kallsyms broken on ARM by commit 17b1f0d

On Mon, Jun 15, 2009 at 08:47, Catalin Marinas wrote:
> With the above commit, kallsyms on ARM no longer show correct
> information. That's a trace with this commit:
>
>    [<c007bfec>] _etext+0xffd9bfec/0x126d8
>    [<c00795e4>] _etext+0xffd995e4/0x126d8
>    [<c0147d94>] _etext+0xffe67d94/0x126d8
>    [<c0147f10>] _etext+0xffe67f10/0x126d8
>    [<c01481bc>] _etext+0xffe681bc/0x126d8
>    [<c0148218>] _etext+0xffe68218/0x126d8
>    [<c0143db0>] _etext+0xffe63db0/0x126d8
>    [<c0143e18>] _etext+0xffe63e18/0x126d8
>    [<c007f250>] _etext+0xffd9f250/0x126d8
>    [<c007c238>] _etext+0xffd9c238/0x126d8
>    [<c007c2b8>] _etext+0xffd9c2b8/0x126d8
>    [<c0023dc0>] _etext+0xffd43dc0/0x126d8
>
> and with the commit reverted:
>
>    [<c007bfec>] kmemleak_alloc+0x14c/0x260
>    [<c00795e4>] kmem_cache_alloc+0xd4/0x108
>    [<c0147d94>] tty_ldisc_try_get+0x18/0xb0
>    [<c0147f10>] tty_ldisc_get+0x18/0x40
>    [<c01481bc>] tty_ldisc_reinit+0x28/0x5c
>    [<c0148218>] tty_ldisc_release+0x28/0x3c
>    [<c0143db0>] tty_release_dev+0x3cc/0x428
>    [<c0143e18>] tty_release+0xc/0x14
>    [<c007f250>] __fput+0x104/0x1c4
>    [<c007c238>] filp_close+0x70/0x7c
>    [<c007c2b8>] sys_close+0x74/0xa8
>    [<c0023dc0>] ret_fast_syscall+0x0/0x28
>
> Any idea what went wrong? I haven't looked at your commit in detail.

try this patch (Gentoo mail server is broken atm, so attaching)
-mike


Attachments:
0001-kallsyms-fix-inverted-valid-symbol-checking.patch (965.00 B)

2009-06-15 13:17:03

by Catalin Marinas

[permalink] [raw]
Subject: Re: kallsyms broken on ARM by commit 17b1f0d

On Mon, 2009-06-15 at 08:51 -0400, Mike Frysinger wrote:
> On Mon, Jun 15, 2009 at 08:47, Catalin Marinas wrote:
> > With the above commit, kallsyms on ARM no longer show correct
> > information.
>
> try this patch (Gentoo mail server is broken atm, so attaching)

Thanks. This patch fixed the problem.

--
Catalin

2009-06-15 13:23:56

by Sam Ravnborg

[permalink] [raw]
Subject: Re: kallsyms broken on ARM by commit 17b1f0d

On Mon, Jun 15, 2009 at 02:16:45PM +0100, Catalin Marinas wrote:
> On Mon, 2009-06-15 at 08:51 -0400, Mike Frysinger wrote:
> > On Mon, Jun 15, 2009 at 08:47, Catalin Marinas wrote:
> > > With the above commit, kallsyms on ARM no longer show correct
> > > information.
> >
> > try this patch (Gentoo mail server is broken atm, so attaching)
>
> Thanks. This patch fixed the problem.

Quick testing - good.
I will forward this to Linus tonight.

Sam