syzbot


KCSAN: data-race in inc_node_page_state / release_pages (2)

Status: auto-closed as invalid on 2020/06/18 14:03
Subsystems: mm
[Documentation on labels]
First crash: 1449d, last: 1440d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inc_node_page_state / release_pages mm 3 1532d 1590d 0/26 auto-closed as invalid on 2020/04/18 00:14
upstream KCSAN: data-race in inc_node_page_state / release_pages (3) mm 45 1241d 1228d 0/26 auto-closed as invalid on 2020/12/29 16:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in inc_node_page_state / release_pages

write to 0xffffea00045e65c0 of 8 bytes by task 24580 on cpu 0:
 instrument_write include/linux/instrumented.h:42 [inline]
 __clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:42 [inline]
 __ClearPageLRU include/linux/page-flags.h:328 [inline]
 release_pages+0x3cb/0xa60 mm/swap.c:849
 __pagevec_release+0x4d/0x80 mm/swap.c:883
 pagevec_release include/linux/pagevec.h:88 [inline]
 invalidate_mapping_pages+0x676/0x860 mm/truncate.c:620
 __generic_file_write_iter+0x352/0x370 mm/filemap.c:3421
 generic_file_write_iter+0x294/0x38e mm/filemap.c:3463
 call_write_iter include/linux/fs.h:1907 [inline]
 do_iter_readv_writev+0x4a7/0x5d0 fs/read_write.c:694
 do_iter_write fs/read_write.c:999 [inline]
 do_iter_write+0x137/0x3a0 fs/read_write.c:980
 vfs_iter_write+0x56/0x80 fs/read_write.c:1040
 iter_file_splice_write+0x530/0x830 fs/splice.c:760
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x97/0xb0 fs/splice.c:1037
 splice_direct_to_actor+0x22f/0x540 fs/splice.c:992
 do_splice_direct+0x152/0x1d0 fs/splice.c:1080
 do_sendfile+0x380/0x800 fs/read_write.c:1521
 __do_sys_sendfile64 fs/read_write.c:1582 [inline]
 __se_sys_sendfile64 fs/read_write.c:1568 [inline]
 __x64_sys_sendfile64+0x121/0x140 fs/read_write.c:1568
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffea00045e65c0 of 8 bytes by interrupt on cpu 1:
 page_pgdat include/linux/mm.h:1416 [inline]
 inc_node_page_state+0x19/0xc0 mm/vmstat.c:589
 test_clear_page_writeback+0x34c/0x7e0 mm/page-writeback.c:2758
 end_page_writeback+0x98/0x180 mm/filemap.c:1317
 end_buffer_async_write+0x22d/0x260 fs/buffer.c:384
 end_bio_bh_io_sync+0x7d/0xa0 fs/buffer.c:3012
 bio_endio+0x2db/0x3e0 block/bio.c:1422
 req_bio_endio block/blk-core.c:245 [inline]
 blk_update_request+0x418/0x7a0 block/blk-core.c:1472
 blk_mq_end_request+0x4e/0x2f0 block/blk-mq.c:546
 lo_complete_rq+0x141/0x1a0 drivers/block/loop.c:490
 blk_done_softirq+0x1e6/0x250 block/blk-softirq.c:37
 __do_softirq+0x118/0x34a kernel/softirq.c:292
 run_ksoftirqd+0x41/0x60 kernel/softirq.c:604
 smpboot_thread_fn+0x374/0x4a0 kernel/smpboot.c:165
 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: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/10 08:28 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 8742a2b9 .config console log report ci2-upstream-kcsan-gce
2020/04/30 15:10 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 3698959a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.