Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758692AbbGHTYP (ORCPT ); Wed, 8 Jul 2015 15:24:15 -0400 Received: from mail.kernel.org ([198.145.29.136]:47990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755535AbbGHTYL (ORCPT ); Wed, 8 Jul 2015 15:24:11 -0400 From: Andy Lutomirski To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Weisbecker?= , Rik van Riel , Oleg Nesterov , Denys Vlasenko , Borislav Petkov , Kees Cook , Brian Gerst , Linus Torvalds , Andy Lutomirski Subject: [RFC/PATCH 0/7] x86_32: Migrate to new entry/exit paths Date: Wed, 8 Jul 2015 12:23:57 -0700 Message-Id: X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1825 Lines: 43 This is a review version of the 32-bit asm-to-C migration. I think it works, but it's not yet well enough tested. I'm a lot more familiar with the 64-bit asm than the 32-bit asm. Al is cc'd, because some of this partially reverts some of his old changes. The vm86 stuff especially needs much more careful testing. Brian, since you're playing with vm86 now, can you take a look? NB: Even if this code turns out to be perfect, patches 3 and 4 need to be squashed together. Patch 3 is a hack to temporarily add an assertion that the existing asm works the way I think it does. The assertion doesn't apprear to fire but, again, I need to pound on it harder. Andy Lutomirski (7): x86/entry/32: Remove 32-bit syscall audit optimizations x86/entry/32: Fix an incorrect comment for work_notifysig_v86 [TEMPORARY] x86/entry/32: Sanity check for work_notifysig x86/entry/32: Finish removing bogus kernel-mode check x86/vm86: Teach handle_vm86_trap to return to 32bit mode directly x86/entry/32: Use prepare_exit_to_usermode and syscall_return_slowpath x86/entry: Remove do_notify_resume, syscall_trace_leave, and their TIF masks arch/x86/entry/common.c | 57 ---------------- arch/x86/entry/entry_32.S | 130 ++++--------------------------------- arch/x86/include/asm/ptrace.h | 1 - arch/x86/include/asm/signal.h | 1 - arch/x86/include/asm/thread_info.h | 16 ----- arch/x86/kernel/traps.c | 12 ++++ arch/x86/kernel/vm86_32.c | 8 +-- 7 files changed, 26 insertions(+), 199 deletions(-) -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/