syzbot


BUG: corrupted list in xfs_buf_delwri_pushbuf

Status: auto-obsoleted due to no activity on 2023/10/25 06:02
Subsystems: xfs
[Documentation on labels]
Reported-by: syzbot+b1b42a849b0b7f940951@syzkaller.appspotmail.com
First crash: 385d, last: 331d

Sample crash report:
XFS (loop0): Quotacheck needed: Please wait.
list_del corruption, ffff8880296e1160->next is NULL
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:49!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 2 PID: 9657 Comm: syz-executor.0 Not tainted 6.5.0-rc3-syzkaller-00044-g0a8db05b571a #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__list_del_entry_valid+0xe1/0x1b0 lib/list_debug.c:49
Code: 03 80 3c 01 00 0f 85 a4 00 00 00 48 8b 42 08 48 39 c6 75 56 b8 01 00 00 00 48 83 c4 18 c3 48 c7 c7 40 0b c8 8a e8 1f 3b 46 fd <0f> 0b 48 c7 c7 a0 0b c8 8a e8 11 3b 46 fd 0f 0b 48 c7 c7 00 0c c8
RSP: 0018:ffffc90023d7f710 EFLAGS: 00010286
RAX: 0000000000000033 RBX: ffff8880296e1040 RCX: ffffc90003af9000
RDX: 0000000000000000 RSI: ffffffff816a69c0 RDI: 0000000000000005
RBP: ffff8880296e1160 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 6c65645f7473696c R12: ffffc90023d7f758
R13: 1ffff920047afee7 R14: ffff8880563f38c0 R15: ffffffff8325f398
FS:  0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000f7fc1b40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000f725c0d0 CR3: 0000000078d92000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_del_entry include/linux/list.h:134 [inline]
 list_move include/linux/list.h:217 [inline]
 xfs_buf_delwri_pushbuf+0x103/0x4a0 fs/xfs/xfs_buf.c:2295
 xfs_qm_flush_one+0x358/0x3b0 fs/xfs/xfs_qm.c:1253
 xfs_qm_dquot_walk.isra.0+0x217/0x3d0 fs/xfs/xfs_qm.c:87
 xfs_qm_quotacheck+0x4ba/0x8e0 fs/xfs/xfs_qm.c:1338
 xfs_qm_mount_quotas+0x124/0x6a0 fs/xfs/xfs_qm.c:1457
 xfs_mountfs+0x1c8b/0x1de0 fs/xfs/xfs_mount.c:959
 xfs_fs_fill_super+0x145b/0x1e50 fs/xfs/xfs_super.c:1710
 get_tree_bdev+0x43e/0x7d0 fs/super.c:1318
 vfs_get_tree+0x88/0x350 fs/super.c:1519
 do_new_mount fs/namespace.c:3335 [inline]
 path_mount+0x1492/0x1ed0 fs/namespace.c:3662
 do_mount fs/namespace.c:3675 [inline]
 __do_sys_mount fs/namespace.c:3884 [inline]
 __se_sys_mount fs/namespace.c:3861 [inline]
 __ia32_sys_mount+0x291/0x310 fs/namespace.c:3861
 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
 __do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
 entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7fc6579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f7fc13f0 EFLAGS: 00000296 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00000000f7fc1460 RCX: 0000000020009740
RDX: 0000000020009700 RSI: 0000000002000000 RDI: 00000000f7fc14a0
RBP: 0000000020009700 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid+0xe1/0x1b0 lib/list_debug.c:49
Code: 03 80 3c 01 00 0f 85 a4 00 00 00 48 8b 42 08 48 39 c6 75 56 b8 01 00 00 00 48 83 c4 18 c3 48 c7 c7 40 0b c8 8a e8 1f 3b 46 fd <0f> 0b 48 c7 c7 a0 0b c8 8a e8 11 3b 46 fd 0f 0b 48 c7 c7 00 0c c8
RSP: 0018:ffffc90023d7f710 EFLAGS: 00010286
RAX: 0000000000000033 RBX: ffff8880296e1040 RCX: ffffc90003af9000
RDX: 0000000000000000 RSI: ffffffff816a69c0 RDI: 0000000000000005
RBP: ffff8880296e1160 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 6c65645f7473696c R12: ffffc90023d7f758
R13: 1ffff920047afee7 R14: ffff8880563f38c0 R15: ffffffff8325f398
FS:  0000000000000000(0000) GS:ffff88802c900000(0063) knlGS:00000000f7fc1b40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000004d79d2 CR3: 0000000078d92000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	10 06                	adc    %al,(%rsi)
   2:	03 74 b4 01          	add    0x1(%rsp,%rsi,4),%esi
   6:	10 07                	adc    %al,(%rdi)
   8:	03 74 b0 01          	add    0x1(%rax,%rsi,4),%esi
   c:	10 08                	adc    %cl,(%rax)
   e:	03 74 d8 01          	add    0x1(%rax,%rbx,8),%esi
  1e:	00 51 52             	add    %dl,0x52(%rcx)
  21:	55                   	push   %rbp
  22:	89 e5                	mov    %esp,%ebp
  24:	0f 34                	sysenter
  26:	cd 80                	int    $0x80
* 28:	5d                   	pop    %rbp <-- trapping instruction
  29:	5a                   	pop    %rdx
  2a:	59                   	pop    %rcx
  2b:	c3                   	ret
  2c:	90                   	nop
  2d:	90                   	nop
  2e:	90                   	nop
  2f:	90                   	nop
  30:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi
  37:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/27 06:01 upstream 0a8db05b571a 41fe1bae .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: corrupted list in xfs_buf_delwri_pushbuf
2023/06/03 11:21 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: corrupted list in xfs_buf_delwri_pushbuf
* Struck through repros no longer work on HEAD.