syzbot


BUG: unable to handle kernel paging request in take_dentry_name_snapshot

Status: closed as dup on 2023/10/04 08:35
Subsystems: reiserfs overlayfs
[Documentation on labels]
Reported-by: syzbot+90392eaed540afcc8fc3@syzkaller.appspotmail.com
First crash: 373d, last: 61d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 1784fbc2ed9c888ea4e895f30a53207ed7ee8208
Author: Christian Brauner <brauner@kernel.org>
Date: Fri Jun 16 12:53:58 2023 +0000

  ovl: port to new mount api

  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING: locking bug in take_dentry_name_snapshot reiserfs overlayfs C error done 14 235d 295d
Discussions (4)
Title Replies (including bot) Last reply
[syzbot] BUG: unable to handle kernel paging request in take_dentry_name_snapshot 1 (4) 2023/10/04 08:35
[syzbot] Monthly overlayfs report (Oct 2023) 0 (1) 2023/10/04 07:30
[syzbot] Monthly overlayfs report (May 2023) 0 (1) 2023/05/06 08:19
[syzbot] Monthly overlayfs report 0 (1) 2023/04/05 08:55
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) bluetooth 1 685d 685d 0/25 auto-closed as invalid on 2022/04/18 01:34
upstream BUG: spinlock bad magic in lock_sock_nested bluetooth 26 827d 1182d 0/25 auto-closed as invalid on 2021/12/27 15:41
upstream BUG: spinlock bad magic in skb_queue_tail net afs 1 350d 346d 0/25 auto-obsoleted due to no activity on 2023/03/19 17:50
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/08/24 06:51 16m retest repro linux-next report log
2023/08/24 06:51 16m retest repro upstream report log
2023/08/24 06:51 14m retest repro linux-next report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/07/30 07:01 7h31m bisect fix upstream job log (1)
2023/06/24 03:19 1h00m bisect fix upstream job log (0) log

Sample crash report:
overlayfs: upper fs does not support tmpfile.
BUG: spinlock bad magic on CPU#1, syz-executor.5/7337
BUG: unable to handle page fault for address: ffffff8aa6b885a0
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD c572067 P4D c572067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7337 Comm: syz-executor.5 Not tainted 6.3.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:task_pid_nr include/linux/sched.h:1568 [inline]
RIP: 0010:spin_dump kernel/locking/spinlock_debug.c:63 [inline]
RIP: 0010:spin_bug+0x104/0x1c0 kernel/locking/spinlock_debug.c:77
Code: 44 8b 4d 08 74 7d 48 8d bb a0 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 68 <44> 8b 83 a0 05 00 00 48 8d 8b 08 08 00 00 48 8d 7d 04 48 b8 00 00
RSP: 0018:ffffc9000ae5f988 EFLAGS: 00010246

RAX: 0000000000000000 RBX: ffffff8aa6b88000 RCX: 0000000000000000
RDX: 1ffffff154d710b4 RSI: ffffffff8167778c RDI: ffffff8aa6b885a0
RBP: ffffffff920016f7 R08: 0000000000000005 R09: 00000000000000ff
R10: 0000000000000001 R11: 697073203a475542 R12: ffffffff8a4cbee0
R13: ffff8880237357c0 R14: ffff888026b2b440 R15: ffff888073d49028
FS:  00007f23658b8700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffff8aa6b885a0 CR3: 00000000287df000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline]
 do_raw_spin_lock+0x219/0x2b0 kernel/locking/spinlock_debug.c:114
 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+0x2090/0x7270 fs/overlayfs/super.c:2000
 mount_nodev+0x64/0x120 fs/super.c:1426
 legacy_get_tree+0x109/0x220 fs/fs_context.c:610
 vfs_get_tree+0x8d/0x350 fs/super.c:1510
 do_new_mount fs/namespace.c:3042 [inline]
 path_mount+0x1342/0x1e40 fs/namespace.c:3372
 do_mount fs/namespace.c:3385 [inline]
 __do_sys_mount fs/namespace.c:3594 [inline]
 __se_sys_mount fs/namespace.c:3571 [inline]
 __x64_sys_mount+0x283/0x300 fs/namespace.c:3571
 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:0x7f2364a8c0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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:00007f23658b8168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2364babf80 RCX: 00007f2364a8c0f9
RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000
RBP: 00007f2364ae7b39 R08: 00000000200001c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff14125e7f R14: 00007f23658b8300 R15: 0000000000022000
 </TASK>
Modules linked in:
CR2: ffffff8aa6b885a0
---[ end trace 0000000000000000 ]---
RIP: 0010:task_pid_nr include/linux/sched.h:1568 [inline]
RIP: 0010:spin_dump kernel/locking/spinlock_debug.c:63 [inline]
RIP: 0010:spin_bug+0x104/0x1c0 kernel/locking/spinlock_debug.c:77
Code: 44 8b 4d 08 74 7d 48 8d bb a0 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 68 <44> 8b 83 a0 05 00 00 48 8d 8b 08 08 00 00 48 8d 7d 04 48 b8 00 00
RSP: 0018:ffffc9000ae5f988 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffff8aa6b88000 RCX: 0000000000000000
RDX: 1ffffff154d710b4 RSI: ffffffff8167778c RDI: ffffff8aa6b885a0
RBP: ffffffff920016f7 R08: 0000000000000005 R09: 00000000000000ff
R10: 0000000000000001 R11: 697073203a475542 R12: ffffffff8a4cbee0
R13: ffff8880237357c0 R14: ffff888026b2b440 R15: ffff888073d49028
FS:  00007f23658b8700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffff8aa6b885a0 CR3: 00000000287df000 CR4: 0000000000350ee0
----------------
Code disassembly (best guess):
   0:	44 8b 4d 08          	mov    0x8(%rbp),%r9d
   4:	74 7d                	je     0x83
   6:	48 8d bb a0 05 00 00 	lea    0x5a0(%rbx),%rdi
   d:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  14:	fc ff df
  17:	48 89 fa             	mov    %rdi,%rdx
  1a:	48 c1 ea 03          	shr    $0x3,%rdx
  1e:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax
  22:	84 c0                	test   %al,%al
  24:	74 04                	je     0x2a
  26:	3c 03                	cmp    $0x3,%al
  28:	7e 68                	jle    0x92
* 2a:	44 8b 83 a0 05 00 00 	mov    0x5a0(%rbx),%r8d <-- trapping instruction
  31:	48 8d 8b 08 08 00 00 	lea    0x808(%rbx),%rcx
  38:	48 8d 7d 04          	lea    0x4(%rbp),%rdi
  3c:	48                   	rex.W
  3d:	b8                   	.byte 0xb8

Crashes (27):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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/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/10/04 02:47 upstream 5e62ed3b1c8a 65faba36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: spinlock bad magic in release_metapage
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.