syzbot


BUG: corrupted list in vfs_setxattr

Status: moderation: reported on 2024/10/01 08:10
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+a1b8fd5f114594905a85@syzkaller.appspotmail.com
First crash: 135d, last: 20d

Sample crash report:
list_del corruption. prev->next should be ffffc90004bef8c0, but was ffff88805cd4d170. (prev=ffff88805cd4d170)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:64!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 12801 Comm: syz.4.1836 Not tainted 6.13.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__list_del_entry_valid_or_report+0x11b/0x140 lib/list_debug.c:62
Code: 36 fc 90 0f 0b 48 c7 c7 20 67 5f 8c 4c 89 fe e8 db 67 36 fc 90 0f 0b 48 c7 c7 80 67 5f 8c 4c 89 fe 48 89 d9 e8 c6 67 36 fc 90 <0f> 0b 48 c7 c7 00 68 5f 8c 4c 89 fe 4c 89 f1 e8 b1 67 36 fc 90 0f
RSP: 0018:ffffc90004bef738 EFLAGS: 00010046
RAX: 000000000000006d RBX: ffff88805cd4d170 RCX: 1ea682c095ed3b00
RDX: ffffc9000ef54000 RSI: 00000000000051e2 RDI: 00000000000051e3
RBP: ffffc90004bef990 R08: ffffffff817f075c R09: fffffbfff1cfa210
R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: dffffc0000000000
R13: ffffc90004bef8c0 R14: ffff88805cd4d170 R15: ffffc90004bef8c0
FS:  00007f75e3bba6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75e3bb9fb8 CR3: 000000004d838000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __list_del_entry_valid include/linux/list.h:124 [inline]
 __list_del_entry include/linux/list.h:215 [inline]
 list_del include/linux/list.h:229 [inline]
 rwsem_try_write_lock kernel/locking/rwsem.c:661 [inline]
 rwsem_down_write_slowpath+0xf9b/0x13b0 kernel/locking/rwsem.c:1150
 __down_write_common kernel/locking/rwsem.c:1304 [inline]
 __down_write kernel/locking/rwsem.c:1313 [inline]
 down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578
 inode_lock include/linux/fs.h:818 [inline]
 vfs_setxattr+0x1e1/0x430 fs/xattr.c:320
 do_setxattr fs/xattr.c:636 [inline]
 filename_setxattr+0x2af/0x430 fs/xattr.c:665
 path_setxattrat+0x440/0x510 fs/xattr.c:713
 __do_sys_setxattr fs/xattr.c:747 [inline]
 __se_sys_setxattr fs/xattr.c:743 [inline]
 __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:743
 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:0x7f75e2d80849
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:00007f75e3bba058 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f75e2f46080 RCX: 00007f75e2d80849
RDX: 0000000020001840 RSI: 0000000020000240 RDI: 0000000020000200
RBP: 00007f75e2df3986 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000002d6 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f75e2f46080 R15: 00007ffcc95a8aa8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid_or_report+0x11b/0x140 lib/list_debug.c:62
Code: 36 fc 90 0f 0b 48 c7 c7 20 67 5f 8c 4c 89 fe e8 db 67 36 fc 90 0f 0b 48 c7 c7 80 67 5f 8c 4c 89 fe 48 89 d9 e8 c6 67 36 fc 90 <0f> 0b 48 c7 c7 00 68 5f 8c 4c 89 fe 4c 89 f1 e8 b1 67 36 fc 90 0f
RSP: 0018:ffffc90004bef738 EFLAGS: 00010046
RAX: 000000000000006d RBX: ffff88805cd4d170 RCX: 1ea682c095ed3b00
RDX: ffffc9000ef54000 RSI: 00000000000051e2 RDI: 00000000000051e3
RBP: ffffc90004bef990 R08: ffffffff817f075c R09: fffffbfff1cfa210
R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: dffffc0000000000
R13: ffffc90004bef8c0 R14: ffff88805cd4d170 R15: ffffc90004bef8c0
FS:  00007f75e3bba6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75e3bb9fb8 CR3: 000000004d838000 CR4: 0000000000350ef0

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/02 02:33 upstream 40384c840ea1 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: corrupted list in vfs_setxattr
2024/11/01 10:12 upstream 6c52d4da1c74 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: corrupted list in vfs_setxattr
2025/01/19 23:21 upstream 9528d418de4d f2cb035c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2025/01/18 03:22 upstream ad26fc09dabf f2cb035c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2024/12/31 20:59 upstream ccb98ccef0e5 d3ccff63 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2024/12/30 04:49 upstream 4099a71718b0 d3ccff63 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2024/12/28 07:55 upstream 8379578b11d5 d3ccff63 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2024/12/22 17:10 upstream 48f506ad0b68 b4fbdbd4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2024/12/18 18:47 upstream aef25be35d23 1432fc84 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2024/12/15 17:31 upstream 2d8308bf5b67 7cbfbb3a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2024/12/11 06:10 upstream f92f4749861b cfc402b4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
2024/09/27 06:46 upstream 075dbe9f6e3c 9314348a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in vfs_setxattr
* Struck through repros no longer work on HEAD.