syzbot


WARNING in debugfs_file_get

Status: fixed on 2024/01/23 12:02
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+e3f2df3bd1dec80ac9ea@syzkaller.appspotmail.com
Fix commit: 88ac06a9f938 Revert "debugfs: annotate debugfs handlers vs. removal with lockdep"
First crash: 347d, last: 325d

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5087 at kernel/locking/lockdep.c:1226 lockdep_register_key+0xcd/0x200 kernel/locking/lockdep.c:1226
Modules linked in:
CPU: 1 PID: 5087 Comm: syz-executor.0 Not tainted 6.7.0-rc4-syzkaller-00384-gb10a3ccaf6e3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:lockdep_register_key+0xcd/0x200 kernel/locking/lockdep.c:1226
Code: 00 00 00 00 00 fc ff df eb 1a 48 89 d8 48 c1 e8 03 42 80 3c 38 00 0f 85 fa 00 00 00 48 8b 1b 48 85 db 74 2e 48 39 eb 75 e1 90 <0f> 0b 90 e8 bb f7 ff ff 9c 58 f6 c4 02 0f 85 be 00 00 00 41 f7 c6
RSP: 0018:ffffc9000346f958 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff888026296090 RCX: 1ffffffff1e3159f
RDX: 1ffffffff2416977 RSI: ffffffff8acd0880 RDI: ffffffff8b2ee9e0
RBP: ffff888026296090 R08: 0000000000000000 R09: fffffbfff1e30f22
R10: ffffffff8f187917 R11: 0000000000000000 R12: 0000000000000707
R13: ffffffff920b4bb8 R14: 0000000000000202 R15: dffffc0000000000
FS:  00005555558b4480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000b1a800 CR3: 000000002400d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 debugfs_file_get+0x40a/0x620 fs/debugfs/file.c:113
 open_proxy_open+0x50/0x3f0 fs/debugfs/file.c:269
 do_dentry_open+0x8d6/0x18c0 fs/open.c:948
 do_open fs/namei.c:3622 [inline]
 path_openat+0x1e5a/0x2c50 fs/namei.c:3779
 do_filp_open+0x1de/0x430 fs/namei.c:3809
 do_sys_openat2+0x176/0x1e0 fs/open.c:1440
 do_sys_open fs/open.c:1455 [inline]
 __do_sys_openat fs/open.c:1471 [inline]
 __se_sys_openat fs/open.c:1466 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1466
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fba72a7b721
Code: 75 57 89 f0 25 00 00 41 00 3d 00 00 41 00 74 49 80 3d ea 17 10 00 00 74 6d 89 da 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 93 00 00 00 48 8b 54 24 28 64 48 2b 14 25
RSP: 002b:00007fffac76a3a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fba72a7b721
RDX: 0000000000000002 RSI: 00007fba72ac7551 RDI: 00000000ffffff9c
RBP: 00007fba72ac7551 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007fffac76aaf8
R13: 0000000000000003 R14: 00007fba72b9c018 R15: 0000000000000000
 </TASK>

Crashes (239):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/10 11:09 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in debugfs_file_get
2023/12/10 07:43 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in debugfs_file_get
2023/12/10 00:50 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in debugfs_file_get
2023/12/09 21:49 upstream f2e8a57ee903 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in debugfs_file_get
2023/12/09 14:08 upstream f2e8a57ee903 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in debugfs_file_get
2023/12/08 19:55 upstream 5e3f5b81de80 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in debugfs_file_get
2023/12/08 13:59 upstream 5e3f5b81de80 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in debugfs_file_get
2023/12/08 12:48 upstream 9ace34a8e446 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in debugfs_file_get
2023/12/08 06:36 upstream 9ace34a8e446 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in debugfs_file_get
2023/12/07 22:42 upstream 9ace34a8e446 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in debugfs_file_get
2023/12/07 21:36 upstream 9ace34a8e446 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in debugfs_file_get
2023/12/05 05:03 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in debugfs_file_get
2023/12/03 05:05 upstream 1b8af6552cb7 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in debugfs_file_get
2023/12/05 09:28 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in debugfs_file_get
2023/12/10 05:04 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in debugfs_file_get
2023/12/10 00:51 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in debugfs_file_get
2023/12/10 03:26 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/09 18:17 upstream f2e8a57ee903 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/09 09:22 upstream f2e8a57ee903 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/09 07:01 upstream f2e8a57ee903 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/09 03:26 upstream f2e8a57ee903 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/09 01:59 upstream f2e8a57ee903 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/08 22:28 upstream 5e3f5b81de80 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/08 15:34 upstream 5e3f5b81de80 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/08 11:47 upstream 5e3f5b81de80 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/08 02:46 upstream 9ace34a8e446 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/07 18:41 upstream bee0e7762ad2 28b24332 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in debugfs_file_get
2023/12/20 12:36 bpf 117211aa739a 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/20 04:49 bpf 117211aa739a 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/18 23:43 bpf 117211aa739a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/18 14:36 bpf 117211aa739a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/18 04:12 bpf 117211aa739a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/17 01:34 bpf 117211aa739a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/16 15:14 bpf 117211aa739a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/16 04:35 bpf 117211aa739a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/13 19:24 net 2513974cc3e1 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in debugfs_file_get
2023/12/13 16:51 bpf e307b5a845c5 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/12 08:07 net e307b5a845c5 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in debugfs_file_get
2023/12/11 08:45 bpf bd4a816752ba 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/11 04:31 bpf bd4a816752ba 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/09 20:14 bpf bd4a816752ba 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/09 00:37 bpf bd4a816752ba 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in debugfs_file_get
2023/12/08 08:47 net b0a930e8d90c 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in debugfs_file_get
2023/12/08 02:06 net 0ad722bd9ee3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in debugfs_file_get
2023/12/18 18:48 bpf-next 0c970ed2f87c 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/18 06:53 bpf-next 42d45c45624a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/17 12:47 bpf-next 42d45c45624a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/17 04:57 bpf-next 42d45c45624a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/17 02:50 bpf-next 42d45c45624a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/17 00:29 bpf-next 42d45c45624a 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/16 00:07 bpf-next 7489723c2e26 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/13 08:34 bpf-next e1ba7f64b192 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/12 19:13 bpf-next 56c26d5ad86d ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/12 13:40 bpf-next 406a6fa44bfb ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/12 11:04 net-next 68c84289bcc0 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in debugfs_file_get
2023/12/12 03:58 net-next 68c84289bcc0 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in debugfs_file_get
2023/12/11 17:19 bpf-next 2ebe81c81435 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/11 09:49 net-next 5a08d0065a91 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in debugfs_file_get
2023/12/11 05:58 net-next 5a08d0065a91 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in debugfs_file_get
2023/12/10 21:03 bpf-next 5bcbdf72df88 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/09 11:48 net-next 5a08d0065a91 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in debugfs_file_get
2023/12/07 17:38 bpf-next 2146f7fe6e02 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in debugfs_file_get
2023/12/04 10:59 linux-next 629a3b49f3f9 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in debugfs_file_get
2023/11/29 05:52 linux-next 1f5c003694fa 1adfb6f6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in debugfs_file_get
* Struck through repros no longer work on HEAD.