Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 20 Mar 2013 22:42:22 +0100 (CET)
From: Pavel Kankovsky <peak@...o.troja.mff.cuni.cz>
To: owl-dev@...ts.openwall.com
Subject: Re: strace

On Fri, 15 Mar 2013, Dmitry V. Levin wrote:

> strace started to use "struct pt_regs" from asm/ptrace.h with commit
> v4.6-124-geb0e3e8 that introduced PTRACE_GETREGS on x86.
>
> Recently (commit v4.7-82-g2550d48) strace was changed on x86* to stop
> including asm/ptrace.h and use "struct user_regs_struct" instead.

*slaps himself* It's obvious, isn't it?

Strace in Owl-current is 4.7 and it calls PTRACE_GETREGS with struct 
pt_regs. This means it is broken when compiled against older kernel 
headers where pt_regs is different from user_regs_struct, namely
2.6.18-based kernel in Owl.

The attached patch (it is, in fact, a stripped down version of commit 
2550d48) fixes the problem.

-- 
Pavel Kankovsky aka Peak                          / Jeremiah 9:21        \
"For death is come up into our MS Windows(tm)..." \ 21st century edition /
View attachment "strace-4.7-i386_regs.diff" of type "TEXT/PLAIN" (686 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.