syzbot


KCSAN: data-race in __xa_clear_mark / xas_find_marked (2)
Status: moderation: reported on 2021/06/26 18:58
Reported-by: syzbot+03743c59b799c7b55cd4@syzkaller.appspotmail.com
First crash: 352d, last: 12h32m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __xa_clear_mark / xas_find_marked 558 352d 653d 0/22 closed as invalid on 2021/06/07 13:50

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

read-write to 0xffff888122e456b0 of 8 bytes by task 44 on cpu 0:
 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_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:109 [inline]
 node_clear_mark lib/xarray.c:100 [inline]
 xas_clear_mark lib/xarray.c:915 [inline]
 __xa_clear_mark+0x1b6/0x2d0 lib/xarray.c:1923
 __folio_end_writeback+0x26b/0x540 mm/page-writeback.c:2805
 folio_end_writeback+0x57/0x130 mm/filemap.c:1646
 end_page_writeback+0x3b/0xe0 mm/folio-compat.c:26
 ext4_finish_bio+0x421/0x520 fs/ext4/page-io.c:145
 ext4_release_io_end+0x98/0x200 fs/ext4/page-io.c:160
 ext4_end_io_end fs/ext4/page-io.c:194 [inline]
 ext4_do_flush_completed_IO fs/ext4/page-io.c:259 [inline]
 ext4_end_io_rsv_work+0x319/0x3a0 fs/ext4/page-io.c:273
 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

read to 0xffff888122e456b0 of 8 bytes by task 4102 on cpu 1:
 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
 __filemap_fdatawait_range+0xba/0x260 mm/filemap.c:516
 filemap_fdatawait_range mm/filemap.c:551 [inline]
 filemap_write_and_wait_range+0x14d/0x2e0 mm/filemap.c:682
 ext4_punch_hole+0xaf/0x7c0 fs/ext4/inode.c:3986
 ext4_fallocate+0x1f6/0x440 fs/ext4/extents.c:4703
 vfs_fallocate+0x355/0x3d0 fs/open.c:308
 do_vfs_ioctl+0x12d9/0x1390 fs/ioctl.c:849
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl+0x83/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: 0xfffffffff0000000 -> 0xffffffff00000000

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

Crashes (1328):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/25 13:33 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/25 11:49 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/24 22:13 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/24 10:29 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/23 23:17 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/23 09:46 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/23 09:14 upstream 4b0986a3613c 7268fa62 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/22 20:00 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/22 06:38 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/21 17:30 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/21 04:15 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/20 15:49 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/20 14:17 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/20 00:58 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/19 11:44 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/19 06:04 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/18 16:55 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/18 13:48 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/18 01:08 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/18 00:46 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/16 03:29 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/15 14:10 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/15 00:22 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/14 10:39 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/13 21:58 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/13 09:30 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in __xa_clear_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_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/12 19:14 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/12 13:18 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/11 16:52 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/10 23:25 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 16:24 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 08:55 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 08:10 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 06:53 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 05:52 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 04:37 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 03:36 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 02:25 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 01:24 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/09 00:09 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 23:05 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 21:33 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 20:06 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 19:43 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 18:24 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/08 17:04 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/06/26 05:21 upstream b7050b242430 9d2ab5df .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/06/22 18:45 upstream 0c18f29aae7c aba2b2fb .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/06/07 18:41 upstream 614124bea77e b718257f .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked