syzbot


BUG: unable to handle kernel paging request in take_dentry_name_snapshot

Status: upstream: reported C repro on 2022/12/01 12:43
Labels: reiserfs overlayfs (incorrect?)
Reported-by: syzbot+90392eaed540afcc8fc3@syzkaller.appspotmail.com
First crash: 186d, last: 14d

Cause bisection: failed (error log, bisect log)
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly overlayfs report (May 2023) 0 (1) 2023/05/06 08:19
[syzbot] Monthly overlayfs report 0 (1) 2023/04/05 08:55
[syzbot] BUG: unable to handle kernel paging request in take_dentry_name_snapshot 0 (2) 2022/12/23 05:32
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: spinlock bad magic in lock_sock_nested (2) 1 498d 498d 0/24 auto-closed as invalid on 2022/04/18 01:34
upstream BUG: spinlock bad magic in lock_sock_nested 26 640d 995d 0/24 auto-closed as invalid on 2021/12/27 15:41
upstream BUG: spinlock bad magic in skb_queue_tail afs net 1 163d 159d 0/24 auto-obsoleted due to no activity on 2023/03/19 17:50

Sample crash report:
BUG: unable to handle page fault for address: fffffffffff81629
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD c48f067 P4D c48f067 PUD c491067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5251 Comm: syz-executor130 Not tainted 6.1.0-syzkaller-14446-g8395ae05cb5a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__lock_acquire+0xd8d/0x56d0 kernel/locking/lockdep.c:4925
Code: c8 00 00 00 89 05 83 4e 3c 0f e9 bd 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 80 3c 02 00 0f 85 4e 31 00 00 <49> 81 3e e0 e5 f6 8f 0f 84 4c f3 ff ff 41 83 fc 01 0f 87 54 f3 ff
RSP: 0018:ffffc90004e0f7e8 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: 1ffff920009c1f2d RCX: 0000000000000000
RDX: 1fffffffffff02c5 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: fffffbfff1ce5ada R11: 0000000000000000 R12: 0000000000000000
R13: ffff88802c3a1d40 R14: fffffffffff81629 R15: 0000000000000000
FS:  00007fab0371d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffff81629 CR3: 000000006e8d9000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 lock_acquire kernel/locking/lockdep.c:5668 [inline]
 lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:350 [inline]
 take_dentry_name_snapshot+0x2b/0x170 fs/dcache.c:315
 ovl_check_rename_whiteout fs/overlayfs/super.c:1207 [inline]
 ovl_make_workdir fs/overlayfs/super.c:1329 [inline]
 ovl_get_workdir fs/overlayfs/super.c:1444 [inline]
 ovl_fill_super+0x1dd2/0x6330 fs/overlayfs/super.c:2000
 mount_nodev+0x64/0x120 fs/super.c:1405
 legacy_get_tree+0x109/0x220 fs/fs_context.c:610
 vfs_get_tree+0x8d/0x2f0 fs/super.c:1489
 do_new_mount fs/namespace.c:3145 [inline]
 path_mount+0x132a/0x1e20 fs/namespace.c:3475
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount fs/namespace.c:3674 [inline]
 __x64_sys_mount+0x283/0x300 fs/namespace.c:3674
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fab03f80209
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fab0371d208 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fab04005528 RCX: 00007fab03f80209
RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000
RBP: 00007fab04005520 R08: 0000000020000480 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fab0400552c
R13: 00007ffcd399fc6f R14: 00007fab0371d300 R15: 0000000000022000
 </TASK>
