syzbot


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

Status: auto-closed as invalid on 2020/12/21 11:55
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+e3619e90dd0dbd9f431d@syzkaller.appspotmail.com
First crash: 1269d, last: 1265d
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 308d 540d 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 87d 141d 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 867d 909d 0/26 auto-closed as invalid on 2022/01/15 16:41
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (3) fs mm 1 1053d 1053d 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 1000d 1000d 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 699d 699d 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 46d 50d 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 1564d 1586d 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 580d 580d 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 641d 662d 0/26 auto-closed as invalid on 2022/08/29 06:43
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (6) mm fs 2 756d 782d 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 0xffff8881404659e0 of 8 bytes by task 8479 on cpu 0:
 write_cache_pages+0x7ab/0x7f0 mm/page-writeback.c:2297
 generic_writepages+0x64/0xa0 mm/page-writeback.c:2337
 blkdev_writepages+0x19/0x20 fs/block_dev.c:1946
 do_writepages+0x7b/0x150 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x19d/0x1d0 mm/filemap.c:422
 filemap_write_and_wait_range+0x8b/0x2a0 mm/filemap.c:655
 filemap_write_and_wait include/linux/fs.h:2633 [inline]
 __sync_blockdev+0x51/0x70 fs/block_dev.c:509
 __sync_filesystem fs/sync.c:40 [inline]
 sync_filesystem+0x135/0x160 fs/sync.c:67
 ovl_sync_fs+0x94/0xc0 fs/overlayfs/super.c:283
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem+0x112/0x160 fs/sync.c:67
 generic_shutdown_super+0x3c/0x1f0 fs/super.c:448
 kill_anon_super+0x23/0x40 fs/super.c:1108
 deactivate_locked_super+0x6a/0xb0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x277/0x2e0 fs/namespace.c:1118
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1125
 task_work_run+0x8e/0x110 kernel/task_work.c:151
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:164 [inline]
 exit_to_user_mode_prepare+0x13c/0x170 kernel/entry/common.c:191
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:266
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8881404659e0 of 8 bytes by task 8473 on cpu 1:
 write_cache_pages+0x7ab/0x7f0 mm/page-writeback.c:2297
 generic_writepages+0x64/0xa0 mm/page-writeback.c:2337
 blkdev_writepages+0x19/0x20 fs/block_dev.c:1946
 do_writepages+0x7b/0x150 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x19d/0x1d0 mm/filemap.c:422
 __filemap_fdatawrite mm/filemap.c:430 [inline]
 filemap_flush+0x1f/0x30 mm/filemap.c:457
 __sync_blockdev+0x69/0x70 fs/block_dev.c:508
 __sync_filesystem fs/sync.c:40 [inline]
 sync_filesystem+0xcb/0x160 fs/sync.c:64
 ovl_sync_fs+0x94/0xc0 fs/overlayfs/super.c:283
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem+0x112/0x160 fs/sync.c:67
 generic_shutdown_super+0x3c/0x1f0 fs/super.c:448
 kill_anon_super+0x23/0x40 fs/super.c:1108
 deactivate_locked_super+0x6a/0xb0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x277/0x2e0 fs/namespace.c:1118
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1125
 task_work_run+0x8e/0x110 kernel/task_work.c:151
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:164 [inline]
 exit_to_user_mode_prepare+0x13c/0x170 kernel/entry/common.c:191
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:266
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8473 Comm: syz-executor.0 Not tainted 5.10.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/08 03:04 upstream 4429f14aeea9 cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/11/04 03:37 upstream 4ef8451b3326 cba33199 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.