syzbot


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

Status: auto-closed as invalid on 2020/11/27 11:06
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 654d, last: 654d
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 552d 609d 0/23 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 232d 270d 0/23 auto-closed as invalid on 2022/01/24 01:11
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (5) 1 183d 183d 0/23 auto-closed as invalid on 2022/03/13 10:24
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages 3 704d 746d 0/23 auto-closed as invalid on 2020/10/08 19:29
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (6) 1 140d 140d 0/23 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

read-write to 0xffff88810bec9750 of 8 bytes by task 10308 on cpu 1:
 page_cache_delete_batch mm/filemap.c:340 [inline]
 delete_from_page_cache_batch+0x57b/0x800 mm/filemap.c:358
 truncate_inode_pages_range+0x482/0xf20 mm/truncate.c:366
 truncate_inode_pages+0x20/0x30 mm/truncate.c:476
 kill_bdev fs/block_dev.c:86 [inline]
 __blkdev_put+0x1f5/0x4a0 fs/block_dev.c:1776
 blkdev_put+0x1d9/0x200 fs/block_dev.c:1844
 blkdev_close+0x47/0x50 fs/block_dev.c:1851
 __fput+0x243/0x4d0 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:141
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:165 [inline]
 exit_to_user_mode_prepare+0x13c/0x170 kernel/entry/common.c:192
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:267
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810bec9750 of 8 bytes by task 16070 on cpu 0:
 nr_blockdev_pages+0x7c/0xd0 fs/block_dev.c:946
 si_meminfo+0x3a/0x60 mm/page_alloc.c:5330
 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:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fa/0x220 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: 16070 Comm: kworker/0:0 Not tainted 5.9.0-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 2020/10/23 11:00 upstream 96485e446260 4e740c00 .config log report info