lkml.org 
[lkml]   [2008]   [Feb]   [25]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] [PATCH] To refuse users from probing preempt_schedule()
FromDave Hansen <>
DateSun, 24 Feb 2008 22:20:24 -0800
On Mon, 2008-02-25 at 11:27 +0530, srinivasa wrote:
> This patch prohibits user from probing preempt_schedule(). One way of
> prohibiting the user from probing functions is by marking such
> functions with __kprobes. But this method doesn't work for those functions,
> which are already marked to different section like preempt_schedule()
> (belongs to __sched section). So we use blacklist approach to refuse user
> from probing these functions.

preempt_schedule() does sound really, really important. But, what kinds
of functions can't be kprobed? It would be nice to give that blacklist
a nice comment on the topic. :)

Also, have you strained your brains to think of other functions that
this should be applied to? Is it just for functions that are sensitive
and already have an assigned section? Might be nice to call that out
explicitly.

-- Dave



\
 
 \ /
  Last update: 2008-02-25 07:23    [from the cache]
©2003-2009