Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752488AbeAETKF (ORCPT + 1 other); Fri, 5 Jan 2018 14:10:05 -0500 Received: from mail.skyhub.de ([5.9.137.197]:43596 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752121AbeAETKE (ORCPT ); Fri, 5 Jan 2018 14:10:04 -0500 Date: Fri, 5 Jan 2018 20:10:00 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: X86 ML , LKML , Kees Cook , Peter Zijlstra , Greg Kroah-Hartman Subject: Re: [RFC] selftests/x86: Add test_vsyscall Message-ID: <20180105191000.n2gnkbsyry4kd65z@pd.tnic> References: <17c5ebeb2e00879b0af1a9c32bf37ecdd9b9b31b.1515130397.git.luto@kernel.org> <20180105134025.kzmnydmzrnfdokz7@pd.tnic> <20180105183048.ywi5cccs4ecggwy3@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, Jan 05, 2018 at 10:45:49AM -0800, Andy Lutomirski wrote: > Not _PAGE_RW. Probably _PAGE_USER somewhere in the hierarchy. Yeah, just realized that. But it must be somewhere in the PT hierarchy because: 0xffffffffff600000-0xffffffffff601000 4K USR ro NX pte So something up needs to take _PAGE_USER too. But WTF does it say NX there for and still can execute the vsyscall test? Oh boy, what a mess... -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.