syzbot


KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages

Status: auto-closed as invalid on 2022/04/05 12:28
Subsystems: block
[Documentation on labels]
First crash: 892d, last: 846d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages (4) mm 5 41d 72d 0/27 auto-obsoleted due to no activity on 2024/06/18 09:41
upstream KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages (3) mm 26 116d 198d 0/27 auto-obsoleted due to no activity on 2024/04/03 15:08
upstream KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages (2) mm 6 431d 552d 0/27 auto-obsoleted due to no activity on 2023/05/25 03:03

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

write to 0xffff888101f5fbf0 of 8 bytes by task 17912 on cpu 1:
 page_cache_delete mm/filemap.c:145 [inline]
 __filemap_remove_folio+0x1e1/0x2c0 mm/filemap.c:219
 filemap_remove_folio+0x69/0x210 mm/filemap.c:251
 truncate_inode_folio+0x14c/0x160 mm/truncate.c:223
 truncate_inode_pages_range+0x6a2/0x8b0 mm/truncate.c:435
 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 0xffff888101f5fbf0 of 8 bytes by task 2065 on cpu 0:
 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: 0x0000000000000002 -> 0x0000000000000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2065 Comm: kworker/0:6 Not tainted 5.17.0-rc6-syzkaller-00046-g719fce7539cd-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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
2022/03/01 12:19 upstream 719fce7539cd 45a13a73 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2022/02/07 16:14 upstream dfd42facf1e4 a7dab638 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2022/01/27 18:57 upstream 626b2dda7651 64a8e201 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2022/01/14 11:05 upstream fb3b0673b7d5 b8d780ab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
* Struck through repros no longer work on HEAD.