syzbot


KCSAN: data-race in write_cache_pages / write_cache_pages (3)

Status: auto-closed as invalid on 2021/07/13 22:52
Subsystems: fs mm
[Documentation on labels]
First crash: 1051d, last: 1051d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (10) fs mm 26 306d 539d 0/26 auto-obsoleted due to no activity on 2023/07/28 22:24
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (11) fs mm 24 86d 140d 0/26 auto-obsoleted due to no activity on 2024/03/05 07:37
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (5) fs mm 4 865d 908d 0/26 auto-closed as invalid on 2022/01/15 16:41
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (4) fs mm 1 999d 999d 0/26 auto-closed as invalid on 2021/09/04 02:13
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (7) fs mm 1 698d 698d 0/26 auto-closed as invalid on 2022/07/02 07:32
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (12) fs mm 3 44d 48d 0/26 auto-obsoleted due to no activity on 2024/04/15 18:53
upstream KCSAN: data-race in write_cache_pages / write_cache_pages fs mm 2 1562d 1585d 0/26 auto-closed as invalid on 2020/03/24 21:40
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (9) fs mm 1 579d 579d 0/26 auto-obsoleted due to no activity on 2022/10/29 12:30
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (8) fs mm 2 640d 661d 0/26 auto-closed as invalid on 2022/08/29 06:43
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (2) fs mm 2 1264d 1235d 0/26 auto-closed as invalid on 2020/12/21 11:55
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (6) mm fs 2 754d 780d 0/26 auto-closed as invalid on 2022/05/06 22:51

Sample crash report:
==================================================================
BUG: KCSAN: data-race in write_cache_pages / write_cache_pages

write to 0xffff888101380678 of 8 bytes by task 1768 on cpu 1:
 write_cache_pages+0x7c4/0x810 mm/page-writeback.c:2297
 generic_writepages+0x64/0xa0 mm/page-writeback.c:2337
 blkdev_writepages+0x19/0x20 fs/block_dev.c:1753
 do_writepages+0x7b/0x150 mm/page-writeback.c:2352
 __filemap_fdatawrite_range mm/filemap.c:413 [inline]
 __filemap_fdatawrite mm/filemap.c:421 [inline]
 filemap_flush+0x132/0x160 mm/filemap.c:448
 __sync_blockdev+0x69/0x70 fs/block_dev.c:525
 __sync_filesystem fs/sync.c:40 [inline]
 sync_filesystem+0xcb/0x160 fs/sync.c:64
 generic_shutdown_super+0x42/0x230 fs/super.c:448
 kill_block_super+0x4a/0x90 fs/super.c:1395
 deactivate_locked_super+0x65/0xd0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1136
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1143
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888101380678 of 8 bytes by task 381 on cpu 0:
 write_cache_pages+0xe5/0x810 mm/page-writeback.c:2185
 generic_writepages+0x64/0xa0 mm/page-writeback.c:2337
 blkdev_writepages+0x19/0x20 fs/block_dev.c:1753
 do_writepages+0x7b/0x150 mm/page-writeback.c:2352
 __writeback_single_inode+0x80/0x450 fs/fs-writeback.c:1467
 writeback_sb_inodes+0x564/0xf10 fs/fs-writeback.c:1732
 __writeback_inodes_wb fs/fs-writeback.c:1801 [inline]
 wb_writeback+0x327/0x700 fs/fs-writeback.c:1907
 wb_check_background_flush fs/fs-writeback.c:1975 [inline]
 wb_do_writeback+0x4ce/0x510 fs/fs-writeback.c:2063
 wb_workfn+0xc8/0x520 fs/fs-writeback.c:2091
 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2276
 worker_thread+0x636/0xae0 kernel/workqueue.c:2422
 kthread+0x1d0/0x1f0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

value changed: 0x0000000000000000 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 381 Comm: kworker/u4:3 Not tainted 5.13.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-7:5)
==================================================================
sd 0:0:1:0: [sda] Synchronizing SCSI cache
sd 0:0:1:0: [sda] Synchronizing SCSI cache

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/08 22:44 upstream 4c8684fe555e 5c2fe346 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in write_cache_pages / write_cache_pages
* Struck through repros no longer work on HEAD.