Received: by 10.213.65.68 with SMTP id h4csp116962imn; Tue, 3 Apr 2018 16:50:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/UlRC5SBy/LY2PE0yoUpoF54LztyQYZdck2jdJwRyLi8R0TrpDrc5NniUdaY/+qDFr3lT+ X-Received: by 10.101.102.69 with SMTP id z5mr10404924pgv.438.1522799409149; Tue, 03 Apr 2018 16:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522799409; cv=none; d=google.com; s=arc-20160816; b=PrfLDQa0UAd8Y8W+oFilNO/SZTqff+4EMIXv4RPeDClB4EfW+AAWf3yJnl8smTXHT1 pWa9NGpgAd3KWbeMZnGfz0+mwAS6Uo/KZSmUH2UivLO+lP5YyQ6sb3YmcPL+Dp+mhDKv pEWt6UZxPm4Tw9Z/w9aDdkNV2BYCIPMtpXnWajcjmiRDMkm4iZu8/t7ak3BjPyIKlPpg axgh5JxjhuRuEYxgRDSsJwdzS4WumlHGzY3qq5o07cvNEu5veYKY+Wgmis+1LZAoiZoU cJAvs3rpUhXvyItzRuIPEqhkiichw5Nmsy5KD1dqZpACFvrPw+NnOzeKHhPkTcXXMTRM +Ytw== 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 :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=KR+ABPr13eEvtqoHVAA5tCZLhcERNOv/3qGKtTDyB9E=; b=Ys7QlD/uaOrEg0aJ2VMKGQlF8NqLfvm2T4kMbbecJzDXRCY7skFcEuiOFXxX6/GjCF 1b+IWgUs64C0iTU2a8ph5QEQEMtrB+kOAHO3Adfft2PEr95jggVj+SuBSYob3qrJg1eD KWYhVH6tsoa2nVgQmkRpbdI2ZTuxv4SgKuxj0vmaXeLsn7KBF6X4ISi2bp1/uV1Aw47W t+wHIu9UGvM/4KvzQUID0qI/81yiuDXjLlFcJopw5xkGmgNtRV9zOorPiYRUYk+kTqd0 nUA187TOq05f/40Add7wEeUEa+yFhZzOVu7mor1CxqQS1mWU6EwTcDeUs+h39harZvqN iuCA== ARC-Authentication-Results: i=1; mx.google.com; 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 i5-v6si1896681plk.139.2018.04.03.16.49.55; Tue, 03 Apr 2018 16:50:09 -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; 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 S1755724AbeDCXsy (ORCPT + 99 others); Tue, 3 Apr 2018 19:48:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:56426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753685AbeDCXsw (ORCPT ); Tue, 3 Apr 2018 19:48:52 -0400 Received: from mail-it0-f46.google.com (mail-it0-f46.google.com [209.85.214.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2117521834 for ; Tue, 3 Apr 2018 23:48:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2117521834 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=luto@kernel.org Received: by mail-it0-f46.google.com with SMTP id 71-v6so23142473ith.2 for ; Tue, 03 Apr 2018 16:48:52 -0700 (PDT) X-Gm-Message-State: ALQs6tAzAd0/YOP1OrKYTKHMvf3/6Xc1No5MN1AJZ/wdh2EbggCOXS+X XO3yGikJQWjybcZqHGHHIpZuyHfillePrEqqOBfaGw== X-Received: by 2002:a24:5bd5:: with SMTP id g204-v6mr7426698itb.55.1522799331551; Tue, 03 Apr 2018 16:48:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.137.70 with HTTP; Tue, 3 Apr 2018 16:48:31 -0700 (PDT) In-Reply-To: <10718.1522798745@warthog.procyon.org.uk> References: <4136.1522452584@warthog.procyon.org.uk> <186aeb7e-1225-4bb8-3ff5-863a1cde86de@kernel.org> <30459.1522739219@warthog.procyon.org.uk> <9758.1522775763@warthog.procyon.org.uk> <13189.1522784944@warthog.procyon.org.uk> <9349.1522794769@warthog.procyon.org.uk> <10718.1522798745@warthog.procyon.org.uk> From: Andy Lutomirski Date: Tue, 3 Apr 2018 16:48:31 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Kernel lockdown for secure boot To: David Howells Cc: Linus Torvalds , Andy Lutomirski , Matthew Garrett , Ard Biesheuvel , James Morris , Alan Cox , Greg Kroah-Hartman , Linux Kernel Mailing List , Justin Forbes , linux-man , joeyli , LSM List , Linux API , Kees Cook , linux-efi 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 Tue, Apr 3, 2018 at 4:39 PM, David Howells wrote: > Linus Torvalds wrote: > >> The same thing is true of some lockdown patch. Maybe it's a good thing >> in general. But whether it's a good thing is _entirely_ independent of >> any secure boot issue. I can see using secure boot without it, but I >> can very much also see using lockdown without secure boot. >> >> The two things are simply entirely orthogonal. They have _zero_ >> overlap. I'm not seeing why they'd be linked at all in any way. > > I'm not sure I agree. Here's my reasoning: > > (1) Lockdown mode really needs to activated during kernel boot, before > userspace has a chance to run, otherwise there's a window of opportunity > in which the kernel *isn't* locked down. That's simply not true. A sensible verified boot chain (a la Chrome OS) is likely to load, as one verified chunk, a kernel and initramfs. Then initramfs can flip on lockdown all by itself before it enables networking or any other attack vectors.