From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808AbbFSNg3 (ORCPT ); Fri, 19 Jun 2015 09:36:29 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:31183 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751984AbbFSNgU (ORCPT ); Fri, 19 Jun 2015 09:36:20 -0400 X-AuditID: cbfec7f5-f794b6d000001495-bd-55841ad12d8d Message-id: <55841ACF.50302@samsung.com> Date: Fri, 19 Jun 2015 16:36:15 +0300 From: Andrey Ryabinin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-version: 1.0 To: Borislav Petkov Cc: Alexander Popov , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrey Konovalov , Andrew Morton , Andy Lutomirski , Alexander Kuleshov , Denys Vlasenko , Peter Zijlstra , Kees Cook , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/1] x86_64: fix KASan shadow region page tables References: <1434613012-16046-1-git-send-email-alpopov@ptsecurity.com> <20150618090857.GB1385@pd.tnic> <5582B801.80705@samsung.com> <20150618145510.GC1385@pd.tnic> <5582EC30.8080104@samsung.com> <20150618163846.GF1385@pd.tnic> <558401BF.3040809@samsung.com> <20150619120603.GE17826@pd.tnic> In-reply-to: <20150619120603.GE17826@pd.tnic> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsVy+t/xK7oXpVpCDSa/ErL4vXcmq8Wc9WvY LKbv6GO3+LzhH5vF+e+H2C2mbRS3ONOda7F+52d2i8u75gCFd61ltbh0YAGTxfHeA0wWmzdN Zbb4seExqwOfx/fWPhaP2Q0XWTx2zrrL7rF5hZbHplWdbB7vzp1j9zgx4zeLx/ZHU1k83u+7 yubxeZOcx4mWL6wB3FFcNimpOZllqUX6dglcGQdvvWcraGKr6P+2l72B8QFLFyMnh4SAicTC ZxdYIWwxiQv31rN1MXJxCAksZZS40dPLCuF8Z5RYcOIaI0gVr4CGxI6fPWA2i4CqROe8+ewg NpuAnsS/WdvZQGxRgQiJt5dPMkHUC0r8mHwPbJuIgJLE10VzweLMAg+YJWZfUQSxhQXcJeZN vc0MsWwVk0RvYz9YA6eArkTn3ztACziAGtQlpkzJheiVl9i85i3zBEaBWUhWzEKomoWkagEj 8ypG0dTS5ILipPRcI73ixNzi0rx0veT83E2MkAj7uoNx6TGrQ4wCHIxKPLwG35pDhVgTy4or cw8xSnAwK4nwXvgFFOJNSaysSi3Kjy8qzUktPsQozcGiJM47c9f7ECGB9MSS1OzU1ILUIpgs EwenVAOj8uk7tnLbnB5eMFYxEvTvWtBT3Nm39sOy3N9/Lq58Nvua+t5bsSJTtBZrmgZyMOl8 8H7VvUihdv+MfYpZF+VPSq2YWaHI47rnZu3Feo4bpZMWat/Zteu6K6/E4pizXsX76vU3ZB/y qZuVZvPRedc/ixwZT63Y/sUbuK61SXAtPzdFdNKU9vvTlViKMxINtZiLihMBCALvAKwCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/19/2015 03:06 PM, Borislav Petkov wrote: > On Fri, Jun 19, 2015 at 02:49:19PM +0300, Andrey Ryabinin wrote: >> I guess that AMD cpus is more strict (unlike Intel) about violation >> of reserved/unused bits in page table entries. Please, try with this >> patch. > > With that the guest boots. > Great! Thanks. > How do I check whether KASan actually works? I don't see any note in > dmesg or some file named "*kasan*" in sysfs... > kasan will print report in dmesg whant it will find anything. To make sure that it works you could try to load testing module (CONFIG_TEST_KASAN). This module has bugs that kasan should catch. Also 'slub_debug=U' in bootcmdline will improve reports and out-of-bounds accesses detection. > Thanks. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/