Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4011761ybv; Mon, 10 Feb 2020 10:33:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxFyqOZTkFfeIvMrY4SbImxv2GSVacb07E07+ReFG9ZcvK3hwNXGa8rTgp4oPDDHEsatILV X-Received: by 2002:a9d:6f8f:: with SMTP id h15mr1948640otq.1.1581359624053; Mon, 10 Feb 2020 10:33:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581359624; cv=none; d=google.com; s=arc-20160816; b=QvwddMvlry+Vcm0lorGncAtZ1tqxDh5Elnvte3bq63MwgoPkR0i+cpf9tZwFF0N2c7 aTJcMAK/V7phim623TFuX8JJomnuvAuYihFpDDrq3p83j/W+tE7qk2JRR0KkFufN1wha jMRyW84ZFdBR//DNcCoN5QcKet4D8NP2rItcWQGplm2vD61b+yDIV4zL98qJ4GZYXoOB Q1Gk6MVDfUeDDyHmTYtIMUePxxNDQOnUncVvRiC9bIj9E/gfjpUZZ2+G3EcZaO7PUnO5 S9gcruw89COFkaLk3+HnDKlQyWxB3bCHkpoNnSRbA7JLJSpjdDoq6mSJbgYA+K5tTK6n AnwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ah53tJG2kEdSb2jrTYOGXeChilhie7bfMD31S0yM5BQ=; b=lWtYTxAdDD921aQik3+OXu0mMbtSZ1bUHL6rUqsxAiR5x5BbwUDkraMzpg9vzrbS9R 7ysyJWjnLlm1PIaX2maDxq4vx6aqVTODeoLiQMfTbxPwitumcCWPppqtbFAG+F0wUFRE hxWjP0kjZgA2B20jgj1iUvF3PeK05kj2VvELHtzY9UcIUPAcs8dSLNP4nkw2Ne4bSwYd B7/8sDUAdCS1rph2TL6E0QZakcHoQt2M426U6lcVMezRdFcRt/BBWwyy5zePB7TG6Xx7 PsTa51vZc7y2Dd/+/yHxUIFvTTdZ0qw4aKaswdB24Lp8zPsp3v65b8UWtyU5a9s3s6+Q VgKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bkr0Q6KX; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si493714oix.49.2020.02.10.10.33.32; Mon, 10 Feb 2020 10:33:44 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=bkr0Q6KX; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727600AbgBJSdW (ORCPT + 99 others); Mon, 10 Feb 2020 13:33:22 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:53950 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726816AbgBJSdV (ORCPT ); Mon, 10 Feb 2020 13:33:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581359601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Ah53tJG2kEdSb2jrTYOGXeChilhie7bfMD31S0yM5BQ=; b=bkr0Q6KXzjjBFdM241k7EBptI1ertoXL5FTsDq4PxEXgkuXQrAyEFAeTBB0X2Qroj3OVD1 xwLCyjRyVjaFzsj1WEvuBBpXJ41PamP4hunFs3i0IQ3CDWMN3E87BRaVf33hK4z2paFsYM djnffLHh1AzhZGJD7Cqfpfu5fSqx+6w= 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-20-kXaWGT4QOn6i6j4SdH88Hw-1; Mon, 10 Feb 2020 13:33:18 -0500 X-MC-Unique: kXaWGT4QOn6i6j4SdH88Hw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 56DA218A5502; Mon, 10 Feb 2020 18:33:17 +0000 (UTC) Received: from treble.redhat.com (ovpn-122-45.rdu2.redhat.com [10.10.122.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id DB19810013A7; Mon, 10 Feb 2020 18:33:15 +0000 (UTC) From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Borislav Petkov , Julien Thierry , Peter Zijlstra Subject: [PATCH 0/3] objtool: Relocation sanity check for alternatives Date: Mon, 10 Feb 2020 12:32:37 -0600 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patches 1-2 are in preparation for patch 3. Patch 3 adds sanity checking to prevent unsupported relocations in alternatives. Josh Poimboeuf (3): objtool: Fail the kernel build on fatal errors objtool: Add is_static_jump() helper objtool: Add relocation check for alternative sections tools/objtool/check.c | 48 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 9 deletions(-) Josh Poimboeuf (3): objtool: Fail the kernel build on fatal errors objtool: Add is_static_jump() helper objtool: Add relocation check for alternative sections tools/objtool/check.c | 48 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 9 deletions(-) --=20 2.21.1