From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965019AbdKBVlt (ORCPT ); Thu, 2 Nov 2017 17:41:49 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:56363 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964829AbdKBVlr (ORCPT ); Thu, 2 Nov 2017 17:41:47 -0400 Date: Thu, 2 Nov 2017 22:41:35 +0100 (CET) From: Thomas Gleixner To: Linus Torvalds cc: Andy Lutomirski , Dave Hansen , Andy Lutomirski , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , moritz.lipp@iaik.tugraz.at, Daniel Gruss , michael.schwarz@iaik.tugraz.at, Kees Cook , Hugh Dickins , X86 ML Subject: Re: [PATCH 02/23] x86, kaiser: do not set _PAGE_USER for init_mm page tables In-Reply-To: Message-ID: References: <20171031223146.6B47C861@viggo.jf.intel.com> <20171031223150.AB41C68F@viggo.jf.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2 Nov 2017, Linus Torvalds wrote: > On Thu, Nov 2, 2017 at 11:40 AM, Thomas Gleixner wrote: > > > > Hmm. Not sure. IIRC you need to be able to read it to figure out where the > > entry points are. They are at fixed offsets, but there is some voodoo out > > there which reads the 'elf' to get to them. > > That would actually be really painful. > > But I *think* you're confusing it with the vdso case, which really > does do that whole "generate ELF information for debuggers and dynamic > linkers" thing. The vsyscall page never did that afaik, and purely > relied on fixed addresses. Yes, managed to confuse myself. The vsycall page has only the fixed offset entry points at least when its in emulation mode. Thanks, tglx