syzbot


WARNING in xfs_bmapi_convert_delalloc

Status: upstream: reported C repro on 2022/11/26 10:08
Subsystems: xfs
Labels: no-reminders
[Documentation on labels]
Reported-by: syzbot+53b443b5c64221ee8bad@syzkaller.appspotmail.com
First crash: 513d, last: 1d12h
Cause bisection: introduced by (bisect log) [no-op commit]:
commit 55d4c19c93190b59c5caecb042ae92a9fd80a288
Author: Lorenzo Bianconi <lorenzo@kernel.org>
Date: Tue Jan 26 11:13:54 2021 +0000

  mt76: mt76_connac: move WoW and suspend code in mt76_connac_mcu module

Crash: WARNING in xfs_bmapi_convert_delalloc (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] WARNING in xfs_bmapi_convert_delalloc 2 (5) 2024/02/07 22:18
[syzbot] Monthly xfs report (May 2023) 1 (2) 2023/05/05 13:59
[syzbot] Monthly xfs report 3 (4) 2023/04/12 21:54
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in xfs_bmapi_convert_delalloc origin:upstream C 7 1d12h 336d 0/3 upstream: reported C repro on 2023/05/18 14:29
linux-5.15 WARNING in xfs_bmapi_convert_delalloc origin:upstream C error 6 278d 335d 0/3 upstream: reported C repro on 2023/05/19 06:30
Last patch testing requests (7)
Created Duration User Patch Repo Result
2024/01/14 18:35 24m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/01/14 18:35 26m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/01/14 17:22 20m retest repro upstream OK log
2024/01/14 17:22 22m retest repro upstream OK log
2024/01/14 11:55 22m retest repro upstream OK log
2024/01/14 11:55 16m retest repro upstream OK log
2024/01/14 11:55 16m retest repro upstream OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1096 at fs/xfs/libxfs/xfs_bmap.c:4697 xfs_bmapi_convert_delalloc+0xad6/0xc90 fs/xfs/libxfs/xfs_bmap.c:4697
Modules linked in:
CPU: 0 PID: 1096 Comm: kworker/u32:9 Not tainted 6.9.0-rc4-syzkaller-00031-g96fca68c4fbf #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: writeback wb_workfn (flush-7:0)
RIP: 0010:xfs_bmapi_convert_delalloc+0xad6/0xc90 fs/xfs/libxfs/xfs_bmap.c:4697
Code: ff e8 1e c8 71 fe 8b 94 24 08 01 00 00 48 8b b4 24 10 01 00 00 48 8b 7c 24 70 e8 15 21 0d 00 e9 8b fd ff ff e8 fb c7 71 fe 90 <0f> 0b 90 bb e4 ff ff ff e9 f7 fd ff ff 48 89 ef e8 b5 ea cc fe e9
RSP: 0018:ffffc9000465eed8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffffffffffffff RCX: ffffffff831bf483
RDX: ffff888022de2440 RSI: ffffffff831bfb25 RDI: 0000000000000007
RBP: ffff8880328007c0 R08: 0000000000000007 R09: ffffffffffffffff
R10: ffffffffffffffff R11: 0000000000000005 R12: 0000000000000000
R13: ffff88801aac4000 R14: ffff888032800800 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88806b200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa3d0557ff8 CR3: 000000000d57a000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 xfs_convert_blocks fs/xfs/xfs_aops.c:266 [inline]
 xfs_map_blocks+0x5d8/0xec0 fs/xfs/xfs_aops.c:390
 iomap_writepage_map_blocks fs/iomap/buffered-io.c:1777 [inline]
 iomap_writepage_map fs/iomap/buffered-io.c:1925 [inline]
 iomap_do_writepage+0x6f4/0x2c40 fs/iomap/buffered-io.c:1964
 write_cache_pages+0xb0/0x130 mm/page-writeback.c:2569
 iomap_writepages+0xa9/0x100 fs/iomap/buffered-io.c:1983
 xfs_vm_writepages+0xed/0x150 fs/xfs/xfs_aops.c:507
 do_writepages+0x1a3/0x7f0 mm/page-writeback.c:2612
 __writeback_single_inode+0x163/0xf90 fs/fs-writeback.c:1650
 writeback_sb_inodes+0x5a6/0x10d0 fs/fs-writeback.c:1941
 __writeback_inodes_wb+0xff/0x2e0 fs/fs-writeback.c:2012
 wb_writeback+0x7db/0xb30 fs/fs-writeback.c:2119
 wb_check_background_flush fs/fs-writeback.c:2189 [inline]
 wb_do_writeback fs/fs-writeback.c:2277 [inline]
 wb_workfn+0x8c4/0xf40 fs/fs-writeback.c:2304
 process_one_work+0x9a9/0x1ac0 kernel/workqueue.c:3254
 process_scheduled_works kernel/workqueue.c:3335 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3416
 kthread+0x2c1/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (544):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/17 09:05 upstream 96fca68c4fbf 18f6e127 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING in xfs_bmapi_convert_delalloc
2024/04/17 09:21 linux-next 4eab35893071 18f6e127 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in xfs_bmapi_convert_delalloc
2024/03/27 22:57 upstream 962490525cff 120789fd .config console log report syz [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING in xfs_bmapi_convert_delalloc
2023/10/13 02:34 upstream e8c127b05766 6388bc36 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/03 06:54 upstream ce36c8b14987 65faba36 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/06/23 21:17 upstream 8a28a0b6f1a1 09ffe269 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in xfs_bmapi_convert_delalloc
2023/05/18 14:31 upstream 4d6d4c7f541d 3bb7af1d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/02/05 12:52 upstream 95078069c1e7 be607b78 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in xfs_bmapi_convert_delalloc
2023/05/18 13:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f1fcbaa18b28 3bb7af1d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in xfs_bmapi_convert_delalloc
2022/12/23 10:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in xfs_bmapi_convert_delalloc
2024/03/10 11:45 upstream 005f6f34bd47 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2024/02/09 09:01 upstream 1f719a2f3fa6 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/31 11:34 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/23 20:55 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/22 06:14 upstream 9a6b294ab496 4f9530a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/18 13:47 upstream ceb6a6f023fd 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/16 18:53 upstream c8e97fc6b4c0 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/16 16:53 upstream c8e97fc6b4c0 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/07 09:44 upstream bee0e7762ad2 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/06 21:21 upstream bee0e7762ad2 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/06 08:27 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/12/06 04:13 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/11/21 10:46 upstream 98b1cc82c4af cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/11/19 19:08 upstream 037266a5f723 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/11/16 14:01 upstream c42d9eeef8e5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in xfs_bmapi_convert_delalloc
2023/11/14 20:17 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/11/14 02:40 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/11/10 12:50 upstream 89cdf9d55601 45e9b83e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/11/09 10:48 upstream 6bc986ab839c 4862372a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/11/01 23:06 upstream 8bc9e6515183 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/11/01 14:22 upstream 89ed67ef126c 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/23 07:43 upstream 05d3ef8bba77 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/22 04:26 upstream d537ae43f8a1 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/21 12:46 upstream 9c5d00cb7b6b 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/18 04:11 upstream 06dc10eae55b 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/18 02:14 upstream 06dc10eae55b 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/17 22:26 upstream 213f891525c2 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/14 15:29 upstream 8cb1f10d8c4b f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/13 01:09 upstream e8c127b05766 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/12 05:26 upstream 8182d7a3f1b8 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/12 00:26 upstream 8182d7a3f1b8 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/11 16:38 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/11 13:20 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/11 09:07 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/10 14:36 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/10 13:33 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/10 11:16 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/08 13:12 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/08 12:08 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/08 10:11 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/10/08 01:37 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in xfs_bmapi_convert_delalloc
2023/09/21 02:56 upstream 5d2f53532ecc 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in xfs_bmapi_convert_delalloc
2023/09/20 23:34 upstream 5d2f53532ecc 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in xfs_bmapi_convert_delalloc
2024/04/17 08:20 upstream 96fca68c4fbf 18f6e127 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in xfs_bmapi_convert_delalloc
2024/04/05 04:08 upstream c88b9b4cde17 0ee3535e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in xfs_bmapi_convert_delalloc
2023/08/03 08:34 upstream 4b954598a47b 39a91c18 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in xfs_bmapi_convert_delalloc
2023/09/05 21:00 linux-next c50216cfa084 8bc9053e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in xfs_bmapi_convert_delalloc
2023/12/19 18:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aafe7ad77b91 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in xfs_bmapi_convert_delalloc
2023/11/25 09:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in xfs_bmapi_convert_delalloc
2022/11/22 09:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a77d28d13789 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in xfs_bmapi_convert_delalloc
* Struck through repros no longer work on HEAD.