Skip to content

execle() can trigger page fault in kernel #1457

@adamdebek

Description

@adamdebek
Image Image

Reproduction (ia32-generic-qemu):

#include <stdio.h>
#include <unistd.h>
#include <errno.h>

int main(void)
{
        int ret;

        ret = execle("/bin/ls", "ls", "-l", NULL, NULL);
        printf("execle ret: %d errno: %d\n", ret, errno);

        return 0;
}

NOTE: When I used execle("/bin/ls", "ls", NULL, NULL);, it worked fine

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions