list_del corruption. prev->next should be ffffc9000d4678c0, but was ffff888052870e90. (prev=ffff888052870e90) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:64! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted 6.13.0-rc4-syzkaller-00069-g8379578b11d5 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__list_del_entry_valid_or_report+0x11b/0x140 lib/list_debug.c:62 Code: 3e fc 90 0f 0b 48 c7 c7 a0 b4 5f 8c 4c 89 fe e8 7b 79 3e fc 90 0f 0b 48 c7 c7 00 b5 5f 8c 4c 89 fe 48 89 d9 e8 66 79 3e fc 90 <0f> 0b 48 c7 c7 80 b5 5f 8c 4c 89 fe 4c 89 f1 e8 51 79 3e fc 90 0f RSP: 0018:ffffc9000d467738 EFLAGS: 00010046 RAX: 000000000000006d RBX: ffff888052870e90 RCX: ca6427473a1a3f00 RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000 RBP: ffffc9000d467990 R08: ffffffff817f0a8c R09: 1ffff92001a8ce84 R10: dffffc0000000000 R11: fffff52001a8ce85 R12: dffffc0000000000 R13: ffffc9000d4678c0 R14: ffff888052870e90 R15: ffffc9000d4678c0 FS: 00007fe5937386c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 0000000036950000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __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:0x7fe592985d29 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:00007fe593738038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fe592b76160 RCX: 00007fe592985d29 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000020000200 RBP: 00007fe592a01b08 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe592b76160 R15: 00007ffcd6ee9818 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_del_entry_valid_or_report+0x11b/0x140 lib/list_debug.c:62 Code: 3e fc 90 0f 0b 48 c7 c7 a0 b4 5f 8c 4c 89 fe e8 7b 79 3e fc 90 0f 0b 48 c7 c7 00 b5 5f 8c 4c 89 fe 48 89 d9 e8 66 79 3e fc 90 <0f> 0b 48 c7 c7 80 b5 5f 8c 4c 89 fe 4c 89 f1 e8 51 79 3e fc 90 0f RSP: 0018:ffffc9000d467738 EFLAGS: 00010046 RAX: 000000000000006d RBX: ffff888052870e90 RCX: ca6427473a1a3f00 RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000 RBP: ffffc9000d467990 R08: ffffffff817f0a8c R09: 1ffff92001a8ce84 R10: dffffc0000000000 R11: fffff52001a8ce85 R12: dffffc0000000000 R13: ffffc9000d4678c0 R14: ffff888052870e90 R15: ffffc9000d4678c0 FS: 00007fe5937386c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 0000000036950000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400