syzbot


WARNING: locking bug in f2fs_getxattr (2)

Status: upstream: reported on 2024/09/21 04:07
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+44090b62afaabafe828a@syzkaller.appspotmail.com
First crash: 221d, last: 39d
Discussions (5)
Title Replies (including bot) Last reply
[syzbot] Monthly f2fs report (Mar 2025) 0 (1) 2025/03/31 13:08
[syzbot] Monthly f2fs report (Jan 2025) 0 (1) 2025/01/20 08:12
[syzbot] Monthly f2fs report (Dec 2024) 0 (1) 2024/12/19 21:34
[syzbot] Monthly f2fs report (Nov 2024) 0 (1) 2024/11/18 12:39
[syzbot] [f2fs?] WARNING: locking bug in f2fs_getxattr (2) 0 (1) 2024/09/21 04:07
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in f2fs_getxattr f2fs 72 303d 343d 0/28 auto-obsoleted due to no activity on 2024/09/04 12:08

Sample crash report:
------------[ cut here ]------------
Looking for class "c->lock" with key init_kmem_cache_cpus.__key, but found a different class "&c->lock" with the same key
WARNING: CPU: 1 PID: 6338 at kernel/locking/lockdep.c:941 look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:938
Modules linked in:
CPU: 1 UID: 0 PID: 6338 Comm: syz.4.68 Not tainted 6.14.0-rc7-syzkaller-00050-gfc444ada1310 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:look_up_lock_class+0xdc/0x170 kernel/locking/lockdep.c:938
Code: 01 0f 85 8a 00 00 00 c6 05 63 f7 24 04 01 90 49 8b 16 49 8b 76 18 48 8b 8b b8 00 00 00 48 c7 c7 80 d5 2a 8c e8 45 a7 80 f5 90 <0f> 0b 90 90 eb 61 90 e8 08 40 e9 f8 e8 33 aa a0 f5 48 c7 c7 c0 d4
RSP: 0018:ffffc9000c1cee10 EFLAGS: 00010046
RAX: 48f45ade0aac6f00 RBX: ffffffff93e91960 RCX: 0000000000080000
RDX: ffffc9000d292000 RSI: 0000000000006ee8 RDI: 0000000000006ee9
RBP: ffffc9000c1cef20 R08: ffffffff81819d62 R09: 1ffff110170e519a
R10: dffffc0000000000 R11: ffffed10170e519b R12: ffffe8ffffd672c0
R13: ffffe8ffffd672c0 R14: ffffe8ffffd672c0 R15: ffffffff9a67a2c0
FS:  00007f8b3f9c06c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2fd13ff8 CR3: 000000007c2f8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 register_lock_class+0x102/0x980 kernel/locking/lockdep.c:1292
 __lock_acquire+0xf3/0x2100 kernel/locking/lockdep.c:5103
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
 local_lock_acquire+0x20/0x80 include/linux/local_lock_internal.h:29
 ___slab_alloc+0x119d/0x14a0 mm/slub.c:3875
 __slab_alloc+0x58/0xa0 mm/slub.c:3916
 __slab_alloc_node mm/slub.c:3991 [inline]
 slab_alloc_node mm/slub.c:4152 [inline]
 kmem_cache_alloc_noprof+0x268/0x380 mm/slub.c:4171
 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2855 [inline]
 xattr_alloc fs/f2fs/xattr.c:30 [inline]
 lookup_all_xattrs fs/f2fs/xattr.c:333 [inline]
 f2fs_getxattr+0x531/0xf70 fs/f2fs/xattr.c:533
 vfs_getxattr_alloc+0x472/0x5c0 fs/xattr.c:393
 ima_read_xattr+0x38/0x60 security/integrity/ima/ima_appraise.c:230
 process_measurement+0x117a/0x1fb0 security/integrity/ima/ima_main.c:356
 ima_file_check+0xd9/0x120 security/integrity/ima/ima_main.c:603
 security_file_post_open+0xb9/0x280 security/security.c:3130
 do_open fs/namei.c:3832 [inline]
 path_openat+0x2cca/0x3590 fs/namei.c:3989
 do_filp_open+0x27f/0x4e0 fs/namei.c:4016
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1428
 do_sys_open fs/open.c:1443 [inline]
 __do_sys_openat fs/open.c:1459 [inline]
 __se_sys_openat fs/open.c:1454 [inline]
 __x64_sys_openat+0x247/0x2a0 fs/open.c:1454
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8b3eb8d169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8b3f9c0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f8b3eda5fa0 RCX: 00007f8b3eb8d169
RDX: 000000000000275a RSI: 0000400000000500 RDI: ffffffffffffff9c
RBP: 00007f8b3ec0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f8b3eda5fa0 R15: 00007ffed26b79b8
 </TASK>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/18 04:42 upstream fc444ada1310 ce3352cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in f2fs_getxattr
2025/03/10 22:08 upstream 4d872d51bc9d 16256247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in f2fs_getxattr
2024/12/17 11:52 upstream f44d154d6e3d f93b2b55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in f2fs_getxattr
2024/12/10 08:48 upstream 7cb1b4663150 cfc402b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: locking bug in f2fs_getxattr
2025/01/06 13:56 linux-next 8155b4ef3466 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in f2fs_getxattr
2025/03/07 13:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14d05f12084d 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in f2fs_getxattr
2025/02/07 20:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2014c95afece a4f327c2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in f2fs_getxattr
2024/11/09 22:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 563047e691f2 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in f2fs_getxattr
2024/11/05 13:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 46f782153ea2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in f2fs_getxattr
2024/09/17 04:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in f2fs_getxattr
2024/09/17 04:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: locking bug in f2fs_getxattr
* Struck through repros no longer work on HEAD.