From: Greg KH <gregkh@linuxfoundation.org>
To: Peiyong Feng <peiyong.feng.kernel@gmail.com>
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Implement uhook(call kernel func from userspace) driver
Date: Fri, 22 Jun 2012 21:41:05 -0700 [thread overview]
Message-ID: <20120623044105.GA32663@kroah.com> (raw)
In-Reply-To: <CAN_1RdtfiWtuqV=vBkagZfmvstket499QdCK3zZrrS8xKTZwPA@mail.gmail.com>
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?
> > 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 :)
next prev parent reply other threads:[~2012-06-23 4:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAN_1RdvqJRig8vZW_gcvNVKYNo7ROmEKxAs7qu1N6XE4+Pspjg@mail.gmail.com>
2012-06-23 3:24 ` [PATCH] Implement uhook(call kernel func from userspace) driver Peiyong Feng
2012-06-23 3:41 ` Peiyong Feng
[not found] ` <20120623040633.GA16278@kroah.com>
2012-06-23 4:18 ` Peiyong Feng
2012-06-23 4:41 ` Greg KH [this message]
2012-06-23 6:01 ` Peiyong Feng
2012-06-23 8:01 ` Cong Wang
2012-06-23 13:58 ` Peiyong Feng
2012-06-23 15:07 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120623044105.GA32663@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=devel@driverdev.osuosl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peiyong.feng.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox