Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7965915ybc; Fri, 29 Nov 2019 03:50:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzercNs9y4JzG1gplMGji4mQzCyVCJ7IE1VXKxjERTuR0eY0gGSTY+vGPlIxudD7NPGqkFT X-Received: by 2002:adf:9c8a:: with SMTP id d10mr13842728wre.156.1575028206638; Fri, 29 Nov 2019 03:50:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575028206; cv=none; d=google.com; s=arc-20160816; b=C4T54DJy4fYQLNTaKFVThUmaXu+4IG7gZSeb6SYa00gA/bWdZY15+N57frji4Y2YJL noIAdbC2kdPPoDnQbjOFvKBY+JSRrbNBPhDPVxAXLTM7fFXQSIRQ+4FbLA115VLx/s9i CMec0p1DZTdtAEjl0Zso3p4VyJB/WOyLHitP8ZrIRz38BGh7JIojgTicKtafVXa1u3Er Lq92IItMVYjbQVThjHcx6GA5pJ1wjheGOkIq0FRnwo/hmYmThEwbE4XPGHILb+18xH+8 PqA7nbf5Zy9ga7ePTSDbJs2wVa05tmH7n9H/sTA9JHhsp+NZnr7gWhT1jih2M5zOEkSt nHew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=P+2G3R6cNvGwqJrWJESzI9weRmKK12p/MVr0x5c311Y=; b=atJFFwU4zjMpdLKnsTjyTrRkRs0yNPj9aIT9UMa65SdjOZdfVWmBJGDJOVbo4BnPBx ZJFrctxceK86nk43U6jsWrztp5u2i2dubFaUXnJOQzbzlJ42y0BkazOr+jo/M5vrvw3y kCLJHo/tpQTF28MBiAk4S+MNbhY0yQzCpypqPCnJvF2/L5wIGF+kGQREtcbDxT+i7Bwj N0goVL6YhfKnRrjvyFqMsVC/JUD45P1NlSH9FNETIQvEZf5bxJeGMk3mQ88Y9xA+L0A7 iej/GW9HWabumSVH0HFwfPMYnOARJDpHZQHThEj9ohFTe9O/mQLAUl5xDeK2RPOBjbIB CPMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rvkrwkPn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq19si187662ejb.97.2019.11.29.03.49.41; Fri, 29 Nov 2019 03:50:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rvkrwkPn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbfK2Lr6 (ORCPT + 99 others); Fri, 29 Nov 2019 06:47:58 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:36646 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbfK2Lr5 (ORCPT ); Fri, 29 Nov 2019 06:47:57 -0500 Received: by mail-qk1-f196.google.com with SMTP id v19so5619789qkv.3 for ; Fri, 29 Nov 2019 03:47:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P+2G3R6cNvGwqJrWJESzI9weRmKK12p/MVr0x5c311Y=; b=rvkrwkPnU/FLgFDl9/L84Ov4ha7Mwg2C7339w9Xy9J1OfnOqLFlcoLkN+ew1/e+3xZ 17NcmpSZXPG2N0pKj0DgA5NzwSUAkI33JuMvF7jspDD2Y9XdU3S79ceFcf8t0xbbPJID XetIyZ3XQzlHpIBy64b2HVbFFCUGuFWCOHVFHZ4ndsr8HkTOpC5iu3ppDzNXoVv60EQe 5pkki56d3Gb2s8XAW+ZG3FLqpiRwvTHzh8tAbNSRwLkFWK6xhGeNMNasHMqwu6/shLA/ q2WQo+47xn6ArM00WREp+RlndCOQwspzd014eXA98dgI9aDUks8N7ZDcR+qm6S7wN5Ro /aGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P+2G3R6cNvGwqJrWJESzI9weRmKK12p/MVr0x5c311Y=; b=C1+tkMJkc1xj+TRQ4iQaTuEUm3ZSqDKVd2f0HndX9mpMyhSbM96vSd3pvMPHjFT3/5 y40O11nx9rp57QLxF4zBIhJiIqUPb1w4BbkVHNGOTEA42BUZu8MY8ifeSEBgNZnMkzFQ RcjXNqGDIciKuauK2NMhImiHMiNlwVfm2BoJ2xS09EPgKP+gwALNfUB4/tHvkodhFHks 5rRKkLdS0haUahWLAtY6sS9nppnIQRLbynQE/KywBUKZYbef6ExkkCT1bpO9R63VV6j8 wijLXTZcxo7Nu/s2pSw7PDK6psXcrFgEJ8haVGnKuizGSIXeHupDhrraARQWYsabn3CC HZeQ== X-Gm-Message-State: APjAAAUNiWp5XS2+XiJVT6n/vRipnkRoTZyiI5hPGh5ApJBsAICNQz6e W2JFnQxyDzJKZ07yhd2e6jC8vB+HNSREPjm+oEvfxQ== X-Received: by 2002:a37:de12:: with SMTP id h18mr15428363qkj.256.1575028075712; Fri, 29 Nov 2019 03:47:55 -0800 (PST) MIME-Version: 1.0 References: <20191031093909.9228-1-dja@axtens.net> <20191031093909.9228-2-dja@axtens.net> <1573835765.5937.130.camel@lca.pw> <871ru5hnfh.fsf@dja-thinkpad.axtens.net> <952ec26a-9492-6f71-bab1-c1def887e528@virtuozzo.com> <2297c356-0863-69ce-85b6-8608081295ed@virtuozzo.com> In-Reply-To: <2297c356-0863-69ce-85b6-8608081295ed@virtuozzo.com> From: Dmitry Vyukov Date: Fri, 29 Nov 2019 12:47:43 +0100 Message-ID: Subject: Re: [PATCH v11 1/4] kasan: support backing vmalloc space with real shadow memory To: Andrey Ryabinin Cc: Daniel Axtens , Qian Cai , kasan-dev , Linux-MM , "the arch/x86 maintainers" , Alexander Potapenko , Andy Lutomirski , LKML , Mark Rutland , Christophe Leroy , linuxppc-dev , Vasily Gorbik Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 29, 2019 at 12:38 PM Andrey Ryabinin wrote: > >>> > >>> > >>> Not sure if it's the same or not. Is it addressed by something in flight? > >>> > >>> My config: > >>> https://gist.githubusercontent.com/dvyukov/36c7be311fdec9cd51c649f7c3cb2ddb/raw/39c6f864fdd0ffc53f0822b14c354a73c1695fa1/gistfile1.txt > >> > >> > >> I've tried this fix for pcpu_get_vm_areas: > >> https://groups.google.com/d/msg/kasan-dev/t_F2X1MWKwk/h152Z3q2AgAJ > >> and it helps. But this will break syzbot on linux-next soon. > > > > > > Can this be related as well? > > Crashes on accesses to shadow on the ion memory... > > Nope, it's vm_map_ram() not being handled Another suspicious one. Related to kasan/vmalloc? BUG: unable to handle page fault for address: fffff52005b80000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 7ffcd067 P4D 7ffcd067 PUD 2cd10067 PMD 66d76067 PTE 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 2 PID: 9211 Comm: syz-executor.2 Not tainted 5.4.0-next-20191129+ #6 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 RIP: 0010:xfs_sb_read_verify+0xe9/0x540 fs/xfs/libxfs/xfs_sb.c:691 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 1e 04 00 00 4d 8b ac 24 30 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e ad 03 00 00 41 8b 45 00 bf 58 RSP: 0018:ffffc9000a58f8d0 EFLAGS: 00010a06 RAX: dffffc0000000000 RBX: 1ffff920014b1f1d RCX: ffffc9000af42000 RDX: 1ffff92005b80000 RSI: ffffffff82914404 RDI: ffff88805cdb1460 RBP: ffffc9000a58fab0 R08: ffff8880610cd380 R09: ffffed1005a87045 R10: ffffed1005a87044 R11: ffff88802d438223 R12: ffff88805cdb1340 R13: ffffc9002dc00000 R14: ffffc9000a58fa88 R15: ffff888061b5c000 FS: 00007fb49bda9700(0000) GS:ffff88802d400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff52005b80000 CR3: 0000000060769006 CR4: 0000000000760ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: xfs_buf_ioend+0x228/0xdc0 fs/xfs/xfs_buf.c:1162 __xfs_buf_submit+0x38b/0xe50 fs/xfs/xfs_buf.c:1485 xfs_buf_submit fs/xfs/xfs_buf.h:268 [inline] xfs_buf_read_uncached+0x15c/0x560 fs/xfs/xfs_buf.c:897 xfs_readsb+0x2d0/0x540 fs/xfs/xfs_mount.c:298 xfs_fc_fill_super+0x3e6/0x11f0 fs/xfs/xfs_super.c:1415 get_tree_bdev+0x444/0x620 fs/super.c:1340 xfs_fc_get_tree+0x1c/0x20 fs/xfs/xfs_super.c:1550 vfs_get_tree+0x8e/0x300 fs/super.c:1545 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x152d/0x1b50 fs/namespace.c:3142 ksys_mount+0x114/0x130 fs/namespace.c:3351 __do_sys_mount fs/namespace.c:3365 [inline] __se_sys_mount fs/namespace.c:3362 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3362 do_syscall_64+0xfa/0x780 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x46736a Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb49bda8a78 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fb49bda8af0 RCX: 000000000046736a RDX: 00007fb49bda8ad0 RSI: 0000000020000140 RDI: 00007fb49bda8af0 RBP: 00007fb49bda8ad0 R08: 00007fb49bda8b30 R09: 00007fb49bda8ad0 R10: 0000000000000000 R11: 0000000000000202 R12: 00007fb49bda8b30 R13: 00000000004b1c60 R14: 00000000004b006d R15: 00007fb49bda96bc Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) CR2: fffff52005b80000 ---[ end trace eddd8949d4c898df ]--- RIP: 0010:xfs_sb_read_verify+0xe9/0x540 fs/xfs/libxfs/xfs_sb.c:691 Code: fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 1e 04 00 00 4d 8b ac 24 30 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e ad 03 00 00 41 8b 45 00 bf 58 RSP: 0018:ffffc9000a58f8d0 EFLAGS: 00010a06 RAX: dffffc0000000000 RBX: 1ffff920014b1f1d RCX: ffffc9000af42000 RDX: 1ffff92005b80000 RSI: ffffffff82914404 RDI: ffff88805cdb1460 RBP: ffffc9000a58fab0 R08: ffff8880610cd380 R09: ffffed1005a87045 R10: ffffed1005a87044 R11: ffff88802d438223 R12: ffff88805cdb1340 R13: ffffc9002dc00000 R14: ffffc9000a58fa88 R15: ffff888061b5c000 FS: 00007fb49bda9700(0000) GS:ffff88802d400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff52005b80000 CR3: 0000000060769006 CR4: 0000000000760ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554