From patchwork Thu Apr 16 13:23:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 227530 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 BFDD3C2BB55 for ; Thu, 16 Apr 2020 15:55:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8FF19214AF for ; Thu, 16 Apr 2020 15:55:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587052507; bh=OAYfl77dFe7z5NHt4SZRihGZVn4j8EZMzz9u7uf5uoI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=NgMV4KzOYbz0W8vwbDGnEeSaOsGAVZH+Bv6sFap0NUhUMI/1wynhvNgTSKDCvbFvP TR54eLsvPRkXmYh3++4dUmsg2lLXoH7ydjPyEldZrsUJlszn6XbE5r7z/4aD866oaj FtU+ndSrpDGYjJ1GKQjqurZf5vN0JuPXpvwFsQ4o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2896134AbgDPNaD (ORCPT ); Thu, 16 Apr 2020 09:30:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:40096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2896135AbgDPNaA (ORCPT ); Thu, 16 Apr 2020 09:30:00 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 000C0206E9; Thu, 16 Apr 2020 13:29:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587043800; bh=OAYfl77dFe7z5NHt4SZRihGZVn4j8EZMzz9u7uf5uoI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sG29FhVPHxc+V+cfRRfyKqaie2/pbmOAQrFM+RGvUND9u5HkbjWGpzjghIxYP15IX mQAC9UraDrPgIn21nPT4EVK8RhCZeWUlpH52ixSYh6PyVk7lpteAJIKoUDnbm1iqrn 7emJZd8Vd6jYYM3wKFECn6Y4wKH5QvwjIdqZrZfA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Frederic Weisbecker , Alexandre Chartre , Andy Lutomirski Subject: [PATCH 4.19 078/146] x86/entry/32: Add missing ASM_CLAC to general_protection entry Date: Thu, 16 Apr 2020 15:23:39 +0200 Message-Id: <20200416131253.580131849@linuxfoundation.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200416131242.353444678@linuxfoundation.org> References: <20200416131242.353444678@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Thomas Gleixner commit 3d51507f29f2153a658df4a0674ec5b592b62085 upstream. All exception entry points must have ASM_CLAC right at the beginning. The general_protection entry is missing one. Fixes: e59d1b0a2419 ("x86-32, smap: Add STAC/CLAC instructions to 32-bit kernel entry") Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Reviewed-by: Alexandre Chartre Reviewed-by: Andy Lutomirski Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20200225220216.219537887@linutronix.de Signed-off-by: Greg Kroah-Hartman --- arch/x86/entry/entry_32.S | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/entry/entry_32.S +++ b/arch/x86/entry/entry_32.S @@ -1489,6 +1489,7 @@ ENTRY(int3) END(int3) ENTRY(general_protection) + ASM_CLAC pushl $do_general_protection jmp common_exception END(general_protection)