From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751852AbbCVPjt (ORCPT ); Sun, 22 Mar 2015 11:39:49 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:34053 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbbCVPjs (ORCPT ); Sun, 22 Mar 2015 11:39:48 -0400 X-Auth-Info: mGaiuOAsJaH+Xp4Zonp48t241gxWxkKv2kbazs4Itot3vEsX+bdpQPOYTBwLQ0MI From: Andreas Schwab To: linuxppc-dev@ozlabs.org Subject: ADDR_COMPAT_LAYOUT breaks PTRACE_SEIZE CC: linux-kernel@vger.kernel.org X-Yow: I want you to organize my PASTRY trays... my TEA-TINS are gleaming in formation like a ROW of DRUM MAJORETTES -- please don't be FURIOUS with me -- Date: Sun, 22 Mar 2015 16:39:44 +0100 Message-ID: <87pp81nirj.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On ppc64, a process running with the ADDR_COMPAT_LAYOUT personality causes ptrace(PTRACE_SEIZE) to hang in the kernel, unkillable. #include #include #include #include #include #include int main (void) { pid_t child; personality (ADDR_COMPAT_LAYOUT); child = fork (); if (child == 0) { kill (getpid (), SIGSTOP); exit (0); } ptrace (PTRACE_SEIZE, child, NULL, NULL); wait (NULL); ptrace (PTRACE_CONT, child, NULL, NULL); } Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."