syzbot


KCSAN: data-race in tcp_update_metrics / tcp_update_metrics

Status: auto-closed as invalid on 2022/08/29 17:43
Subsystems: net
[Documentation on labels]
First crash: 612d, last: 612d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tcp_update_metrics / tcp_update_metrics (2) net 1 257d 257d 0/26 auto-obsoleted due to no activity on 2023/08/19 15:31

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

read to 0xffff888137e91dc8 of 4 bytes by task 895 on cpu 1:
 tcp_metric_get net/ipv4/tcp_metrics.c:68 [inline]
 tcp_update_metrics+0x276/0x6e0 net/ipv4/tcp_metrics.c:377
 tcp_time_wait+0x484/0x520 net/ipv4/tcp_minisocks.c:332
 __tcp_close+0x904/0x11f0 net/ipv4/tcp.c:2870
 __mptcp_close_ssk+0x2dd/0x440 net/mptcp/protocol.c:2344
 __mptcp_destroy_sock+0x18f/0x360 net/mptcp/protocol.c:2828
 mptcp_worker+0x7c6/0xa80 net/mptcp/protocol.c:2586
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

write to 0xffff888137e91dc8 of 4 bytes by task 7845 on cpu 0:
 tcp_metric_set net/ipv4/tcp_metrics.c:75 [inline]
 tcp_update_metrics+0x29e/0x6e0 net/ipv4/tcp_metrics.c:383
 tcp_time_wait+0x484/0x520 net/ipv4/tcp_minisocks.c:332
 __tcp_close+0x904/0x11f0 net/ipv4/tcp.c:2870
 __mptcp_close_ssk+0x2dd/0x440 net/mptcp/protocol.c:2344
 __mptcp_destroy_sock+0x18f/0x360 net/mptcp/protocol.c:2828
 mptcp_worker+0x7c6/0xa80 net/mptcp/protocol.c:2586
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x00001b63 -> 0x00001831

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7845 Comm: kworker/0:62 Not tainted 5.19.0-rc8-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Workqueue: events mptcp_worker
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/25 17:35 upstream e0dccc3b76fb 664c519c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tcp_update_metrics / tcp_update_metrics
* Struck through repros no longer work on HEAD.