syzbot


KCSAN: data-race in __xa_clear_mark / xas_find_marked

Status: closed as invalid on 2021/06/07 13:50
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+0d4522639ba75b02bf19@syzkaller.appspotmail.com
First crash: 1192d, last: 844d
Discussions (1)
Title Replies (including bot) Last reply
KCSAN: data-race in __xa_clear_mark / xas_find_marked 2 (3) 2020/08/10 12:59
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 (2) mm fs 2710 18h48m 824d 0/25 moderation: reported on 2021/06/26 18:58

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

write to 0xffff888106647fb0 of 8 bytes by task 1775 on cpu 1:
 instrument_write include/linux/instrumented.h:42 [inline]
 __instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:79 [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:911 [inline]
 __xa_clear_mark+0x1d9/0x2c0 lib/xarray.c:1917
 test_clear_page_writeback+0x23e/0x560 mm/page-writeback.c:2736
 end_page_writeback+0xd7/0x1b0 mm/filemap.c:1548
 ext4_finish_bio+0x3e2/0x430 fs/ext4/page-io.c:143
 ext4_release_io_end+0x98/0x200 fs/ext4/page-io.c:158
 ext4_end_io_end fs/ext4/page-io.c:192 [inline]
 ext4_do_flush_completed_IO fs/ext4/page-io.c:257 [inline]
 ext4_end_io_rsv_work+0x306/0x360 fs/ext4/page-io.c:271
 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2276
 worker_thread+0x636/0xae0 kernel/workqueue.c:2422
 kthread+0x1d0/0x1f0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff888106647fb0 of 8 bytes by task 7854 on cpu 0:
 xas_find_chunk include/linux/xarray.h:1662 [inline]
 xas_find_marked+0x195/0x5f0 lib/xarray.c:1349
 find_get_entry mm/filemap.c:1925 [inline]
 find_get_pages_range_tag+0xf2/0x390 mm/filemap.c:2216
 pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1123
 __filemap_fdatawait_range+0xab/0x1b0 mm/filemap.c:510
 file_write_and_wait_range+0x1c3/0x210 mm/filemap.c:796
 ext4_sync_file+0x105/0x670 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2982 [inline]
 ext4_buffered_write_iter+0x39c/0x3f0 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519
 call_write_iter include/linux/fs.h:2114 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x69d/0x770 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xfffffffc00000000 -> 0xffe0000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7854 Comm: syz-executor.2 Not tainted 5.13.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (558):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/07 06:49 upstream 614124bea77e e59537be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/06 20:36 upstream decad3e1d1ed 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/05 23:47 upstream f5b6eb1e0182 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/05 10:38 upstream 9d32fa5d74b1 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/04 21:29 upstream 16f0596fc1d7 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/04 17:50 upstream 16f0596fc1d7 966a236b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/04 09:22 upstream f88cd3fb9df2 966a236b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/03 19:35 upstream f88cd3fb9df2 0740de69 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/02 20:26 upstream 324c92e5e0ee 0740de69 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/02 07:22 upstream 231bc5390667 0740de69 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/06/02 04:17 upstream 231bc5390667 032639db .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/31 17:07 upstream c2131f7e73c9 032639db .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/31 09:04 upstream 8124c8a6b353 032639db .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/31 09:03 upstream 8124c8a6b353 032639db .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/30 23:46 upstream 8124c8a6b353 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/30 06:36 upstream b90e90f40b4f 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/29 17:20 upstream f956cb99b938 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/29 15:54 upstream 6799d4f2da49 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/29 08:32 upstream 6799d4f2da49 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/28 19:16 upstream 5ff2756afde0 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/28 01:25 upstream 97e5bf604b7a 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/27 12:15 upstream d7c5303fbc8a 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/26 22:37 upstream 7ac3a1c1ae51 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/26 10:02 upstream ad9f25d33860 750ce164 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/26 05:43 upstream ad9f25d33860 93d3a9f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/25 16:24 upstream a050a6d2b7e8 93d3a9f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/25 02:44 upstream 1434a3127887 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/25 02:44 upstream 1434a3127887 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/24 12:56 upstream c4681547bcce 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/23 23:15 upstream 6ebb6814a1ef 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/23 07:58 upstream 4d7620341eda 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/22 18:33 upstream 23d729263037 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/22 03:24 upstream 45af60e7ced0 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/21 14:10 upstream 79a106fc6585 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/21 01:08 upstream ba816d3c265c 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/20 23:51 upstream f01da525b3de 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/20 17:21 upstream f01da525b3de c560a65d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/20 11:53 upstream c3d0e3fd41b7 c560a65d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/19 17:03 upstream c3d0e3fd41b7 a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/17 21:18 upstream d07f6ca923ea a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/17 08:53 upstream d07f6ca923ea a2eb125d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/17 04:17 upstream d07f6ca923ea f54a5c09 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/16 15:02 upstream 63d1cb53e26a f54a5c09 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/16 01:14 upstream c12a29ed9094 f54a5c09 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/15 09:47 upstream 25a1298726e9 93f844de .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/15 07:30 upstream 25a1298726e9 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/05/14 18:21 upstream bd3c9cdb21a2 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __xa_clear_mark / xas_find_marked
2021/01/17 10:02 upstream 0da0a8a0a0e1 813be542 .config console log report info ci2-upstream-kcsan-gce
2020/08/10 10:40 upstream fc80c51fd4b2 7adc7b65 .config console log report ci2-upstream-kcsan-gce
2020/07/07 22:01 upstream aa27b32b76d0 08fc4ef1 .config console log report ci2-upstream-kcsan-gce
2020/06/23 17:16 upstream 3e08a95294a4 6930bbef .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.