[xfs?] BUG: corrupted list in xfs_buf_delwri_pushbuf

4 views
Skip to first unread message

syzbot

unread,
Jun 7, 2023, 7:26:47 AM6/7/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4ecd704a4c51 tpm, tpm_tis: correct tpm_tis_flags enumerati..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=145e1e01280000
kernel config: https://syzkaller.appspot.com/x/.config?x=3da6c5d3e0a6c932
dashboard link: https://syzkaller.appspot.com/bug?extid=b1b42a849b0b7f940951
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: i386
CC: [djw...@kernel.org linux-...@vger.kernel.org linux-...@vger.kernel.org linu...@vger.kernel.org]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7bc7510fe41f/non_bootable_disk-4ecd704a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/b57d3e86fdab/vmlinux-4ecd704a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/40f6bd9ae355/bzImage-4ecd704a.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b1b42a...@syzkaller.appspotmail.com

XFS (loop2): Ending clean mount
XFS (loop2): Quotacheck needed: Please wait.
list_del corruption, ffff88802845c7a0->next is NULL
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:49!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 2 PID: 6607 Comm: syz-executor.2 Not tainted 6.4.0-rc4-syzkaller-00265-g4ecd704a4c51 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 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 4c 8b 42 08 49 39 f0 75 56 b8 01 00 00 00 48 83 c4 18 c3 48 c7 c7 a0 15 a7 8a e8 af dd 50 fd <0f> 0b 48 c7 c7 00 16 a7 8a e8 a1 dd 50 fd 0f 0b 48 c7 c7 60 16 a7
RSP: 0000:ffffc900062af718 EFLAGS: 00010282
RAX: 0000000000000033 RBX: ffff88802845c7a0 RCX: ffffc90007d11000
RDX: 0000000000000000 RSI: ffffffff8168bc6c RDI: 0000000000000005
RBP: ffff88802845c680 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 6c65645f7473696c R12: ffffc900062af760
R13: 1ffff92000c55ee8 R14: ffff88801bebd500 R15: ffffffff831dc5d1
FS: 0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000f7f5ab40
CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00007f02f02c877f CR3: 000000005fe86000 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+0x101/0x4a0 fs/xfs/xfs_buf.c:2295
xfs_qm_flush_one+0x351/0x3b0 fs/xfs/xfs_qm.c:1253
xfs_qm_dquot_walk.isra.0+0x1be/0x3f0 fs/xfs/xfs_qm.c:87
xfs_qm_quotacheck+0x3c0/0x940 fs/xfs/xfs_qm.c:1338
xfs_qm_mount_quotas+0x125/0x690 fs/xfs/xfs_qm.c:1457
xfs_mountfs+0x1e07/0x1f60 fs/xfs/xfs_mount.c:959
xfs_fs_fill_super+0x145b/0x1f80 fs/xfs/xfs_super.c:1693
get_tree_bdev+0x44a/0x770 fs/super.c:1303
vfs_get_tree+0x8d/0x350 fs/super.c:1510
do_new_mount fs/namespace.c:3039 [inline]
path_mount+0x134b/0x1e40 fs/namespace.c:3369
do_mount fs/namespace.c:3382 [inline]
__do_sys_mount fs/namespace.c:3591 [inline]
__se_sys_mount fs/namespace.c:3568 [inline]
__ia32_sys_mount+0x282/0x300 fs/namespace.c:3568
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x65/0xf0 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:0xf7f5f579
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:00000000f7f5a410 EFLAGS: 00000296 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00000000f7f5a480 RCX: 000000002000bb40
RDX: 000000002000bb00 RSI: 0000000000000000 RDI: 00000000f7f5a4c0
RBP: 00000000f7f5a4c0 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 4c 8b 42 08 49 39 f0 75 56 b8 01 00 00 00 48 83 c4 18 c3 48 c7 c7 a0 15 a7 8a e8 af dd 50 fd <0f> 0b 48 c7 c7 00 16 a7 8a e8 a1 dd 50 fd 0f 0b 48 c7 c7 60 16 a7
RSP: 0000:ffffc900062af718 EFLAGS: 00010282
RAX: 0000000000000033 RBX: ffff88802845c7a0 RCX: ffffc90007d11000
RDX: 0000000000000000 RSI: ffffffff8168bc6c RDI: 0000000000000005
RBP: ffff88802845c680 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 6c65645f7473696c R12: ffffc900062af760
R13: 1ffff92000c55ee8 R14: ffff88801bebd500 R15: ffffffff831dc5d1
FS: 0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000f7f5ab40
CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00007f02f02c877f CR3: 000000005fe86000 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 retq
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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Oct 25, 2023, 2:02:42 AM10/25/23
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages