From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753693AbdHQXBw (ORCPT ); Thu, 17 Aug 2017 19:01:52 -0400 Received: from mail-it0-f45.google.com ([209.85.214.45]:34191 "EHLO mail-it0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752632AbdHQXBu (ORCPT ); Thu, 17 Aug 2017 19:01:50 -0400 MIME-Version: 1.0 In-Reply-To: <20170817012947.GB20907@jagdpanzerIV.localdomain> References: <1502397395-118652-1-git-send-email-keescook@chromium.org> <1502397395-118652-3-git-send-email-keescook@chromium.org> <20170816075922.GC522@jagdpanzerIV.localdomain> <20170817012947.GB20907@jagdpanzerIV.localdomain> From: Kees Cook Date: Thu, 17 Aug 2017 16:01:49 -0700 X-Google-Sender-Auth: eyZnKplIwMDlKhVw0wCRd7kBVog Message-ID: Subject: Re: [PATCH 2/2] Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps" To: Sergey Senozhatsky Cc: LKML , Nick Kralevich , Sebastian Schmidt , Tony Luck , Anton Vorontsov , Colin Cross , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Patrick Tjin , Mark Salyzyn Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 16, 2017 at 6:29 PM, Sergey Senozhatsky wrote: > can we accidentally "leak" kernel pointers or some other critical > info? kptr_restrict requires CAP_SYSLOG and pstore read used to > require CAP_SYSLOG, but it seems that now we can bypass it by > letting "entirely unprivileged groups" to read pstore. is there > something to be concerned about (or at least mention it in the > commit messages)? I can expand the commit message a bit more, sure. There may be sensitive things in pstorefs, and it's up to a system builder to decide how they want to deal with that risk. Most users of pstore don't mount with update_ms=N so pstorefs contains (mostly) old addresses. Without this change, though, a builder can't give permissions to an unprivileged crash dump process without also giving it CAP_SYSLOG which has much MORE privilege that it would need (reading and wiping _current_ dmesg, for example). -Kees -- Kees Cook Pixel Security