Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755295AbbGZSme (ORCPT ); Sun, 26 Jul 2015 14:42:34 -0400 Received: from www.linutronix.de ([62.245.132.108]:53671 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753856AbbGZSmd (ORCPT ); Sun, 26 Jul 2015 14:42:33 -0400 Date: Sun, 26 Jul 2015 20:42:16 +0200 (CEST) From: Thomas Gleixner To: Vasily Kulikov cc: linux-kernel@vger.kernel.org, Randy Dunlap , Andrew Morton , kernel-hardening@lists.openwall.com, "Kirill A. Shutemov" Subject: Re: [PATCH 2/3] use POISON_POINTER_DELTA for poison pointers In-Reply-To: <20150726134519.GA1111@cachalot> Message-ID: References: <20150726134324.GA1068@cachalot> <20150726134519.GA1111@cachalot> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) 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 Content-Length: 1148 Lines: 28 On Sun, 26 Jul 2015, Vasily Kulikov wrote: > TIMER_ENTRY_STATIC and TAIL_MAPPING are defined as poison pointers which > should point to nowhere. Redefine them using POISON_POINTER_DELTA arithmetics > to make sure they really point to non-mappable area declared by the > target architecture. > > Signed-off-by: Vasily Kulikov > --- > include/linux/poison.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/linux/poison.h b/include/linux/poison.h > index ee697b9..a721bcd 100644 > --- a/include/linux/poison.h > +++ b/include/linux/poison.h > @@ -27,14 +27,14 @@ > * Magic number "tsta" to indicate a static timer initializer > * for the object debugging code. > */ > -#define TIMER_ENTRY_STATIC ((void *) 0x74737461) > +#define TIMER_ENTRY_STATIC ((void *) 0x300 + POISON_POINTER_DELTA) Acked-by: Thomas Gleixner -- 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/