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] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 22 Feb 2009 10:31:09 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Masami Hiramatsu <mhiramat@...hat.com>,
	Andrew Morton <akpm@...ux-foundation.org>
Cc:	hpa@...or.com, mingo@...hat.com, torvalds@...ux-foundation.org,
	tglx@...utronix.de, linux-kernel@...r.kernel.org,
	linux-tip-commits@...r.kernel.org
Subject: Re: [tip:x86/mm] x86, mm, kprobes: fault.c, simplify
	notify_page_fault()


* Masami Hiramatsu <mhiramat@...hat.com> wrote:

> Ingo Molnar wrote:
> > Author:     Ingo Molnar <mingo@...e.hu>
> > AuthorDate: Fri, 20 Feb 2009 22:42:57 +0100
> > Commit:     Ingo Molnar <mingo@...e.hu>
> > CommitDate: Sat, 21 Feb 2009 00:09:42 +0100
> > 
> > x86, mm, kprobes: fault.c, simplify notify_page_fault()
> > 
> > Impact: cleanup
> > 
> > Remove an #ifdef from notify_page_fault(). The function still
> > compiles to nothing in the !CONFIG_KPROBES case.
> > 
> > Introduce kprobes_built_in() and kprobe_fault_handler() helpers
> > to allow this - they returns 0 if !CONFIG_KPROBES.
> > 
> > No code changed:
> > 
> >    text	   data	    bss	    dec	    hex	filename
> >    4618	     32	     24	   4674	   1242	fault.o.before
> >    4618	     32	     24	   4674	   1242	fault.o.after
> 
> It seems good for me. Thank you for cleanup!
> 
> Acked-by: Masami Hiramatsu <mhiramat@...hat.com>

another very small thing, while we are discussing kprobes:

I always found that the __kprobes annotation is very confusingly 
euphemistic: what those annotations really mean is not 
'kprobes', but 'no kprobes'.

So how about renaming __kprobes to __nokprobes, similar to how 
we have the notrace attribute?

We have about 350 __kprobes annotations in the kernel, so 
renaming it now would not be practical - but any objections 
against me sending Linus a rename patch somewhere late in the 
next merge window that just does this rename?

[ likewise, i'll rename notrace to __notrace to make it visually 
  less intrusive to the return value type. There's a lot less 
  such annotations in the kernel. ]

	Ingo
--
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