lkml.org 
[lkml]   [2015]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4] x86, selftests: Add sigreturn selftest
From
Date
On Mon, 2015-04-06 at 19:01 -0700, Andy Lutomirski wrote:
> This is my sigreturn test, added mostly unchanged from its old home.
> It exercises the sigreturn(2) syscall, specifically focusing on its
> interactions with various IRET corner cases. It tests for correct
> behavior in several areas that were historically dangerously buggy.
> For example, it exercises espfix on kernels of both bitnesses under
> various conditions, and it contains exploits for several now-fixed
> bugs in IRET error handling.
>
> If you run it on older kernels, your system will crash. It probably
> won't eat your data in the process.
>
> There is no released kernel on which the sigreturn_64 test will
> pass, but it passes on tip:x86/asm.
>
> IMO it's unfortunate that I need to provide a special script to run
> tests. I'd rather just list my targets.

If you use lib.mk you can.

https://git.kernel.org/cgit/linux/kernel/git/shuah/linux-kselftest.git/log/?h=next

See for example:

https://git.kernel.org/cgit/linux/kernel/git/shuah/linux-kselftest.git/commit/?h=next&id=5744de542dd4b963c2975e6f70844ce2899864e4

cheers




\
 
 \ /
  Last update: 2015-04-07 06:21    [W:0.125 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site