syzbot


KCSAN: data-race in __sys_setsockopt / smc_switch_to_fallback

Status: auto-closed as invalid on 2022/05/08 22:25
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 238d, last: 238d

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

write to 0xffff888104b707c8 of 8 bytes by task 11835 on cpu 0:
 smc_switch_to_fallback+0x49b/0x700 net/smc/af_smc.c:795
 smc_setsockopt+0x4f5/0x710 net/smc/af_smc.c:2810
 __sys_setsockopt+0x209/0x2a0 net/socket.c:2180
 __do_sys_setsockopt net/socket.c:2191 [inline]
 __se_sys_setsockopt net/socket.c:2188 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2188
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888104b707c8 of 8 bytes by task 11840 on cpu 1:
 sock_from_file net/socket.c:507 [inline]
 sockfd_lookup_light net/socket.c:553 [inline]
 __sys_setsockopt+0xc7/0x2a0 net/socket.c:2154
 __do_sys_setsockopt net/socket.c:2191 [inline]
 __se_sys_setsockopt net/socket.c:2188 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2188
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff88812943c940 -> 0xffff88811b897080

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11840 Comm: syz-executor.3 Not tainted 5.17.0-syzkaller-14079-gbe2d3ecedd99-dirty #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 2022/04/03 22:16 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in __sys_setsockopt / smc_switch_to_fallback
* Struck through repros no longer work on HEAD.