syzbot


KCSAN: data-race in sg_new_write / sg_new_write (2)

Status: moderation: reported on 2024/12/09 21:59
Subsystems: scsi
[Documentation on labels]
Reported-by: syzbot+52184376977ebba5a92f@syzkaller.appspotmail.com
First crash: 70d, last: 48d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sg_new_write / sg_new_write scsi 1 1173d 1173d 0/28 auto-closed as invalid on 2022/01/06 18:11

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

write to 0xffff88810b951319 of 1 bytes by task 7491 on cpu 1:
 sg_new_write+0x88/0x8e0 drivers/scsi/sg.c:722
 sg_ioctl_common drivers/scsi/sg.c:931 [inline]
 sg_ioctl+0xe22/0x1870 drivers/scsi/sg.c:1156
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892
 x64_sys_call+0x1690/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff88810b951319 of 1 bytes by task 7490 on cpu 0:
 sg_new_write+0x88/0x8e0 drivers/scsi/sg.c:722
 sg_ioctl_common drivers/scsi/sg.c:931 [inline]
 sg_ioctl+0xe22/0x1870 drivers/scsi/sg.c:1156
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892
 x64_sys_call+0x1690/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 7490 Comm: syz.9.1059 Not tainted 6.13.0-rc5-syzkaller-00004-gccb98ccef0e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/31 20:47 upstream ccb98ccef0e5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in sg_new_write / sg_new_write
2024/12/09 21:58 upstream fac04efc5c79 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in sg_new_write / sg_new_write
* Struck through repros no longer work on HEAD.