syzbot


WARNING in f2fs_getxattr (2)

Status: upstream: reported on 2024/12/28 19:49
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+342b72cb42bbe3fb3aaa@syzkaller.appspotmail.com
First crash: 11d, last: 11d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] WARNING in f2fs_getxattr (2) 0 (1) 2024/12/28 19:49
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in f2fs_getxattr f2fs 5 202d 225d 0/28 auto-obsoleted due to no activity on 2024/09/24 09:39

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(l->owner)
WARNING: CPU: 1 PID: 6410 at ./include/linux/local_lock_internal.h:30 local_lock_acquire+0x6f/0x80 include/linux/local_lock_internal.h:30
Modules linked in:
CPU: 1 UID: 0 PID: 6410 Comm: syz.2.63 Not tainted 6.13.0-rc4-syzkaller-00012-g9b2ffa6148b1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:local_lock_acquire+0x6f/0x80 include/linux/local_lock_internal.h:30
Code: cc cc 90 e8 53 a9 be 02 85 c0 74 22 83 3d 4c 50 20 0e 00 75 19 90 48 c7 c7 ce 3e 05 8e 48 c7 c6 32 92 05 8e e8 42 e2 67 ff 90 <0f> 0b 90 90 90 eb be 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90
RSP: 0018:ffffc90003c2f1f0 EFLAGS: 00010046
RAX: d9e8418fbd5be700 RBX: ffffe8ffffd68250 RCX: 0000000000080000
RDX: ffffc9000c359000 RSI: 0000000000004e9b RDI: 0000000000004e9c
RBP: ffffe8ffffd68250 R08: ffffffff816019a2 R09: 1ffff110170e519a
R10: dffffc0000000000 R11: ffffed10170e519b R12: ffff88814e914a00
R13: 0000000000000202 R14: ffffea0001660600 R15: ffff888059818000
FS:  00007f6c2d4df6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0e5ad77bac CR3: 0000000032606000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ___slab_alloc+0x119c/0x14a0 mm/slub.c:3879
 __slab_alloc+0x58/0xa0 mm/slub.c:3920
 __slab_alloc_node mm/slub.c:3995 [inline]
 slab_alloc_node mm/slub.c:4156 [inline]
 kmem_cache_alloc_noprof+0x268/0x380 mm/slub.c:4175
 f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2868 [inline]
 xattr_alloc fs/f2fs/xattr.c:30 [inline]
 lookup_all_xattrs fs/f2fs/xattr.c:333 [inline]
 f2fs_getxattr+0x477/0x13b0 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:229
 process_measurement+0x117a/0x1fb0 security/integrity/ima/ima_main.c:353
 ima_file_check+0xd9/0x120 security/integrity/ima/ima_main.c:572
 security_file_post_open+0xb9/0x280 security/security.c:3121
 do_open fs/namei.c:3830 [inline]
 path_openat+0x2ccd/0x3590 fs/namei.c:3987
 do_filp_open+0x27f/0x4e0 fs/namei.c:4014
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1402
 do_sys_open fs/open.c:1417 [inline]
 __do_sys_openat fs/open.c:1433 [inline]
 __se_sys_openat fs/open.c:1428 [inline]
 __x64_sys_openat+0x247/0x2a0 fs/open.c:1428
 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:0x7f6c2c785d29
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:00007f6c2d4df038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f6c2c975fa0 RCX: 00007f6c2c785d29
RDX: 0000000000000042 RSI: 0000000020000040 RDI: ffffffffffffff9c
RBP: 00007f6c2c801aa8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6c2c975fa0 R15: 00007ffe7662bc28
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/24 19:41 upstream 9b2ffa6148b1 444551c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in f2fs_getxattr
* Struck through repros no longer work on HEAD.