syzbot


KCSAN: data-race in rawv6_sendmsg / sock_set_timestamping

Status: auto-closed as invalid on 2021/09/05 12:08
Subsystems: net
[Documentation on labels]
First crash: 1025d, last: 998d

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

write to 0xffff88813b22a6e8 of 2 bytes by task 7089 on cpu 1:
 sock_set_timestamping+0x197/0x4b0 net/core/sock.c:882
 sock_setsockopt+0x17b6/0x1d50 net/core/sock.c:1134
 __sys_setsockopt+0x14f/0x200 net/socket.c:2155
 __do_sys_setsockopt net/socket.c:2170 [inline]
 __se_sys_setsockopt net/socket.c:2167 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2167
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813b22a6e8 of 2 bytes by task 7095 on cpu 0:
 rawv6_sendmsg+0x1c1/0x1380 net/ipv6/raw.c:812
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:821
 sock_sendmsg_nosec net/socket.c:703 [inline]
 sock_sendmsg net/socket.c:723 [inline]
 ____sys_sendmsg+0x360/0x4d0 net/socket.c:2392
 ___sys_sendmsg net/socket.c:2446 [inline]
 __sys_sendmmsg+0x315/0x4b0 net/socket.c:2532
 __do_sys_sendmmsg net/socket.c:2561 [inline]
 __se_sys_sendmmsg net/socket.c:2558 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2558
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000 -> 0x27df

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7095 Comm: syz-executor.5 Tainted: G        W         5.14.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/01 12:03 upstream f3438b4c4e69 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in rawv6_sendmsg / sock_set_timestamping
2021/07/04 16:42 upstream 3dbdb38e2869 55aa55c2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in rawv6_sendmsg / sock_set_timestamping
* Struck through repros no longer work on HEAD.