Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937610AbdD0MGg (ORCPT ); Thu, 27 Apr 2017 08:06:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:51257 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S937577AbdD0MG2 (ORCPT ); Thu, 27 Apr 2017 08:06:28 -0400 Date: Thu, 27 Apr 2017 14:06:25 +0200 From: Michal Hocko To: Kees Cook Cc: Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: Add additional consistency check Message-ID: <20170427120625.GB4785@dhcp22.suse.cz> References: <20170331164028.GA118828@beast> <20170404113022.GC15490@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170404113022.GC15490@dhcp22.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 789 Lines: 20 On Tue 04-04-17 13:30:22, Michal Hocko wrote: > On Fri 31-03-17 09:40:28, Kees Cook wrote: > > As found in PaX, this adds a cheap check on heap consistency, just to > > notice if things have gotten corrupted in the page lookup. > > > > Signed-off-by: Kees Cook > > NAK without a proper changelog. Seriously, we do not blindly apply > changes from other projects without a deep understanding of all > consequences. This still seems to be in the mmotm tree http://www.ozlabs.org/~akpm/mmotm/broken-out/mm-add-additional-consistency-check.patch I hope we have agreed that this is not the right approach to handle invalid pointers in kfree and rather go soemthing like http://lkml.kernel.org/r/20170411141956.GP6729@dhcp22.suse.cz instead. -- Michal Hocko SUSE Labs