Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1398711
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ingo Molnar <mingo@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v8 1/4] x86/KASLR: Clarify identity map interface |
| Date | Wed, 11 May 2016 08:30:01 +0200 |
| Message-ID | <rxvOF-2AY-3@gated-at.bofh.it> (permalink) |
| References | <rxjub-6Xg-17@gated-at.bofh.it> <rxjub-6Xg-19@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nw3jivz+BaJKOpWZdOkOfrMMyxZZmdBd0IMtp715AK0=; b=wL8rFmk7PT8f78GqyR1cb0TaqpsWmlzCL6oVeIZCG40ItSyn5/t/dnMcx3rK4iXnYX vjJ8mRe/ZqmwY4lBx5wnjki39Nre5sHR8fymvlu4wK8RmI2R1bJY9My14AjckuRX6QG3 PEtT0w5Yi3gZhecNm3jfc2OBAMBmuKN6xV09elw9100X9MYVA+sgS+g/BSoIjwIP1dKX l0UFBMMLIq9P6/oHQ0MhwV84gAkOA/wpYsqCWha9d1mWWxkXve+dATW/sG27PGhUF4Dr W/37DVKHdZ8W4Qy3dVHi5W6qctRq8guRBgXGTRuDl9/ufdpJgdqz1dRfjo9MQvDoponj EIpA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=nw3jivz+BaJKOpWZdOkOfrMMyxZZmdBd0IMtp715AK0=; b=Dp91HTjW/gTaO0gGPDQ9aJpjI6UoybIz51SJ+6zM0ZiDXJXh3Rswd3nBiksk55uu0I Kv4dXZpA8qy4+J/eRI40bPbYyPj8VJ3VRVPBqpUZk4Js1GGZi7k1eJHbYYJw6hj3EI2x J4RIGZzQjhuaNpZ3EyQCRqglvZ0a3Vxe6ipp9kvEBFyC/sKw3/ad68ZiTNYV/g9uCZF/ zgjAlTUfDmgo7pM91qf3vSnKzBa+sLESqYriRngGZ5GPNzavTEiSdXkbD/YlpCSvyPri rFhQPSP0scvbZbub/c0WjEAkfKsAN1epddxPXUFod+w3yTLVbY1F9FbzxZi9lvGa0W9a +iNQ== |
| X-Gm-Message-State | AOPr4FVXykLuEYIbZqhzTkDXNJEB0oWPOIZTAoGUvudKaRezkru4+ihJB5XyHco/BNUHFQ== |
| X-Received | by 10.194.114.100 with SMTP id jf4mr1766544wjb.55.1462947886961; Tue, 10 May 2016 23:24:46 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.23 (2014-03-12) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 24 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Borislav Petkov <bp@suse.de>, Yinghai Lu <yinghai@kernel.org>, Baoquan He <bhe@redhat.com>, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, Borislav Petkov <bp@alien8.de>, Vivek Goyal <vgoyal@redhat.com>, Andy Lutomirski <luto@kernel.org>, lasse.collin@tukaani.org, Andrew Morton <akpm@linux-foundation.org>, Dave Young <dyoung@redhat.com>, kernel-hardening@lists.openwall.com, LKML <linux-kernel@vger.kernel.org> |
| X-Original-Date | Wed, 11 May 2016 08:24:42 +0200 |
| X-Original-Message-ID | <20160511062442.GA24803@gmail.com> |
| X-Original-References | <1462900755-20005-1-git-send-email-keescook@chromium.org> <1462900755-20005-2-git-send-email-keescook@chromium.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1398711 |
Show key headers only | View raw
* Kees Cook <keescook@chromium.org> wrote:
> +/*
> + * Mapping information structure passed to kernel_ident_mapping_init().
> + * Due to relocation, pointers must be assigned at run time not build time.
> + */
> +static struct x86_mapping_info mapping_info = {
> + .pmd_flag = __PAGE_KERNEL_LARGE_EXEC,
> +};
> +void initialize_identity_maps(void)
> {
> + /* Init mapping_info with run-time function/buffer pointers. */
> + mapping_info.alloc_pgt_page = alloc_pgt_page;
> + mapping_info.context = &pgt_data;
Could you please outline the precise failure mode? What gets executed when, which
pointer gets relocated and which not, and exactly when does it pose a problem,
etc.
Thanks,
Ingo
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v8 1/4] x86/KASLR: Clarify identity map interface Kees Cook <keescook@chromium.org> - 2016-05-10 19:20 +0200
Re: [PATCH v8 1/4] x86/KASLR: Clarify identity map interface Borislav Petkov <bp@suse.de> - 2016-05-10 19:50 +0200
Re: [PATCH v8 1/4] x86/KASLR: Clarify identity map interface Ingo Molnar <mingo@kernel.org> - 2016-05-11 08:30 +0200
Re: [PATCH v8 1/4] x86/KASLR: Clarify identity map interface Kees Cook <keescook@chromium.org> - 2016-05-11 17:30 +0200
Re: [PATCH v8 1/4] x86/KASLR: Clarify identity map interface Ingo Molnar <mingo@kernel.org> - 2016-05-12 10:40 +0200
Re: [PATCH v8 1/4] x86/KASLR: Clarify identity map interface Ingo Molnar <mingo@kernel.org> - 2016-05-12 10:40 +0200
csiph-web