All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: Josh Boyer <jwboyer@fedoraproject.org>,
	Eric Biederman <ebiederm@xmission.com>,
	David Howells <dhowells@redhat.com>,
	kexec <kexec@lists.infradead.org>,
	"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>
Subject: Re: kexec_load(2) bypasses signature verification
Date: Wed, 17 Jun 2015 11:55:20 +0100	[thread overview]
Message-ID: <20150617115520.5eec8224@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20150615200115.GG5003@thunk.org>

> [1] Yes, it doesn't buy all that much, since if the system is rooted
> the adversary can just replace the kernel in /boot and force a normal,
> slower reboot, but the same could be said for signed modules --- the
> adversary could just replace all of /boot/vmlinux-<kver> and
> /lib/modules/<kver>.  But both measures make it a tad more bit
> difficult, especially for the adversary to do this replacement without
> being noticed (for example linode will send me e-mail if the system
> reboots normally, but not with a kexec-mediated reboot), and for cloud
> systems where we don't have secure boot anyway, it's about the best we
> can do.

It's about the same as the protection offered by the "secure" boot
patches I've seen because they don't block all kernel boot parameters
except a whitelist and because there are a pile of other fairly
fundamental problems that probably require you also sign the root file
system, which is itself a world of pain.

Alan

WARNING: multiple messages have this Message-ID (diff)
From: One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
To: Theodore Ts'o <tytso@mit.edu>
Cc: David Howells <dhowells@redhat.com>,
	Josh Boyer <jwboyer@fedoraproject.org>,
	kexec <kexec@lists.infradead.org>,
	Eric Biederman <ebiederm@xmission.com>,
	"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>
Subject: Re: kexec_load(2) bypasses signature verification
Date: Wed, 17 Jun 2015 11:55:20 +0100	[thread overview]
Message-ID: <20150617115520.5eec8224@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20150615200115.GG5003@thunk.org>

> [1] Yes, it doesn't buy all that much, since if the system is rooted
> the adversary can just replace the kernel in /boot and force a normal,
> slower reboot, but the same could be said for signed modules --- the
> adversary could just replace all of /boot/vmlinux-<kver> and
> /lib/modules/<kver>.  But both measures make it a tad more bit
> difficult, especially for the adversary to do this replacement without
> being noticed (for example linode will send me e-mail if the system
> reboots normally, but not with a kexec-mediated reboot), and for cloud
> systems where we don't have secure boot anyway, it's about the best we
> can do.

It's about the same as the protection offered by the "secure" boot
patches I've seen because they don't block all kernel boot parameters
except a whitelist and because there are a pile of other fairly
fundamental problems that probably require you also sign the root file
system, which is itself a world of pain.

Alan

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  parent reply	other threads:[~2015-06-17 10:56 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15  3:50 kexec_load(2) bypasses signature verification Theodore Ts'o
2015-06-15  3:50 ` Theodore Ts'o
2015-06-15  9:11 ` Dave Young
2015-06-15  9:28   ` Petr Tesarik
2015-06-15 12:14 ` Josh Boyer
2015-06-15 12:14   ` Josh Boyer
2015-06-15 13:17   ` Theodore Ts'o
2015-06-15 13:17     ` Theodore Ts'o
2015-06-15 13:37     ` Josh Boyer
2015-06-15 13:37       ` Josh Boyer
2015-06-15 20:01       ` Theodore Ts'o
2015-06-15 20:01         ` Theodore Ts'o
2015-06-16 19:38         ` Eric W. Biederman
2015-06-16 19:38           ` Eric W. Biederman
2015-06-16 20:27           ` Vivek Goyal
2015-06-16 20:27             ` Vivek Goyal
2015-06-17  1:32             ` Eric W. Biederman
2015-06-17  1:32               ` Eric W. Biederman
2015-06-17  1:47               ` Vivek Goyal
2015-06-17  1:47                 ` Vivek Goyal
2015-06-18  1:16                 ` Dave Young
2015-06-18  1:16                   ` Dave Young
2015-06-18  2:02                   ` Dave Young
2015-06-18  2:02                     ` Dave Young
2015-06-18 13:30                     ` Vivek Goyal
2015-06-18 13:30                       ` Vivek Goyal
2015-06-18 14:41                       ` Eric W. Biederman
2015-06-18 14:41                         ` Eric W. Biederman
2015-06-19  6:21                       ` Dave Young
2015-06-19  6:21                         ` Dave Young
2015-06-19  8:18                         ` Dave Young
2015-06-19  8:18                           ` Dave Young
2015-06-19 13:09                           ` Vivek Goyal
2015-06-19 13:09                             ` Vivek Goyal
2015-06-25  8:48                             ` Dave Young
2015-06-25  8:48                               ` Dave Young
2015-06-25 15:59                               ` Vivek Goyal
2015-06-25 15:59                                 ` Vivek Goyal
2015-06-26  1:59                                 ` Dave Young
2015-06-26  1:59                                   ` Dave Young
2015-06-19  7:04                 ` Dave Young
2015-06-19  7:04                   ` Dave Young
2015-06-19 13:09                   ` Vivek Goyal
2015-06-19 13:09                     ` Vivek Goyal
2015-06-17  3:26             ` Theodore Ts'o
2015-06-17  3:26               ` Theodore Ts'o
2015-06-17 10:55         ` One Thousand Gnomes [this message]
2015-06-17 10:55           ` One Thousand Gnomes
2015-06-18  1:25         ` Dave Young
2015-06-18  1:25           ` Dave Young

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150617115520.5eec8224@lxorguk.ukuu.org.uk \
    --to=gnomes@lxorguk.ukuu.org.uk \
    --cc=dhowells@redhat.com \
    --cc=ebiederm@xmission.com \
    --cc=jwboyer@fedoraproject.org \
    --cc=kexec@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.