syzbot


WARNING in xfs_qm_dqget_cache_insert

Status: upstream: reported C repro on 2023/05/21 18:14
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+3902b288d4b020197b50@syzkaller.appspotmail.com
First crash: 347d, last: 155d
Fix commit to backport (bisect log) :
tree: upstream
commit 8dc9384b7d75012856b02ff44c37566a55fc2abf
Author: Dave Chinner <dchinner@redhat.com>
Date: Wed Jan 5 01:22:18 2022 +0000

  xfs: reduce kvmalloc overhead for CIL shadow buffers

  
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: KASAN: null-ptr-deref Write in xlog_cil_commit (log)
Repro: C syz .config
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/21 linux-5.15.y (ToT) 9d6bde853685 C [report] KASAN: null-ptr-deref Write in xlog_cil_commit
2023/05/21 upstream (ToT) 44c026a73be8 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in xfs_qm_dqget_cache_insert xfs C error 123 355d 527d 22/26 fixed on 2023/06/08 14:41
linux-6.1 WARNING in xfs_qm_dqget_cache_insert origin:lts-only C 55 4d00h 399d 0/3 upstream: reported C repro on 2023/03/30 04:40
linux-4.19 WARNING in xfs_qm_dqget_cache_insert xfs C error 4 453d 494d 0/1 upstream: reported C repro on 2022/12/25 21:48
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2023/12/18 22:59 5h34m fix candidate upstream job log (1)
2023/11/29 07:02 1h05m bisect fix linux-5.15.y job log (0) log
2023/10/28 23:07 57m bisect fix linux-5.15.y job log (0) log
2023/09/27 03:56 1h07m bisect fix linux-5.15.y job log (0) log
2023/06/22 03:20 51m bisect fix linux-5.15.y job log (0) log

Sample crash report:
RBP: 00007fff851768f0 R08: 0000000000000001 R09: 00007fff85176900
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007fff85176930 R14: 00007fff85176910 R15: 0000000000000003
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3527 at fs/xfs/xfs_dquot.c:828 xfs_qm_dqget_cache_insert+0x101/0x110
Modules linked in:
CPU: 1 PID: 3527 Comm: syz-executor264 Not tainted 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:xfs_qm_dqget_cache_insert+0x101/0x110 fs/xfs/xfs_dquot.c:828
Code: 38 c1 7c a2 48 89 ef e8 dd 28 b7 fe eb 98 44 89 e1 80 e1 07 80 c1 03 38 c1 7c a8 4c 89 e7 e8 56 28 b7 fe eb 9e e8 df cc 6d fe <0f> 0b eb b8 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 56 53 48 89 fb
RSP: 0018:ffffc90002ddf7b0 EFLAGS: 00010293
RAX: ffffffff83121c01 RBX: 000000000000ee00 RCX: ffff88801fce1dc0
RDX: 0000000000000000 RSI: ffffffff8cd19160 RDI: 00000000fffffff4
RBP: ffff88801e9c86a0 R08: 0000000000000005 R09: ffffffff83121b48
R10: 0000000000000002 R11: ffff88801fce1dc0 R12: ffff88801d9c6000
R13: dffffc0000000000 R14: ffff88801d9c60f0 R15: 00000000fffffff4
FS:  00005555572f1300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557fa699e0e8 CR3: 0000000074e52000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 xfs_qm_dqget+0x2af/0x4e0 fs/xfs/xfs_dquot.c:901
 xfs_qm_vop_dqalloc+0x5a9/0xee0 fs/xfs/xfs_qm.c:1683
 xfs_setattr_nonsize+0x2e9/0xc40 fs/xfs/xfs_iops.c:709
 xfs_vn_setattr+0x2f7/0x340 fs/xfs/xfs_iops.c:1050
 notify_change+0xd4d/0x1000 fs/attr.c:488
 chown_common+0x592/0x890 fs/open.c:680
 vfs_fchown fs/open.c:748 [inline]
 ksys_fchown+0xde/0x150 fs/open.c:759
 __do_sys_fchown fs/open.c:767 [inline]
 __se_sys_fchown fs/open.c:765 [inline]
 __x64_sys_fchown+0x76/0x80 fs/open.c:765
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f1df590fa79
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007fff851768c8 EFLAGS: 00000246 ORIG_RAX: 000000000000005d
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f1df590fa79
RDX: 0000000000000000 RSI: 000000000000ee00 RDI: 0000000000000003
RBP: 00007fff851768f0 R08: 0000000000000001 R09: 00007fff85176900
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007fff85176930 R14: 00007fff85176910 R15: 0000000000000003
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/21 18:12 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in xfs_qm_dqget_cache_insert
2023/07/01 08:15 linux-5.15.y 4af60700a60c af3053d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in xfs_qm_dqget_cache_insert
2023/07/20 20:07 linux-5.15.y d54cfc420586 f49af159 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in xfs_qm_dqget_cache_insert
* Struck through repros no longer work on HEAD.