From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755046Ab1HWQXM (ORCPT ); Tue, 23 Aug 2011 12:23:12 -0400 Received: from s15228384.onlinehome-server.info ([87.106.30.177]:57798 "EHLO mail.x86-64.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752857Ab1HWQXE (ORCPT ); Tue, 23 Aug 2011 12:23:04 -0400 Date: Tue, 23 Aug 2011 18:22:51 +0200 From: Borislav Petkov To: Andrew Lutomirski Cc: Linus Torvalds , Al Viro , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar , "user-mode-linux-devel@lists.sourceforge.net" , Richard Weinberger , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" Subject: Re: [uml-devel] SYSCALL, ptrace and syscall restart breakages (Re: [RFC] weird crap with vdso on uml/i386) Message-ID: <20110823162251.GC13138@aftab> References: <20110823000314.GW2203@ZenIV.linux.org.uk> <4E52EF2A.8060608@zytor.com> <20110823010146.GY2203@ZenIV.linux.org.uk> <20110823011312.GZ2203@ZenIV.linux.org.uk> <20110823021717.GA2203@ZenIV.linux.org.uk> <20110823061531.GC2203@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23, 2011 at 12:11:43PM -0400, Andrew Lutomirski wrote: > In any case, this seems insanely overcomplicated. I'd be less afraid > of something like my approach (which, I think, makes all of the > SYSCALL weirdness pretty much transparent to ptrace users) or of just > removing SYSCALL entirely from 32-bit code. I don't think that removing SYSCALL from 32-bit code just so that UML trapped syscalls work is something we'd like since SYSCALL is much cheaper than INT $0x80: "As a result, SYSCALL and SYSRET can take fewer than one-fourth the number of internal clock cycles to complete than the legacy CALL and RET instructions." http://support.amd.com/us/Processor_TechDocs/24593.pdf, p. 152. I know, it is 32-bit syscall on 64-bit kernel which should be pretty rare but still... Thanks. -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach GM: Alberto Bozzo Reg: Dornach, Landkreis Muenchen HRB Nr. 43632 WEEE Registernr: 129 19551