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: 475d, last: 1h23m
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 476d 776d 0/24 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 0xffff88811f5996b0 of 8 bytes by task 26 on cpu 0:
 instrument_read_write include/linux/instrumented.h:57 [inline]
 __instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:84 [inline]
 ___test_and_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:114 [inline]
 node_clear_mark lib/xarray.c:100 [inline]
 xas_clear_mark lib/xarray.c:916 [inline]
 __xa_clear_mark+0xfd/0x1e0 lib/xarray.c:1924
 __folio_end_writeback+0x26b/0x580 mm/page-writeback.c:2925
 folio_end_writeback+0x57/0x130 mm/filemap.c:1620
 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 arch/x86/entry/entry_64.S:306

read to 0xffff88811f5996b0 of 8 bytes by task 3719 on cpu 1:
 xas_find_chunk include/linux/xarray.h:1704 [inline]
 xas_find_marked+0x22f/0x6a0 lib/xarray.c:1356
 find_get_entry mm/filemap.c:2010 [inline]
 find_get_pages_range_tag+0x103/0x4f0 mm/filemap.c:2284
 pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1062
 __filemap_fdatawait_range+0xba/0x260 mm/filemap.c:516
 file_write_and_wait_range+0x11e/0x170 mm/filemap.c:777
 ext4_sync_file+0x105/0x6d0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2869 [inline]
 ext4_buffered_write_iter+0x398/0x3e0 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e3/0x1210
 call_write_iter include/linux/fs.h:2187 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:578
 ksys_write+0xe8/0x1a0 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 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: 0xfffffff000000000 -> 0xfffff80000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3719 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1690):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/26 08:19 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/25 22:58 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/25 04:21 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/24 09:30 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/23 14:07 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/22 15:17 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/22 11:53 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/21 22:11 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/21 22:10 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/21 17:14 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/21 10:13 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/20 18:50 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/20 16:31 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/20 07:42 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/19 12:02 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/19 06:48 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/18 17:32 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/17 05:38 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/16 16:22 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/15 07:00 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/14 10:25 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/14 09:57 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/13 19:39 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/13 13:45 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/13 07:26 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/12 23:07 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/12 16:25 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/12 09:20 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/11 20:12 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/10 18:04 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/09 23:30 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/09 12:38 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/09 02:45 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/08 13:06 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/08 11:00 upstream 0066f1b0e275 f3027468 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/07 23:21 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/07 11:33 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/06 22:59 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/06 20:05 upstream d2ec799d1c1b 65aea2b9 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/06 10:33 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/05 22:32 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/05 09:58 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/04 20:44 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/04 07:21 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/03 18:13 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/03 14:31 upstream d895ec7938c4 28811d0a .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/03 03:21 upstream d895ec7938c4 49e94a20 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/02 19:16 upstream 0b3acd1cc022 25194605 .config log report info KCSAN: data-race in __xa_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/09/02 14:16 upstream 42e66b1cc3a0 25194605 .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
* Struck through repros no longer work on HEAD.