Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2488922ybt; Tue, 16 Jun 2020 07:25:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNXIPxSsQvsaZZ+V2Z2wYCTU1bh/nxPGfJjqkmIou3efNYjEkVqemW24gmT12ggFvFwZ1Y X-Received: by 2002:a17:907:207b:: with SMTP id qp27mr3264746ejb.532.1592317540484; Tue, 16 Jun 2020 07:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592317540; cv=none; d=google.com; s=arc-20160816; b=LjQcgTZvZEQjRzue1wcX6ynNR0r5CB1r9YeYYT24pVyyr5TwgTvQPmKmBxYeU/m7hv n62mGx3L4pMqZ6zGJzm1ZstjaGtdbSTxfFCJ1kBmpSnk+ApPZgNekMgxC+ymzXyvzb5l EEs++ImrXjCPeHoa4aMdlEuprdj1Qv11yMGQX69FyYl8VemwVh9nZpFJCKDGuwcyygEe vYEnBtWF4cNs0GIEyGj3LPVQcse7vBpF9u12zEjRRq2VgQiksqBtD9+qCP37xCQ2AgR/ kQ6xIMGkNBJ09Nw2lS4/a+KebG6SUc4cD4QvQs+7fEfpGEMVfjDRmyRf0Pd4ElTqxBvX q3fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=b4U1AfLGfbsqzclrKp54jPi9In5PnDmi1Caq80dY41A=; b=omuMga/ZmACZB9dsJKZB27uG1292O4e+cGrPmJaIxi7tEnMfSZxluZULQIpgGQdz6l f1FaB/Ki5rn+wXdF1wVAhLeQlpms8YvsAYBKAUUFD7fuh8gdANOU71VTlMXoADruoEmu EgUBh9EvLTtOSIwyyjsfHWrkg1KJMtC2bgz13Evffuq8NZ9jO2APcF7Uyf7crvZhidOu ua3wzB9HHgXksyiiKvcdHGoF5Y3NacAlAjXv0XynXfVjZUUR+377I2fVX9Viy5ECkWPt 31ncTTQR7viD424xcPRl7uG8hQP8jinX3ElIqByIb6Sb7Ix70voF3QZV6kZPZS4aa1wC sIew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cx3qeeet; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si10395943edq.256.2020.06.16.07.25.16; Tue, 16 Jun 2020 07:25:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cx3qeeet; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbgFPOXa (ORCPT + 99 others); Tue, 16 Jun 2020 10:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbgFPOXa (ORCPT ); Tue, 16 Jun 2020 10:23:30 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07907C061573 for ; Tue, 16 Jun 2020 07:23:29 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id q8so22081654iow.7 for ; Tue, 16 Jun 2020 07:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b4U1AfLGfbsqzclrKp54jPi9In5PnDmi1Caq80dY41A=; b=Cx3qeeetNETMSLLjMLDoFlb+lDoZ6kuK8weLKFqIrlpu8dK9u/vI9KmcHO5Z3bfam/ kBTT06m7baIxeaXc/2T01peE5OR2v6ehrVU+BcGVUKhxFhxk9CbJ32e/5GeQSDjvf9Fc NtqtHQGxodM2SiyZtM/CNAC8H7frCOUnO5fzg9emG16IX0VNK41as/IGdKzNja7Ji/Yw 7KdfdNEzbFghL7ky/XQuUX3WRxIqcGzmXF2EA7lUjANtq1Nkx6NTxsLBTpFQuI63V3z2 0XrB42HmUD4QRS2aWcCjNtKce8skyQwcTDPcVmlva6nt4SrtYvvvqqzrgAVxjkvxHZe8 M1qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b4U1AfLGfbsqzclrKp54jPi9In5PnDmi1Caq80dY41A=; b=Df2e2JvlFJyGQ/jRg/ZYsrdTWauNLfLIBAtUgEC0W94Hiihi3nH2he4mzaxJe1VHfd 336aTVTGnKrGE41BpGH4zJ87zahgjjvt9lQSvteC+a9S3cvlIvszBrdS+0Hx/ZeGK5Hx QW5c6/AA6OtQ/DgqOKO42rJ1wCAfzonkRxmHdW6JbgSh3mimnDkwYLK+/rZtod1A8aGx GblCDebtN4f6HcsDlvcG6ijQ2oT+9SmTj2TyXl/E42ODsI7WEUOIsGlIf2As5sacB3Fy 5C1X203Ib7XMFjTG9jQG9I9yMLZu3jYJfNlnR+sy6uuvOlHg6YLRvdG+0nGOwdgdh6MZ 0NdQ== X-Gm-Message-State: AOAM5338/XFAtmq308PcA7zv87FxkIY331xy40pHGHcTvg0hraVmOPro 3fErO3/NErosbXTjAjzXoT2f7eVGwg== X-Received: by 2002:a5e:981a:: with SMTP id s26mr2914477ioj.131.1592317408955; Tue, 16 Jun 2020 07:23:28 -0700 (PDT) Received: from localhost.localdomain (174-084-153-250.res.spectrum.com. [174.84.153.250]) by smtp.gmail.com with ESMTPSA id w78sm10049881ilk.14.2020.06.16.07.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 07:23:28 -0700 (PDT) From: Brian Gerst To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Christoph Hellwig , Arnd Bergmann , Brian Gerst Subject: [PATCH 0/2] X32 syscall cleanups Date: Tue, 16 Jun 2020 10:23:13 -0400 Message-Id: <20200616142315.375918-1-brgerst@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig uncovered an issue with how we currently handle X32 syscalls. Currently, we can only use COMPAT_SYS_DEFINEx() for X32 specific syscalls. These changes remove that restriction and allow native syscalls. Brian Gerst (2): x86/x32: Use __x64 prefix for X32 compat syscalls x86/x32: Convert x32_rt_sigreturn to native syscall arch/x86/entry/syscall_x32.c | 8 +++----- arch/x86/entry/syscalls/syscall_64.tbl | 2 +- arch/x86/include/asm/syscall_wrapper.h | 10 +++++----- arch/x86/kernel/signal.c | 2 +- tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 2 +- 5 files changed, 11 insertions(+), 13 deletions(-) base-commit: 83cdaef93988a6bc6875623781de571b2694fe02 -- 2.26.2