syzbot


KCSAN: data-race in next_uptodate_folio / shmem_setattr

Status: auto-obsoleted due to no activity on 2023/12/05 14:58
Subsystems: mm
[Documentation on labels]
First crash: 454d, last: 454d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in next_uptodate_folio / shmem_setattr

write to 0xffff8881388da5b0 of 8 bytes by task 6909 on cpu 1:
 i_size_write include/linux/fs.h:932 [inline]
 shmem_setattr+0x707/0x840 mm/shmem.c:1186
 notify_change+0x866/0x8e0 fs/attr.c:499
 do_truncate+0x116/0x150 fs/open.c:66
 handle_truncate fs/namei.c:3280 [inline]
 do_open fs/namei.c:3626 [inline]
 path_openat+0x19b6/0x1d70 fs/namei.c:3779
 do_filp_open+0xf6/0x200 fs/namei.c:3809
 do_sys_openat2+0xab/0x110 fs/open.c:1440
 do_sys_open fs/open.c:1455 [inline]
 __do_sys_openat fs/open.c:1471 [inline]
 __se_sys_openat fs/open.c:1466 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1466
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881388da5b0 of 8 bytes by task 6914 on cpu 0:
 i_size_read include/linux/fs.h:910 [inline]
 next_uptodate_folio+0x5bb/0x6e0 mm/filemap.c:3459
 filemap_map_pages+0x5f4/0x730 mm/filemap.c:3607
 do_fault_around mm/memory.c:4528 [inline]
 do_read_fault mm/memory.c:4561 [inline]
 do_fault mm/memory.c:4708 [inline]
 do_pte_missing mm/memory.c:3672 [inline]
 handle_pte_fault mm/memory.c:4981 [inline]
 __handle_mm_fault mm/memory.c:5122 [inline]
 handle_mm_fault+0x1116/0x2cc0 mm/memory.c:5287
 faultin_page mm/gup.c:956 [inline]
 __get_user_pages+0x402/0xe40 mm/gup.c:1239
 populate_vma_page_range mm/gup.c:1666 [inline]
 __mm_populate+0x216/0x330 mm/gup.c:1775
 mm_populate include/linux/mm.h:3305 [inline]
 vm_mmap_pgoff+0x1a7/0x240 mm/util.c:551
 ksys_mmap_pgoff+0x2b8/0x330 mm/mmap.c:1420
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x000000000081b000 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6914 Comm: syz-executor.1 Not tainted 6.6.0-syzkaller-03860-g5a6a09e97199 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/31 14:51 upstream 5a6a09e97199 58499c95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_folio / shmem_setattr
* Struck through repros no longer work on HEAD.