Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964810AbbD0O1g (ORCPT ); Mon, 27 Apr 2015 10:27:36 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34039 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932746AbbD0O1e (ORCPT ); Mon, 27 Apr 2015 10:27:34 -0400 Date: Mon, 27 Apr 2015 16:27:32 +0200 (CEST) From: Jiri Kosina To: x86@kernel.org, Borislav Petkov , Kees Cook , Josh Poimboeuf , Seth Jennings , Vojtech Pavlik cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org Subject: [PATCH 0/2] introduce kaslr_offset() and its users Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1170 Lines: 29 There is already in-kernel code which computes the offset that has been used for kASLR -- that's dump_kernel_offset() notifier. As there is now a potential second user coming, it seems reasonable to provide a common helper that will compute the offset. - Patch 1/2 introduces kaslr_offset() which computes the kASLR offset, and converts dump_kernel_offset() to make use of it - Patch 2/2 extends the - currently limited - functionality of livepatching when kASLR has been enabled and is active ---------------------------------------------------------------- Jiri Kosina (2): x86: introduce kaslr_offset() livepatch: x86: make kASLR logic more accurate arch/x86/include/asm/livepatch.h | 1 + arch/x86/include/asm/setup.h | 6 ++++++ arch/x86/kernel/setup.c | 2 +- kernel/livepatch/core.c | 5 +++-- 4 files changed, 11 insertions(+), 3 deletions(-) -- Jiri Kosina SUSE Labs -- 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/