From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753366AbcEIW2g (ORCPT ); Mon, 9 May 2016 18:28:36 -0400 Received: from mail-vk0-f65.google.com ([209.85.213.65]:36225 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752961AbcEIW2e (ORCPT ); Mon, 9 May 2016 18:28:34 -0400 MIME-Version: 1.0 In-Reply-To: References: <1462825332-10505-1-git-send-email-keescook@chromium.org> <1462825332-10505-2-git-send-email-keescook@chromium.org> Date: Mon, 9 May 2016 15:28:33 -0700 X-Google-Sender-Auth: 32fiqs3UVw6UCVRIioY6FBivOMg Message-ID: Subject: Re: [PATCH v7 1/9] x86/KASLR: Initialize mapping_info every time From: Yinghai Lu To: Kees Cook Cc: Ingo Molnar , Borislav Petkov , Baoquan He , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Vivek Goyal , Andy Lutomirski , Lasse Collin , Andrew Morton , Dave Young , "kernel-hardening@lists.openwall.com" , LKML 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 Mon, May 9, 2016 at 3:23 PM, Kees Cook wrote: >> The exact reason to have assigning in functions. >> >> pgt_data address could be changed during kernel relocation. >> so can not assigned during compiling time. > > Ah-ha, that explains why I had to keep it on the stack. Thanks for the > clarification! My fault, I should put that comment in the code at first place. Thanks Yinghai