syzbot


KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (5)

Status: auto-closed as invalid on 2022/03/13 10:24
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 293d, last: 293d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (3) 7 661d 718d 0/24 auto-closed as invalid on 2021/03/10 02:25
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (4) 11 341d 380d 0/24 auto-closed as invalid on 2022/01/24 01:11
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages 3 813d 856d 0/24 auto-closed as invalid on 2020/10/08 19:29
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (2) 1 764d 764d 0/24 auto-closed as invalid on 2020/11/27 11:06
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (6) 1 249d 249d 0/24 auto-closed as invalid on 2022/04/26 01:47

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

write to 0xffff888100439c70 of 8 bytes by task 20487 on cpu 0:
 page_cache_delete_batch mm/filemap.c:311 [inline]
 delete_from_page_cache_batch+0x527/0x760 mm/filemap.c:330
 truncate_inode_pages_range+0x305/0x8b0 mm/truncate.c:379
 truncate_inode_pages+0x20/0x30 mm/truncate.c:461
 kill_bdev block/bdev.c:77 [inline]
 blkdev_flush_mapping+0xde/0x230 block/bdev.c:656
 blkdev_put_whole block/bdev.c:687 [inline]
 blkdev_put+0x394/0x4a0 block/bdev.c:944
 blkdev_close+0x32/0x40 block/fops.c:515
 __fput+0x295/0x520 fs/file_table.c:311
 ____fput+0x11/0x20 fs/file_table.c:344
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888100439c70 of 8 bytes by task 13570 on cpu 1:
 nr_blockdev_pages+0x7f/0xd0 block/bdev.c:517
 si_meminfo+0x3a/0x60 mm/page_alloc.c:5798
 update_defense_level+0x46/0x560 net/netfilter/ipvs/ip_vs_ctl.c:102
 defense_work_handler+0x1b/0x80 net/netfilter/ipvs/ip_vs_ctl.c:236
 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307
 worker_thread+0x616/0xa70 kernel/workqueue.c:2454
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000000024 -> 0x0000000000000015

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13570 Comm: kworker/1:0 Not tainted 5.17.0-rc2-syzkaller-00353-g90c9e950c0de-dirty #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 2022/02/06 10:18 upstream 90c9e950c0de a7dab638 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
* Struck through repros no longer work on HEAD.