kernel-hardening.lists.openwall.com archive mirror
 help / color / mirror / Atom feed
* [kernel-hardening] [PATCH 0/5] RFC: Public key encryption of dmesg by the kernel
@ 2017-12-30 17:57 Dan Aloni
  2017-12-30 17:58 ` [kernel-hardening] [PATCH 1/5] crypto: fix memory leak in rsa-kcs1pad encryption Dan Aloni
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Dan Aloni @ 2017-12-30 17:57 UTC (permalink / raw)
  To: linux-kernel, kernel-hardening; +Cc: Dan Aloni

From: Dan Aloni <dan@kernelim.com>

Hi All,

There has been a lot of progress in recent times regarding the removal
of sensitive information from dmesg (pointers, etc.), so I figured - why
not encrypt it all? However, I have not found any existing discussions
or references regarding this technical direction.

I am not sure that desktop and power users would like to have their
kernel message encrypted, but there are scenarios such as in mobile
devices, where only the developers, makers of devices, may actually
benefit from access to kernel prints messages, and the users may be
more protected from exploits.

In its present form, it is an RFC, so that before investing more time
developing it further, I would receive comments regarding its viability
and suggestions for design.


Dan Aloni (5):
  crypto: fix memory leak in rsa-kcs1pad encryption
  certs: allow in-kernel access of trusted keys
  kernel/printk: allow kmsg to be encrypted using public key encryption
  tools: add dmesg decryption program
  docs: add dmesg encryption doc

 Documentation/admin-guide/dmesg-encryption.rst |  77 +++++
 certs/system_keyring.c                         |  56 +++-
 crypto/rsa-pkcs1pad.c                          |   9 -
 include/keys/system_keyring.h                  |   3 +
 include/uapi/linux/kmsg.h                      |  18 ++
 init/Kconfig                                   |  10 +
 kernel/printk/printk.c                         | 422 +++++++++++++++++++++++++
 tools/Makefile                                 |   5 +-
 tools/kmsg/.gitignore                          |   1 +
 tools/kmsg/Makefile                            |  14 +
 tools/kmsg/dmesg-decipher.c                    | 316 ++++++++++++++++++
 11 files changed, 920 insertions(+), 11 deletions(-)
 create mode 100644 Documentation/admin-guide/dmesg-encryption.rst
 create mode 100644 include/uapi/linux/kmsg.h
 create mode 100644 tools/kmsg/.gitignore
 create mode 100644 tools/kmsg/Makefile
 create mode 100644 tools/kmsg/dmesg-decipher.c

-- 
2.13.6

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-01-18 21:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-30 17:57 [kernel-hardening] [PATCH 0/5] RFC: Public key encryption of dmesg by the kernel Dan Aloni
2017-12-30 17:58 ` [kernel-hardening] [PATCH 1/5] crypto: fix memory leak in rsa-kcs1pad encryption Dan Aloni
2017-12-30 17:58 ` [kernel-hardening] [PATCH 2/5] certs: allow in-kernel access of trusted keys Dan Aloni
2017-12-30 18:52   ` [kernel-hardening] " Randy Dunlap
2017-12-30 17:58 ` [kernel-hardening] [PATCH 3/5] kernel/printk: allow kmsg to be encrypted using public key encryption Dan Aloni
2017-12-30 20:39   ` [kernel-hardening] " Randy Dunlap
2017-12-30 17:58 ` [kernel-hardening] [PATCH 4/5] tools: add dmesg decryption program Dan Aloni
2017-12-30 20:20   ` [kernel-hardening] " Randy Dunlap
2017-12-30 17:58 ` [kernel-hardening] [PATCH 5/5] docs: add dmesg encryption doc Dan Aloni
2017-12-30 19:14   ` Boris Lukashev
2017-12-30 19:40   ` [kernel-hardening] " Randy Dunlap
2018-01-03 20:21     ` Dan Aloni
2018-01-03 20:45       ` Randy Dunlap
2017-12-30 21:42 ` [kernel-hardening] [PATCH 0/5] RFC: Public key encryption of dmesg by the kernel Jann Horn
2018-01-03 20:41   ` Dan Aloni
2018-01-18 21:57 ` [kernel-hardening] " Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).