syzbot


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

Status: auto-closed as invalid on 2021/03/28 20:33
Subsystems: wireguard
[Documentation on labels]
First crash: 1153d, last: 1153d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mod_timer / __mod_timer (10) wireguard 30 116d 323d 0/26 auto-obsoleted due to no activity on 2024/01/30 05:54
upstream KCSAN: data-race in __mod_timer / __mod_timer wireguard 1 1390d 1390d 0/26 auto-closed as invalid on 2020/08/03 09:45
upstream KCSAN: data-race in __mod_timer / __mod_timer (6) block 1 919d 919d 0/26 auto-closed as invalid on 2021/11/17 13:29
upstream KCSAN: data-race in __mod_timer / __mod_timer (2) wireguard 6 1229d 1229d 0/26 auto-closed as invalid on 2021/01/11 09:46
upstream KCSAN: data-race in __mod_timer / __mod_timer (8) wireguard 19 581d 765d 0/26 auto-obsoleted due to no activity on 2022/10/22 07:18
upstream KCSAN: data-race in __mod_timer / __mod_timer (3) wireguard 1 1191d 1191d 0/26 auto-closed as invalid on 2021/02/18 17:11
upstream KCSAN: data-race in __mod_timer / __mod_timer (9) wireguard 20 366d 542d 0/26 auto-obsoleted due to no activity on 2023/05/25 03:36
upstream KCSAN: data-race in __mod_timer / __mod_timer (7) wireguard 11 807d 875d 0/26 auto-closed as invalid on 2022/03/10 01:23
upstream KCSAN: data-race in __mod_timer / __mod_timer (5) wireguard 2 1104d 1113d 0/26 auto-closed as invalid on 2021/05/17 11:47

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

write to 0xffff88801024d5c8 of 8 bytes by interrupt on cpu 1:
 __mod_timer+0x701/0xc10 kernel/time/timer.c:1050
 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_consume_data_done drivers/net/wireguard/receive.c:360 [inline]
 wg_packet_rx_poll+0x8e5/0x12f0 drivers/net/wireguard/receive.c:482
 __napi_poll+0x77/0x510 net/core/dev.c:6892
 napi_poll net/core/dev.c:6959 [inline]
 net_rx_action+0x29f/0x680 net/core/dev.c:7036
 __do_softirq+0x13c/0x2c3 kernel/softirq.c:343
 asm_call_irq_on_stack+0xf/0x20
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77
 do_softirq kernel/softirq.c:246 [inline]
 __local_bh_enable_ip+0xb8/0xd0 kernel/softirq.c:196
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
 _raw_spin_unlock_bh+0x33/0x40 kernel/locking/spinlock.c:207
 spin_unlock_bh include/linux/spinlock.h:399 [inline]
 ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline]
 wg_packet_decrypt_worker+0x6f2/0x730 drivers/net/wireguard/receive.c:507
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff88801024d5c8 of 8 bytes by task 30001 on cpu 0:
 __mod_timer+0x74/0xc10 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_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:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 30001 Comm: kworker/0:4 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: wg-crypt-wg2 wg_packet_tx_worker
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/21 20:25 upstream 55f62bc87347 a659b3f1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __mod_timer / __mod_timer
* Struck through repros no longer work on HEAD.