Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1467623ybv; Thu, 20 Feb 2020 21:11:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyC5emc5eNJtW26wLX9FX4PRlL3zRvDa2PUXNNYD04n8BrCtZrw4RaMgA0fM/ZKbbz0r/lA X-Received: by 2002:aca:5646:: with SMTP id k67mr563875oib.166.1582261868283; Thu, 20 Feb 2020 21:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582261868; cv=none; d=google.com; s=arc-20160816; b=cAo76GnUEg7mfumqQnQFHEZuSt9Qia//jKofyZ+rLLLmmeLDIjmJqxarUDjPhFFmSY W5jWfFhlXuYGnuazdxJlvO0c0Y5sZerKm24Q18mR9Em5RXwik5nGMz5sxlhADek3TZ+O x7zK12yir5bQ7ZASkz2dDa0fBUb8NxaJIamxxER4s87d/l9WNRV69Tk+/K9UY6J53DXj kYGBiTfSKYGm8kAedtnH12z2WhjJfDJ2ND3exfkfDBPKmZzMxwUv8vP2adAvWNDNrEL1 7NKL67Zj9L8SfFcrvoxQmezb/IcnjlPvzCB4pmU1jIA2IETlEznvd9OHhcxXg7IJtCyY foiQ== 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=Qx1TzrvyogNiRSqJXStGPZvREBzcHURDJFmU6BgZWjc=; b=BX+O2pBGLhJMKjYh+uQCW8fXvvRhIDDkFNQjUidATITh7cJJUB5GBzJFNfG2uQjSEX lk8Df8j2w7suNz7GE43gipFRVB+Appo0PfX3nrppZShB8nC3gJ6YxwoT3moqElhHPKxs wQ6/FAGITCg8xqRY3iS+Ey1yh5v1QhBbh8MqXah7xWHM9AoEQfQFDvwjwTtxz8xp2Tgj YNmIMqhvzciN9nl+Ppup9tooTyIfwcWmeYO3VFuTpt0u0kjGXm37RqZDIZOsJ8vv+F3X C1CP4U5mJcoNvw1JYGoMzQl1+CEWPea02p7VyCFb0RgzmQfD7VE84Fuuhr2AFbinsuNu 0wFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KEVWFg31; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q25si991733otg.128.2020.02.20.21.10.40; Thu, 20 Feb 2020 21:11:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KEVWFg31; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726100AbgBUFKe (ORCPT + 99 others); Fri, 21 Feb 2020 00:10:34 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:43843 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbgBUFKd (ORCPT ); Fri, 21 Feb 2020 00:10:33 -0500 Received: by mail-yb1-f194.google.com with SMTP id b141so574426ybg.10 for ; Thu, 20 Feb 2020 21:10:33 -0800 (PST) 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=Qx1TzrvyogNiRSqJXStGPZvREBzcHURDJFmU6BgZWjc=; b=KEVWFg314052tWozaaoNWzgxDGtQyUG7wPc9cMULhcvnHXywOY4cueaHFTxGmlsH5T D5SmiZKF6kx10F20kCX55hIsMzvVEzbAq421MUKShN8ooaGcmXz59DV7UHVqcqggVWDC 1oIyxLOooSav+dBD0Esace/XpwNd16TkTXL+BluYL6oxdg6Ub+Uk99kG5CXxmM3Z3QHc 0eSpNX2cWC2JEh07k7PO5ZRCsMHloL/MRiwAsmZlyQ9H4Uw/wpfincNf13ahzd8sWAgk RYDfU9YLhTmshBk4BSrvTq/Y+q2RjdyxivOGoE11athr20lWc1RQMuGSm9PnGMNabBY6 XB1A== 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=Qx1TzrvyogNiRSqJXStGPZvREBzcHURDJFmU6BgZWjc=; b=n9h3SmcxPq5NLzm5mLcaxs3clxDEw7zBSrjVfrab+3EcFy8A3de1drm5PCBtfQIYb1 yWFypVrH4TmBzF51whS8mw2lzQAH6nWoiehLYRPK1Fos4TcpNBDHXIAeD89jBfbvoDp/ A796I0PXiQrbvAuTCw1UocpIlvZJ4V9hz7eS+qKG7X+h8gZ/PAGAnF82lUjvQb0Pp7bX 8A2HotsIRiHJ7sp2+rpviEzW3hrZrGH6Fs0w9SLinz3VuZXt35bdxxHygyeVjbSq45JI VzpQbKnPa5un2KPYtPO1KXrZRkKo7F7ZUwWzSHRbdQYxqyGWsM5RZX64bI0kGNNFtOrC wuRw== X-Gm-Message-State: APjAAAW43cmHZ7Qk+nuSU77+Dt85HtuTfJE8Dofxogx3jFTR3VZrGO/1 iq3f+QRIYZW2vmSlZtCKUz7k9qY= X-Received: by 2002:a25:74d3:: with SMTP id p202mr29238862ybc.493.1582261832671; Thu, 20 Feb 2020 21:10:32 -0800 (PST) Received: from localhost.localdomain (174-084-153-250.res.spectrum.com. [174.84.153.250]) by smtp.gmail.com with ESMTPSA id a12sm840904ywa.95.2020.02.20.21.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2020 21:10:32 -0800 (PST) From: Brian Gerst To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Brian Gerst Subject: [PATCH 0/5] Enable pt_regs based syscalls for x86-32 native Date: Fri, 21 Feb 2020 00:09:29 -0500 Message-Id: <20200221050934.719152-1-brgerst@gmail.com> X-Mailer: git-send-email 2.24.1 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 This patch series cleans up the x86 syscall wrapper code and converts the 32-bit native kernel over to pt_regs based syscalls. Brian Gerst (5): x86: Refactor syscall_wrapper.h x86: Move 32-bit compat syscalls to common location x86-32: Enable syscall wrappers x86-64: Use syscall wrappers for x32_rt_sigreturn x86: Drop asmlinkage from syscalls arch/x86/Kconfig | 2 +- arch/x86/entry/common.c | 20 +- arch/x86/entry/syscall_32.c | 13 +- arch/x86/entry/syscall_64.c | 9 +- arch/x86/entry/syscalls/syscall_32.tbl | 818 ++++++++++++------------- arch/x86/entry/syscalls/syscall_64.tbl | 2 +- arch/x86/entry/syscalls/syscalltbl.sh | 33 +- arch/x86/ia32/Makefile | 2 +- arch/x86/include/asm/sighandling.h | 5 - arch/x86/include/asm/syscall.h | 8 +- arch/x86/include/asm/syscall_wrapper.h | 372 +++++------ arch/x86/include/asm/syscalls.h | 29 - arch/x86/kernel/Makefile | 2 + arch/x86/kernel/signal.c | 2 +- arch/x86/{ia32 => kernel}/sys_ia32.c | 130 ++-- arch/x86/um/sys_call_table_32.c | 10 + 16 files changed, 722 insertions(+), 735 deletions(-) rename arch/x86/{ia32 => kernel}/sys_ia32.c (83%) -- 2.24.1