syzbot


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

Status: auto-closed as invalid on 2021/02/18 17:11
Subsystems: wireguard
[Documentation on labels]
First crash: 1194d, last: 1194d
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 119d 326d 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 1394d 1394d 0/26 auto-closed as invalid on 2020/08/03 09:45
upstream KCSAN: data-race in __mod_timer / __mod_timer (6) block 1 923d 923d 0/26 auto-closed as invalid on 2021/11/17 13:29
upstream KCSAN: data-race in __mod_timer / __mod_timer (2) wireguard 6 1233d 1233d 0/26 auto-closed as invalid on 2021/01/11 09:46
upstream KCSAN: data-race in __mod_timer / __mod_timer (8) wireguard 19 584d 768d 0/26 auto-obsoleted due to no activity on 2022/10/22 07:18
upstream KCSAN: data-race in __mod_timer / __mod_timer (9) wireguard 20 369d 546d 0/26 auto-obsoleted due to no activity on 2023/05/25 03:36
upstream KCSAN: data-race in __mod_timer / __mod_timer (4) wireguard 1 1156d 1156d 0/26 auto-closed as invalid on 2021/03/28 20:33
upstream KCSAN: data-race in __mod_timer / __mod_timer (7) wireguard 11 810d 879d 0/26 auto-closed as invalid on 2022/03/10 01:23
upstream KCSAN: data-race in __mod_timer / __mod_timer (5) wireguard 2 1107d 1117d 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 0xffff88800e78d5c8 of 8 bytes by interrupt on cpu 1:
 __mod_timer+0x6e2/0xbf0 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+0x8c5/0x1290 drivers/net/wireguard/receive.c:482
 napi_poll+0x181/0x630 net/core/dev.c:6805
 net_rx_action+0x17a/0x480 net/core/dev.c:6888
 __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+0xba/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+0x635/0xb90 kernel/workqueue.c:2421
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88800e78d5c8 of 8 bytes by task 7 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_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+0x635/0xb90 kernel/workqueue.c:2421
 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: 7 Comm: kworker/0:1 Not tainted 5.11.0-rc3-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/01/14 17:04 upstream 65f0d2414b70 468dbb55 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.