syzbot


KCSAN: data-race in delete_from_page_cache_batch / page_address_in_vma (2)

Status: auto-closed as invalid on 2020/09/03 19:58
Subsystems: ext4
[Documentation on labels]
First crash: 1800d, last: 1800d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in delete_from_page_cache_batch / page_address_in_vma (4) ext4 4 1610d 1668d 0/29 auto-closed as invalid on 2021/03/12 12:46
upstream KCSAN: data-race in delete_from_page_cache_batch / page_address_in_vma (3) ext4 1 1744d 1744d 0/29 auto-closed as invalid on 2020/10/29 03:12
upstream KCSAN: data-race in delete_from_page_cache_batch / page_address_in_vma (6) ext4 4 1429d 1448d 0/29 auto-closed as invalid on 2021/09/09 17:02
upstream KCSAN: data-race in delete_from_page_cache_batch / page_address_in_vma ext4 1 1877d 1877d 0/29 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in delete_from_page_cache_batch / page_address_in_vma (7) ext4 1 1229d 1229d 0/29 auto-closed as invalid on 2022/03/28 08:47
upstream KCSAN: data-race in delete_from_page_cache_batch / page_address_in_vma (5) ext4 3 1502d 1563d 0/29 auto-closed as invalid on 2021/06/28 10:29

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

write to 0xffffea00046669d8 of 8 bytes by task 21853 on cpu 1:
 page_cache_delete_batch mm/filemap.c:326 [inline]
 delete_from_page_cache_batch+0x39f/0x830 mm/filemap.c:357
 truncate_inode_pages_range+0x492/0xf10 mm/truncate.c:366
 truncate_inode_pages mm/truncate.c:476 [inline]
 truncate_pagecache+0x4f/0x70 mm/truncate.c:817
 ext4_setattr+0xb03/0xec0 fs/ext4/inode.c:5403
 notify_change+0x7d4/0xa20 fs/attr.c:336
 do_truncate+0xe0/0x120 fs/open.c:64
 handle_truncate fs/namei.c:2901 [inline]
 do_open fs/namei.c:3247 [inline]
 path_openat+0x1a4c/0x20e0 fs/namei.c:3360
 do_filp_open+0xbd/0x1d0 fs/namei.c:3387
 do_sys_openat2+0x33c/0x4a0 fs/open.c:1179
 do_sys_open fs/open.c:1195 [inline]
 __do_sys_openat fs/open.c:1209 [inline]
 __se_sys_openat fs/open.c:1204 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1204
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffea00046669d8 of 8 bytes by task 21857 on cpu 0:
 page_address_in_vma+0x6e/0x2e0 mm/rmap.c:713
 new_page+0x4b/0x1e0 mm/mempolicy.c:1241
 unmap_and_move+0x114/0x800 mm/migrate.c:1192
 migrate_pages+0x1ad/0xa30 mm/migrate.c:1444
 do_mbind mm/mempolicy.c:1371 [inline]
 kernel_mbind+0xe88/0x1010 mm/mempolicy.c:1492
 __do_sys_mbind mm/mempolicy.c:1499 [inline]
 __se_sys_mbind mm/mempolicy.c:1495 [inline]
 __x64_sys_mbind+0x74/0x80 mm/mempolicy.c:1495
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21857 Comm: syz-executor.5 Not tainted 5.8.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/30 19:56 upstream 83bdc7275e62 b0947553 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.