syzbot


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

Status: auto-obsoleted due to no activity on 2023/03/01 17:48
Subsystems: fs mm
[Documentation on labels]
First crash: 469d, last: 469d
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 (9) block 5 146d 146d 0/26 auto-obsoleted due to no activity on 2024/01/12 00:31
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 815d 815d 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 1378d 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 306d 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 58d 58d 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 (2) fs 1 1286d 1286d 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 0xffff888102419d08 of 8 bytes by task 28948 on cpu 0:
 page_cache_delete_batch mm/filemap.c:315 [inline]
 delete_from_page_cache_batch+0x52d/0x770 mm/filemap.c:334
 truncate_inode_pages_range+0x355/0x830 mm/truncate.c:369
 __jbd2_journal_erase fs/jbd2/journal.c:1827 [inline]
 jbd2_journal_flush+0x51b/0x800 fs/jbd2/journal.c:2492
 ext4_ioctl_checkpoint fs/ext4/ioctl.c:1082 [inline]
 __ext4_ioctl fs/ext4/ioctl.c:1590 [inline]
 ext4_ioctl+0x1edf/0x2cd0 fs/ext4/ioctl.c:1610
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888102419d08 of 8 bytes by task 23474 on cpu 1:
 nr_blockdev_pages+0x7f/0xd0 block/bdev.c:523
 si_meminfo+0x3a/0x60 mm/page_alloc.c:5975
 update_defense_level+0x46/0x560 net/netfilter/ipvs/ip_vs_ctl.c:101
 defense_work_handler+0x1a/0x80 net/netfilter/ipvs/ip_vs_ctl.c:235
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x00000000000011ec -> 0x00000000000011dd

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23474 Comm: kworker/1:0 Tainted: G        W          6.2.0-rc4-syzkaller-00041-gc1649ec55708-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: events_long defense_work_handler
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/18 17:31 upstream c1649ec55708 4620c2d9 .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.