这是indexloc提供的服务,不要输入任何密码
Skip to content

PTRACE_SETREGS lets a process raise a tracee's IOPL for privilege escalation #306

@matrizzo

Description

@matrizzo

https://github.com/klange/toaruos/blob/master/kernel/sys/ptrace.c#L289

PTRACE_SETREGS copies the value of eflags from userspace with no checks. This lets the tracer change the tracee's IOPL in the the tracee's EFLAGS. When IOPL=3 the tracee can directly talk to the hardware with port I/O from userspace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions