syzbot


KCSAN: data-race in open_wait / sg_open

Status: auto-obsoleted due to no activity on 2022/11/17 21:38
Subsystems: scsi
[Documentation on labels]
First crash: 569d, last: 558d

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

read-write to 0xffff888101b9cae8 of 4 bytes by task 6444 on cpu 0:
 sg_open+0x37c/0x4b0 drivers/scsi/sg.c:357
 chrdev_open+0x362/0x3d0 fs/char_dev.c:414
 do_dentry_open+0x59a/0x910 fs/open.c:882
 vfs_open+0x43/0x50 fs/open.c:1013
 do_open fs/namei.c:3557 [inline]
 path_openat+0x169d/0x1b00 fs/namei.c:3713
 do_filp_open+0x105/0x220 fs/namei.c:3740
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1337
 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 0xffff888101b9cae8 of 4 bytes by task 6436 on cpu 1:
 open_wait+0x348/0x410 drivers/scsi/sg.c:253
 sg_open+0x200/0x4b0 drivers/scsi/sg.c:336
 chrdev_open+0x362/0x3d0 fs/char_dev.c:414
 do_dentry_open+0x59a/0x910 fs/open.c:882
 vfs_open+0x43/0x50 fs/open.c:1013
 do_open fs/namei.c:3557 [inline]
 path_openat+0x169d/0x1b00 fs/namei.c:3713
 do_filp_open+0x105/0x220 fs/namei.c:3740
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1337
 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: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6436 Comm: syz-executor.5 Not tainted 6.0.0-syzkaller-11658-ga185a0995518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/13 21:35 upstream a185a0995518 adf90437 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in open_wait / sg_open
2022/10/03 03:31 upstream a962b54e162c feb56351 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in open_wait / sg_open
* Struck through repros no longer work on HEAD.