syzbot


KCSAN: data-race in activate_page / lru_add_drain_all (2)

Status: auto-closed as invalid on 2020/06/18 13:23
Subsystems: mm
[Documentation on labels]
First crash: 1470d, last: 1470d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in activate_page / lru_add_drain_all (3) mm 3 1286d 1323d 0/26 auto-closed as invalid on 2020/11/15 06:43
upstream KCSAN: data-race in activate_page / lru_add_drain_all mm 2 1553d 1560d 0/26 auto-closed as invalid on 2020/03/28 06:49

Sample crash report:
XFS (loop1): SB validate failed with error -117.
==================================================================
BUG: KCSAN: data-race in activate_page / lru_add_drain_all

write to 0xffff88812c0298e0 of 1 bytes by task 12404 on cpu 0:
 pagevec_add include/linux/pagevec.h:81 [inline]
 activate_page+0x241/0x370 mm/swap.c:314
 mark_page_accessed+0x29f/0x4f0 mm/swap.c:393
 generic_file_buffered_read mm/filemap.c:2114 [inline]
 generic_file_read_iter+0x950/0x1490 mm/filemap.c:2302
 blkdev_read_iter+0xae/0xe0 fs/block_dev.c:2039
 call_read_iter include/linux/fs.h:1895 [inline]
 new_sync_read+0x306/0x450 fs/read_write.c:414
 __vfs_read+0x9e/0xb0 fs/read_write.c:427
 vfs_read fs/read_write.c:461 [inline]
 vfs_read+0x13e/0x2b0 fs/read_write.c:446
 ksys_read+0xc5/0x1a0 fs/read_write.c:587
 __do_sys_read fs/read_write.c:597 [inline]
 __se_sys_read fs/read_write.c:595 [inline]
 __x64_sys_read+0x49/0x60 fs/read_write.c:595
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812c0298e0 of 1 bytes by task 12372 on cpu 1:
 need_activate_page_drain mm/swap.c:304 [inline]
 lru_add_drain_all+0x372/0x3a0 mm/swap.c:751
 invalidate_bdev+0x65/0x90 fs/block_dev.c:97
 __loop_clr_fd+0x24e/0x710 drivers/block/loop.c:1140
 loop_clr_fd drivers/block/loop.c:1237 [inline]
 lo_ioctl+0x24a/0xc80 drivers/block/loop.c:1606
 __blkdev_driver_ioctl block/ioctl.c:321 [inline]
 blkdev_ioctl+0x1a1/0x420 block/ioctl.c:717
 block_ioctl+0x91/0xb0 fs/block_dev.c:1983
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x101/0x150 fs/ioctl.c:763
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl fs/ioctl.c:770 [inline]
 __x64_sys_ioctl+0x47/0x60 fs/ioctl.c:770
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12372 Comm: syz-executor.1 Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/10 00:00 https://github.com/google/ktsan.git kcsan 40959e34d670 a8c6a3f8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.