From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 7DF471A09B9 for ; Mon, 23 Mar 2015 02:45:44 +1100 (AEDT) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0EA7014008F for ; Mon, 23 Mar 2015 02:45:43 +1100 (AEDT) From: Andreas Schwab To: linuxppc-dev@ozlabs.org Subject: ADDR_COMPAT_LAYOUT breaks PTRACE_SEIZE Date: Sun, 22 Mar 2015 16:39:44 +0100 Message-ID: <87pp81nirj.fsf@igel.home> MIME-Version: 1.0 Content-Type: text/plain Cc: linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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."