syzbot


KCSAN: data-race in insert_work / wq_worker_running
Status: moderation: reported on 2022/04/28 23:09
Reported-by: syzbot+0041a787362c9e0005e9@syzkaller.appspotmail.com
First crash: 64d, last: 22h22m

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

read-write to 0xffff888237d2a7e0 of 4 bytes by task 1911 on cpu 1:
 wq_worker_running+0x96/0xe0 kernel/workqueue.c:880
 schedule_timeout+0xc1/0x290 kernel/time/timer.c:1935
 synchronize_rcu_expedited_wait_once kernel/rcu/tree_exp.h:569 [inline]
 synchronize_rcu_expedited_wait+0x21a/0xb80 kernel/rcu/tree_exp.h:620
 rcu_exp_wait_wake kernel/rcu/tree_exp.h:685 [inline]
 rcu_exp_sel_wait_wake+0x355/0x630 kernel/rcu/tree_exp.h:719
 wait_rcu_exp_gp+0x1a/0x20 kernel/rcu/tree_exp.h:510
 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 0xffff888237d2a7e0 of 4 bytes by task 6522 on cpu 0:
 __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
 queue_work include/linux/workqueue.h:502 [inline]
 schedule_work include/linux/workqueue.h:563 [inline]
 __xfrm_state_destroy net/xfrm/xfrm_state.c:674 [inline]
 xfrm_state_put include/net/xfrm.h:793 [inline]
 xfrm_state_find+0x1521/0x1b80 net/xfrm/xfrm_state.c:1205
 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2393 [inline]
 xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2438 [inline]
 xfrm_resolve_and_create_bundle+0x522/0x1bf0 net/xfrm/xfrm_policy.c:2728
 xfrm_lookup_with_ifid+0x3be/0x1880 net/xfrm/xfrm_policy.c:3062
 xfrm_lookup net/xfrm/xfrm_policy.c:3191 [inline]
 xfrm_lookup_route+0x37/0x100 net/xfrm/xfrm_policy.c:3202
 ip6_dst_lookup_flow+0x94/0xc0 net/ipv6/ip6_output.c:1228
 rawv6_sendmsg+0x8f3/0xe40 net/ipv6/raw.c:928
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2492
 ___sys_sendmsg net/socket.c:2546 [inline]
 __sys_sendmmsg+0x27c/0x4a0 net/socket.c:2632
 __do_sys_sendmmsg net/socket.c:2661 [inline]
 __se_sys_sendmmsg net/socket.c:2658 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2658
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6522 Comm: syz-executor.2 Not tainted 5.18.0-syzkaller-09061-g16477cdfefdb-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
syz-executor.2 (6522) used greatest stack depth: 10680 bytes left

Crashes (130):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/26 20:24 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/26 06:48 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/25 12:06 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/24 23:11 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/24 11:49 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/23 23:18 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/23 09:50 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/22 20:09 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/22 06:52 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/21 17:38 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/21 04:14 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/20 15:52 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/20 08:22 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/19 12:14 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/19 06:22 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/18 00:47 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/16 03:33 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/15 18:38 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/15 00:15 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/14 10:57 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/13 09:43 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/13 08:17 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/13 07:09 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/12 09:20 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/11 08:27 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/09 16:37 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/09 07:10 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/09 04:41 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/09 02:54 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/08 21:59 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/08 17:49 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/08 15:10 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/08 10:47 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/08 05:47 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/08 04:01 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/08 02:18 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/08 00:41 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 23:11 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 22:06 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 21:05 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 16:18 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 12:45 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 12:43 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 11:09 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 08:57 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 06:49 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 05:17 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/07 03:50 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/06 19:23 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/06 17:43 upstream fe27d189e3f4 e60b1103 .config log report info KCSAN: data-race in insert_work / wq_worker_running
ci2-upstream-kcsan-gce 2022/05/06 05:13 upstream fe27d189e3f4 efeff0a5 .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