syzbot


KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages (3)

Status: auto-closed as invalid on 2021/12/06 03:13
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 620d, last: 392d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages 45 905d 1132d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages (2) 45 706d 721d 0/24 auto-closed as invalid on 2021/01/25 22:34

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

write to 0xffff88813956ace0 of 8 bytes by task 17323 on cpu 0:
 __add_to_page_cache_locked+0x276/0x4f0 mm/filemap.c:931
 add_to_page_cache_lru+0xa0/0x1b0 mm/filemap.c:984
 pagecache_get_page+0x6ad/0x910 mm/filemap.c:1951
 grab_cache_page_write_begin+0x3f/0x70 mm/filemap.c:3724
 ext4_da_write_begin+0x323/0x570 fs/ext4/inode.c:2961
 generic_perform_write+0x1b8/0x3e0 mm/filemap.c:3770
 ext4_buffered_write_iter+0x305/0x400 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x11f0
 call_write_iter include/linux/fs.h:2163 [inline]
 aio_write+0x2b4/0x390 fs/aio.c:1578
 io_submit_one+0x86f/0x13b0 fs/aio.c:1880
 __do_sys_io_submit fs/aio.c:1939 [inline]
 __se_sys_io_submit+0x105/0x270 fs/aio.c:1909
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:1909
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813956ace0 of 8 bytes by task 17380 on cpu 1:
 ext4_writepages+0x13c/0x1d70 fs/ext4/inode.c:2666
 do_writepages+0x26b/0x3c0 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc mm/filemap.c:400 [inline]
 __filemap_fdatawrite_range mm/filemap.c:433 [inline]
 __filemap_fdatawrite mm/filemap.c:439 [inline]
 filemap_flush+0x154/0x180 mm/filemap.c:466
 ext4_alloc_da_blocks+0x47/0xd0 fs/ext4/inode.c:3106
 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:141
 __fput+0x295/0x520 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:313
 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:175 [inline]
 exit_to_user_mode_prepare+0x156/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/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000503 -> 0x0000000000000504

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 17380 Comm: syz-executor.1 Tainted: G        W         5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (33):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/01 03:05 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/10/28 10:08 upstream 1fc596a56b33 be531bb4 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/10/07 02:13 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/10/05 06:37 upstream 84b3e42564ac ce697b49 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/09/22 20:36 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/08/21 21:45 upstream 002c0aef1090 b599f2fc .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/08/09 09:02 upstream 36a21d51725a 6972b106 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/08/06 04:25 upstream 902e7f373fff 2f537099 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/08/04 16:00 upstream d5ad8ec3cfb5 b97d64c9 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/07/31 08:34 upstream c7d102232649 6c236867 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/07/30 04:32 upstream 7e96bf476270 c585c7b0 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/07/28 18:23 upstream 4010a528219e 9a4781d4 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/07/23 13:39 upstream 8baef6386baa bc5f1d88 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/07/23 07:31 upstream 9bead1b58c4c bc5f1d88 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/07/15 19:23 upstream 8096acd7442e f115ae98 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/07/09 20:49 upstream 3dbdb38e2869 8f5a7b8c .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/06/28 11:15 upstream 62fb9874f5da 9d2ab5df .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/06/08 18:40 upstream 4c8684fe555e 5c2fe346 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/29 17:07 upstream 6799d4f2da49 325a8dab .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/28 20:33 upstream 5ff2756afde0 858ea628 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/26 01:11 upstream a050a6d2b7e8 93d3a9f6 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/24 17:52 upstream c4681547bcce 3c7fef33 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/22 18:51 upstream 23d729263037 3c7fef33 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/20 19:11 upstream f01da525b3de c560a65d .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/16 15:48 upstream 63d1cb53e26a f54a5c09 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/14 19:18 upstream bd3c9cdb21a2 8bdd5343 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/14 03:37 upstream 315d99318179 8bdd5343 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/05/11 14:49 upstream 1140ab592e2e ca873091 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/30 00:48 upstream 8ca5297e7e38 77e2b668 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/08 22:12 upstream 3fb4f979b4fa 6a81331a .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/04/06 20:52 upstream 2d743660786e 6a81331a .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/29 13:04 upstream a5e13c6df0e4 a8529b82 .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
ci2-upstream-kcsan-gce 2021/03/18 08:52 upstream 6417f03132a6 7216542e .config log report info KCSAN: data-race in __add_to_page_cache_locked / ext4_writepages
* Struck through repros no longer work on HEAD.