Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752331AbdGGRHE (ORCPT ); Fri, 7 Jul 2017 13:07:04 -0400 Received: from resqmta-ch2-10v.sys.comcast.net ([69.252.207.42]:41790 "EHLO resqmta-ch2-10v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbdGGRHC (ORCPT ); Fri, 7 Jul 2017 13:07:02 -0400 Date: Fri, 7 Jul 2017 12:06:57 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: Kees Cook cc: Rik van Riel , Andrew Morton , Pekka Enberg , David Rientjes , Joonsoo Kim , "Paul E. McKenney" , Ingo Molnar , Josh Triplett , Andy Lutomirski , Nicolas Pitre , Tejun Heo , Daniel Mack , Sebastian Andrzej Siewior , Sergey Senozhatsky , Helge Deller , Linux-MM , Tycho Andersen , LKML , "kernel-hardening@lists.openwall.com" Subject: Re: [PATCH v3] mm: Add SLUB free list pointer obfuscation In-Reply-To: Message-ID: References: <20170706002718.GA102852@beast> <1499363602.26846.3.camel@redhat.com> Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfL3VCZGLY2LFQYXlgE44jQ1FsyJ2FWIb2UFNfSLvS5FsoxCjJnf91YQJh+JfH8lWa9DPmQM2MrcMme6VmuUSTcpBUETY1O1yhsvaF8+lP/QEzrxatCpv MoexB/zZMgKU5G9mZ9K28LkJf9K0Th1qvG6lSgivW5lfDRH7kOX9OwlIpmpkMKExoXF+cnHMNJQSMjlmgoM9ngk/cLJcyZTYvndHSZpK5PwirO2buY4leF4R DpKMgIAWgyLmSXDGTv07rieaw6gCzM7Cl0TGYAWiXsaWTzQy1EDev/NLGKKBHTlt1+Ii2IQ0+oEcp8pzjl0sxjqS9VsTqd/FmZ7gO7x7Vdcx9GGB1DVXf10a OucDmxje94zK2SADluGvlXiZ9tsXKGuFx5SUxVueBpAxSzCWFmgf7kDfN9jbXhDMolGICTJZ0k6z0WU8+fHlLaTUZofoHATCTLr0rwkc9ggAWobGiSyV/Ess v6LpLTZ+iAZwwBZiuDGki+2YpvB/UHHrtjjUf24WMGb6iujZTE+DvJpoDfR4Ej5QqWR9Vfbav11fK7vCvnS8aSLpAtCaMQh3Kbbpr8PSMChuoONsiDDtkmxJ JcijZ+UjfEhJS7Cb4sQCKfr+voq+v3xDTG/qgJAlKDZ32WXVOCkIn9LvUqT0Jp3E1Lhk6DSujDEifa2PKwaYJSJaBD+mgyK3ZOWV7qtdctN6D06Lc8R+JvIz pEREEhNe1zPJg57/RhSSwmHj8dsrRxg+c1wKJypFvHYgjAn6hLQgIN0srlbW6dEu66dWbq3nb3E= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 413 Lines: 9 On Fri, 7 Jul 2017, Kees Cook wrote: > If we also added a >0 offset, that would make things even less > deterministic. Though I wonder if it would make the performance impact > higher. The XOR patch right now is very light. There would be barely any performance impact if you keep the offset within a cacheline since most objects start on a cacheline boundary. The processor has to fetch the cacheline anyways.