syzbot


KCSAN: data-race in __writeback_single_inode / xas_set_mark

Status: closed as invalid on 2020/06/18 14:24
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1024d, last: 787d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / xas_set_mark (2) 238 234d 681d 0/23 auto-closed as invalid on 2022/01/26 09:38

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __writeback_single_inode / xas_set_mark

write to 0xffff88811cc2c36c of 4 bytes by task 14480 on cpu 1:
 xa_mark_set lib/xarray.c:69 [inline]
 xas_set_mark lib/xarray.c:886 [inline]
 xas_set_mark+0x140/0x150 lib/xarray.c:870
 __xa_set_mark+0xdd/0x110 lib/xarray.c:1708
 __set_page_dirty+0x151/0x270 fs/buffer.c:618
 __set_page_dirty_buffers+0x1ca/0x280 fs/buffer.c:677
 ext4_set_page_dirty+0xba/0x180 fs/ext4/inode.c:3603
 set_page_dirty+0x11b/0x2a0 mm/page-writeback.c:2572
 fault_dirty_shared_page+0x74/0x1c0 mm/memory.c:2559
 wp_page_shared mm/memory.c:2872 [inline]
 do_wp_page+0xa71/0xca0 mm/memory.c:2973
 handle_pte_fault mm/memory.c:4231 [inline]
 __handle_mm_fault+0x2d96/0x2da0 mm/memory.c:4345
 handle_mm_fault+0x21c/0x540 mm/memory.c:4382
 do_user_addr_fault arch/x86/mm/fault.c:1464 [inline]
 do_page_fault+0x48a/0xa96 arch/x86/mm/fault.c:1535
 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203

