syzbot


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

Status: auto-closed as invalid on 2022/01/15 16:41
Subsystems: fs mm
[Documentation on labels]
First crash: 906d, last: 864d
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 305d 537d 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 84d 138d 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 (3) fs mm 1 1050d 1050d 0/26 auto-closed as invalid on 2021/07/13 22:52
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (4) fs mm 1 997d 997d 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 696d 696d 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 43d 47d 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 1561d 1583d 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 577d 577d 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 638d 659d 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 1262d 1233d 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 753d 779d 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 0xffff888100416c40 of 8 bytes by task 1829 on cpu 1:
 write_cache_pages+0x7a2/0x7f0 mm/page-writeback.c:2306
 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2346
 blkdev_writepages+0x19/0x20 block/fops.c:429
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:407 [inline]
 __filemap_fdatawrite_range mm/filemap.c:440 [inline]
 __filemap_fdatawrite mm/filemap.c:446 [inline]
 filemap_flush+0xd7/0x100 mm/filemap.c:473
 sync_blockdev_nowait+0x32/0x40 block/bdev.c:192
 sync_filesystem+0xc9/0x150 fs/sync.c:57
 generic_shutdown_super+0x40/0x250 fs/super.c:448
 kill_block_super+0x4a/0x90 fs/super.c:1397
 deactivate_locked_super+0x6a/0xb0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1137
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1144
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

write to 0xffff888100416c40 of 8 bytes by task 1840 on cpu 0:
 write_cache_pages+0x7a2/0x7f0 mm/page-writeback.c:2306
 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2346
 blkdev_writepages+0x19/0x20 block/fops.c:429
 do_writepages+0x1cb/0x330 mm/page-writeback.c:2364
 __writeback_single_inode+0x80/0x4d0 fs/fs-writeback.c:1616
 writeback_sb_inodes+0x677/0xdf0 fs/fs-writeback.c:1881
 __writeback_inodes_wb+0xb0/0x2b0 fs/fs-writeback.c:1951
 wb_writeback+0x280/0x650 fs/fs-writeback.c:2056
 wb_check_background_flush fs/fs-writeback.c:2122 [inline]
 wb_do_writeback+0x51d/0x560 fs/fs-writeback.c:2210
 wb_workfn+0xc8/0x440 fs/fs-writeback.c:2238
 process_one_work+0x3fc/0x980 kernel/workqueue.c:2298
 worker_thread+0x616/0xa70 kernel/workqueue.c:2445
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000000000 -> 0x0000000000000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1840 Comm: kworker/u4:5 Not tainted 5.16.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-7:2)
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/11 16:38 upstream 6f513529296f 49ca1f59 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in write_cache_pages / write_cache_pages
2021/11/21 22:45 upstream 40c93d7fff6f 4eb20a4e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in write_cache_pages / write_cache_pages
2021/11/01 10:39 upstream 8bb7eca972ad 098b5d53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in write_cache_pages / write_cache_pages
2021/10/30 01:02 upstream a379fbbcb88b 098b5d53 .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.