syzbot


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

Status: auto-closed as invalid on 2022/01/24 01:11
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 391d, last: 352d
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 672d 730d 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 (5) 1 304d 304d 0/24 auto-closed as invalid on 2022/03/13 10:24
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages 3 825d 867d 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 775d 775d 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 260d 260d 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 0xffff888101367c78 of 8 bytes by task 1819 on cpu 0:
 page_cache_delete_batch mm/filemap.c:335 [inline]
 delete_from_page_cache_batch+0x5b2/0x780 mm/filemap.c:353
 truncate_inode_pages_range+0x1d5/0xa00 mm/truncate.c:336
 truncate_inode_pages+0x20/0x30 mm/truncate.c:435
 kill_bdev block/bdev.c:78 [inline]
 blkdev_flush_mapping+0xde/0x230 block/bdev.c:661
 blkdev_put_whole block/bdev.c:692 [inline]
 blkdev_put+0x394/0x4a0 block/bdev.c:957
 kill_block_super+0x7b/0x90 fs/super.c:1400
 deactivate_locked_super+0x6a/0xb0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1137
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1144
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [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 0xffff888101367c78 of 8 bytes by task 1908 on cpu 1:
 nr_blockdev_pages+0x7f/0xd0 block/bdev.c:522
 si_meminfo+0x3a/0x60 mm/page_alloc.c:5778
 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+0x3fc/0x980 kernel/workqueue.c:2298
 worker_thread+0x616/0xa70 kernel/workqueue.c:2445
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

value changed: 0x00000000000000fb -> 0x00000000000000ec

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1908 Comm: kworker/1:4 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_long defense_work_handler
==================================================================

Crashes (11):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/20 01:06 upstream a76c3d035872 44068e19 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/15 13:22 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/13 01:19 upstream 90d9fbc16b69 49ca1f59 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/01 12:43 upstream 58e1100fdc59 5fa3eacc .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/30 20:58 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/30 00:13 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/28 13:27 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/28 07:40 upstream 741392771338 63eeac02 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/17 22:19 upstream ee1703cda8dc cafff8b6 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/13 16:26 upstream 66f4beaa6c1d 75b04091 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/11 13:46 upstream debe436e77c7 75b04091 .config log report info KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
* Struck through repros no longer work on HEAD.