syzbot


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

Status: auto-closed as invalid on 2021/01/11 09:46
Reported-by: syzbot+31d4e907086795b2dbd4@syzkaller.appspotmail.com
First crash: 701d, last: 617d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mod_timer / __mod_timer 1 778d 778d 0/23 auto-closed as invalid on 2020/08/03 09:45
upstream KCSAN: data-race in __mod_timer / __mod_timer (6) 1 307d 307d 0/23 auto-closed as invalid on 2021/11/17 13:29
upstream KCSAN: data-race in __mod_timer / __mod_timer (3) 1 579d 579d 0/23 auto-closed as invalid on 2021/02/18 17:11
upstream KCSAN: data-race in __mod_timer / __mod_timer (4) 1 541d 541d 0/23 auto-closed as invalid on 2021/03/28 20:33
upstream KCSAN: data-race in __mod_timer / __mod_timer (7) 11 194d 263d 0/23 auto-closed as invalid on 2022/03/10 01:23
upstream KCSAN: data-race in __mod_timer / __mod_timer (5) 2 492d 501d 0/23 auto-closed as invalid on 2021/05/17 11:47

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

write to 0xffff88800c344dc8 of 8 bytes by task 23578 on cpu 1:
 __mod_timer+0x9ae/0xbf0 kernel/time/timer.c:1010
 mod_timer+0x1b/0x20 kernel/time/timer.c:1106
 mod_peer_timer drivers/net/wireguard/timers.c:37 [inline]
 wg_timers_any_authenticated_packet_traversal+0xc5/0xf0 drivers/net/wireguard/timers.c:215
 wg_packet_create_data_done drivers/net/wireguard/send.c:248 [inline]
 wg_packet_tx_worker+0x199/0x4c0 drivers/net/wireguard/send.c:280
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88800c344dc8 of 8 bytes by task 8112 on cpu 0:
 __mod_timer+0x74/0xbf0 kernel/time/timer.c:978
 mod_timer+0x1b/0x20 kernel/time/timer.c:1106
 mod_peer_timer drivers/net/wireguard/timers.c:37 [inline]
 wg_timers_any_authenticated_packet_traversal+0xc5/0xf0 drivers/net/wireguard/timers.c:215
 wg_receive_handshake_packet drivers/net/wireguard/receive.c:209 [inline]
 wg_packet_handshake_receive_worker+0x3d2/0x440 drivers/net/wireguard/receive.c:220
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8112 Comm: kworker/0:3 Not tainted 5.10.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: wg-kex-wg1 wg_packet_handshake_receive_worker
==================================================================

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/12/07 09:46 upstream 0477e9288185 f80ce148 .config log report info
ci2-upstream-kcsan-gce 2020/11/11 18:26 upstream eccc87672492 cca87986 .config log report info
ci2-upstream-kcsan-gce 2020/10/29 23:42 upstream 23859ae44402 a0c7169a .config log report info
ci2-upstream-kcsan-gce 2020/10/01 00:58 upstream 60e720931556 a9767fb2 .config log report info
ci2-upstream-kcsan-gce 2020/09/19 09:47 upstream eb5f95f1593f 53ce8104 .config log report info
ci2-upstream-kcsan-gce 2020/09/14 07:25 upstream 84b134997212 2d3cdd63 .config log report