Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1253996imm; Wed, 15 Aug 2018 14:16:12 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyYMaLvDTZXSE2D1gtFQEiowJpm4BmE0tLJcfhGjqBX8HMIEK/wIlD98H2eKZSmL5iaKqvt X-Received: by 2002:a17:902:900a:: with SMTP id a10-v6mr26051420plp.143.1534367772096; Wed, 15 Aug 2018 14:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534367772; cv=none; d=google.com; s=arc-20160816; b=h2RfAkNal5I+MVbtRVdMzoZnasUS8MJ0pt2JoVVN0BLda8M9KnndXipZ0lGp3g3dUX A1RCq8H1c6tUX016+48o6ckCFUprYdBtDUW06lWV5XYUI4vXwxMnUT2pBUxV00j9zg+K +PGCmv0haJ287P8WeHr8c89wwJ3YId/QGp8T4spsvlTerC69miiRuJLfBokqEZrSASyo ZT7DCaOh4VBcij7SofxYxlNac4taT6S4DUF4BPnJ5+Xn1SlDECdjYzi9DKNlWqoL1XuT UBWNgBIRfolhVv6nV/BqwEI1f+dBgaLb6VC8B5vM1NutW5qOcvknsEWISMbRZOgTH9PH yaUw== 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 :arc-authentication-results; bh=s+HNgKzF+RElvIhHUEY/nNNqiCrgzpum4bRgrcMSR+s=; b=ZzaFJumobdyHCD3Cv/shnhkWlguoPisI/D+TtwSvPq+Zlm9QZjksvVv6wwRVcctxZy JTf6z7v4G4cMvjJ8SHi04Z6MM/MeNwJa8bNEpjhS+H9sWzzRvnEFlHblshBWw6kHZEUy Q7zXQOEp//oYKTnfW1cfJ0yZC1a/nCFFrF0N8JRjsEAbXBbVqrVCJ9HnBYVhd9V6QhGX Obpq2nvo/i0TaYHOuH7h1LkHx300cliTO0ndKlB2ju2PcPwc5yCxCH1irWASnXH+NYRh DiqAYSX3TMWConWCyNt+y8iMV+VndTUlsA1LLbOh78OCNmUiGu+JaCn/3XfEjSrmPslE ZJvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YvWp8opp; 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 b8-v6si19217633pls.137.2018.08.15.14.15.56; Wed, 15 Aug 2018 14:16:12 -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=@linux-foundation.org header.s=google header.b=YvWp8opp; 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 S1727632AbeHPAIb (ORCPT + 99 others); Wed, 15 Aug 2018 20:08:31 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:35387 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbeHPAIb (ORCPT ); Wed, 15 Aug 2018 20:08:31 -0400 Received: by mail-io0-f195.google.com with SMTP id w11-v6so2180025iob.2 for ; Wed, 15 Aug 2018 14:14:38 -0700 (PDT) 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=s+HNgKzF+RElvIhHUEY/nNNqiCrgzpum4bRgrcMSR+s=; b=YvWp8oppO0sAAXG13H0Ts9P/BKqxakVRJc6G3rlc9RAO99JCc7Dup1tR+MQnp++94Z qkHQPJfR5rLkkT4tLPLJ4wVx5fxs8qPdPxrlJcUEsiFaxCpHfqJZpFSSMPy2LyvodZRl /kpaITTAWRMbc2evZD5zeopqv/rU1P6FD/dU0= 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=s+HNgKzF+RElvIhHUEY/nNNqiCrgzpum4bRgrcMSR+s=; b=nYkmE/GiVZJ8c5+x3Gpc8+ZYwfOHdXrS456oEKc8ouT/kIal9HyYyLZvuxXVvs+eUW DrFdehRMrTDCypSGZaIsxuO3zJ9f1/2zaWy/ouo2Cs+FCXlyNMe9Q5adUMT5nCbruT0C E4MQxQqcJuFuBii+qlyei/EclWOSA0mEuEnBfsz+O3saqiEWNZEsVW2hYn3PMU8Tq51m Dun4tFofAe0W+UTVX9WxyqfN9Qj993unJTpC0N+l8lkC/eVWgMlSvJisRCgGDxhNypON w1RkQf+XlgCoOK4XFurnPgUXjZ6MNwtn7nJRIqy+552TIwvPmxOpwz2ds9Ps6A0OsOiN h1jQ== X-Gm-Message-State: AOUpUlF4JTFiUDl9yDpUzvF2fpKZfr44Wj4dziA+D/251zOt6fAARDnL IPL4NMZROrtDBRZnKtz8qUxGslYuaXoZjoBabI8= X-Received: by 2002:a6b:7a08:: with SMTP id h8-v6mr19338633iom.238.1534367678212; Wed, 15 Aug 2018 14:14:38 -0700 (PDT) MIME-Version: 1.0 References: <20180815100053.13609-1-yannik@sembritzki.me> <654fbafb-69da-cd9a-b176-7b03401e71c5@sembritzki.me> <20180815174247.GB29541@redhat.com> <20180815185812.GC29541@redhat.com> <20180815194932.GD29541@redhat.com> <1ca6772b-46e0-9d93-0e15-7cf73a0b7b3f@sembritzki.me> In-Reply-To: <1ca6772b-46e0-9d93-0e15-7cf73a0b7b3f@sembritzki.me> From: Linus Torvalds Date: Wed, 15 Aug 2018 14:14:27 -0700 Message-ID: Subject: Re: [PATCH] Fix kexec forbidding kernels signed with custom platform keys to boot To: yannik@sembritzki.me Cc: Vivek Goyal , David Howells , Thomas Gleixner , Ingo Molnar , Peter Anvin , "the arch/x86 maintainers" , Linux Kernel Mailing List , Dave Young , Baoquan He , Justin Forbes , Peter Jones , James Bottomley , Matthew Garrett 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 Wed, Aug 15, 2018 at 2:08 PM Yannik Sembritzki wrote: > > IMO, this is not okay. The layer of trust should extend from the bottom > (user-provisioned platform key) up. Only trusting the kernel builtin key > later on (wrt. kernel modules) contradicts this principal. This module loading case is not about trusting the *key*. This is about trusting the *build system*. For example, I build my kernels with one single randomly generated key (that gets deleted afterwards). The modules get built with that key too. No amount of added keys later will make a module valid to load. Linus