Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753572AbcKRS36 (ORCPT ); Fri, 18 Nov 2016 13:29:58 -0500 Received: from resqmta-ch2-09v.sys.comcast.net ([69.252.207.41]:46592 "EHLO resqmta-ch2-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753123AbcKRS34 (ORCPT ); Fri, 18 Nov 2016 13:29:56 -0500 Date: Fri, 18 Nov 2016 12:19:42 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: Kees Cook cc: Michael Ellerman , Andrew Morton , Pekka Enberg , David Rientjes , Joonsoo Kim , Linux-MM , LKML , "kernel-hardening@lists.openwall.com" Subject: Re: [PATCH v2] slab: Add POISON_POINTER_DELTA to ZERO_SIZE_PTR In-Reply-To: Message-ID: References: <1479376267-18486-1-git-send-email-mpe@ellerman.id.au> Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfPULUX4ZUfNOlaKjevmEf4muA4gT01wwd6ApaPYgvWL6wlnrUnBTdivhoFTA+iln4S8wV878yqmW5NoEsTnKwWvWxq0edS9feKY6andzWW0J7eaHzdPH u6ZzB3nls5WZ/ghq3+ZXY9SZcCnQBp4Mmmb5NxDa/0adVdQd4nSpgMHIb2WP4G5vFCt5uGuKpGGkJorfyrcWfY7PvvO48qJZIYhs9L71Otl2j+j+8QiU0Dmb PWiqNA2BwFYuqkg1XBUWaZnFe449CbVBahMfK5/gCBDCaXUT4uK1iV76vk9j0Iym12SiTSBGb/p4UOaGN2NNZ1d3LKA8PftsWHMOyEIfizBvjkRSsEEJLoVT rOoVGExyMZsH9Z+t3ClDtz2gTFJ5c8Iz+hTrJHNfUcWjYrQwWEGcRIpQGF6XAVtdl3GukYf5apcuToKhKxlRyxqrLYzeQw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 228 Lines: 7 On Fri, 18 Nov 2016, Kees Cook wrote: > In this case, what about the original < ZERO_SIZE_PTR check Michael > suggested? At least the one use in usercopy.c needs to be fixed, but > otherwise, it should be fine? Looks like it.