From: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
To: hemanth nandish <hemanthluvsfifa@gmail.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: Invoke binary from kernel space
Date: Thu, 23 Apr 2020 16:58:48 -0400 [thread overview]
Message-ID: <35993.1587675528@turing-police> (raw)
In-Reply-To: <CAEBxVXMoDCyY3nbU0uEWSD2TivgujAYPQhWcLF=BbhrK0y6n=Q@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 427 bytes --]
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".
[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
prev parent reply other threads:[~2020-04-23 20:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 19:53 Invoke binary from kernel space hemanth nandish
2020-04-23 20:58 ` Valdis Klētnieks [this message]
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=35993.1587675528@turing-police \
--to=valdis.kletnieks@vt.edu \
--cc=hemanthluvsfifa@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/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;
as well as URLs for NNTP newsgroup(s).