syzbot


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

Status: auto-closed as invalid on 2022/08/29 06:43
Subsystems: fs mm
[Documentation on labels]
First crash: 661d, last: 641d
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 307d 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 87d 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 866d 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 1052d 1052d 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 45d 49d 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 1563d 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 (2) fs mm 2 1265d 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 755d 781d 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 0xffff8881027dc710 of 8 bytes by task 3421 on cpu 0:
 write_cache_pages+0x9ea/0xa30 mm/page-writeback.c:2385
 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2425
 blkdev_writepages+0x19/0x20 block/fops.c:407
 do_writepages+0x1db/0x350 mm/page-writeback.c:2443
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 filemap_write_and_wait_range+0xbf/0x2e0 mm/filemap.c:673
 filemap_write_and_wait include/linux/pagemap.h:60 [inline]
 sync_blockdev+0x3e/0x50 block/bdev.c:199
 sync_filesystem+0x158/0x180 fs/sync.c:70
 __do_sys_syncfs fs/sync.c:160 [inline]
 __se_sys_syncfs+0x5f/0xe0 fs/sync.c:149
 __x64_sys_syncfs+0x1b/0x20 fs/sync.c:149
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff8881027dc710 of 8 bytes by task 3418 on cpu 1:
 write_cache_pages+0x9ea/0xa30 mm/page-writeback.c:2385
 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2425
 blkdev_writepages+0x19/0x20 block/fops.c:407
 do_writepages+0x1db/0x350 mm/page-writeback.c:2443
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 filemap_write_and_wait_range+0xbf/0x2e0 mm/filemap.c:673
 filemap_write_and_wait include/linux/pagemap.h:60 [inline]
 sync_blockdev+0x3e/0x50 block/bdev.c:199
 sync_filesystem+0x158/0x180 fs/sync.c:70
 __do_sys_syncfs fs/sync.c:160 [inline]
 __se_sys_syncfs+0x5f/0xe0 fs/sync.c:149
 __x64_sys_syncfs+0x1b/0x20 fs/sync.c:149
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000001903 -> 0x0000000000001901

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3418 Comm: syz-executor.2 Not tainted 5.19.0-rc8-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/25 06:40 upstream e0dccc3b76fb 22343af4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in write_cache_pages / write_cache_pages
2022/07/04 11:56 upstream 88084a3df167 1434eec0 .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.