From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E6D1C433F5 for ; Sat, 1 Oct 2022 13:45:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbiJANo6 (ORCPT ); Sat, 1 Oct 2022 09:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiJANoR (ORCPT ); Sat, 1 Oct 2022 09:44:17 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B4C8D7A4 for ; Sat, 1 Oct 2022 06:44:09 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id a2so10749660lfb.6 for ; Sat, 01 Oct 2022 06:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=TYNerxH0puQbsVtEkHQYTElXnfxin71zHckKhgjb3wo=; b=pPC4RDHgcunrOs1YAJbxKYASRQL0EYqwYyaqphUPyFaD8Vw204sOpYdR5S4tTEFrB/ 0woAHvp31MDrUgyLQAssMhg3nmkw6Q5XGUbsR+S+ybPTiPVEvCMOopiL6wge+yjwRrOi gRVsWxO9BLikXLdlknrcDGu3j+haCq9Lk5eMwTfw70tzQNEigN8tcELB79+TuQb0TZ7I 1hSOFbKAZzWsHOTFkLPEXDa8HBzHq5BueWQ9ND22pyBydZdCXdbU34oMI1iVw/kcdRC5 okca1moM5dhKy0t1ztzEm/dcLcy0KxGRwC7kdlbh7xET+/VLFR82yM3kVGA9kTWbXwXH DZQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=TYNerxH0puQbsVtEkHQYTElXnfxin71zHckKhgjb3wo=; b=unrmnJ+RRfrgGwy/NkZh4AP9HTy8+kqukTdAxZrm0X6jeh86Von0wd+bL6j9ocUivH mrtPjMPZ1rpTy8nqPQce0OSUttXlej0dWAjjQXaUIEYpLFEs/K/Aaw4mVr0OT1Ly2Sfo uK/5oBG9StydI+wqq414EFwLzSayg1RyYjqrK4aLmVCabX9SJ231DFhSikcuzM7nD/Ls Ck4viKJpLfX/FIHNSXe8u/9DXEr4PjgG915U58rUH9KuNikUWJQ6npoGoscwmXJxzo4V d2swsI7clF4cPbJohdX0BDUDiXLbsHD0DoEAPHSFRbXOVzly6K4Rga938MA9Q1LwxhMG cgCQ== X-Gm-Message-State: ACrzQf3qkNyQzdyhHwLsSstD26bEWEb2uU9uGeBHLeek79llE5jfG+do V7yKW3cLu8WnVf5pcPlYAViSPD0tCqa9sRr0+GaSl83Femg= X-Google-Smtp-Source: AMsMyM6o4uN/ZdAZsN2b9paG+9+8vsu4ffsnqQiv++FM0HQqieYKRt8sB663hPDpQm8/Lz03i4EzFf5K/85w3MNkqVQ= X-Received: by 2002:a05:6512:1195:b0:4a1:d00d:edf with SMTP id g21-20020a056512119500b004a1d00d0edfmr5231375lfr.598.1664631847264; Sat, 01 Oct 2022 06:44:07 -0700 (PDT) MIME-Version: 1.0 References: <000000000000bcec9205e9f944c8@google.com> In-Reply-To: <000000000000bcec9205e9f944c8@google.com> From: Dmitry Vyukov Date: Sat, 1 Oct 2022 15:43:54 +0200 Message-ID: Subject: Re: [syzbot] WARNING: nested lock was not taken in evict To: syzbot , almaz.alexandrovich@paragon-software.com, ntfs3@lists.linux.dev Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 1 Oct 2022 at 15:41, syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: 49c13ed0316d Merge tag 'soc-fixes-6.0-rc7' of git://git.ke.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16061b60880000 > kernel config: https://syzkaller.appspot.com/x/.config?x=4520785fccee9b40 > dashboard link: https://syzkaller.appspot.com/bug?extid=91a81c5ebb1f330e5fbd > compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+91a81c5ebb1f330e5fbd@syzkaller.appspotmail.com +ntfs3 maintainers > ================================== > WARNING: Nested lock was not taken > 6.0.0-rc7-syzkaller-00068-g49c13ed0316d #0 Not tainted > ---------------------------------- > syz-executor.4/14643 is trying to lock: > ffff888081ac29d8 (&s->s_inode_list_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] > ffff888081ac29d8 (&s->s_inode_list_lock){+.+.}-{2:2}, at: inode_sb_list_del fs/inode.c:503 [inline] > ffff888081ac29d8 (&s->s_inode_list_lock){+.+.}-{2:2}, at: evict+0x161/0x620 fs/inode.c:654 > > but this task is not holding: > general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN > KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] > CPU: 1 PID: 14643 Comm: syz-executor.4 Not tainted 6.0.0-rc7-syzkaller-00068-g49c13ed0316d #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 > RIP: 0010:print_lock_nested_lock_not_held kernel/locking/lockdep.c:4885 [inline] > RIP: 0010:__lock_acquire+0x1112/0x1f60 kernel/locking/lockdep.c:5044 > Code: 3c 30 00 48 8b 5c 24 70 74 12 48 89 df e8 c6 e9 73 00 49 be 00 00 00 00 00 fc ff df 48 8b 1b 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 9f e9 73 00 48 8b 33 45 31 f6 48 > RSP: 0018:ffffc90004cb7828 EFLAGS: 00010006 > RAX: 0000000000000003 RBX: 0000000000000018 RCX: 662ac61637488d00 > RDX: ffffc90014d53000 RSI: 000000000001a212 RDI: 000000000001a213 > RBP: ffff888082c3a360 R08: ffffffff816d5a8d R09: ffffed1017364f14 > R10: ffffed1017364f14 R11: 1ffff11017364f13 R12: ffff888082c3a5c8 > R13: b934e40f1353b763 R14: dffffc0000000000 R15: ffff888082c39d80 > FS: 00007fdd95b20700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000001b2ec28000 CR3: 000000003f60a000 CR4: 00000000003506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5666 > __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] > _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 > spin_lock include/linux/spinlock.h:349 [inline] > inode_sb_list_del fs/inode.c:503 [inline] > evict+0x161/0x620 fs/inode.c:654 > ntfs_fill_super+0x3c6c/0x4420 fs/ntfs3/super.c:1190 > get_tree_bdev+0x400/0x620 fs/super.c:1323 > vfs_get_tree+0x88/0x270 fs/super.c:1530 > do_new_mount+0x289/0xad0 fs/namespace.c:3040 > do_mount fs/namespace.c:3383 [inline] > __do_sys_mount fs/namespace.c:3591 [inline] > __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3568 > do_syscall_x64 arch/x86/entry/common.c:50 [inline] > do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 > entry_SYSCALL_64_after_hwframe+0x63/0xcd > RIP: 0033:0x7fdd94a8bada > Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007fdd95b1ff88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 > RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007fdd94a8bada > RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fdd95b1ffe0 > RBP: 00007fdd95b20020 R08: 00007fdd95b20020 R09: 0000000020000000 > R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 > R13: 0000000020000100 R14: 00007fdd95b1ffe0 R15: 0000000020003580 > > Modules linked in: > ---[ end trace 0000000000000000 ]--- > RIP: 0010:print_lock_nested_lock_not_held kernel/locking/lockdep.c:4885 [inline] > RIP: 0010:__lock_acquire+0x1112/0x1f60 kernel/locking/lockdep.c:5044 > Code: 3c 30 00 48 8b 5c 24 70 74 12 48 89 df e8 c6 e9 73 00 49 be 00 00 00 00 00 fc ff df 48 8b 1b 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 9f e9 73 00 48 8b 33 45 31 f6 48 > RSP: 0018:ffffc90004cb7828 EFLAGS: 00010006 > RAX: 0000000000000003 RBX: 0000000000000018 RCX: 662ac61637488d00 > RDX: ffffc90014d53000 RSI: 000000000001a212 RDI: 000000000001a213 > RBP: ffff888082c3a360 R08: ffffffff816d5a8d R09: ffffed1017364f14 > R10: ffffed1017364f14 R11: 1ffff11017364f13 R12: ffff888082c3a5c8 > R13: b934e40f1353b763 R14: dffffc0000000000 R15: ffff888082c39d80 > FS: 00007fdd95b20700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000001b2ec28000 CR3: 000000003f60a000 CR4: 00000000003506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > ---------------- > Code disassembly (best guess): > 0: 3c 30 cmp $0x30,%al > 2: 00 48 8b add %cl,-0x75(%rax) > 5: 5c pop %rsp > 6: 24 70 and $0x70,%al > 8: 74 12 je 0x1c > a: 48 89 df mov %rbx,%rdi > d: e8 c6 e9 73 00 callq 0x73e9d8 > 12: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 > 19: fc ff df > 1c: 48 8b 1b mov (%rbx),%rbx > 1f: 48 83 c3 18 add $0x18,%rbx > 23: 48 89 d8 mov %rbx,%rax > 26: 48 c1 e8 03 shr $0x3,%rax > * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction > 2f: 74 08 je 0x39 > 31: 48 89 df mov %rbx,%rdi > 34: e8 9f e9 73 00 callq 0x73e9d8 > 39: 48 8b 33 mov (%rbx),%rsi > 3c: 45 31 f6 xor %r14d,%r14d > 3f: 48 rex.W > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/000000000000bcec9205e9f944c8%40google.com.