syzbot


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

Status: auto-obsoleted due to no activity on 2023/09/23 21:11
Subsystems: ext4 block
[Documentation on labels]
First crash: 306d, last: 256d
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 (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 (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 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 0xffff888100481ea0 of 8 bytes by task 3097 on cpu 1:
 page_cache_delete_batch mm/filemap.c:320 [inline]
 delete_from_page_cache_batch+0x521/0x750 mm/filemap.c:339
 truncate_inode_pages_range+0x354/0x800 mm/truncate.c:369
 truncate_inode_pages+0x24/0x30 mm/truncate.c:449
 kill_bdev block/bdev.c:76 [inline]
 blkdev_flush_mapping+0xc0/0x1c0 block/bdev.c:647
 blkdev_put_whole block/bdev.c:678 [inline]
 blkdev_put+0x33a/0x470 block/bdev.c:915
 kill_block_super+0x58/0x60 fs/super.c:1419
 deactivate_locked_super+0x6b/0xd0 fs/super.c:330
 deactivate_super+0x9b/0xb0 fs/super.c:361
 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1254
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1261
 task_work_run+0x135/0x1a0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888100481ea0 of 8 bytes by task 901 on cpu 0:
 nr_blockdev_pages+0x7f/0xd0 block/bdev.c:458
 si_meminfo+0x87/0xd0 mm/show_mem.c:83
 update_defense_level+0x43/0x580 net/netfilter/ipvs/ip_vs_ctl.c:101
 defense_work_handler+0x1f/0x80 net/netfilter/ipvs/ip_vs_ctl.c:235
 process_one_work+0x434/0x860 kernel/workqueue.c:2600
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2751
 kthread+0x1d7/0x210 kernel/kthread.c:389
 ret_from_fork+0x2e/0x40 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

value changed: 0x0000000000000069 -> 0x000000000000005a

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 901 Comm: kworker/0:2 Not tainted 6.5.0-rc6-syzkaller-00225-gaa9ea98cca3a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Workqueue: events_long defense_work_handler
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/19 21:01 upstream aa9ea98cca3a d216d8a0 .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/07/19 21:54 upstream bfa3037d8280 4547cdf9 .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/07/04 14:51 upstream 24be4d0b46bb f99c2404 .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/06/30 11:50 upstream c6b0271053e7 01298212 .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.