From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbcFUMlr (ORCPT ); Tue, 21 Jun 2016 08:41:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55072 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbcFUMlp (ORCPT ); Tue, 21 Jun 2016 08:41:45 -0400 Subject: Re: [PATCH v3 2/3] x86/signal: Rewire the restart_block() syscall to have a constant nr To: Andy Lutomirski , x86@kernel.org, linux-kernel@vger.kernel.org References: <6347a4fe9e8c67d511e7b8a68e8ee5ffb02ca968.1466464928.git.luto@kernel.org> Cc: Borislav Petkov , Oleg Nesterov , Kees Cook From: Pedro Alves Message-ID: Date: Tue, 21 Jun 2016 13:39:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <6347a4fe9e8c67d511e7b8a68e8ee5ffb02ca968.1466464928.git.luto@kernel.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 21 Jun 2016 12:40:03 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On 06/21/2016 12:39 AM, Andy Lutomirski wrote: > Suppose a 64-bit task A traces a 32-bit task B. I gave your x86/ptrace branch a try: https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/log/?h=x86/ptrace (this looks to be the same patch set.) Unfortunately, with gdb git master, I still get the 64-bit ptracer x 32-bit ptracee problem: (gdb) r Starting program: interrupt.32 talk to me baby ^C Program received signal SIGINT, Interrupt. 0xf7fd9d09 in __kernel_vsyscall () (gdb) p func1 () $1 = 4 (gdb) c Continuing. Unknown error 512 [Inferior 1 (process 2198) exited with code 01] (gdb) q Is this expected? This is the same testcase as before: https://sourceware.org/ml/gdb/2014-05/msg00004.html Thanks, Pedro Alves