From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758830AbcBXS73 (ORCPT ); Wed, 24 Feb 2016 13:59:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48599 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756507AbcBXS7Y (ORCPT ); Wed, 24 Feb 2016 13:59:24 -0500 Subject: Re: [PATCHv2] lkdtm: Add READ_AFTER_FREE test To: Kees Cook References: <1455844533-24787-1-git-send-email-labbott@fedoraproject.org> <56C79301.5040003@redhat.com> <56C7A02F.7070902@redhat.com> <56CB866A.8070306@redhat.com> Cc: Laura Abbott , Greg Kroah-Hartman , Arnd Bergmann , "kernel-hardening@lists.openwall.com" , LKML From: Laura Abbott Message-ID: <56CDFD8A.1040000@redhat.com> Date: Wed, 24 Feb 2016 10:59:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2016 02:37 PM, Kees Cook wrote: > On Tue, Feb 23, 2016 at 1:25 PM, Kees Cook wrote: > >> zero poison only: >> DEBUG_PAGEALLOC=n >> PAGE_POISONING=y >> PAGE_POISONING_NO_SANITY=y >> PAGE_POISONING_ZERO=y >> page_poison=on > > This combo (in next-20160223) results in an unusable system. :( > > [ 1.754183] random: init urandom read with 11 bits of entropy available > [ 1.768449] hostname (1171) used greatest stack depth: 11808 bytes left > [ 1.787954] BUG: Bad page map in process init pte:3d656c6f736e6f63 > pmd:00020067 > [ 1.789177] addr:00007f9f68200000 vm_flags:00000070 anon_vma: > (null) mapping:ffff88007c314058 index:141 > [ 1.790564] file:libdl-2.19.so fault:ext4_filemap_fault > mmap:ext4_file_mmap readpage:ext4_readpage > > -Kees > Hmmm, it looks like the -mm tree currently only has the v1 of the poisoning patches and not the v2. The v1 had a bug which would cause issues like this due to some pages not getting zeroed fully. I should follow up on that today. Thanks, Laura