Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754232AbeANICx (ORCPT + 1 other); Sun, 14 Jan 2018 03:02:53 -0500 Received: from mail-wr0-f170.google.com ([209.85.128.170]:44133 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbeANICv (ORCPT ); Sun, 14 Jan 2018 03:02:51 -0500 X-Google-Smtp-Source: ACJfBovw4uNrf7y0adIQ+YUX9NN5LfTbudldyzi5ClKDowio1vurHv68plovcSe/AEbs3BORfhgiWw== Date: Sun, 14 Jan 2018 10:01:08 +0200 From: Dan Aloni To: Sergey Senozhatsky Cc: linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Petr Mladek , Linus Torvalds , Peter Zijlstra , Andrew Morton , Steven Rostedt , Kees Cook Subject: Re: [PATCHv2 5/7] printk: allow kmsg to be encrypted using public key encryption Message-ID: <20180114080108.GA69022@gmail.com> References: <20180113213441.52047-1-dan@kernelim.com> <20180113213441.52047-6-dan@kernelim.com> <20180114014801.GC1701@tigerII.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180114014801.GC1701@tigerII.localdomain> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sun, Jan 14, 2018 at 10:48:01AM +0900, Sergey Senozhatsky wrote: > Ccing Kees, Peter, Andrew, Steven > > On (01/13/18 23:34), Dan Aloni wrote: > > This commit enables the kernel to encrypt the free-form text that > > is generated by printk() before it is brought up to `dmesg` in > > userspace. > > > > The encryption is made using one of the trusted public keys which > > are kept built-in inside the kernel. These keys are presently > > also used for verifying kernel modules and userspace-supplied > > firmwares. > > OK, this is the first time I'm receiving it, yet it's v2 already. > I'm Cc-ed on only this particular patch, not the entire patch set; > so it's hard to tell what else is being touched and why, so I'm > going to start with the basic questions. Sorry, here the link to cover letter: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1585442.html I guess --cc-cover && --to-cover should be default. > are you fixing the real problem? that's because you see unhashed > kernel pointers in dmesg or is there anything else? In brief, the problem is that any information leak has the potential to make exploitation easier. The changes include documentation for the feature, where more details are provided. -- Dan Aloni