Invoke binary from kernel space

Valdis Kl=?utf-8?Q?=c4=93?=tnieks valdis.kletnieks at vt.edu
Thu Apr 23 16:58:48 EDT 2020


On Fri, 24 Apr 2020 01:23:45 +0530, hemanth nandish said:

> This function works as expected and a new thread is spawned.
> Now when I try to directly call do_execve within my module by passing the
> required arguments, I am getting  -EFAULT error.
> This is happening in this function:
>
> count(argv, MAX_ARG_STRINGS)
>
> What am I missing here?

My first guess is "the NULL pointer that indicates the end of the argv list".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200423/7e3f0a6e/attachment.sig>


More information about the Kernelnewbies mailing list