From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21633C4363A for ; Mon, 5 Oct 2020 19:30:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A621421481 for ; Mon, 5 Oct 2020 19:30:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601926209; bh=bLrVrlAMFW138CfKgGgUmo2QXQO7OYK7GouqRp1dvrs=; h=From:To:Cc:Subject:Date:List-ID:From; b=X6z6zClbbQtqUKmQk4mLMBZH6lSIuGyQIjpNHxiQbKYaHGpkIade92C0tt5Wsex0y AyaLmDHotLvKz2brc4R76mcQXuH+q11eE40YrHb5yd91tjUFxX7tTBO/04u4XF9Cny IRO4ayfwNZX14+3Ic25tlQQIaQmNrKPyou4GUmJk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729387AbgJETaI (ORCPT ); Mon, 5 Oct 2020 15:30:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:43294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgJETaI (ORCPT ); Mon, 5 Oct 2020 15:30:08 -0400 Received: from localhost (c-67-180-165-146.hsd1.ca.comcast.net [67.180.165.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AAE2A207BC; Mon, 5 Oct 2020 19:30:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601926207; bh=bLrVrlAMFW138CfKgGgUmo2QXQO7OYK7GouqRp1dvrs=; h=From:To:Cc:Subject:Date:From; b=hsUMVkyf2NoICrYoNKKsQ92UXHb7NkC693e8RylFvyxrxi5Jz/fvJcdgk2+OHhK0h Z+9oYp74FwQRjT8F0snC0km2k9DpBaIp/9B04eG56R27o8d4opGUzUaxGsN+/x11XD ib02QlyBN8D8GGZQwyMOCVZpf5gNRMMzTYdlB47Y= From: Andy Lutomirski To: x86@kernel.org Cc: LKML , "Christopherson, Sean J" , Andy Lutomirski Subject: [PATCH 0/2] Clean up x86_32 stackprotector Date: Mon, 5 Oct 2020 12:30:02 -0700 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org x86_32 stackprotector is a maintenance nightmare. Clean it up. This disables stackprotector on x86_32 on GCC 8.1 and on all clang versions -- I'll file a bug for the latter. Andy Lutomirski (2): x86/stackprotector/32: Make the canary into a regular percpu variable x86/entry/32: Remove leftover macros after stackprotector cleanups arch/x86/Kconfig | 7 +- arch/x86/Makefile | 4 + arch/x86/entry/entry_32.S | 95 +---------------------- arch/x86/include/asm/processor.h | 15 +--- arch/x86/include/asm/ptrace.h | 5 +- arch/x86/include/asm/segment.h | 27 ++----- arch/x86/include/asm/stackprotector.h | 79 ++++--------------- arch/x86/include/asm/suspend_32.h | 2 - arch/x86/kernel/asm-offsets_32.c | 5 -- arch/x86/kernel/cpu/common.c | 5 +- arch/x86/kernel/doublefault_32.c | 4 +- arch/x86/kernel/head_32.S | 18 +---- arch/x86/kernel/setup_percpu.c | 1 - arch/x86/kernel/tls.c | 8 +- arch/x86/kvm/svm/svm.c | 11 +-- arch/x86/lib/insn-eval.c | 4 - arch/x86/platform/pvh/head.S | 14 ---- arch/x86/power/cpu.c | 6 +- scripts/gcc-x86_32-has-stack-protector.sh | 6 +- 19 files changed, 56 insertions(+), 260 deletions(-) -- 2.26.2