[PATCH] ARM: entry: fix tracing of ARM-private syscalls

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Wed Sep 18 17:09:11 EDT 2013


On Wed, Sep 18, 2013 at 05:12:45PM +0100, Will Deacon wrote:
> Commit 377747c40657 ("ARM: entry: allow ARM-private syscalls to be
> restarted") reworked the low-level syscall dispatcher to allow
> restarting of ARM-private syscalls. Unfortunately, this relocated the
> label used to dispatch a private syscall from the trace path, so that
> the invocation would be bypassed altogether!
> 
> This causes applications to fail under strace as soon as they rely on
> a private syscall (e.g. set_tls):
> 
>   set_tls(0xb6fad4c0, 0xb6fadb98, 0xb6fb1050, 0xb6fad4c0, 0xb6fb1050)
>       = -1 ENOSYS (Function not implemented)
> 
> This patch fixes the label so that we correctly dispatch private
> syscalls from the trace path.
> 
> Reported-by: Jason Gunthorpe <jgunthorpe at obsidianresearch.com>
> Signed-off-by: Will Deacon <will.deacon at arm.com>

Worked here

Tested-by: Jason Gunthorpe <jgunthorpe at obsidianresearch.com>

This should probably go into the 3.11 stable series too?

Jason



More information about the linux-arm-kernel mailing list