syzbot


KCSAN: data-race in page_address_in_vma / page_cache_delete_batch

Status: auto-closed as invalid on 2022/07/26 01:31
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 158d, last: 158d

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

write to 0xffffea000467fa98 of 8 bytes by task 31334 on cpu 1:
 page_cache_delete_batch+0x1a7/0x470 mm/filemap.c:308
 delete_from_page_cache_batch+0x18f/0x2a0 mm/filemap.c:334
 truncate_inode_pages_range+0x3ca/0xae0 mm/truncate.c:370
 truncate_inode_pages mm/truncate.c:452 [inline]
 truncate_pagecache+0x4f/0x70 mm/truncate.c:753
 ext4_setattr+0x9a0/0xde0 fs/ext4/inode.c:5502
 notify_change+0x8e6/0xa00 fs/attr.c:424
 do_truncate fs/open.c:65 [inline]
 do_sys_ftruncate+0x317/0x420 fs/open.c:193
 __do_sys_ftruncate fs/open.c:204 [inline]
 __se_sys_ftruncate fs/open.c:202 [inline]
 __x64_sys_ftruncate+0x2f/0x40 fs/open.c:202
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffffea000467fa98 of 8 bytes by task 31323 on cpu 0:
 folio_test_anon include/linux/page-flags.h:665 [inline]
 page_address_in_vma+0x4f/0x3a0 mm/rmap.c:752
 new_page+0x8b/0x3f0 mm/mempolicy.c:1202
 unmap_and_move+0x123/0x950 mm/migrate.c:1105
 migrate_pages+0x29e/0x7b0 mm/migrate.c:1388
 do_mbind+0x79b/0x8b0 mm/mempolicy.c:1323
 kernel_mbind mm/mempolicy.c:1470 [inline]
 __do_sys_mbind mm/mempolicy.c:1548 [inline]
 __se_sys_mbind+0x13b/0x3f0 mm/mempolicy.c:1544
 __x64_sys_mbind+0x74/0x80 mm/mempolicy.c:1544
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0xffff88812b0fe8f0 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 31323 Comm: syz-executor.4 Not tainted 5.19.0-rc3-syzkaller-00027-g78ca55889a54-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/21 01:28 upstream 78ca55889a54 0fc5c330 .config log report info KCSAN: data-race in page_address_in_vma / page_cache_delete_batch
* Struck through repros no longer work on HEAD.