syzbot


KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages (5)

Status: auto-closed as invalid on 2022/02/16 04:25
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 326d, last: 264d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages 5 908d 1020d 0/24 auto-closed as invalid on 2020/06/16 17:33
upstream KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages (3) 2 703d 738d 0/24 auto-closed as invalid on 2020/12/03 16:50
upstream KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages (2) 3 776d 817d 0/24 auto-closed as invalid on 2020/09/21 11:21
upstream KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages (4) 1 607d 607d 0/24 auto-closed as invalid on 2021/03/09 23:45

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

write to 0xffff888100425c00 of 8 bytes by task 12439 on cpu 0:
 page_cache_delete mm/filemap.c:146 [inline]
 __delete_from_page_cache+0x1e1/0x2c0 mm/filemap.c:231
 delete_from_page_cache+0x97/0x1e0 mm/filemap.c:266
 truncate_inode_page mm/truncate.c:229 [inline]
 truncate_inode_pages_range+0x8d7/0xa00 mm/truncate.c:407
 truncate_inode_pages+0x20/0x30 mm/truncate.c:435
 kill_bdev block/bdev.c:78 [inline]
 set_blocksize+0x24e/0x270 block/bdev.c:158
 sb_set_blocksize block/bdev.c:167 [inline]
 sb_min_blocksize+0x92/0x110 block/bdev.c:183
 fat_fill_super+0xe95/0x2af0 fs/fat/inode.c:1646
 vfat_fill_super+0x2c/0x40 fs/fat/namei_vfat.c:1051
 mount_bdev+0x1e8/0x290 fs/super.c:1370
 vfat_mount+0x2d/0x40 fs/fat/namei_vfat.c:1058
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1500
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x11cf/0x1c40 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 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 0xffff888100425c00 of 8 bytes by task 1916 on cpu 1:
 nr_blockdev_pages+0x7f/0xd0 block/bdev.c:522
 si_meminfo+0x3a/0x60 mm/page_alloc.c:5778
 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+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

value changed: 0x00000000000000c7 -> 0x00000000000000c4

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1916 Comm: kworker/1:6 Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_long defense_work_handler
==================================================================

Crashes (30):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/12 04:16 upstream 6f38be8f2ccd 44d1319a .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/08 17:42 upstream d1587f7bfe9a 2ca0d385 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/05 02:41 upstream c9e6606c7fe9 0a2584dd .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/03 09:42 upstream c9e6606c7fe9 e1768e9c .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/31 07:09 upstream 9bad743e8d22 36bd2e48 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/30 12:49 upstream eec4df26e24e 2e49f10d .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/29 03:29 upstream ecf71de775a0 76c8cf06 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/27 05:48 upstream fc74e0a40e4f e4f103c4 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/26 01:32 upstream e2ae0d4a6b0b 6caa12e4 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/24 19:52 upstream 7a29b11da965 6caa12e4 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/24 01:15 upstream 996a18eb796a 6caa12e4 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/23 03:17 upstream bc491fb12513 6caa12e4 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/21 13:06 upstream 6e0567b73052 a938f0b8 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/18 16:04 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/17 07:45 upstream fa36bbe6d43f 44068e19 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/16 08:13 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/15 07:02 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/10 16:13 upstream c741e49150db fc17c959 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/08 02:24 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/07 00:59 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/05 10:57 upstream 79a72162048e a617004c .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/05 04:28 upstream bbef3c7a63d2 a617004c .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/04 03:08 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/27 01:46 upstream c5c17547b778 63eeac02 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/25 21:51 upstream b501b85957de 63eeac02 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/25 18:32 upstream 5f53fa508db0 63eeac02 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/24 20:00 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/22 19:23 upstream 136057256686 545ab074 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/15 13:49 upstream 8ab774587903 75b04091 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/10 14:23 upstream cb690f5238d7 75b04091 .config log report info KCSAN: data-race in __delete_from_page_cache / nr_blockdev_pages
* Struck through repros no longer work on HEAD.