lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <559A56D9.6070109@hitachi.com>
Date:	Mon, 06 Jul 2015 19:22:17 +0900
From:	Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
To:	Pratyush Anand <panand@...hat.com>, linux-kernel@...r.kernel.org
CC:	dave.long@...aro.org, will.deacon@....com
Subject: Re: Query: How to blacklist asm symbols for kprobe

On 2015/06/29 18:16, Pratyush Anand wrote:
> Hi,
> 
> There might be some symbols defined in asm file, which need to be
> prevented for kprobe-ing.
> 
> For example, el0_sync, el1_sync, el0_dbg, el1_dbg etc (in
> arch/arm64/kernel/entry.S) should be added to the kprobe blacklist
> table. How can we do that?
> 

You can port and use _ASM_NOKPROBE(symbol) macro in .S file.

In arch/x86/include/asm/asm.h, it is defined as below.

# define _ASM_NOKPROBE(entry)                                   \
        .pushsection "_kprobe_blacklist","aw" ;                 \
        _ASM_ALIGN ;                                            \
        _ASM_PTR (entry);                                       \
        .popsection

Thank you,


-- 
Masami HIRAMATSU
Linux Technology Research Center, System Productivity Research Dept.
Center for Technology Innovation - Systems Engineering
Hitachi, Ltd., Research & Development Group
E-mail: masami.hiramatsu.pt@...achi.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