syzbot


KCSAN: data-race in __filemap_add_folio / jbd2_journal_submit_inode_data_buffers (2)

Status: auto-closed as invalid on 2022/01/23 07:11
Subsystems: fs mm
[Documentation on labels]
First crash: 851d, last: 851d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __filemap_add_folio / jbd2_journal_submit_inode_data_buffers (3) fs mm 2 709d 710d 0/26 closed as invalid on 2022/05/13 11:20
upstream KCSAN: data-race in __filemap_add_folio / jbd2_journal_submit_inode_data_buffers ext4 1 890d 890d 0/26 auto-closed as invalid on 2021/12/15 14:34

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __filemap_add_folio / jbd2_journal_submit_inode_data_buffers

write to 0xffff88813551eda0 of 8 bytes by task 5357 on cpu 1:
 __filemap_add_folio+0x256/0x4d0 mm/filemap.c:946
 filemap_add_folio+0x6b/0x150 mm/filemap.c:999
 add_to_page_cache_lru+0x4e/0x70 mm/folio-compat.c:115
 page_cache_ra_unbounded+0x274/0x430 mm/readahead.c:221
 ondemand_readahead+0x4f8/0x700
 page_cache_async_ra+0xed/0x120 mm/readahead.c:608
 page_cache_async_readahead include/linux/pagemap.h:1052 [inline]
 filemap_readahead mm/filemap.c:2531 [inline]
 filemap_get_pages mm/filemap.c:2572 [inline]
 filemap_read+0x500/0x16d0 mm/filemap.c:2642
 generic_file_read_iter+0x72/0x2a0 mm/filemap.c:2792
 ext4_file_read_iter+0x1db/0x290
 call_read_iter include/linux/fs.h:2156 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813551eda0 of 8 bytes by task 1401 on cpu 0:
 jbd2_journal_submit_inode_data_buffers+0x5b/0xe0 fs/jbd2/commit.c:195
 ext4_journal_submit_inode_data_buffers+0x55/0x110 fs/ext4/super.c:531
 journal_submit_data_buffers+0xf0/0x260 fs/jbd2/commit.c:256
 jbd2_journal_commit_transaction+0x86f/0x3460 fs/jbd2/commit.c:591
 kjournald2+0x263/0x480 fs/jbd2/journal.c:213
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000000576 -> 0x0000000000000580

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1401 Comm: jbd2/sda1-8 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/19 07:06 upstream 3f667b5d4053 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / jbd2_journal_submit_inode_data_buffers
* Struck through repros no longer work on HEAD.