syzbot


KCSAN: data-race in sg_new_write / sg_new_write

Status: auto-closed as invalid on 2022/01/06 18:11
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 368d, last: 368d

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

write to 0xffff888132ef5319 of 1 bytes by task 13132 on cpu 1:
 sg_new_write+0x88/0xcc0 drivers/scsi/sg.c:730
 sg_ioctl_common drivers/scsi/sg.c:939 [inline]
 sg_ioctl+0xee7/0x18e0 drivers/scsi/sg.c:1165
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

write to 0xffff888132ef5319 of 1 bytes by task 13134 on cpu 0:
 sg_new_write+0x88/0xcc0 drivers/scsi/sg.c:730
 sg_ioctl_common drivers/scsi/sg.c:939 [inline]
 sg_ioctl+0xee7/0x18e0 drivers/scsi/sg.c:1165
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13134 Comm: syz-executor.5 Tainted: G        W         5.16.0-rc3-syzkaller #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 2021/12/02 18:03 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in sg_new_write / sg_new_write
* Struck through repros no longer work on HEAD.