syzbot


KCSAN: data-race in xas_clear_mark / xas_find_marked (2)

Status: moderation: reported on 2019/12/10 21:55
Reported-by: syzbot+6b653cb0a28eee8c400a@syzkaller.appspotmail.com
First crash: 978d, last: 5h54m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in xas_clear_mark / xas_find_marked 3 983d 989d 0/22 closed as invalid on 2019/10/18 14:11

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

read-write to 0xffff8881232e4d68 of 8 bytes by task 2183 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_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:109 [inline]
 node_clear_mark lib/xarray.c:100 [inline]
 xas_clear_mark+0x8f/0x170 lib/xarray.c:916
 __folio_start_writeback+0x3c9/0x5d0 mm/page-writeback.c:2967
 set_page_writeback+0x3d/0xe0 mm/folio-compat.c:78
 __block_write_full_page+0x4f7/0xb00 fs/buffer.c:1802
 block_write_full_page+0xda/0x100
 blkdev_writepage+0x20/0x30 block/fops.c:372
 __writepage+0x38/0xd0 mm/page-writeback.c:2399
 write_cache_pages+0x443/0xa30 mm/page-writeback.c:2334
 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2425
 blkdev_writepages+0x19/0x20 block/fops.c:407
 do_writepages+0x1db/0x350 mm/page-writeback.c:2443
 __writeback_single_inode+0x81/0x590 fs/fs-writeback.c:1587
 writeback_sb_inodes+0x6a0/0xdd0 fs/fs-writeback.c:1865
 __writeback_inodes_wb+0xb0/0x2a0 fs/fs-writeback.c:1936
 wb_writeback+0x280/0x650 fs/fs-writeback.c:2041
 wb_check_background_flush fs/fs-writeback.c:2107 [inline]
 wb_do_writeback+0x5b3/0x600 fs/fs-writeback.c:2195
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2222
 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 0xffff8881232e4d68 of 8 bytes by task 1833 on cpu 0:
 xas_find_chunk include/linux/xarray.h:1689 [inline]
 xas_find_marked+0x195/0x5e0 lib/xarray.c:1356
 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
 write_cache_pages+0x1fe/0xa30 mm/page-writeback.c:2291
 generic_writepages+0x7c/0xc0 mm/page-writeback.c:2425
 blkdev_writepages+0x19/0x20 block/fops.c:407
 do_writepages+0x1db/0x350 mm/page-writeback.c:2443
 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
 sync_blockdev_nowait+0x32/0x40 block/bdev.c:187
 sync_filesystem+0xdc/0x180 fs/sync.c:60
 generic_shutdown_super+0x3c/0x240 fs/super.c:445
 kill_block_super+0x4a/0x90 fs/super.c:1394
 deactivate_locked_super+0x6a/0xb0 fs/super.c:332
 deactivate_super+0x85/0x90 fs/super.c:363
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1186
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1193
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0x0000000000000001 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1833 Comm: syz-executor.4 Not tainted 5.19.0-rc3-syzkaller-00390-g82708bb1eb9e-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1896):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/26 18:26 upstream 82708bb1eb9e a371c43c .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/25 22:18 upstream 0840a7914caa a371c43c .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/25 08:33 upstream 8c23f235a6a8 a371c43c .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/24 19:20 upstream 38bc4ac43168 a371c43c .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/24 11:25 upstream 92f20ff72066 a371c43c .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/24 07:44 upstream 92f20ff72066 a5dbd430 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/23 20:53 upstream 92f20ff72066 912f5df7 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/23 07:47 upstream de5c208d533a 912f5df7 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/22 19:08 upstream 3abc3ae553c7 912f5df7 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/22 15:57 upstream ca1fdab7fd27 912f5df7 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/21 19:13 upstream ca1fdab7fd27 0fc5c330 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/21 00:56 upstream 78ca55889a54 0fc5c330 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/21 00:52 upstream 78ca55889a54 0fc5c330 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/20 15:28 upstream 78ca55889a54 b9406563 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/20 13:09 upstream a111daf0c53a b9406563 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/20 06:01 upstream a111daf0c53a 8f633d84 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/19 16:40 upstream 05c6ca8512f2 8f633d84 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/19 03:57 upstream 354c6e071be9 8f633d84 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/18 09:13 upstream 4b35035bcf80 8f633d84 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/17 19:15 upstream 462abc9de7a1 8f633d84 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/17 07:45 upstream 47700948a4ab cb58b3b2 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/16 20:26 upstream 48a23ec6ff2b 1719ee24 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/16 01:28 upstream 30306f6194ca 1719ee24 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/15 11:31 upstream 018ab4fabddd 1719ee24 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/15 06:30 upstream 018ab4fabddd 127d1faf .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/14 17:29 upstream 24625f7d91fb 127d1faf .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/14 13:34 upstream b13baccc3850 127d1faf .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/13 16:59 upstream b13baccc3850 0f087040 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/13 09:20 upstream b13baccc3850 0d5abf15 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/12 20:08 upstream 997952851843 0d5abf15 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/12 03:08 upstream 7a68065eb9cd 0d5abf15 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/11 13:50 upstream 0885eacdc81f 0d5abf15 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/11 00:53 upstream a32e7ea36235 0d5abf15 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/10 11:17 upstream 874c8ca1e60b 0d5abf15 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/09 21:56 upstream 3d9f55c57bc3 0d5abf15 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/09 08:39 upstream 6bfb56e93bce 0d5abf15 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/08 17:11 upstream 34f4335c16a5 b2706118 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/08 01:37 upstream 9886142c7a22 b2706118 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/07 13:21 upstream e71e60cd74df b2706118 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/07 02:08 upstream e71e60cd74df c8857892 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/06 04:20 upstream f2906aa86338 c8857892 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/05 15:20 upstream 952923ddc011 c8857892 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/05 02:12 upstream d0e60d46bc03 c8857892 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/04 13:00 upstream 032dcf09e2bf c8857892 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/03 23:52 upstream 744983d87842 c8857892 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/03 11:50 upstream 50fd82b3a9a9 eee80d3c .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/02 23:12 upstream 58f9d52ff689 02dddea8 .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/02 10:52 upstream d1dc87763f40 6e12f05f .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/02 09:03 upstream d1dc87763f40 5783034f .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/01 18:53 upstream 8eca6b0a647a b4bc6a3d .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/01 15:05 upstream 700170bf6b4d b4bc6a3d .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/06/01 10:54 upstream 700170bf6b4d 3666edfe .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2022/05/31 21:51 upstream e1cbc3b96a99 3666edfe .config log report info KCSAN: data-race in xas_clear_mark / xas_find_marked
ci2-upstream-kcsan-gce 2021/01/17 10:22 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2019/10/22 14:09 https://github.com/google/ktsan.git kcsan 05f2236801fe 4ee855e7 .config log report