Re: Invoke binary from kernel space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: pgpuXpHSsvcU7.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux