syzbot


WARNING in xfs_bmapi_convert_delalloc

Status: upstream: reported C repro on 2023/05/19 06:30
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+84aa637d463d7fdfc2b4@syzkaller.appspotmail.com
First crash: 354d, last: 296d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/05/19 upstream (ToT) 2d1bcbc6cd70 C [report] WARNING in xfs_bmapi_convert_delalloc
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in xfs_bmapi_convert_delalloc no-reminders xfs C unreliable done 558 6d21h 527d 0/26 upstream: reported C repro on 2022/11/26 10:08
linux-6.1 WARNING in xfs_bmapi_convert_delalloc origin:upstream C 7 20d 354d 0/3 upstream: reported C repro on 2023/05/18 14:29

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 153 at fs/xfs/libxfs/xfs_bmap.c:4641 xfs_bmapi_convert_delalloc+0xcec/0x1018
Modules linked in:
CPU: 0 PID: 153 Comm: kworker/u4:3 Not tainted 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: writeback wb_workfn (flush-7:0)
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : xfs_bmapi_convert_delalloc+0xcec/0x1018
lr : xfs_bmapi_convert_delalloc+0xce8/0x1018 fs/xfs/libxfs/xfs_bmap.c:4641
sp : ffff80001a8867c0
x29: ffff80001a8869c0 x28: ffff0000d77d8000 x27: dfff800000000000
x26: ffff80001a886860 x25: 1ffff00003510d1b x24: 00000000ffffffe4
x23: ffff700003510d0c x22: ffffffffffffffff x21: ffff80001a886980
x20: 0000000000000000 x19: ffff80001a8868a0 x18: 0000000000000000
x17: ff80800009960bcc x16: ffff80001194786c x15: ffff800009960bcc
x14: 1ffff0000291a06a x13: ffffffffffffffff x12: 0000000000000000
x11: ff808000099a6084 x10: 0000000000000000 x9 : ffff8000099a6084
x8 : ffff0000c5f60000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : ffffffffffffffe0 x3 : ffff80000994fce4
x2 : 0000000000000001 x1 : ffffffffffffffff x0 : ffffffffffffffff
Call trace:
 xfs_bmapi_convert_delalloc+0xcec/0x1018
 xfs_convert_blocks fs/xfs/xfs_aops.c:245 [inline]
 xfs_map_blocks+0x858/0x1318 fs/xfs/xfs_aops.c:366
 iomap_writepage_map fs/iomap/buffered-io.c:1320 [inline]
 iomap_do_writepage+0x538/0x1db8 fs/iomap/buffered-io.c:1485
 write_cache_pages+0x878/0xf58 mm/page-writeback.c:2255
 iomap_writepages+0x6c/0x1f4 fs/iomap/buffered-io.c:1516
 xfs_vm_writepages+0x124/0x180 fs/xfs/xfs_aops.c:488
 do_writepages+0x39c/0x5ec mm/page-writeback.c:2364
 __writeback_single_inode+0x148/0x13a4 fs/fs-writeback.c:1625
 writeback_sb_inodes+0x94c/0x1620 fs/fs-writeback.c:1908
 wb_writeback+0x3fc/0xfc8 fs/fs-writeback.c:2082
 wb_do_writeback fs/fs-writeback.c:2225 [inline]
 wb_workfn+0x3a4/0x1070 fs/fs-writeback.c:2266
 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307
 worker_thread+0x910/0x1034 kernel/workqueue.c:2454
 kthread+0x37c/0x45c kernel/kthread.c:319
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870
irq event stamp: 672658
hardirqs last  enabled at (672657): [<ffff800011a1bba0>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last  enabled at (672657): [<ffff800011a1bba0>] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194
hardirqs last disabled at (672658): [<ffff800011942f00>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last  enabled at (672538): [<ffff800009ab97c0>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (672536): [<ffff800009ab978c>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace 03d93e4566892b4d ]---
XFS (loop0): page discard on page 0000000048f9ec32, inode 0x2b, offset 0.
XFS (loop0): page discard on page 0000000047f4e6c3, inode 0x2b, offset 4096.
XFS (loop0): page discard on page 00000000c4303a7f, inode 0x2b, offset 8192.
XFS (loop0): page discard on page 000000009807846a, inode 0x2b, offset 12288.
XFS (loop0): page discard on page 00000000afb91032, inode 0x2b, offset 16384.
XFS (loop0): page discard on page 00000000e0622c16, inode 0x2b, offset 20480.
XFS (loop0): page discard on page 00000000a00f1fd6, inode 0x2b, offset 24576.
XFS (loop0): page discard on page 000000002d8ab8c0, inode 0x2b, offset 28672.
XFS (loop0): page discard on page 0000000025b1aba0, inode 0x2b, offset 32768.
XFS (loop0): page discard on page 000000001a6903b6, inode 0x2b, offset 36864.

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/19 06:30 linux-5.15.y 9d6bde853685 3bb7af1d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in xfs_bmapi_convert_delalloc
2023/06/16 23:36 linux-5.15.y 471e639e59d1 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in xfs_bmapi_convert_delalloc
2023/06/07 01:38 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in xfs_bmapi_convert_delalloc
2023/07/15 11:22 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in xfs_bmapi_convert_delalloc
2023/06/21 11:27 linux-5.15.y 471e639e59d1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in xfs_bmapi_convert_delalloc
2023/06/07 01:44 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in xfs_bmapi_convert_delalloc
* Struck through repros no longer work on HEAD.