Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1365105imi; Sat, 23 Jul 2022 03:45:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u3mjDa1RgKASEHWEzK+KcPPB+B+NsrDLMftMaqwY/IBSEHmHeX3ZPxfBZvImEhk3vK1/hx X-Received: by 2002:a63:1213:0:b0:41a:8d6b:3e80 with SMTP id h19-20020a631213000000b0041a8d6b3e80mr3403458pgl.388.1658573149820; Sat, 23 Jul 2022 03:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658573149; cv=none; d=google.com; s=arc-20160816; b=omWxDpv+i+63llinK2DDQbrPy1aE2g1T+0S+x1PiRnjDnys3wCiEGwk2tjwcrpoV7K 064IPPn2PEyBJ5TfKTZFHWElBFT92IqVrojy6zUqtB8StdrOkTDAn590pVYmMRKPHb+Q QW+Y/bU4rzw26EXOXxvSDeNrCznPi7Exbe3kmGYRYZUGSnQMXLwgvzOjlVGJk5kVJreP gVzmmiIWJtaerzn1eEahzU2SgeDJTVDbs+dSVoZbt9FnoSMo4zSg3y8t1k+yQ7J4711l ktO/eEjC+us56CLVLHAzuwmHxglEthriEQBl7svTqpmpxS3uXWnShZzMKNyU+TS8JHAq 6jiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=446iGe/Nboje7RNBxZmUeoUotQh37JuUF81iOTe72jU=; b=PQLtGuWI5jvDoyAsL4ezv5eWial7riHEryRIkyh3Se74aMNxUScNoD6cAoAqVKZRGA 5Iw+e/5nhQNsIzHiNn6fHV+jHLH7f5FHXF8gVoOKPSJwDrNfy+ujDRn5UJb5Lor11xKq +CnGioPoraYqE6AK7lLDZ7CnyxzRMzY4bbqWWjQ6VoCa8NuHXnksMz9u+OUaCTiflo+e Qe215OW079jp+83We6pC562RrFJ6YBtXUFcWYXOUWgtDR4hvc4jwjmKpmLVDDEimZn6i 2uxDfEYKnNwHEl9pz0pecbhpJMnWKlsML4pewM32YsCveu/yALlpJHhIKj6HlWABXMAh ZIsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KdqwM1Rl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay8-20020a1709028b8800b0016c192735f1si7481312plb.220.2022.07.23.03.45.35; Sat, 23 Jul 2022 03:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KdqwM1Rl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238497AbiGWKFr (ORCPT + 99 others); Sat, 23 Jul 2022 06:05:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238242AbiGWKEo (ORCPT ); Sat, 23 Jul 2022 06:04:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4631E18E0C; Sat, 23 Jul 2022 03:00:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0509B611CD; Sat, 23 Jul 2022 10:00:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FB78C341C0; Sat, 23 Jul 2022 10:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658570410; bh=vg9lEJu/LLQWjpmK0UYvHuBX4PCo2gXqubrhZY/0Pjs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KdqwM1RloZyOm4Eq9fuSlLXrgPdWz8mN6mbG1FfIDGa5rYyJhquqzSN1L6x0NvGU1 I6s7IgRw7xN+BZfFdFg6HVhGMAd307jXupqjLBbnUOw5s4hW99E9T6BUbP9GMNs6pb 4wG9AoGcMLoqoWZfB5Y8KFpUhCHLeTCrzqpUkyRE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thadeu Lima de Souza Cascardo , Ben Hutchings Subject: [PATCH 5.10 077/148] x86/realmode: build with -D__DISABLE_EXPORTS Date: Sat, 23 Jul 2022 11:54:49 +0200 Message-Id: <20220723095245.734927578@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220723095224.302504400@linuxfoundation.org> References: <20220723095224.302504400@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thadeu Lima de Souza Cascardo Commit 156ff4a544ae ("x86/ibt: Base IBT bits") added this option when building realmode in order to disable IBT there. This is also needed in order to disable return thunks. Signed-off-by: Thadeu Lima de Souza Cascardo Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- arch/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -31,7 +31,7 @@ endif CODE16GCC_CFLAGS := -m32 -Wa,$(srctree)/arch/x86/boot/code16gcc.h M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS)) -REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING \ +REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ -mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)