Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4366103ybv; Mon, 10 Feb 2020 18:00:00 -0800 (PST) X-Google-Smtp-Source: APXvYqz6zvVKgHOuZB6tB8ni5+ECxHl8fzqu70uh3lPphChjF3rClUgh9REnOipgnSVFIZaeyx9d X-Received: by 2002:a54:4085:: with SMTP id i5mr1432942oii.17.1581386400465; Mon, 10 Feb 2020 18:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581386400; cv=none; d=google.com; s=arc-20160816; b=GYdLNdBj6jaeRMGfIoWHJsxmUSsD7oPYYMeZ/2bkMyBvtqICXbTCCo8R2gSLCFZZPv M3+WzPwDQdBAPhH5gsSW7IvgbcUCDUyteD5Q3eUvn+WXglss0aksyVPSoNTRzXGZeI09 rF66PeNR3MKf6zavosqqH1CnDW+CHDX2x/9R8k2R3ouJ0e1icx+bbka/X/GN0NheR00X EHunxbBJiRAqDo43z2Koj2rHKzRfuzD04X4zro4tnzdV5K7/s0kWx+M/0jx0RmfLbhLL IR1+8QbRGleOV2tCvFkKr0OFWqoutXRlwWYL01FwjfcmVcoJNvEETRTiHSEyy576B0e3 MnsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dCLotiA/8gZdYFx7pzp6l6JRsUzdkxjw1MIKACjKDDE=; b=GDjlCSrCgArvJQ2Y/T+nMEU2q7Ac0CEErFoN3IZXbtc5aygpJmr/L0m1YHCaTVhKbT y8N9ztlz+QlRyDvMiMfcViOcw4P3+4ARiGP+1GR3eMMI917hN1hwEgZlqXuEWiCZWnb3 cwrxWxouSA6xIIHecDMehD1OeHdqLq+QhhUiIS8e42RZJ1pEiijz+BUbcAF4nuHbUp0b iwSmWLUIsk8dPhvtmP8PfkJD+rNiMcMPiZHfRxOiZ9dtqxJ9qkIEz2sg3ij8XurLYEn3 asTTn9npEa0TUvaC6/HKpwOEypOQ7J3+crrKe4CPH0dLJj715h8B5IuvxeqHeypcC+Pa lfDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=gE3blOQ6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si1156749otk.42.2020.02.10.17.59.48; Mon, 10 Feb 2020 18:00:00 -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=@linux-foundation.org header.s=google header.b=gE3blOQ6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727830AbgBKBwD (ORCPT + 99 others); Mon, 10 Feb 2020 20:52:03 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:36865 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727605AbgBKBwD (ORCPT ); Mon, 10 Feb 2020 20:52:03 -0500 Received: by mail-lf1-f67.google.com with SMTP id b15so5799197lfc.4 for ; Mon, 10 Feb 2020 17:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dCLotiA/8gZdYFx7pzp6l6JRsUzdkxjw1MIKACjKDDE=; b=gE3blOQ60heY7R5Seu+lD0bGhcXgdKp1C3sGRKJ2XuJfXP7+myASE/B+e7of+d8Jqt Xfbb2WrblrANuP3AWlcydqAgT5jQWGcj6/1Z2dE5uzYAwxRrKeAByR48GoWnlPkVN+iO UjXz6X5IK/cz1Mj3+t5zR6/ffTJZWtV9mH5Q4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dCLotiA/8gZdYFx7pzp6l6JRsUzdkxjw1MIKACjKDDE=; b=HHVJpDYicOSFiJ2g6E0iOn9T29U16WoyM2YQ3K1ljQt0yUzplnB+7fbKUMzm2HqNPa 4mv9jA3f1Aa0jPVYsGDw0va2QU6gxiWAyeKnZzFmxM77ivbL40fNUjSgNPGFoWVm0MCj 7e7T1fB+OEJVsaihM2mcX2CmEFi+QjmFqp7MapiR8LsSUCdXXFzglpc8BQ1FiV3WkvFd L6Vc2c0QyJj6lMeyji0QyU7c7RPJ/7SZOhJjUcbbPSdLzRkhl/NUsep0sd5sm9veBTMv bR7Isytcza0kon158KTrDWz/5ZusqVaog86O3mNLOw1TNUHX6jTF/4lGDjgWHT5CtZDZ 1xJA== X-Gm-Message-State: APjAAAWAsv6M9uMvyeuq3eOCsuUh/iRzHQhfTaDmRvPGVcsaMpBJv41Y Yn/fEQbRfpnNuJViqaHVB8eEJpRjXHM= X-Received: by 2002:ac2:54b5:: with SMTP id w21mr2187714lfk.175.1581385921369; Mon, 10 Feb 2020 17:52:01 -0800 (PST) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id l28sm887996lfk.21.2020.02.10.17.52.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Feb 2020 17:52:00 -0800 (PST) Received: by mail-lf1-f44.google.com with SMTP id b15so5799162lfc.4 for ; Mon, 10 Feb 2020 17:52:00 -0800 (PST) X-Received: by 2002:a19:4849:: with SMTP id v70mr2256698lfa.30.1581385919816; Mon, 10 Feb 2020 17:51:59 -0800 (PST) MIME-Version: 1.0 References: <7b90b68d093311e4e8f6b504a9e1c758fd7e0002.1581359535.git.jpoimboe@redhat.com> In-Reply-To: <7b90b68d093311e4e8f6b504a9e1c758fd7e0002.1581359535.git.jpoimboe@redhat.com> From: Linus Torvalds Date: Mon, 10 Feb 2020 17:51:44 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] objtool: Add relocation check for alternative sections To: Josh Poimboeuf Cc: "the arch/x86 maintainers" , Linux Kernel Mailing List , Borislav Petkov , Julien Thierry , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 10, 2020 at 10:33 AM Josh Poimboeuf wrote: > > So disallow relocations in alternative code, except where the x86 arch > code allows it. LGTM. Did this actually find anything? And if not, did you verify that it would by intentionally creating a bad alternative (perhaps the broken one from my patch?) Linus