* [RFC] ptrace: system call number interpretation during PTRACE_SET_SYSCALL request handling
[not found] ` <20080601083036.GD5818@flint.arm.linux.org.uk>
@ 2009-09-15 9:37 ` Kirill A. Shutemov
2009-09-17 20:41 ` Kirill A. Shutemov
0 siblings, 1 reply; 4+ messages in thread
From: Kirill A. Shutemov @ 2009-09-15 9:37 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Jun 1, 2008 at 11:30 AM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Fri, May 30, 2008 at 09:30:27PM +0300, Volodymyr G. Lukiianyk wrote:
>> I've encountered a problem while running strace on the kernel with
>> CONFIG_AEABI not set. This problem can be worked around in userspace,
>> but it looks like the correct place for a fix is the kernel.
>
> I'm really nervous about this. ?I need to check what my own strace
> patches do - and if they don't suffer from this problem I'd say that
> the bug lies in userspace.
Any results? Do we need to workaround it in user space or it will be
fixed in kernel?
> Yes, for a long time I've had patches to strace to add proper ARM
> support and fix a load of issues with it, but I've never been able
> to get them integrated into strace itself.
>
> -------------------------------------------------------------------
> List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
> FAQ: ? ? ? ?http://www.arm.linux.org.uk/mailinglists/faq.php
> Etiquette: ?http://www.arm.linux.org.uk/mailinglists/etiquette.php
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC] ptrace: system call number interpretation during PTRACE_SET_SYSCALL request handling
2009-09-15 9:37 ` [RFC] ptrace: system call number interpretation during PTRACE_SET_SYSCALL request handling Kirill A. Shutemov
@ 2009-09-17 20:41 ` Kirill A. Shutemov
2009-09-17 20:52 ` Russell King - ARM Linux
0 siblings, 1 reply; 4+ messages in thread
From: Kirill A. Shutemov @ 2009-09-17 20:41 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 15, 2009 at 12:37 PM, Kirill A. Shutemov
<kirill@shutemov.name> wrote:
> On Sun, Jun 1, 2008 at 11:30 AM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
>> On Fri, May 30, 2008 at 09:30:27PM +0300, Volodymyr G. Lukiianyk wrote:
>>> I've encountered a problem while running strace on the kernel with
>>> CONFIG_AEABI not set. This problem can be worked around in userspace,
>>> but it looks like the correct place for a fix is the kernel.
>>
>> I'm really nervous about this. ?I need to check what my own strace
>> patches do - and if they don't suffer from this problem I'd say that
>> the bug lies in userspace.
>
> Any results? Do we need to workaround it in user space or it will be
> fixed in kernel?
Russell?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC] ptrace: system call number interpretation during PTRACE_SET_SYSCALL request handling
2009-09-17 20:41 ` Kirill A. Shutemov
@ 2009-09-17 20:52 ` Russell King - ARM Linux
2009-09-17 21:12 ` Kirill A. Shutemov
0 siblings, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2009-09-17 20:52 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Sep 17, 2009 at 11:41:43PM +0300, Kirill A. Shutemov wrote:
> On Tue, Sep 15, 2009 at 12:37 PM, Kirill A. Shutemov
> <kirill@shutemov.name> wrote:
> > On Sun, Jun 1, 2008 at 11:30 AM, Russell King - ARM Linux
> > <linux@arm.linux.org.uk> wrote:
> >> On Fri, May 30, 2008 at 09:30:27PM +0300, Volodymyr G. Lukiianyk wrote:
> >>> I've encountered a problem while running strace on the kernel with
> >>> CONFIG_AEABI not set. This problem can be worked around in userspace,
> >>> but it looks like the correct place for a fix is the kernel.
> >>
> >> I'm really nervous about this. ?I need to check what my own strace
> >> patches do - and if they don't suffer from this problem I'd say that
> >> the bug lies in userspace.
> >
> > Any results? Do we need to workaround it in user space or it will be
> > fixed in kernel?
>
> Russell?
I've not really been around much the last three days.
What was the issue again?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC] ptrace: system call number interpretation during PTRACE_SET_SYSCALL request handling
2009-09-17 20:52 ` Russell King - ARM Linux
@ 2009-09-17 21:12 ` Kirill A. Shutemov
0 siblings, 0 replies; 4+ messages in thread
From: Kirill A. Shutemov @ 2009-09-17 21:12 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Sep 17, 2009 at 11:52 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Thu, Sep 17, 2009 at 11:41:43PM +0300, Kirill A. Shutemov wrote:
>> On Tue, Sep 15, 2009 at 12:37 PM, Kirill A. Shutemov
>> <kirill@shutemov.name> wrote:
>> > On Sun, Jun 1, 2008 at 11:30 AM, Russell King - ARM Linux
>> > <linux@arm.linux.org.uk> wrote:
>> >> On Fri, May 30, 2008 at 09:30:27PM +0300, Volodymyr G. Lukiianyk wrote:
>> >>> I've encountered a problem while running strace on the kernel with
>> >>> CONFIG_AEABI not set. This problem can be worked around in userspace,
>> >>> but it looks like the correct place for a fix is the kernel.
>> >>
>> >> I'm really nervous about this. ?I need to check what my own strace
>> >> patches do - and if they don't suffer from this problem I'd say that
>> >> the bug lies in userspace.
>> >
>> > Any results? Do we need to workaround it in user space or it will be
>> > fixed in kernel?
>>
>> Russell?
>
> I've not really been around much the last three days.
>
> What was the issue again?
>
It's about this patch for strace:
Syscall numbers do not start at 0 for OABI, so need
to mask off the high order bits when changing syscall
Signed-off-by: Steve Bennett <steveb@workware.net.au>
diff --git a/process.c b/process.c
index 23bd413..dd5464f 100644
--- a/process.c
+++ b/process.c
@@ -792,7 +792,7 @@ change_syscall(struct tcb *tcp, int new)
# define PTRACE_SET_SYSCALL 23
# endif
- if (ptrace (PTRACE_SET_SYSCALL, tcp->pid, 0, new) != 0)
+ if (ptrace (PTRACE_SET_SYSCALL, tcp->pid, 0, new & 0xFFFF) != 0)
return -1;
return 0;
--
Should it be applied or kernel will be fixed?
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-17 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <484047C3.4090509@gmail.com>
[not found] ` <20080601083036.GD5818@flint.arm.linux.org.uk>
2009-09-15 9:37 ` [RFC] ptrace: system call number interpretation during PTRACE_SET_SYSCALL request handling Kirill A. Shutemov
2009-09-17 20:41 ` Kirill A. Shutemov
2009-09-17 20:52 ` Russell King - ARM Linux
2009-09-17 21:12 ` Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).