Skip to content
Commit ac97f907 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov
Browse files

parasite-syscall.c: don't infect a VMA above TASK_SIZE



If a task executes a non-userspace code (that sometimes takes place on ARM)
while being seized the subsequent infection with the syscall blob fails
because ptrace fails to write to the VMA the PC is in.

The patch modifies the function get_vma_by_ip() to check the PC of the task
being seized is below the TASK_SIZE boundary. If the check fails
the first suitable VMA is infected.

Signed-off-by: default avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent bd10da78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment