Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967123AbbDXQ1H (ORCPT ); Fri, 24 Apr 2015 12:27:07 -0400 Received: from mail-ie0-f177.google.com ([209.85.223.177]:36805 "EHLO mail-ie0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755899AbbDXQ1E (ORCPT ); Fri, 24 Apr 2015 12:27:04 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 24 Apr 2015 09:27:03 -0700 X-Google-Sender-Auth: otkU-cBJilHKJkUYUYkIM-SVufQ Message-ID: Subject: Re: Regression: Requiring CAP_SYS_ADMIN for /proc//pagemap causes application-level breakage From: Linus Torvalds To: Andy Lutomirski Cc: Mark Williamson , 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: 859 Lines: 18 On Fri, Apr 24, 2015 at 9:10 AM, 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. Ack. So we really do have to zero out the pfn entirely for security reasons, and not just because it's less effort. Linus -- 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/