syzbot


KCSAN: data-race in do_pwritev / setattr_copy

Status: auto-obsoleted due to no activity on 2023/02/15 17:05
Subsystems: fs
[Documentation on labels]
First crash: 769d, last: 769d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_pwritev / setattr_copy

write to 0xffff888132f93728 of 2 bytes by task 4298 on cpu 0:
 setattr_copy+0x355/0x370 fs/attr.c:320
 shmem_setattr+0xc1/0x490 mm/shmem.c:1132
 notify_change+0xa5c/0xad0 fs/attr.c:482
 chmod_common+0x12c/0x260 fs/open.c:606
 do_fchmodat fs/open.c:645 [inline]
 __do_sys_chmod fs/open.c:663 [inline]
 __se_sys_chmod fs/open.c:661 [inline]
 __x64_sys_chmod+0x8f/0x100 fs/open.c:661
 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+0x63/0xcd

read to 0xffff888132f93728 of 2 bytes by task 4640 on cpu 1:
 file_end_write include/linux/fs.h:2947 [inline]
 vfs_writev fs/read_write.c:935 [inline]
 do_pwritev+0x24c/0x430 fs/read_write.c:1031
 __do_sys_pwritev2 fs/read_write.c:1090 [inline]
 __se_sys_pwritev2 fs/read_write.c:1081 [inline]
 __x64_sys_pwritev2+0x7e/0xa0 fs/read_write.c:1081
 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+0x63/0xcd

value changed: 0x6180 -> 0x61b0

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4640 Comm: syz-executor.0 Not tainted 6.1.0-syzkaller-13872-gb6bb9676f216-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/21 16:30 upstream b6bb9676f216 4067838e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_pwritev / setattr_copy
* Struck through repros no longer work on HEAD.