Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933280AbdGKPNh (ORCPT ); Tue, 11 Jul 2017 11:13:37 -0400 Received: from mail-he1eur01on0095.outbound.protection.outlook.com ([104.47.0.95]:43232 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932365AbdGKPNb (ORCPT ); Tue, 11 Jul 2017 11:13:31 -0400 Authentication-Results: googlegroups.com; dkim=none (message not signed) header.d=none;googlegroups.com; dmarc=none action=none header.from=virtuozzo.com; Subject: Re: KASAN vs. boot-time switching between 4- and 5-level paging To: Andy Lutomirski , "Kirill A. Shutemov" Cc: Dmitry Vyukov , Alexander Potapenko , "Kirill A. Shutemov" , Linus Torvalds , Andrew Morton , "x86@kernel.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Dave Hansen , linux-arch , "linux-mm@kvack.org" , LKML , kasan-dev References: <75acbed7-6a08-692f-61b5-2b44f66ec0d8@virtuozzo.com> <20170710123346.7y3jnftqgpingim3@node.shutemov.name> <20170710141713.7aox3edx6o7lrrie@node.shutemov.name> <03A6D7ED-300C-4431-9EB5-67C7A3EA4A2E@amacapital.net> <20170710184704.realchrhzpblqqlk@node.shutemov.name> <20170710212403.7ycczkhhki3vrgac@node.shutemov.name> <20170711103548.mkv5w7dd5gpdenne@node.shutemov.name> From: Andrey Ryabinin Message-ID: Date: Tue, 11 Jul 2017 18:15:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR05CA0149.eurprd05.prod.outlook.com (2603:10a6:7:28::36) To HE1PR0801MB2730.eurprd08.prod.outlook.com (2a01:111:e400:7baf::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 74226160-8454-4660-516a-08d4c86f5828 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:HE1PR0801MB2730; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2730;3:RgFVkm9x/TDIejex7JHNlt8HicPPXm03kacl62/3DhvMz4iGl3hK7bc+b+toF8xYoHBUpQjlxuAtbFQAWumbasVgzQc9Mbe2TjButDeT2p/hcGcPi+E2hSipCvRWI4zmImwGDEa0YSycRDyq4JwcqA6nepVpDyIUGnj8zMeEziJKN2iCRmNeHro3fNinq7f9391hccErdG+OrJnx9KFuhY8Z55mTsZw5JmNSzec2XurxRWdqR3pMugbtO8s1GVOirHK5jxY8/Aj3b03AO3OjNHX8cvUw0P3j1EjzLaZRqxPGTE1yeDVvmbOmuZ9GfoH5+ndiOWV2LHKTTTHoKrt8NCDHWVkRF39w71Cn6at38H7Y1dwzkursE+jr18PjqexxVHps59+sfD/3nT5J/T/HOsRkY1tOgEgIJQco1zfSSoeKrENcuQp2TMXnQL3nzU0vzDSnETDpIOFMkBHSRcZKcuTZikgnTSwSvGCAmAsz5e7TRrbj/df8UgsHcT89VejI8b9L1pqxaAMK10zqRL5NxalRv8HaYJSioBibEeJtT/IyACYxnc+PhA96GSbIuRhHZoOYQz9myww5QEMDP46r02TJs91Zir/mFuB9TOtFC9G5/b96NNe6XhJ25I7BX4ab/pXd9/ZjX8CCT9X5m9XI437JHSPqidTjyRQA90t6zkZ6dJSYakYrhw/7zUFmaUU2BjDdp0P3mpoXacKJcKgH7BmcvvxUIetUYs+olO0uf5U= X-MS-TrafficTypeDiagnostic: HE1PR0801MB2730: X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2730;25:PVY4Cy6MKz5GjnxG9ddbkclQwrM94SLfJF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Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(148574349560750); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123560025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:HE1PR0801MB2730;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:HE1PR0801MB2730; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4MDFNQjI3MzA7NDpyUFQrUjBScThnZ0xuSUl2aGRyVllOZ3Mv?= =?utf-8?B?dnM5WHA5UHpSU2NBM3IrbE9kZlExbmRLU3NtMlh0dFp6SDJORk81Zy9UaFlZ?= =?utf-8?B?dmZTTGp5RDFqVVFDVGZiUGRVL01JYzZwLy81Snpvb1FFY1grN2R4Tk1jSWk2?= =?utf-8?B?dVh3SUlkZm05SmdJeVU0YnpBd3kxRHJ3UytZQ2ZCUnVXYlY1ZWRKNURpUFhP?= =?utf-8?B?U3ZFYlZTbVFMQnZyTjRSaWU3bG9ybXdLUDBuS2NCZlE0dENxVDZOU3NHUFQz?= =?utf-8?B?dkxsWWYvYmQvT1NrYXpSdFpidmFTUEIxc29nSER5RlpCVDU3cGQ5djFybkxO?= =?utf-8?B?MVBRRTdtYmc1d0xTaUU5Y1JHeTYzY0VaZ3d3Qk8vTjBWSjhUMmV4ek1rMFo4?= =?utf-8?B?SVJ5Rm5GSm1qNzR2cmYvSWVFRHd0dVB6ejJkK3M4c0RCN29MN1JPb2o2VlVU?= =?utf-8?B?NTRSbFR5SmZRNW1LbEZwV1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StMekNJU0dESHpPYmduNXN4TWJjaVlyZVQzelN4Rk4vdWNDN3JwMmxQ?= =?utf-8?B?RmJkaituV243R25XSDFvSXVleDNYM3pKYTI1L1EyVlpISFQ5YmdSSzJBenlv?= =?utf-8?B?UDlXcWw3ZGRkQ3cvSlZQeXJzRkVXL1FCS1lDb1h5ZlhpeHdtT3Q4eFYwYWV6?= =?utf-8?B?OEx5TWd5SlVrV1lkRTdwT1ljcjNJRVNZSEdITlBrYTcyNlc4dTY5SmYxWkp5?= =?utf-8?B?L2tZenhKcVV1Y1NTaHhpcG4wN1U1bi9uWWg4S1pZbW11cmVVZmVKRkVObjcy?= =?utf-8?Q?LIjigUXlQnM07aMpRCI=3D?= X-Forefront-PRVS: 0365C0E14B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(7370300001)(4630300001)(6049001)(6009001)(39450400003)(39400400002)(39830400002)(39410400002)(377454003)(24454002)(4001350100001)(65956001)(65806001)(77096006)(66066001)(53936002)(8676002)(229853002)(86362001)(575784001)(83506001)(6486002)(7416002)(31696002)(47776003)(6246003)(33646002)(2950100002)(36756003)(189998001)(6666003)(38730400002)(53546010)(7350300001)(81166006)(4326008)(93886004)(2870700001)(31686004)(25786009)(478600001)(2906002)(54906002)(5890100001)(65826007)(50466002)(42186005)(305945005)(23676002)(54356999)(50986999)(5660300001)(76176999)(3846002)(6116002)(7736002)(64126003);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0801MB2730;H:[172.16.25.12];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4MDFNQjI3MzA7MjM6SE4zbDV5UVNPY2NFT0NjemRLZGg3OWVp?= =?utf-8?B?L0FVRldzcWVGSE1Da0Iwam83SHBXL2pXeStLZ2xTV3A3R1RuWmpmYWdBaHJO?= =?utf-8?B?MCs5aDdJT3FkTlBHTmFSZTBFOFhCVWFrdUN6WnUwRHlZenlsdjN0NnJTMjhT?= =?utf-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o6IlZ2Q= X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2730;20:ZbLL4h3Hoqz0Qt4qC3S5J/H+yQyQWOUIddBSSlyg79kYj9jk7bbMbv6hVYK/dbsDZ908bLgXfxfq7Z3VH/3Fa3P0fwHFInQq9HgIyV+ke8HSDaJuDaQVoWVLb29J+OGd8T46JZrnUdqYUOBV8xXQNXHFwoUhDeAolKj2282Hyf0= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2017 15:13:10.2513 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB2730 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2628 Lines: 61 On 07/11/2017 06:06 PM, Andy Lutomirski wrote: > On Tue, Jul 11, 2017 at 3:35 AM, Kirill A. Shutemov > wrote: >> On Mon, Jul 10, 2017 at 05:30:38PM -0700, Andy Lutomirski wrote: >>> On Mon, Jul 10, 2017 at 2:24 PM, Kirill A. Shutemov >>> wrote: >>>> On Mon, Jul 10, 2017 at 01:07:13PM -0700, Andy Lutomirski wrote: >>>>> Can you give the disassembly of the backtrace lines? Blaming the >>>>> .endr doesn't make much sense to me. >>>> >>>> I don't have backtrace. It's before printk() is functional. I only see >>>> triple fault and reboot. >>>> >>>> I had to rely on qemu tracing and gdb. >>> >>> Can you ask GDB or objtool to disassemble around those addresses? Can >>> you also attach the big dump that QEMU throws out that shows register >>> state? In particular, CR2, CR3, and CR4 could be useful. >> >> The last three execptions: >> >> check_exception old: 0xffffffff new 0xe, cr2: 0xffffffff7ffffff8, rip: 0xffffffff84bb3036 >> RAX=00000000ffffffff RBX=ffffffff800000d8 RCX=ffffffff84be4021 RDX=dffffc0000000000 >> RSI=0000000000000006 RDI=ffffffff84c57000 RBP=ffffffff800000c8 RSP=ffffffff80000000 > > So RSP was 0xffffffff80000000, a push happened, and we tried to write > to 0xffffffff7ffffff8, which failed. > >> check_exception old: 0xe new 0xe, cr2: 0xffffffff7ffffff8, rip: 0xffffffff84bb3141 >> RAX=00000000ffffffff RBX=ffffffff800000d8 RCX=ffffffff84be4021 RDX=dffffc0000000000 >> RSI=0000000000000006 RDI=ffffffff84c57000 RBP=ffffffff800000c8 RSP=ffffffff80000000 > > And #PF doesn't use IST, so it double-faulted. > > Either the stack isn't mapped in the page tables, RSP is corrupt, or > there's a genuine stack overflow here. > I reproduced this, and this is kasan bug: │0xffffffff84864897 mov $0xffffffff83f1d0b8,%rdi │0xffffffff8486489e movabs $0xdffffc0000000000,%rax │0xffffffff848648a8 push %rbp │0xffffffff848648a9 mov %rdi,%rdx │0xffffffff848648ac shr $0x3,%rdx │0xffffffff848648b0 mov %rsp,%rbp >│0xffffffff848648b3 mov (%rdx,%rax,1),%al we crash on the last move which is a read from shadow (gdb) p/x $rdx $1 = 0x1ffffffff07e3a17 (gdb) p/x $rax $2 = 0xdffffc0000000000 (gdb) p/x 0xdffffc0000000000 + 0x1ffffffff07e3a17 $4 = 0xfffffbfff07e3a17 (gdb) p/x *0xfffffbfff07e3a17 Cannot access memory at address 0xfffffbfff07e3a17