lkml.org 
[lkml]   [2019]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ptrace/x86: introduce TS_COMPAT_RESTART to fix get_nr_restart_syscall()
On 11/28, Andy Lutomirski wrote:
>
> I think this doesn’t work for x32.

Why? get_nr_restart_syscall() can still rely on the "orig_ax & __X32_SYSCALL_BIT"
check, debugger should restore regs->orig_ax correctly.

> Let’s either save the result of syscall_get_arch()

We can save the result of syscall_get_arch(), but it doesn't distinguish
x32/x86_64 tasks, so it doesn't really differ from TS_COMPAT.

> or just actually calculate and save the restart_syscall nr here.

sure, we we can do this.

> Before we commit to this, Kees, do you think we can manage to just renumber
> restart_syscall()? That’s a much better solution if we can pull it off.

Agreed.

Oleg.

\
 
 \ /
  Last update: 2019-11-29 18:33    [W:0.056 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site