syzbot


KCSAN: data-race in insert_work / wq_worker_running

Status: auto-obsoleted due to no activity on 2022/09/11 22:09
Reported-by: syzbot+0041a787362c9e0005e9@syzkaller.appspotmail.com
First crash: 193d, last: 56d

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

read-write to 0xffff888237c2a860 of 4 bytes by task 9882 on cpu 0:
 wq_worker_running+0x96/0xe0 kernel/workqueue.c:880
 synchronize_rcu_expedited+0x629/0x7c0 kernel/rcu/tree_exp.h:955
 synchronize_rcu+0x62/0x380 kernel/rcu/tree.c:3519
 sock_hash_free+0x3af/0x400 net/core/sock_map.c:1159
 bpf_map_free_deferred+0x99/0x100 kernel/bpf/syscall.c:620
 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 0xffff888237c2a860 of 4 bytes by task 1169 on cpu 1:
 __need_more_worker kernel/workqueue.c:785 [inline]
 insert_work+0x10e/0x190 kernel/workqueue.c:1365
 __queue_work+0x69e/0x8e0 kernel/workqueue.c:1517
 queue_work_on+0x7e/0xe0 kernel/workqueue.c:1545
 srcu_queue_delayed_work_on kernel/rcu/srcutree.c:697 [inline]
 srcu_schedule_cbs_sdp kernel/rcu/srcutree.c:710 [inline]
 srcu_gp_end kernel/rcu/srcutree.c:777 [inline]
 srcu_advance_state kernel/rcu/srcutree.c:1526 [inline]
 process_srcu+0x6b1/0xa70 kernel/rcu/srcutree.c:1622
 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: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1169 Comm: kworker/1:96 Not tainted 5.19.0-syzkaller-12689-g3bc1bc0b59d0-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
Workqueue: rcu_gp process_srcu
==================================================================

Crashes (232):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/08/07 22:08 upstream 3bc1bc0b59d0 88e3a122 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/07 03:18 upstream 1612c382ffbd 88e3a122 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/06 17:39 upstream 6614a3c3164a 88e3a122 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/06 02:29 upstream 9e2f40233670 e853abd9 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/05 07:54 upstream c040862bfbd9 a65a7ce9 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/05 03:22 upstream c040862bfbd9 1c9013ac .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/04 23:48 upstream b44f2fd87919 1c9013ac .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/03 21:28 upstream e2b542100719 1c9013ac .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/03 06:06 upstream 7d0d3fa7339e 1c9013ac .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/02 01:52 upstream 9de1f9c8ca51 fef302b1 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/08/01 18:50 upstream 3d7cb6b04c3f fef302b1 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/31 08:47 upstream 6a010258447d fef302b1 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/31 01:42 upstream 620725263f42 fef302b1 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/29 23:52 upstream 6e2c0490769e fef302b1 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/28 21:52 upstream 33ea1340bafe fb95c74d .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/27 22:41 upstream 6e7765cb477a fb95c74d .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/26 21:11 upstream 5de64d44968e ae971e66 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/26 17:41 upstream 5de64d44968e 279b89c2 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/26 10:19 upstream e0dccc3b76fb 279b89c2 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/25 21:32 upstream e0dccc3b76fb 34795c51 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/25 09:32 upstream e0dccc3b76fb 664c519c .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/25 06:58 upstream e0dccc3b76fb 22343af4 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/24 05:00 upstream 515f71412bb7 22343af4 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/23 08:16 upstream 70664fc10c0d 22343af4 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/22 23:26 upstream 4ba1329cbb94 22343af4 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/22 04:27 upstream 68e77ffbfd06 5e6028b9 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/20 19:28 upstream 353f7988dd84 88cb1383 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/20 13:32 upstream ca85855bdcae 88cb1383 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/19 20:27 upstream ca85855bdcae 775344bc .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/19 09:39 upstream ca85855bdcae 72a3cc0c .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/17 20:57 upstream ff6992735ade 95cb00d1 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/17 00:14 upstream c658cabbfd32 95cb00d1 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/16 04:41 upstream 9b59ec8d50a1 95cb00d1 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/14 21:44 upstream 9bd572ec7a66 5d921b08 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/13 21:26 upstream 4a57a8400075 5d921b08 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/13 07:21 upstream b047602d579b 5d921b08 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/13 02:19 upstream 72a8e05d4f66 d91dd8ea .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/12 14:45 upstream 5a29232d870d d91dd8ea .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/12 04:00 upstream 5a29232d870d da3d6955 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/11 18:39 upstream 32346491ddf2 f3f217ff .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/11 06:16 upstream 32346491ddf2 b5765a15 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/10 17:15 upstream d9919d43cbf6 b5765a15 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/07/09 23:00 upstream b1c428b6c368 b5765a15 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/04/28 19:52 upstream 259b897e5a79 e9076525 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/04/28 17:14 upstream 8f4dd16603ce e9076525 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/03/24 10:09 upstream ed4643521e6a 89bc8608 .config log report info KCSAN: data-race in insert_work / wq_worker_running
* Struck through repros no longer work on HEAD.