[xfs?] WARNING in xfs_qm_dqget_cache_insert

5 views
Skip to first unread message

syzbot

unread,
Dec 25, 2022, 4:48:44 PM12/25/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16e0a9ff880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=b3bafc4f12e15181472d
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

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

RDX: 0000000000000000 RSI: 0000000000000cff RDI: 0000000020000340
RBP: 00007f3c288181d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffedef8244f R14: 00007f3c28818300 R15: 0000000000022000
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6197 at fs/xfs/xfs_dquot.c:714 xfs_qm_dqget_cache_insert.constprop.0.cold+0x11/0x18 fs/xfs/xfs_dquot.c:714
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 6197 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:xfs_qm_dqget_cache_insert.constprop.0.cold+0x11/0x18 fs/xfs/xfs_dquot.c:714
Code: fa e8 82 7c 69 f9 48 c7 c7 60 58 9d 88 e8 e1 ad fa ff 0f 0b e9 9f f5 a7 fa e8 6a 7c 69 f9 48 c7 c7 60 58 9d 88 e8 c9 ad fa ff <0f> 0b e9 f9 f7 a7 fa e8 52 7c 69 f9 48 c7 c7 80 5e 9d 88 e8 b1 ad
RSP: 0018:ffff888097427890 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880b026a240 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff814dff01 RDI: ffffed1012e84f04
RBP: ffff8880aeb16040 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff8880aeb16118 R14: ffff8880aeb16040 R15: ffff8880aeb16040
xfs_qm_dqget+0x198/0x720 fs/xfs/xfs_dquot.c:790
xfs_qm_vop_dqalloc+0x490/0xe00 fs/xfs/xfs_qm.c:1685
xfs_setattr_nonsize+0x433/0x1270 fs/xfs/xfs_iops.c:675
xfs_vn_setattr_nonsize+0x17a/0x430 fs/xfs/xfs_iops.c:826
xfs_vn_setattr+0x130/0x1a0 fs/xfs/xfs_iops.c:1075
notify_change+0x70b/0xfc0 fs/attr.c:334
chown_common+0x4a9/0x550 fs/open.c:651
do_fchownat+0x126/0x1e0 fs/open.c:681
__do_sys_lchown fs/open.c:706 [inline]
__se_sys_lchown fs/open.c:704 [inline]
__x64_sys_lchown+0x7a/0xc0 fs/open.c:704
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f3c2a2a60a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3c28818168 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 00007f3c2a3c5f80 RCX: 00007f3c2a2a60a9
RDX: 0000000000000000 RSI: 0000000000000cff RDI: 0000000020000340
RBP: 00007f3c288181d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffedef8244f R14: 00007f3c28818300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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.

syzbot

unread,
Dec 25, 2022, 5:04:43 PM12/25/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1726acbc480000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=b3bafc4f12e15181472d
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12b83dd8480000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1348104c480000
mounted in repro: https://storage.googleapis.com/syzbot-assets/863ac7313bfe/mount_0.gz

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

RBP: 00007ffef5f85f70 R08: 0000000000000002 R09: 00007ffef5f85ef0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007ffef5f86080 R14: 431bde82d7b634db R15: 00007ffef5f85f80
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8116 at fs/xfs/xfs_dquot.c:714 xfs_qm_dqget_cache_insert.constprop.0.cold+0x11/0x18 fs/xfs/xfs_dquot.c:714
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8116 Comm: syz-executor718 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:xfs_qm_dqget_cache_insert.constprop.0.cold+0x11/0x18 fs/xfs/xfs_dquot.c:714
Code: fa e8 82 7c 69 f9 48 c7 c7 60 58 9d 88 e8 e1 ad fa ff 0f 0b e9 9f f5 a7 fa e8 6a 7c 69 f9 48 c7 c7 60 58 9d 88 e8 c9 ad fa ff <0f> 0b e9 f9 f7 a7 fa e8 52 7c 69 f9 48 c7 c7 80 5e 9d 88 e8 b1 ad
RSP: 0018:ffff8880b144f890 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff888094e009e8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1016289f04
RBP: ffff8880afc5f6c0 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff8880afc5f798 R14: ffff8880afc5f6c0 R15: ffff8880afc5f6c0
xfs_qm_dqget+0x198/0x720 fs/xfs/xfs_dquot.c:790
xfs_qm_vop_dqalloc+0x490/0xe00 fs/xfs/xfs_qm.c:1685
xfs_setattr_nonsize+0x433/0x1270 fs/xfs/xfs_iops.c:675
xfs_vn_setattr_nonsize+0x17a/0x430 fs/xfs/xfs_iops.c:826
xfs_vn_setattr+0x130/0x1a0 fs/xfs/xfs_iops.c:1075
notify_change+0x70b/0xfc0 fs/attr.c:334
chown_common+0x4a9/0x550 fs/open.c:651
do_fchownat+0x126/0x1e0 fs/open.c:681
__do_sys_lchown fs/open.c:706 [inline]
__se_sys_lchown fs/open.c:704 [inline]
__x64_sys_lchown+0x7a/0xc0 fs/open.c:704
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f15d050e2d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffef5f85f58 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f15d050e2d9
RDX: 0000000000000000 RSI: 0000000000000cff RDI: 0000000020000340
RBP: 00007ffef5f85f70 R08: 0000000000000002 R09: 00007ffef5f85ef0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007ffef5f86080 R14: 431bde82d7b634db R15: 00007ffef5f85f80
Reply all
Reply to author
Forward
0 new messages