On 30/04/2019 17:46, Andy Lutomirski wrote: > On Mon, Mar 18, 2019 at 3:49 AM Sudeep Holla <sudeep.ho...@arm.com> wrote: >> >> Now that we have a new hook ptrace_syscall_enter that can be called from >> syscall entry code and it handles PTRACE_SYSEMU in generic code, we >> can do some cleanup using the same in syscall_trace_enter. >> >> Further the extra logic to find single stepping PTRACE_SYSEMU_SINGLESTEP >> in syscall_slow_exit_work seems unnecessary. Let's remove the same. >> > > Unless the patch set contains a selftest that exercises all the > interesting cases here, NAK. To be clear, there needs to be a test > that passes on an unmodified kernel and still passes on a patched > kernel. And that test case needs to *fail* if, for example, you force > "emulated" to either true or false rather than reading out the actual > value. > Tested using tools/testing/selftests/x86/ptrace_syscall.c Also v3 doesn't change any logic or additional call to new function as in v2. It's just simple cleanup as suggested by Oleg. -- Regards, Sudeep
- Re: [PATCH v2 1/6] ptrace: move clearing of TIF_SYSCA... Oleg Nesterov
- [PATCH v2 2/6] ptrace: introduce ptrace_syscall_enter to c... Sudeep Holla
- Re: [PATCH v2 2/6] ptrace: introduce ptrace_syscall_e... Dmitry V. Levin
- Re: [PATCH v2 2/6] ptrace: introduce ptrace_sysca... Sudeep Holla
- Re: [PATCH v2 2/6] ptrace: introduce ptrace_syscall_e... Dmitry V. Levin
- Re: [PATCH v2 2/6] ptrace: introduce ptrace_sysca... Sudeep Holla
- [PATCH v2 3/6] x86: clean up _TIF_SYSCALL_EMU handling usi... Sudeep Holla
- Re: [PATCH v2 3/6] x86: clean up _TIF_SYSCALL_EMU han... Oleg Nesterov
- Re: [PATCH v2 3/6] x86: clean up _TIF_SYSCALL_EMU... Sudeep Holla
- Re: [PATCH v2 3/6] x86: clean up _TIF_SYSCALL_EMU han... Andy Lutomirski
- Re: [PATCH v2 3/6] x86: clean up _TIF_SYSCALL_EMU... Sudeep Holla
- [PATCH v2 4/6] powerpc: use common ptrace_syscall_enter ho... Sudeep Holla
- Re: [PATCH v2 4/6] powerpc: use common ptrace_syscall... Dmitry V. Levin
- Re: [PATCH v2 4/6] powerpc: use common ptrace_sys... Sudeep Holla
- Re: [PATCH v2 4/6] powerpc: use common ptrace_syscall... Oleg Nesterov
- Re: [PATCH v2 4/6] powerpc: use common ptrace_sys... Sudeep Holla
- Re: [PATCH v2 4/6] powerpc: use common ptrace... Oleg Nesterov
- Re: [PATCH v2 4/6] powerpc: use common pt... Sudeep Holla
- Re: [PATCH v2 4/6] powerpc: use comm... Oleg Nesterov
- Re: [PATCH v2 4/6] powerpc: use ... Oleg Nesterov
- Re: [PATCH v2 4/6] powerpc: use ... Will Deacon