Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934705AbdC3T3Y (ORCPT ); Thu, 30 Mar 2017 15:29:24 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:36268 "EHLO mail-it0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934067AbdC3T3X (ORCPT ); Thu, 30 Mar 2017 15:29:23 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170328145413.GA3164@redhat.com> <20170329163335.GA23977@redhat.com> <20170329165554.GA24250@redhat.com> <20170329170442.GA24342@redhat.com> <20170329185041.GA24806@redhat.com> <20170330135100.GA25882@redhat.com> <20170330154902.GA27416@redhat.com> From: Linus Torvalds Date: Thu, 30 Mar 2017 12:29:21 -0700 X-Google-Sender-Auth: 4hnVPAmxGgSM7ALWr6OinB0oifA Message-ID: Subject: Re: syscall_get_error() && TS_ checks To: Andy Lutomirski Cc: Oleg Nesterov , Andrew Morton , Andy Lutomirski , Denys Vlasenko , "H. Peter Anvin" , Ingo Molnar , Jan Kratochvil , Pedro Alves , Thomas Gleixner , "the arch/x86 maintainers" , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 476 Lines: 14 On Thu, Mar 30, 2017 at 12:21 PM, Andy Lutomirski wrote: > > Huh? Aren't those REX prefixes interpreted as INC instructions or > similar in compat mode? Hmm. I think you're right. So it's not like x32 that runs in long mode but then would use the 64-bit ptrace interface anyway. Your statement that 64-bit gdb sometimes uses 32-bit compat ptrace makes me shudder. Why? Don't even tell me. I suspect I'm happier not knowing. Linus