syzbot


KCSAN: data-race in __xa_set_mark / xas_find_marked
Status: moderation: reported on 2020/09/25 08:57
Reported-by: syzbot+f512479ce46e8f0a9370@syzkaller.appspotmail.com
First crash: 705d, last: 1d02h

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __xa_set_mark / xas_find_marked

read-write to 0xffff888121251468 of 8 bytes by task 8029 on cpu 1:
 instrument_read_write include/linux/instrumented.h:57 [inline]
 __instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:81 [inline]
 __test_and_set_bit include/asm-generic/bitops/instrumented-non-atomic.h:95 [inline]
 node_set_mark lib/xarray.c:93 [inline]
 xas_set_mark lib/xarray.c:886 [inline]
 __xa_set_mark+0x1b1/0x2a0 lib/xarray.c:1905
 __folio_mark_dirty+0xfb/0x130 mm/page-writeback.c:2500
 __set_page_dirty include/linux/pagemap.h:1060 [inline]
 mark_buffer_dirty+0x159/0x390 fs/buffer.c:1105
 __block_commit_write fs/buffer.c:2080 [inline]
 block_write_end+0x13d/0x240 fs/buffer.c:2159
 generic_write_end+0x5d/0x230 fs/buffer.c:2173
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3078
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3775
 ext4_buffered_write_iter+0x222/0x330 fs/ext4/file.c:270
 ext4_file_write_iter+0x2e3/0x1210
 call_write_iter include/linux/fs.h:2041 [inline]
 new_sync_write fs/read_write.c:504 [inline]
 vfs_write+0x71c/0x890 fs/read_write.c:591
 ksys_write+0xe8/0x1a0 fs/read_write.c:644
 __do_sys_write fs/read_write.c:656 [inline]
 __se_sys_write fs/read_write.c:653 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:653
 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+0x46/0xb0

read to 0xffff888121251468 of 8 bytes by task 8031 on cpu 0:
 xas_find_chunk include/linux/xarray.h:1688 [inline]
 xas_find_marked+0x195/0x5e0 lib/xarray.c:1355
 find_get_entry mm/filemap.c:2032 [inline]
 find_get_pages_range_tag+0x103/0x480 mm/filemap.c:2314
 pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1122
 mpage_prepare_extent_to_map+0x1a4/0xa50 fs/ext4/inode.c:2577
 ext4_writepages+0x9b8/0x1d00 fs/ext4/inode.c:2814
 do_writepages+0x1db/0x350 mm/page-writeback.c:2352
 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
 ext4_alloc_da_blocks+0x47/0x100 fs/ext4/inode.c:3122
 __ext4_ioctl fs/ext4/ioctl.c:1322 [inline]
 ext4_ioctl+0xd9c/0x2740 fs/ext4/ioctl.c:1519
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 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+0x46/0xb0

value changed: 0x00000fffffffffff -> 0x00007fffffffffff

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8031 Comm: syz-executor.0 Not tainted 5.18.0-syzkaller-09061-g16477cdfefdb-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (538):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/26 20:26 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/26 15:30 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/25 11:43 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/24 20:37 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/24 00:59 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/22 22:41 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/22 03:09 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/21 04:29 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/20 17:14 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/20 14:56 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/19 20:05 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/19 06:08 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/18 18:01 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/18 15:31 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/18 00:53 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/15 18:34 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/15 00:38 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/14 06:12 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/13 11:32 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/13 08:14 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/12 20:36 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/12 14:48 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/11 18:21 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/11 15:29 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 16:16 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 04:40 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 23:57 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 20:35 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 15:17 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 09:09 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 07:04 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 22:23 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 20:49 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 17:58 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 12:55 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 12:01 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 10:51 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 09:02 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 05:41 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/07 03:37 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/06 22:49 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/06 20:56 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/06 19:06 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/06 17:13 upstream fe27d189e3f4 e60b1103 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/06 04:39 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/05 09:21 upstream a7391ad35724 b3f09415 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/04 21:47 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/04 09:43 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/04 07:36 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in __xa_set_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/01/17 11:08 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/09/24 17:40 upstream 171d4ff79f96 54289b08 .config log report info
ci2-upstream-kcsan-gce 2020/06/21 17:45 upstream 64677779e896 4f2acff9 .config log report