syzbot


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

Status: auto-obsoleted due to no activity on 2022/10/29 12:30
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 137d, last: 137d
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (5) 4 424d 467d 0/24 auto-closed as invalid on 2022/01/15 16:41
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (3) 1 610d 610d 0/24 auto-closed as invalid on 2021/07/13 22:52
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (4) 1 558d 558d 0/24 auto-closed as invalid on 2021/09/04 02:13
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (7) 1 257d 257d 0/24 auto-closed as invalid on 2022/07/02 07:32
upstream KCSAN: data-race in write_cache_pages / write_cache_pages 2 1121d 1144d 0/24 auto-closed as invalid on 2020/03/24 21:40
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (8) 2 199d 220d 0/24 auto-closed as invalid on 2022/08/29 06:43
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (2) 2 823d 794d 0/24 auto-closed as invalid on 2020/12/21 11:55
upstream KCSAN: data-race in write_cache_pages / write_cache_pages (6) 2 313d 339d 0/24 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 0xffff88812ffd3890 of 8 bytes by task 1833 on cpu 1:
 write_cache_pages+0x9ea/0xa30 mm/page-writeback.c:2410
 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2450
 blkdev_writepages+0x19/0x20 block/fops.c:411
 do_writepages+0x1db/0x350 mm/page-writeback.c:2468
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 __filemap_fdatawrite mm/filemap.c:427 [inline]
 filemap_flush+0x93/0xc0 mm/filemap.c:454
 sync_blockdev_nowait+0x32/0x40 block/bdev.c:185
 sync_filesystem+0xdc/0x180 fs/sync.c:60
 generic_shutdown_super+0x3c/0x240 fs/super.c:474
 kill_block_super+0x4a/0x90 fs/super.c:1427
 deactivate_locked_super+0x6a/0xb0 fs/super.c:332
 deactivate_super+0x85/0x90 fs/super.c:363
 cleanup_mnt+0x2b6/0x320 fs/namespace.c:1186
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1193
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff88812ffd3890 of 8 bytes by task 26 on cpu 0:
 write_cache_pages+0x9ea/0xa30 mm/page-writeback.c:2410
 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2450
 blkdev_writepages+0x19/0x20 block/fops.c:411
 do_writepages+0x1db/0x350 mm/page-writeback.c:2468
 __writeback_single_inode+0x81/0x590 fs/fs-writeback.c:1587
 writeback_sb_inodes+0x6a0/0xdd0 fs/fs-writeback.c:1865
 __writeback_inodes_wb+0xb0/0x2a0 fs/fs-writeback.c:1936
 wb_writeback+0x280/0x650 fs/fs-writeback.c:2041
 wb_check_background_flush fs/fs-writeback.c:2107 [inline]
 wb_do_writeback+0x5b3/0x600 fs/fs-writeback.c:2195
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2222
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000000000 -> 0x0000000000000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 26 Comm: kworker/u4:1 Not tainted 6.0.0-rc6-syzkaller-00286-ga63f2e7cb110-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: writeback wb_workfn (flush-7:0)
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/09/24 12:23 upstream a63f2e7cb110 0042f2b4 .config console log report info [disk image] [vmlinux] KCSAN: data-race in write_cache_pages / write_cache_pages
* Struck through repros no longer work on HEAD.