arch/tile: bug fix: exec'ed task thought it was still single-stepping
To handle single-step, tile mmap's a page of memory in the process space for each thread and uses it to construct a version of the instruction that we want to single step. If the process exec's, though, we lose that mapping, and the kernel needs to be aware that it will need to recreate it if the exec'ed process than tries to single-step as well. Also correct some int32_t to s32 for better kernel style. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
2cb8240071
commit
04f7a3f12e
3 changed files with 26 additions and 2 deletions
|
|
@ -574,6 +574,8 @@ SYSCALL_DEFINE4(execve, const char __user *, path,
|
|||
goto out;
|
||||
error = do_execve(filename, argv, envp, regs);
|
||||
putname(filename);
|
||||
if (error == 0)
|
||||
single_step_execve();
|
||||
out:
|
||||
return error;
|
||||
}
|
||||
|
|
@ -593,6 +595,8 @@ long compat_sys_execve(const char __user *path,
|
|||
goto out;
|
||||
error = compat_do_execve(filename, argv, envp, regs);
|
||||
putname(filename);
|
||||
if (error == 0)
|
||||
single_step_execve();
|
||||
out:
|
||||
return error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue