Re: Re: Re: [RFT PATCH -next v3] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "Suzuki K. Poulose" <suzuki@xxxxxxxxxx>
- Subject: Re: Re: Re: [RFT PATCH -next v3] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64
- From: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
- Date: Thu, 19 Jun 2014 20:20:45 +0900
- Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, sparse@xxxxxxxxxxx, "H. Peter Anvin" <hpa@xxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, linux-tip-commits@xxxxxxxxxxxxxxx, anil.s.keshavamurthy@xxxxxxxxx, Ingo Molnar <mingo@xxxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Rusty Russell <rusty@xxxxxxxxxxxxxxx>, Chris Wright <chrisw@xxxxxxxxxxxx>, yrl.pp-manager.tt@xxxxxxxxxxx, akataria@xxxxxxxxxx, Tony Luck <tony.luck@xxxxxxxxx>, Kevin Hao <haokexin@xxxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, rdunlap@xxxxxxxxxxxxx, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, dl9pf@xxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linuxppc-dev@xxxxxxxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxxxxx>
- In-reply-to: <53A2C315.9030006@hitachi.com>
- List-id: <linux-ia64.vger.kernel.org>
- Organization: Hitachi, Ltd., Japan
- References: <5387F150.5000307@hitachi.com> <20140530031838.17427.75896.stgit@ltc230.yrl.intra.hitachi.co.jp> <539161D6.7020508@hitachi.com> <1403078179.32307.7.camel@concordia> <53A15201.7060404@hitachi.com> <1403141433.4768.1.camel@concordia> <53A26C99.6060000@hitachi.com> <53A285D0.1030106@in.ibm.com> <53A2908E.2000806@hitachi.com> <53A2B136.108@in.ibm.com> <53A2C315.9030006@hitachi.com>
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
(2014/06/19 20:01), Masami Hiramatsu wrote:
>>>>> Ah, those messages should be shown in dmesg when booting if it doesn't work,
>>>>> because the messages are printed by initialization process of kprobe blacklist.
>>>>> So, reproducing it is just enabling CONFIG_KPROBES and boot it.
>>>> Well, we don't get those messages on Power, since the kallsyms has the
>>>> entries for ".function_name". The correct way to verify is, either :
>>>
>>> Hmm, that seems another issue on powerpc. Is that expected(and designed)
>>> behavior?
>> AFAIK, yes, it is.
>> To be more precise :
>>
>> we have 'foo' and '.foo' for a function foo(), where 'foo' points to the
>> function_entry and '.foo' points to the actual function.
>
> Ah, I see. So if we run
>
> func_ptr p = foo;
> return p == kallsyms_lookup_name(".foo");
>
> it returns true.
One more thing I should know, is the address of ".function_name" within the
kernel text? In other words, does kernel_text_address() return true for that
address? If not, it's easy to verify the address.
Thank you,
--
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Research Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@xxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]