lkml.org 
[lkml]   [2020]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 5.8 036/132] selftests/x86/fsgsbase: Reap a forgotten child
    Date
    From: Andy Lutomirski <luto@kernel.org>

    [ Upstream commit ab2dd173330a3f07142e68cd65682205036cd00f ]

    The ptrace() test forgot to reap its child. Reap it.

    Signed-off-by: Andy Lutomirski <luto@kernel.org>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Link: https://lore.kernel.org/r/e7700a503f30e79ab35a63103938a19893dbeff2.1598461151.git.luto@kernel.org
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    tools/testing/selftests/x86/fsgsbase.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/tools/testing/selftests/x86/fsgsbase.c b/tools/testing/selftests/x86/fsgsbase.c
    index 15a329da59fa3..5f3aea210e018 100644
    --- a/tools/testing/selftests/x86/fsgsbase.c
    +++ b/tools/testing/selftests/x86/fsgsbase.c
    @@ -499,6 +499,9 @@ static void test_ptrace_write_gsbase(void)

    END:
    ptrace(PTRACE_CONT, child, NULL, NULL);
    + wait(&status);
    + if (!WIFEXITED(status))
    + printf("[WARN]\tChild didn't exit cleanly.\n");
    }

    int main()
    --
    2.25.1
    \
     
     \ /
      Last update: 2020-10-27 00:53    [W:4.049 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site