syzbot


KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages (4)

Status: auto-closed as invalid on 2021/03/09 23:45
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 562d, last: 562d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages 5 864d 975d 0/23 auto-closed as invalid on 2020/06/16 17:33
upstream KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages (3) 2 659d 693d 0/23 auto-closed as invalid on 2020/12/03 16:50
upstream KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages (2) 3 732d 773d 0/23 auto-closed as invalid on 2020/09/21 11:21
upstream KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages (5) 30 219d 282d 0/23 auto-closed as invalid on 2022/02/16 04:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages

write to 0xffff888101e53790 of 8 bytes by task 28993 on cpu 1:
 page_cache_delete mm/filemap.c:154 [inline]
 __delete_from_page_cache+0x28b/0x360 mm/filemap.c:239
 __remove_mapping+0x3e4/0x480 mm/vmscan.c:928
 remove_mapping+0x22/0x60 mm/vmscan.c:950
 invalidate_complete_page mm/truncate.c:215 [inline]
 invalidate_inode_page+0x15d/0x190 mm/truncate.c:264
 __invalidate_mapping_pages+0x415/0x770 mm/truncate.c:592
 invalidate_mapping_pages+0x23/0x30 mm/truncate.c:635
 invalidate_bdev+0x61/0x70 fs/block_dev.c:97
 __loop_clr_fd+0x253/0x5b0 drivers/block/loop.c:1238
 loop_clr_fd drivers/block/loop.c:1334 [inline]
 lo_ioctl+0x9e6/0x11e0 drivers/block/loop.c:1692
 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:576
 block_ioctl+0x6d/0x80 fs/block_dev.c:1658
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888101e53790 of 8 bytes by task 3785 on cpu 0:
 nr_blockdev_pages+0x7c/0xd0 fs/block_dev.c:942
 si_meminfo+0x3a/0x60 mm/page_alloc.c:5404
 update_defense_level+0x34/0x550 net/netfilter/ipvs/ip_vs_ctl.c:101
 defense_work_handler+0x1b/0x80 net/netfilter/ipvs/ip_vs_ctl.c:235
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3785 Comm: kworker/0:2 Not tainted 5.11.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_long defense_work_handler
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/02/02 23:36 upstream 3aaf0a27ffc2 624dad51 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages