syzbot


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

Status: auto-obsoleted due to no activity on 2024/01/12 00:31
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+177ae661472ba3eda5d1@syzkaller.appspotmail.com
First crash: 182d, last: 146d
Similar bugs (9)
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) reiserfs 7 1184d 1241d 0/26 auto-closed as invalid on 2021/03/10 02:25
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (4) block 11 864d 902d 0/26 auto-closed as invalid on 2022/01/24 01:11
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (5) block 1 816d 816d 0/26 auto-closed as invalid on 2022/03/13 10:24
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages fs 3 1336d 1379d 0/26 auto-closed as invalid on 2020/10/08 19:29
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (8) ext4 block 4 256d 307d 0/26 auto-obsoleted due to no activity on 2023/09/23 21:11
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (10) block 1 59d 59d 0/26 auto-obsoleted due to no activity on 2024/04/08 12:17
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (7) fs mm 1 469d 469d 0/26 auto-obsoleted due to no activity on 2023/03/01 17:48
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (2) fs 1 1287d 1287d 0/26 auto-closed as invalid on 2020/11/27 11:06
upstream KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages (6) block 1 772d 772d 0/26 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 0xffff888100630bb0 of 8 bytes by task 9571 on cpu 1:
 page_cache_delete_batch mm/filemap.c:314 [inline]
 delete_from_page_cache_batch+0x513/0x710 mm/filemap.c:333
 truncate_inode_pages_range+0x1bd/0x6a0 mm/truncate.c:368
 truncate_inode_pages+0x24/0x30 mm/truncate.c:448
 kill_bdev block/bdev.c:76 [inline]
 blkdev_flush_mapping+0xc0/0x1c0 block/bdev.c:632
 blkdev_put_whole block/bdev.c:663 [inline]
 blkdev_put+0x33a/0x470 block/bdev.c:944
 bdev_release+0x2f/0x40 block/bdev.c:954
 blkdev_release+0x25/0x30 block/fops.c:616
 __fput+0x299/0x630 fs/file_table.c:394
 __fput_sync+0x44/0x50 fs/file_table.c:475
 __do_sys_close fs/open.c:1590 [inline]
 __se_sys_close+0xfa/0x1a0 fs/open.c:1575
 __x64_sys_close+0x1f/0x30 fs/open.c:1575
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888100630bb0 of 8 bytes by task 18588 on cpu 0:
 nr_blockdev_pages+0x7c/0xd0 block/bdev.c:443
 si_meminfo+0x87/0xd0 mm/show_mem.c:80
 update_defense_level+0x46/0x600 net/netfilter/ipvs/ip_vs_ctl.c:101
 defense_work_handler+0x1f/0x80 net/netfilter/ipvs/ip_vs_ctl.c:235
 process_one_work kernel/workqueue.c:2627 [inline]
 process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2700
 worker_thread+0x525/0x730 kernel/workqueue.c:2781
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242

value changed: 0x0000000000000045 -> 0x0000000000000036

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18588 Comm: kworker/0:2 Not tainted 6.7.0-rc4-syzkaller-00039-g9ace34a8e446 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: events_long defense_work_handler
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/08 00:30 upstream 9ace34a8e446 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
2023/11/30 14:13 upstream 3b47bc037bd4 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
2023/11/13 08:11 upstream b57b17e88bf5 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
2023/11/05 05:02 upstream aea6bf908d73 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
2023/11/01 16:21 upstream 89ed67ef126c 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
* Struck through repros no longer work on HEAD.