Re: [PATCH] arm: always update thread_info->syscall

2018-11-27 Thread Rafael David Tinoco
On 11/27/18 1:35 PM, Russell King - ARM Linux wrote: > On x86 (32-bit app on 64-bit kernel), it has this behaviour: > > $ ./syscall-test > 162 0xffcc5a6c 0xffcc5a6c 0x48d09000 0x0 0xffcc5af4 0xffcc5a74 0xffcc5a2c > 0xf77dfa59 > 162 0xffcc5a6c 0xffcc5a6c 0x48d09000 0x0 0xffcc5af4 0xffcc5a74 0xffcc

RE: [PATCH] arm: always update thread_info->syscall

2018-11-27 Thread David Laight
From: Russell King - ARM Linux > Sent: 27 November 2018 15:36 ... > There appears to be no documentation at all of this interface, so there > is no definition of how it is supposed to work or what it is supposed > to expose beyond what little information is in the original patch: > > http://lkml

Re: [PATCH] arm: always update thread_info->syscall

2018-11-27 Thread Russell King - ARM Linux
On Tue, Nov 27, 2018 at 10:56:20AM +, Russell King - ARM Linux wrote: > On Tue, Nov 27, 2018 at 08:30:32AM -0200, Rafael David Tinoco wrote: > > On 11/26/18 9:44 PM, Russell King - ARM Linux wrote: > > >On Mon, Nov 26, 2018 at 11:41:11PM +, Russell King - ARM Linux wrote: > > >>On Mon, Nov

Re: [PATCH] arm: always update thread_info->syscall

2018-11-27 Thread Russell King - ARM Linux
On Tue, Nov 27, 2018 at 08:30:32AM -0200, Rafael David Tinoco wrote: > On 11/26/18 9:44 PM, Russell King - ARM Linux wrote: > >On Mon, Nov 26, 2018 at 11:41:11PM +, Russell King - ARM Linux wrote: > >>On Mon, Nov 26, 2018 at 11:33:03PM +, Russell King - ARM Linux wrote: > >>>On Mon, Nov 26,

Re: [PATCH] arm: always update thread_info->syscall

2018-11-27 Thread Rafael David Tinoco
On 11/26/18 9:44 PM, Russell King - ARM Linux wrote: On Mon, Nov 26, 2018 at 11:41:11PM +, Russell King - ARM Linux wrote: On Mon, Nov 26, 2018 at 11:33:03PM +, Russell King - ARM Linux wrote: On Mon, Nov 26, 2018 at 08:53:35PM -0200, Rafael David Tinoco wrote: Right now, only way for

Re: [PATCH] arm: always update thread_info->syscall

2018-11-26 Thread Russell King - ARM Linux
On Mon, Nov 26, 2018 at 11:41:11PM +, Russell King - ARM Linux wrote: > On Mon, Nov 26, 2018 at 11:33:03PM +, Russell King - ARM Linux wrote: > > On Mon, Nov 26, 2018 at 08:53:35PM -0200, Rafael David Tinoco wrote: > > > Right now, only way for task->thread_info->syscall to be updated is if

Re: [PATCH] arm: always update thread_info->syscall

2018-11-26 Thread Russell King - ARM Linux
On Mon, Nov 26, 2018 at 11:33:03PM +, Russell King - ARM Linux wrote: > On Mon, Nov 26, 2018 at 08:53:35PM -0200, Rafael David Tinoco wrote: > > Right now, only way for task->thread_info->syscall to be updated is if > > if _TIF_SYSCALL_WORK is set in current's task thread_info->flags > > (simil

Re: [PATCH] arm: always update thread_info->syscall

2018-11-26 Thread Russell King - ARM Linux
On Mon, Nov 26, 2018 at 08:53:35PM -0200, Rafael David Tinoco wrote: > Right now, only way for task->thread_info->syscall to be updated is if > if _TIF_SYSCALL_WORK is set in current's task thread_info->flags > (similar to what has_syscall_work() checks for arm64). > > This means that "->syscall"

[PATCH] arm: always update thread_info->syscall

2018-11-26 Thread Rafael David Tinoco
Right now, only way for task->thread_info->syscall to be updated is if if _TIF_SYSCALL_WORK is set in current's task thread_info->flags (similar to what has_syscall_work() checks for arm64). This means that "->syscall" will only be updated if we are tracing the syscalls through ptrace, for example