syzbot


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

Status: auto-obsoleted due to no activity on 2022/10/22 07:18
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 327d, last: 143d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mod_timer / __mod_timer 1 953d 953d 0/24 auto-closed as invalid on 2020/08/03 09:45
upstream KCSAN: data-race in __mod_timer / __mod_timer (6) 1 482d 482d 0/24 auto-closed as invalid on 2021/11/17 13:29
upstream KCSAN: data-race in __mod_timer / __mod_timer (2) 6 792d 792d 0/24 auto-closed as invalid on 2021/01/11 09:46
upstream KCSAN: data-race in __mod_timer / __mod_timer (3) 1 754d 754d 0/24 auto-closed as invalid on 2021/02/18 17:11
upstream KCSAN: data-race in __mod_timer / __mod_timer (4) 1 716d 716d 0/24 auto-closed as invalid on 2021/03/28 20:33
upstream KCSAN: data-race in __mod_timer / __mod_timer (7) 11 369d 438d 0/24 auto-closed as invalid on 2022/03/10 01:23
upstream KCSAN: data-race in __mod_timer / __mod_timer (5) 2 667d 676d 0/24 auto-closed as invalid on 2021/05/17 11:47

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

write to 0xffff888132f5b0f0 of 8 bytes by interrupt on cpu 1:
 __mod_timer+0x70d/0xc40 kernel/time/timer.c:1105
 mod_timer+0x1b/0x20 kernel/time/timer.c:1161
 mod_peer_timer drivers/net/wireguard/timers.c:37 [inline]
 wg_timers_any_authenticated_packet_traversal+0xc0/0xe0 drivers/net/wireguard/timers.c:215
 wg_packet_consume_data_done drivers/net/wireguard/receive.c:354 [inline]
 wg_packet_rx_poll+0x855/0x10c0 drivers/net/wireguard/receive.c:474
 __napi_poll+0x65/0x390 net/core/dev.c:6511
 napi_poll net/core/dev.c:6578 [inline]
 net_rx_action+0x37e/0x730 net/core/dev.c:6689
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 do_softirq+0xb1/0xf0 kernel/softirq.c:472
 __local_bh_enable_ip+0x6f/0x80 kernel/softirq.c:396
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
 _raw_spin_unlock_bh+0x32/0x40 kernel/locking/spinlock.c:210
 spin_unlock_bh include/linux/spinlock.h:394 [inline]
 ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline]
 wg_packet_decrypt_worker+0x737/0x770 drivers/net/wireguard/receive.c:499
 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

read to 0xffff888132f5b0f0 of 8 bytes by task 1917 on cpu 0:
 __mod_timer+0x7d/0xc40 kernel/time/timer.c:1033
 mod_timer+0x1b/0x20 kernel/time/timer.c:1161
 mod_peer_timer drivers/net/wireguard/timers.c:37 [inline]
 wg_timers_any_authenticated_packet_traversal+0xc0/0xe0 drivers/net/wireguard/timers.c:215
 wg_packet_create_data_done drivers/net/wireguard/send.c:247 [inline]
 wg_packet_tx_worker+0xf7/0x360 drivers/net/wireguard/send.c:276
 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: 0x00000000fffff854 -> 0x00000000fffffbac

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1917 Comm: kworker/0:6 Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: wg-crypt-wg2 wg_packet_tx_worker
==================================================================

Crashes (19):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/09/17 07:07 upstream a335366bad13 dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/09/10 01:46 upstream ce888220d5c7 356d8217 .config console log report info [disk image] [vmlinux] KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/08/16 11:12 upstream 7ebfc85e2cd7 7a7cb304 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/08/13 21:09 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/08/01 01:26 upstream 334c0ef6429f fef302b1 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/07/27 01:27 upstream 5de64d44968e ae971e66 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/07/22 12:34 upstream 68e77ffbfd06 22343af4 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/07/15 02:41 upstream 9bd572ec7a66 5d921b08 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/07/04 00:19 upstream 20855e4cb361 1434eec0 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/06/28 05:15 upstream 941e3e791269 ef82eb2c .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/06/26 04:11 upstream 0840a7914caa a371c43c .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/06/03 09:04 upstream 58f9d52ff689 02dddea8 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/05/31 19:09 upstream 8ab2afa23bd1 af70c3a9 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/05/23 06:40 upstream 978df3e15846 7268fa62 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/05/04 20:07 upstream a7391ad35724 dc9e5259 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/04/17 01:36 upstream 90ea17a9e27b 8bcc32a6 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/04/06 15:03 upstream 3e732ebf7316 86b4b7f8 .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/03/18 00:53 upstream 551acdc3c3d2 e2d91b1d .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
ci2-upstream-kcsan-gce 2022/03/17 06:29 upstream 56e337f2cf13 dfa9a8ed .config console log report info KCSAN: data-race in __mod_timer / __mod_timer
* Struck through repros no longer work on HEAD.