Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423266AbbD2Oic (ORCPT ); Wed, 29 Apr 2015 10:38:32 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:35309 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423250AbbD2Oi0 (ORCPT ); Wed, 29 Apr 2015 10:38:26 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 29 Apr 2015 15:38:24 +0100 Message-ID: Subject: Re: Regression: Requiring CAP_SYS_ADMIN for /proc//pagemap causes application-level breakage From: Mark Williamson To: Andy Lutomirski Cc: Linus Torvalds , Linux Kernel Mailing List , "Kirill A. Shutemov" , Pavel Emelyanov , Konstantin Khlebnikov , Andrew Morton , Mark Seaborn , Linux API , Finn Grimwood , Daniel James Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1097 Lines: 26 Hi Andy, On Fri, Apr 24, 2015 at 5:10 PM, Andy Lutomirski wrote: > Even though I've been accused (correctly?) of suggesting that, I'm not > sure I like it anymore. Suppose I map some anonymous memory, learn > its (scrambled) pfn, then unmap it and remap a setuid file. Now I can > tell whether I've mapped the setuid file at the same pfn that was > mapped as my anonymous memory. IIRC that's sufficient for one of the > variants of Mark's attack. In fairness, you may have mentioned it but it's entirely possible you didn't originate the suggestion and I quoted out of context. Sorry for implicating you ;-) That's an attack that I hadn't considered when thinking about this stuff. Zeroing the page frame numbers is an easier patch, so arguments in favour of that are a happy answer as far as I'm concerned! Thanks, Mark -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/