syzbot


WARNING: locking bug in ext4_xattr_inode_update_ref (2)

Status: auto-obsoleted due to no activity on 2023/09/25 03:27
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+6699abaff302165de416@syzkaller.appspotmail.com
First crash: 436d, last: 436d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] WARNING: locking bug in ext4_xattr_inode_update_ref (2) 0 (1) 2023/07/31 03:34
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING: locking bug in ext4_xattr_inode_update_ref ext4 C error 2 619d 622d 0/1 upstream: reported C repro on 2023/01/21 20:53
linux-4.14 WARNING: locking bug in ext4_xattr_inode_update_ref ext4 C 2 591d 628d 0/1 upstream: reported C repro on 2023/01/16 15:56
upstream WARNING: locking bug in ext4_xattr_inode_update_ref ext4 C error 4 506d 632d 22/28 fixed on 2023/07/01 16:05
upstream WARNING: locking bug in ext4_xattr_inode_update_ref (3) ext4 C 2 27d 177d 0/28 upstream: reported C repro on 2024/04/11 09:48
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/08/28 20:34 2h04m retest repro linux-next OK log
2023/07/31 10:23 24m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 0ba5d0720577 OK log
Cause bisection attempts (1)
Created Duration User Patch Repo Result
2023/07/28 12:15 0m bisect linux-next error job log
marked invalid by nogikh@google.com

Sample crash report:
------------[ cut here ]------------
Looking for class "&ea_inode->i_rwsem" with key ext4_fs_type, but found a different class "&sb->s_type->i_mutex_key" with the same key
WARNING: CPU: 0 PID: 5364 at kernel/locking/lockdep.c:940 look_up_lock_class+0xad/0x120 kernel/locking/lockdep.c:940
Modules linked in:
CPU: 0 PID: 5364 Comm: syz-executor.3 Not tainted 6.5.0-rc3-next-20230726-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:look_up_lock_class+0xad/0x120 kernel/locking/lockdep.c:940
Code: 59 49 8b 14 24 48 81 fa a0 d9 49 90 74 4c 80 3d 43 17 60 04 00 75 43 48 c7 c7 00 82 6c 8a c6 05 33 17 60 04 01 e8 03 f2 16 f7 <0f> 0b eb 2c 89 74 24 04 e8 36 ae e7 f9 8b 74 24 04 48 c7 c7 40 81
RSP: 0018:ffffc90004a4f008 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffffffff918a53c0 RCX: 0000000000000000
RDX: ffff88802a8ebb80 RSI: ffffffff814d5b56 RDI: 0000000000000001
RBP: ffffffff8cc46c78 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888066815e00
R13: ffff888066815e00 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f046301d6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002000 CR3: 000000002a7c9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 register_lock_class+0xbd/0x1320 kernel/locking/lockdep.c:1292
 __lock_acquire+0x13c/0x5de0 kernel/locking/lockdep.c:5021
 lock_acquire kernel/locking/lockdep.c:5761 [inline]
 lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726
 down_write+0x93/0x200 kernel/locking/rwsem.c:1573
 inode_lock include/linux/fs.h:771 [inline]
 ext4_xattr_inode_update_ref+0xa6/0x5c0 fs/ext4/xattr.c:1042
 ext4_xattr_inode_inc_ref fs/ext4/xattr.c:1088 [inline]
 ext4_xattr_inode_inc_ref_all fs/ext4/xattr.c:1115 [inline]
 ext4_xattr_block_set+0x2305/0x30e0 fs/ext4/xattr.c:2159
 ext4_xattr_set_handle+0xd6e/0x1420 fs/ext4/xattr.c:2456
 ext4_xattr_set+0x149/0x370 fs/ext4/xattr.c:2558
 __vfs_setxattr+0x173/0x1d0 fs/xattr.c:201
 __vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:235
 __vfs_setxattr_locked+0x17e/0x250 fs/xattr.c:296
 vfs_setxattr+0x146/0x350 fs/xattr.c:322
 do_setxattr+0x142/0x170 fs/xattr.c:630
 setxattr+0x159/0x170 fs/xattr.c:653
 path_setxattr+0x1a3/0x1d0 fs/xattr.c:672
 __do_sys_setxattr fs/xattr.c:688 [inline]
 __se_sys_setxattr fs/xattr.c:684 [inline]
 __x64_sys_setxattr+0xc4/0x160 fs/xattr.c:684
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f046c07cb29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f046301d0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f046c19c050 RCX: 00007f046c07cb29
RDX: 00000000200005c0 RSI: 0000000020000180 RDI: 00000000200000c0
RBP: 00007f046c0c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f046c19c050 R15: 00007ffd0e4f6698
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/27 03:26 linux-next 0ba5d0720577 41fe1bae .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in ext4_xattr_inode_update_ref
* Struck through repros no longer work on HEAD.