syzbot


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

Status: auto-closed as invalid on 2021/05/17 09:41
Subsystems: exfat
[Documentation on labels]
First crash: 1082d, last: 1082d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __unmap_and_move / delete_from_page_cache_batch ext4 2 1236d 1207d 0/26 auto-closed as invalid on 2020/12/21 11:51

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

write to 0xffffea0004580118 of 8 bytes by task 13207 on cpu 0:
 page_cache_delete_batch mm/filemap.c:329 [inline]
 delete_from_page_cache_batch+0x37b/0x820 mm/filemap.c:360
 truncate_inode_pages_range+0x1d4/0xd60 mm/truncate.c:330
 truncate_inode_pages mm/truncate.c:428 [inline]
 truncate_pagecache mm/truncate.c:754 [inline]
 truncate_setsize+0x97/0xc0 mm/truncate.c:779
 fat_setattr+0x69a/0x7d0 fs/fat/file.c:538
 notify_change+0x88f/0xa80 fs/attr.c:398
 do_truncate+0xe8/0x130 fs/open.c:64
 handle_truncate fs/namei.c:3020 [inline]
 do_open fs/namei.c:3371 [inline]
 path_openat+0x1b78/0x21b0 fs/namei.c:3500
 do_filp_open+0xd9/0x1f0 fs/namei.c:3527
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_openat fs/open.c:1219 [inline]
 __se_sys_openat fs/open.c:1214 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1214
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffea0004580118 of 8 bytes by task 13191 on cpu 1:
 __PageMovable include/linux/page-flags.h:489 [inline]
 __unmap_and_move+0x42/0x6a0 mm/migrate.c:1028
 unmap_and_move+0x131/0x690 mm/migrate.c:1200
 migrate_pages+0x2f7/0xfb0 mm/migrate.c:1472
 do_mbind+0xe47/0x1030 mm/mempolicy.c:1357
 kernel_mbind mm/mempolicy.c:1478 [inline]
 __do_sys_mbind mm/mempolicy.c:1485 [inline]
 __se_sys_mbind mm/mempolicy.c:1481 [inline]
 __x64_sys_mbind+0x142/0x170 mm/mempolicy.c:1481
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13191 Comm: syz-executor.5 Not tainted 5.12.0-rc6-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
2021/04/11 04:23 upstream 52e44129fba5 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __unmap_and_move / delete_from_page_cache_batch
* Struck through repros no longer work on HEAD.