syzbot


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

Status: auto-closed as invalid on 2022/04/26 01:47
Subsystems: block
[Documentation on labels]
First crash: 759d, last: 759d
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 1171d 1228d 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 133d 134d 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 851d 890d 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 803d 803d 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 1323d 1366d 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 243d 294d 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 46d 46d 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 457d 457d 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 1274d 1274d 0/26 auto-closed as invalid on 2020/11/27 11:06

Sample crash report:
==================================================================
BUG: KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages

write to 0xffff888100438670 of 8 bytes by task 22244 on cpu 0:
 page_cache_delete_batch mm/filemap.c:311 [inline]
 delete_from_page_cache_batch+0x527/0x760 mm/filemap.c:330
 truncate_inode_pages_range+0x305/0x8b0 mm/truncate.c:379
 truncate_inode_pages+0x20/0x30 mm/truncate.c:461
 kill_bdev block/bdev.c:77 [inline]
 set_blocksize+0x24e/0x270 block/bdev.c:153
 sb_set_blocksize+0x2c/0xa0 block/bdev.c:162
 isofs_fill_super+0x10e8/0x1940 fs/isofs/inode.c:862
 mount_bdev+0x1e8/0x290 fs/super.c:1367
 isofs_mount+0x2d/0x40 fs/isofs/inode.c:1567
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497
 do_new_mount fs/namespace.c:3024 [inline]
 path_mount+0x11cf/0x1c40 fs/namespace.c:3354
 do_mount fs/namespace.c:3367 [inline]
 __do_sys_mount fs/namespace.c:3575 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3552
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3552
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888100438670 of 8 bytes by task 20826 on cpu 1:
 nr_blockdev_pages+0x7f/0xd0 block/bdev.c:517
 si_meminfo+0x3a/0x60 mm/page_alloc.c:5798
 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+0x3f6/0x960 kernel/workqueue.c:2307
 worker_thread+0x616/0xa70 kernel/workqueue.c:2454
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000000001 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 20826 Comm: kworker/1:0 Not tainted 5.17.0-syzkaller-00192-geaa54b1458ca-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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
2022/03/22 01:46 upstream eaa54b1458ca e2d91b1d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in delete_from_page_cache_batch / nr_blockdev_pages
* Struck through repros no longer work on HEAD.