lkml.org 
[lkml]   [2012]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] Implement uhook(call kernel func from userspace) driver
    From
    2012/6/23 Greg KH <gregkh@linuxfoundation.org>:
    > On Sat, Jun 23, 2012 at 12:18:29PM +0800, Peiyong Feng wrote:
    >> 2012/6/23 Greg KH <gregkh@linuxfoundation.org>:
    >> > On Sat, Jun 23, 2012 at 11:20:35AM +0800, Peiyong Feng wrote:
    >> >> Hi all,
    >> >>
    >> >> This patch implement the uhook kernel driver. Here are some ideals and
    >> >> explanations:
    >> >>
    >> >> 1. What is uhook
    >> >>
    >> >> uhook(userspace kernel hook) means call kernel function from
    >> >> userspace. That is to say, we can
    >> >>
    >> >> write a function in kernel space and call it in userspace while the
    >> >> kernel Image is running. For example:
    >> >
    >> > That's, um, "interesting", but is of course, nothing we can accept into
    >> > the main kernel tree, as I'm sure you can understand.  Otherwise, you
    >> > just created a few thousand undocumented system calls whose behavior
    >> > changes every release which is not something we can accept.
    >> >
    >> > But it is a great hack, very nicely done.  I'm sure that some people
    >> > will like it for debugging, although I'm not quite sure you got all of
    >>
    >> Well, is there some other tree I can commit the patch?
    >
    > What do you mean by this?

    I mean that although the main line kernel cannot accept this patch, and
    uhook is very useful to play a rule as a debug tool. Is there some where else
    that can hold this tool, and let more people use the uhook?
    >
    >> > the user/kernel boundry conditions correct, and I know the 32/64bit
    >> > issues aren't handled, which you might want to clean up sometime in the
    >>
    >> I am still working on it. The ultimate aim is that the uhook module can process
    >> any funciton and any data type
    >
    > Good luck :)
    >
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2012-06-23 08:21    [W:0.028 / U:30.104 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site