================================================================== BUG: KCSAN: data-race in __queue_work / wq_worker_running read-write to 0xffff888237d2d164 of 4 bytes by task 5673 on cpu 1: wq_worker_running+0x98/0x120 kernel/workqueue.c:1265 schedule_timeout+0xcc/0x230 kernel/time/timer.c:2183 synchronize_rcu_expedited_wait_once kernel/rcu/tree_exp.h:571 [inline] synchronize_rcu_expedited_wait kernel/rcu/tree_exp.h:625 [inline] rcu_exp_wait_wake kernel/rcu/tree_exp.h:696 [inline] rcu_exp_sel_wait_wake+0x559/0x1390 kernel/rcu/tree_exp.h:730 wait_rcu_exp_gp+0x1e/0x30 kernel/rcu/tree_exp.h:512 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706 worker_thread+0x525/0x730 kernel/workqueue.c:2787 kthread+0x1d7/0x210 kernel/kthread.c:388 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 read to 0xffff888237d2d164 of 4 bytes by task 13861 on cpu 0: need_more_worker kernel/workqueue.c:835 [inline] kick_pool kernel/workqueue.c:1118 [inline] __queue_work+0x7ce/0xbb0 kernel/workqueue.c:1803 queue_work_on+0x95/0xf0 kernel/workqueue.c:1837 queue_work include/linux/workqueue.h:548 [inline] schedule_work include/linux/workqueue.h:609 [inline] __xfrm_state_destroy net/xfrm/xfrm_state.c:697 [inline] xfrm_state_put include/net/xfrm.h:815 [inline] xfrm_state_find+0x1dff/0x25e0 net/xfrm/xfrm_state.c:1348 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2489 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2534 [inline] xfrm_resolve_and_create_bundle+0x4cd/0x1a40 net/xfrm/xfrm_policy.c:2827 xfrm_lookup_with_ifid+0x19e/0x12d0 net/xfrm/xfrm_policy.c:3161 xfrm_lookup net/xfrm/xfrm_policy.c:3290 [inline] xfrm_lookup_route+0x3b/0x100 net/xfrm/xfrm_policy.c:3301 ip6_dst_lookup_flow+0x98/0xc0 net/ipv6/ip6_output.c:1256 rawv6_sendmsg+0x9ae/0xf40 net/ipv6/raw.c:892 inet_sendmsg+0x63/0x80 net/ipv4/af_inet.c:850 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmmsg+0x269/0x500 net/socket.c:2724 __do_sys_sendmmsg net/socket.c:2753 [inline] __se_sys_sendmmsg net/socket.c:2750 [inline] __x64_sys_sendmmsg+0x57/0x60 net/socket.c:2750 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 13861 Comm: syz-executor.1 Not tainted 6.8.0-rc4-syzkaller-00003-g716f4aaa7b48 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ==================================================================