================================================================== BUG: KCSAN: data-race in __flush_work / wq_worker_running read-write to 0xffff888237d2a860 of 4 bytes by task 11495 on cpu 1: wq_worker_running+0x96/0xe0 kernel/workqueue.c:880 __lock_sock net/core/sock.c:2826 [inline] lock_sock_nested+0xbd/0x130 net/core/sock.c:3396 lock_sock include/net/sock.h:1712 [inline] sk_stream_wait_connect+0x259/0x3b0 net/core/stream.c:75 smc_connect_work+0x19c/0x4a0 net/smc/af_smc.c:1531 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 0xffff888237d2a860 of 4 bytes by task 31001 on cpu 0: __need_more_worker kernel/workqueue.c:785 [inline] insert_work kernel/workqueue.c:1365 [inline] insert_wq_barrier kernel/workqueue.c:2716 [inline] start_flush_work kernel/workqueue.c:3034 [inline] __flush_work+0x416/0x520 kernel/workqueue.c:3074 __cancel_work_timer+0x1fe/0x2e0 kernel/workqueue.c:3162 cancel_work_sync+0x13/0x20 kernel/workqueue.c:3198 smc_release+0x10c/0x390 net/smc/af_smc.c:328 __sock_release net/socket.c:650 [inline] sock_close+0x6c/0x150 net/socket.c:1365 __fput+0x292/0x510 fs/file_table.c:320 ____fput+0x11/0x20 fs/file_table.c:353 task_work_run+0x8e/0x110 kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x59a/0x16e0 kernel/exit.c:795 do_group_exit+0xa5/0x160 kernel/exit.c:925 get_signal+0xf54/0x1020 kernel/signal.c:2857 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 31001 Comm: syz-executor.3 Not tainted 6.0.0-rc1-syzkaller-00160-g4c2d0b039c5c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ==================================================================