Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1999419ybh; Fri, 13 Mar 2020 11:07:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtojQkvNoxp5aHwWHrzYsv2RcMspoHufWMIdnzXpuLTxd1Qwet0VvQ7YYkRgS26/zzc7peX X-Received: by 2002:a9d:554c:: with SMTP id h12mr12518862oti.16.1584122857416; Fri, 13 Mar 2020 11:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584122857; cv=none; d=google.com; s=arc-20160816; b=nzY/nA6fK4naWlV1JzLuKj8FcKMpCGzlJB8DyvyA6wo69j4g2Vye2kMLrJyuEaSlpe EYk2CKndC01+oTl4DpU2/J6jWKHzdVVvHDWj5aXSiuN8ZgJM6KQ4iEATsres+L/fDq4P SPOB/1e+ZSfjupOHEPwMkn62jeNPtxBQf8yaG6tN8rJCPKk6namGiLUg7zf19OPZfelj wZNHpVbIAnVUoEH3cb+u35Ngdwo7bl6zrpvpLR/28VdgGt35RMZ+Mz2ICz1oHyYNs70y /5+5OC+7+lZ7jSAIF2ZLgLHpteW22rQbdd6+DCvyfBW8vMxm/a9ck4Ly/YZDrD8LklMe I3VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Nj2I7kjJxCSlFJkWrglYuXeSHt8xg948lA+s9DV1Wr8=; b=qlNngAT+lacVNgIwJMXm+myeX2gxAsYsI4+puuw606AYwDsLt1nupC0DdlPSJ4qS0W PQBnU/ulXRNkMOI9+OtMLIGlYri9CFBSafOMD5tGuAay5uyNaMRJk5QFwjLT76C9SFlX /6WQJ4Ht/lQhCyD8WPIRsfb3J8VrX4Fy5vVDMHlwZRoRgSZBnha+1Vc5DPH8HV7vTSXy 4PS8gCCDsAAHIqB83cJibVSLOwishU5Paohi1wAoI/D/xMCJ0IRASILbFCc7oVYttpKE yZ/ujbWC64avAQueb9ZT3B6UwK/pITI3eglTg1zZZ1taMqZsf0E5fucppB/GgIjBgHLR bUVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="T5A/rbTo"; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17si5049596oto.70.2020.03.13.11.07.24; Fri, 13 Mar 2020 11:07:37 -0700 (PDT) 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=@alien8.de header.s=dkim header.b="T5A/rbTo"; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726557AbgCMSG6 (ORCPT + 99 others); Fri, 13 Mar 2020 14:06:58 -0400 Received: from mail.skyhub.de ([5.9.137.197]:47686 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbgCMSG6 (ORCPT ); Fri, 13 Mar 2020 14:06:58 -0400 Received: from zn.tnic (p200300EC2F0E1E007CE2C412F47CBB57.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:1e00:7ce2:c412:f47c:bb57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 326C91EC0CFA; Fri, 13 Mar 2020 19:06:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1584122816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Nj2I7kjJxCSlFJkWrglYuXeSHt8xg948lA+s9DV1Wr8=; b=T5A/rbTohnBzc98aKTALtQcB5Eq8v/oYMv2CxpjSbasupv53TSTk0fYoe24ZcRt8+FJfdf ooC59ozQFkTrWCwBUR9p6sMYYMXwUayWciHWMe1tU37NI7LCo6qNeKunYsf0YcXjX40VTL IIVr2/afPmaGCU8NlMyPvfavkRIdHlo= Date: Fri, 13 Mar 2020 19:06:58 +0100 From: Borislav Petkov To: Arvind Sankar Cc: Hans de Goede , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] x86/purgatory: Make sure we fail the build if purgatory.ro has missing symbols Message-ID: <20200313180658.GE8142@zn.tnic> References: <20200311214601.18141-1-hdegoede@redhat.com> <20200311214601.18141-3-hdegoede@redhat.com> <20200312001006.GA170175@rani.riverdale.lan> <3d58e77d-41e5-7927-fe84-4c058015e469@redhat.com> <20200312114225.GB15619@zn.tnic> <899f366e-385d-bafa-9051-4e93dc9ba321@redhat.com> <20200312125032.GC15619@zn.tnic> <20200313044235.GA1159234@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200313044235.GA1159234@rani.riverdale.lan> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 13, 2020 at 12:42:36AM -0400, Arvind Sankar wrote: > The real problem is that there exist CFLAGS that should be used for > all source files in the kernel, and there are CFLAGS (eg tracing, > stack check etc) that should only be used for the kernel proper. For > special compilations, such as boot stubs, vdso's, purgatory we should > have the generic CFLAGS but not the kernel-proper CFLAGS. The issue > currently is that these special compilations need to filter out all > the flags added for kernel-proper, and this is a moving target as > more tracing/sanity flags get added. Neither the solution of simply > re-initializing CFLAGS (which will miss generic CFLAGS) nor trying to > filter out CFLAGS (which will miss new kernel-proper CFLAGS) works > very well. I think ideally splitting these into independent variables, > i.e. BASE_FLAGS that can be used for everything, and KERNEL_FLAGS > only to be used for the kernel proper is likely eventually the better > solution, rather than conflating both into KBUILD_CFLAGS. Hohumm, this has come up a bunch of times in the past in conjunction with boot/{,compressed/} Makefiles too. I'd be open towards reworking this properly but I'm afraid it would cause a lot of churn and breakage and it is hard to say how ugly it would become before someone actually tries it. ;-\ -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette