Inserting code from userspace to kernel space
Quoted 10 lines
Quoted 2 lines
I know this sounds quite weird, but maybe there is a project that can help us ;)
actually you can implement a parser/interpretor, whatever you name it, in kernel space. And you can send the
function code from user space to kernel space by device driver interface. the parser can parse that and do something practical function in kernel.I have worked on a similar task in a product powered by linux. It works great.
any pointer to the sourcecode so bosko (and others) can profit from that ?
List: linux-kernel Subject: Re: Inserting code from userspace to kernel space From: "Shuduo Sang" <sangshuduo () gmail ! com> Date: 2008-05-22 16:04:35 Message-ID: ee101c360805220904h1c69db12q3048d0347d27c461 () mail ! gmail ! com
[Download message RAW]
Quoted 7 lines · Bosko Radivojevic
Hi!
I'm looking for a way to insert code from user space to the kernel space, but without using kernel module. Actually, we are working on a system that has to allow end user to change part of code (one or two functions) that is executed from the kernel space.
Quoted 8 lines
For now we have two different kernel modules, one exporting a function which another module uses. Process of compiling kernel module is quite ineligible for standard end user (along with the requirement to support multi platform cross compiling) compared to just cross compiling a simple code that doesn't use any libraries than libc.
I know this sounds quite weird, but maybe there is a project that can help us ;)
actually you can implement a parser/interpretor, whatever you name it, in kernel space. And you can send the
function code from user space to kernel space by device driver interface. the parser can parse that and do something practical function in kernel.
I have worked on a similar task in a product powered by linux. It works great.
Quoted 8 lines
Sincerely,
Bosko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
______________________________________________________________
Jeden Monat 1 hochkarätiger maxdome-Blockbuster GRATIS! Exklusiv für alle WEB.DE Nutzer. http://www.blockbuster.web.de
On Fri, May 23, 2008 at 10:30 PM, <[email protected]> wrote:>>> I know this sounds quite weird, but maybe there is a project that can help us ;)>>>>>>>actually you can implement a parser/interpretor, whatever you name it,>>in kernel space. And you can send the>>function code from user space to kernel space by device driver>>interface. the parser can parse that and do something>>practical function in kernel.>>>>I have worked on a similar task in a product powered by linux. It works great.>> any pointer to the sourcecode so bosko (and others) can profit from that ?> someone does not want to leak propertied algorithm out with GPL. Thiscan be a way to protect.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
List: linux-kernel> Subject: Re: Inserting code from userspace to kernel space> From: "Shuduo Sang" <sangshuduo () gmail ! com>> Date: 2008-05-22 16:04:35> Message-ID: ee101c360805220904h1c69db12q3048d0347d27c461 () mail ! gmail ! com> [Download message RAW]>> On Thu, May 22, 2008 at 8:41 PM, Bosko Radivojevic> <[email protected]> wrote:>> Hi!>>>> I'm looking for a way to insert code from user space to the kernel>> space, but without using kernel module. Actually, we are working on a>> system that has to allow end user to change part of code (one or two>> functions) that is executed from the kernel space.>>>> For now we have two different kernel modules, one exporting a function>> which another module uses. Process of compiling kernel module is quite>> ineligible for standard end user (along with the requirement to>> support multi platform cross compiling) compared to just cross>> compiling a simple code that doesn't use any libraries than libc.>>>> I know this sounds quite weird, but maybe there is a project that can help us ;)>>>> actually you can implement a parser/interpretor, whatever you name it,> in kernel space. And you can send the> function code from user space to kernel space by device driver> interface. the parser can parse that and do something> practical function in kernel.>> I have worked on a similar task in a product powered by linux. It works great.>>> Sincerely,>> Bosko>> -->> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in>> the body of a message to [email protected]>> More majordomo info at http://vger.kernel.org/majordomo-info.html>> Please read the FAQ at http://www.tux.org/lkml/>>> ______________________________________________________________> Jeden Monat 1 hochkarätiger maxdome-Blockbuster GRATIS!> Exklusiv für alle WEB.DE Nutzer. http://www.blockbuster.web.de>>���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
Quoted 2 lines · Shuduo Sang
someone does not want to leak propertied algorithm out with GPL. This can be a way to protect.
Perhaps you want something similar to the firmware files that some devices need loaded? (By the way, I think the word is "proprietary".)
Quoted 7 lines · David Newall
Quoted 2 lines · Shuduo Sang
someone does not want to leak propertied algorithm out with GPL. This can be a way to protect.
Perhaps you want something similar to the firmware files that some devices need loaded? (By the way, I think the word is "proprietary".)
sorry for my poor english and thanks for your correction. :)
Quoted 4 lines · David Newall
Quoted 2 lines
someone does not want to leak propertied algorithm out with GPL. This can be a way to protect.
Perhaps you want something similar to the firmware files that some devices need loaded? (By the way, I think the word is "proprietary".)
This is different, because the firmware that is loaded by request_firmware() is not meant to be interpreted/executed by the kernel, drivers usually just pass it over to the device.
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 3 lines · Jiri Kosina
This is different, because the firmware that is loaded by
request_firmware()is not meant to be interpreted/executed by the kernel, drivers usually just pass it over to the device.
Usually, but not obligatory. It seems like it might be useful to overload the mechanism for the specified requirement. It's just an idea.