Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp242262pxb; Fri, 15 Jan 2021 11:49:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJz54BjXn8MFYi0hIStYZlKTE9+lHO9g/DrleMphSS3dDJR6N6+i3iQ0xaeC3cl/3GOPts5I X-Received: by 2002:a17:906:1291:: with SMTP id k17mr10533754ejb.288.1610740190833; Fri, 15 Jan 2021 11:49:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610740190; cv=none; d=google.com; s=arc-20160816; b=rxsODz4V6VhyIjBefsI9sXXCCSU11az/tzQLmAivWp5aMsHqDMrrpKUFUXWrRbklrS yojW1FiNy/hEvXynU2TAPt9hcP8t6YEK6moj5iRYxNo/aVPHbJqnfeQgi30M09bJ6T5C iIiTaFwVSeb/40JORmGvDgtEzzqxnmmvt/CiD8eKXYTtfxSs+ZKvp9fz8UPwkJq4Zlfd ydqaVYA0nQDWVvL4gCQBl/+Z34j4tWroq2BLgjrm6tCt3OPumz+fY9KOzkJGUvHPr8hY /JZroDqi5kIH2SkQBxI4t525rn5YCM9Vw34HVsmKe6WVfzNJpqCFoCC6G6GkeeULscwC mgLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zRvyAUBPTrocJOciUmV7p8wLncB1y5eW7TQ3VleD/mU=; b=eT/QiJ7l4xR520HwxSzPAui/ZDHZEmXOXNHqyvQjLSO/85JRhdqgIjs9GtCO8z8Gb7 rQ0tut8t9Kur65tHt0gr9aCJ8URIFHEHQAB9akvBxtS5d32lh5GUZxpiLXWmzqYarNog 39MIRmpoT+porHjnRyiv36yLeSUYZgmzX13kU7+gx5sqH2lKecUmC/9OBwfAZDfsB4CD vlfOaRDokhvhnmsDDxHRmHAGr8ypdZRmNPRFAWrbVerBbIZlWmFoSkn+JvQLT465p5UP M6YfP+MTRfLbF+uzQjUejUaNeNDYmFJq3/9Wvszgp+up/I31LEKFVMugyUoOh5+j/D2x cS1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BV06vZmz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si2877438edc.402.2021.01.15.11.49.27; Fri, 15 Jan 2021 11:49:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BV06vZmz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387617AbhAOTrv (ORCPT + 99 others); Fri, 15 Jan 2021 14:47:51 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33758 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbhAOTrt (ORCPT ); Fri, 15 Jan 2021 14:47:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610739983; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zRvyAUBPTrocJOciUmV7p8wLncB1y5eW7TQ3VleD/mU=; b=BV06vZmzydOthf+8Y/gidS0Uc7E/mUX7/2FTu+hqFZPVP7vOlmkYfYYKEHEgDhCdwClG3H ri2TDvBkAY+FcM4WgD31CozeuAmiluNBoiJypWTeiOoz7GAnAf86m9JoHMFTakmfjYZS3Z VE+5ygSwX2lnrVUUZL0jbOd0+ETrpnA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-417-zQbkX_wvNbynTqx47htJHA-1; Fri, 15 Jan 2021 14:46:13 -0500 X-MC-Unique: zQbkX_wvNbynTqx47htJHA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 329DF18C89C4; Fri, 15 Jan 2021 19:46:11 +0000 (UTC) Received: from treble (ovpn-116-102.rdu2.redhat.com [10.10.116.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C20806F7EF; Fri, 15 Jan 2021 19:46:08 +0000 (UTC) Date: Fri, 15 Jan 2021 13:46:01 -0600 From: Josh Poimboeuf To: =?utf-8?B?SsO8cmdlbiBHcm/Dnw==?= Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Sami Tolvanen , Sedat Dilek , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, Miroslav Benes , Boris Ostrovsky Subject: Re: [PATCH 14/21] x86/xen: Support objtool vmlinux.o validation in xen-head.S Message-ID: <20210115194601.dkilnfkp6xnhai22@treble> References: <02a3b646aa20035c9c700c5b6d7897a9f898ba24.1610652862.git.jpoimboe@redhat.com> <43d47af1-6735-6651-db11-4489c86c62a2@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <43d47af1-6735-6651-db11-4489c86c62a2@suse.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 06:17:25AM +0100, Jürgen Groß wrote: > On 14.01.21 20:40, Josh Poimboeuf wrote: > > The Xen hypercall page is filled with zeros, causing objtool to fall > > through all the empty hypercall functions until it reaches a real > > function, resulting in a stack state mismatch. > > > > The build-time contents of the hypercall page don't matter, since it > > gets mapped to the hypervisor. > > This sentence is technically wrong: the contents don't matter, as the > page will be rewritten by the hypervisor. Thanks, updated for v2. -- Josh