Modules linked in:
CR2: fffffffffff81629
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0xd8d/0x56d0 kernel/locking/lockdep.c:4925
Code: c8 00 00 00 89 05 83 4e 3c 0f e9 bd 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 80 3c 02 00 0f 85 4e 31 00 00 <49> 81 3e e0 e5 f6 8f 0f 84 4c f3 ff ff 41 83 fc 01 0f 87 54 f3 ff
RSP: 0018:ffffc90004e0f7e8 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: 1ffff920009c1f2d RCX: 0000000000000000
RDX: 1fffffffffff02c5 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: fffffbfff1ce5ada R11: 0000000000000000 R12: 0000000000000000
R13: ffff88802c3a1d40 R14: fffffffffff81629 R15: 0000000000000000
FS:  00007fab0371d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffff81629 CR3: 000000006e8d9000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	c8 00 00 00          	enterq $0x0,$0x0
   4:	89 05 83 4e 3c 0f    	mov    %eax,0xf3c4e83(%rip)        # 0xf3c4e8d
   a:	e9 bd 00 00 00       	jmpq   0xcc
   f:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  16:	fc ff df
  19:	4c 89 f2             	mov    %r14,%rdx
  1c:	48 c1 ea 03          	shr    $0x3,%rdx
  20:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  24:	0f 85 4e 31 00 00    	jne    0x3178
* 2a:	49 81 3e e0 e5 f6 8f 	cmpq   $0xffffffff8ff6e5e0,(%r14) <-- trapping instruction
  31:	0f 84 4c f3 ff ff    	je     0xfffff383
  37:	41 83 fc 01          	cmp    $0x1,%r12d
  3b:	0f                   	.byte 0xf
  3c:	87 54 f3 ff          	xchg   %edx,-0x1(%rbx,%rsi,8)

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2022/12/23 05:31 upstream 8395ae05cb5a 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/03/27 08:51 upstream 197b6b60ae7b fbf0499a .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root BUG: spinlock bad magic in take_dentry_name_snapshot
2023/03/03 18:47 linux-next 1acf39ef8f14 f8902b57 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root BUG: spinlock bad magic in take_dentry_name_snapshot
2023/01/25 16:13 linux-next 691781f561e9 9dfcf09c .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root BUG: spinlock bad magic in take_dentry_name_snapshot
2023/05/17 08:16 upstream f1fcbaa18b28 eaac4681 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/04/24 19:40 upstream 1a0beef98b58 c778c7f4 .config console log report info ci-qemu-upstream BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/03/18 18:06 upstream 478a351ce0d6 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/02/20 03:56 upstream c9c3395d5e3d bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/02/07 14:15 upstream 05ecb680708a 7d00f0e1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/02/07 12:18 upstream 05ecb680708a 7d00f0e1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/02/03 08:31 upstream 66a87fff1a87 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/01/26 19:08 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/01/11 10:04 upstream 7dd4b804e080 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2022/12/26 22:00 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/02/16 07:03 upstream 033c40a89f55 6be0f1f5 .config console log report info ci-qemu-upstream-386 BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/02/07 02:59 upstream 05ecb680708a 5bc3be51 .config console log report info ci-qemu-upstream-386 BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/01/15 15:52 upstream f0f70ddb8f3b a63719e7 .config console log report info ci-qemu-upstream-386 BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/01/15 00:18 upstream 7c6984405241 a63719e7 .config console log report info ci-qemu-upstream-386 BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/01/14 23:24 upstream 7c6984405241 a63719e7 .config console log report info ci-qemu-upstream-386 BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2022/11/29 00:35 upstream b7b275e60bcd ca9683b8 .config console log report info ci-qemu-upstream-386 BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2022/11/26 21:23 upstream 644e9524388a f4470a7b .config console log report info ci-qemu-upstream-386 BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2022/12/20 02:31 linux-next e45fb347b630 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2022/12/18 15:34 linux-next ca39c4daa6f7 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2022/11/29 17:39 linux-next 9e46a7996732 05dc7993 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in take_dentry_name_snapshot
2023/03/16 20:16 upstream 0ddc84d2dd43 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: spinlock bad magic in take_dentry_name_snapshot
2023/01/19 07:21 upstream 7287904c8771 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: wild-memory-access Read in take_dentry_name_snapshot
* Struck through repros no longer work on HEAD.