read to 0xffff88811cc2c36c of 4 bytes by task 7 on cpu 0:
 mapping_tagged include/linux/fs.h:521 [inline]
 __writeback_single_inode+0x376/0x910 fs/fs-writeback.c:1502
 writeback_sb_inodes+0x4c8/0xa10 fs/fs-writeback.c:1716
 wb_writeback+0x1f9/0x6a0 fs/fs-writeback.c:1892
 wb_do_writeback fs/fs-writeback.c:2037 [inline]
 wb_workfn+0x215/0x970 fs/fs-writeback.c:2078
 process_one_work+0x424/0x930 kernel/workqueue.c:2268
 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2414
 kthread+0x203/0x230 kernel/kthread.c:268
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7 Comm: kworker/u4:0 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (39):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/06/17 11:10 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 b6c46f43 .config log report
ci2-upstream-kcsan-gce 2020/06/15 17:50 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 8e3ab941 .config log report
ci2-upstream-kcsan-gce 2020/06/13 14:19 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 dbce178a .config log report
ci2-upstream-kcsan-gce 2020/06/03 03:59 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 f3ba1b5b .config log report
ci2-upstream-kcsan-gce 2020/05/30 16:01 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 6f3e1c7c .config log report
ci2-upstream-kcsan-gce 2020/05/23 20:27 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 4afdfa20 .config log report
ci2-upstream-kcsan-gce 2020/04/30 10:49 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 3698959a .config log report
ci2-upstream-kcsan-gce 2020/04/28 09:25 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 0ce7569e .config log report
ci2-upstream-kcsan-gce 2020/04/16 01:15 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 3f3c5574 .config log report
ci2-upstream-kcsan-gce 2020/03/25 21:29 https://github.com/google/ktsan.git kcsan 40959e34d670 e8e6c7d2 .config log report
ci2-upstream-kcsan-gce 2020/03/20 19:55 https://github.com/google/ktsan.git kcsan 40959e34d670 2c31c529 .config log report
ci2-upstream-kcsan-gce 2020/03/15 13:33 https://github.com/google/ktsan.git kcsan 941e0d917bbf 749688d2 .config log report
ci2-upstream-kcsan-gce 2020/03/09 22:10 https://github.com/google/ktsan.git kcsan 941e0d917bbf 35f53e45 .config log report
ci2-upstream-kcsan-gce 2020/02/19 02:35 https://github.com/google/ktsan.git kcsan b12d66a6c34f 135c18aa .config log report
ci2-upstream-kcsan-gce 2020/02/17 15:48 https://github.com/google/ktsan.git kcsan b12d66a6c34f 72bfa6f2 .config log report
ci2-upstream-kcsan-gce 2020/02/15 21:18 https://github.com/google/ktsan.git kcsan b12d66a6c34f 5d7b90f1 .config log report
ci2-upstream-kcsan-gce 2020/02/11 23:41 https://github.com/google/ktsan.git kcsan f60f0f543333 4d1ab643 .config log report
ci2-upstream-kcsan-gce 2020/01/26 23:09 https://github.com/google/ktsan.git kcsan 245a43005292 dd56146d .config log report
ci2-upstream-kcsan-gce 2020/01/22 07:27 https://github.com/google/ktsan.git kcsan 245a43005292 8eda0b95 .config log report
ci2-upstream-kcsan-gce 2020/01/14 15:40 https://github.com/google/ktsan.git kcsan 245a43005292 32881205 .config log report
ci2-upstream-kcsan-gce 2020/01/13 22:27 https://github.com/google/ktsan.git kcsan 245a43005292 99565c1a .config log report
ci2-upstream-kcsan-gce 2020/01/10 19:35 https://github.com/google/ktsan.git kcsan 245a43005292 532ec44e .config log report
ci2-upstream-kcsan-gce 2020/01/08 13:04 https://github.com/google/ktsan.git kcsan 245a43005292 ddc3e859 .config log report
ci2-upstream-kcsan-gce 2020/01/08 12:39 https://github.com/google/ktsan.git kcsan 245a43005292 ddc3e859 .config log report
ci2-upstream-kcsan-gce 2019/12/31 11:49 https://github.com/google/ktsan.git kcsan 245a43005292 7f117e28 .config log report
ci2-upstream-kcsan-gce 2019/12/29 15:52 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config log report
ci2-upstream-kcsan-gce 2019/12/23 00:49 https://github.com/google/ktsan.git kcsan 245a43005292 8b967267 .config log report
ci2-upstream-kcsan-gce 2019/12/21 00:48 https://github.com/google/ktsan.git kcsan 245a43005292 34011c05 .config log report
ci2-upstream-kcsan-gce 2019/12/15 10:34 https://github.com/google/ktsan.git kcsan 245a43005292 eef6e580 .config log report
ci2-upstream-kcsan-gce 2019/11/29 15:32 https://github.com/google/ktsan.git kcsan ef798c30ba4e 4f7e1d0f .config log report
ci2-upstream-kcsan-gce 2019/11/23 01:57 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config log report
ci2-upstream-kcsan-gce 2019/11/19 12:32 https://github.com/google/ktsan.git kcsan 5863cc791e4c 432c7650 .config log report
ci2-upstream-kcsan-gce 2019/11/18 04:08 https://github.com/google/ktsan.git kcsan 5863cc791e4c d5696d51 .config log report
ci2-upstream-kcsan-gce 2019/11/17 06:10 https://github.com/google/ktsan.git kcsan 5863cc791e4c cdac920b .config log report
ci2-upstream-kcsan-gce 2019/11/13 04:31 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config log report
ci2-upstream-kcsan-gce 2019/11/10 23:51 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config log report
ci2-upstream-kcsan-gce 2019/11/08 04:50 https://github.com/google/ktsan.git kcsan 94c006602e13 f39aff9e .config log report
ci2-upstream-kcsan-gce 2019/11/04 03:26 https://github.com/google/ktsan.git kcsan 05f2236801fe b35fad31 .config log report
ci2-upstream-kcsan-gce 2019/10/24 14:41 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config log report