================================================================== BUG: KCSAN: data-race in __queue_work / wq_worker_running read-write to 0xffff888237c2abe0 of 4 bytes by task 3218 on cpu 0: wq_worker_running+0x96/0xe0 kernel/workqueue.c:880 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6741 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x38b/0x8c0 kernel/locking/mutex.c:747 __mutex_lock_slowpath+0xa/0x10 kernel/locking/mutex.c:1035 mutex_lock+0x23/0x30 kernel/locking/mutex.c:286 pcpu_balance_workfn+0x1f/0xb70 mm/percpu.c:2233 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 arch/x86/entry/entry_64.S:308 read to 0xffff888237c2abe0 of 4 bytes by task 3121 on cpu 1: __need_more_worker kernel/workqueue.c:785 [inline] insert_work kernel/workqueue.c:1365 [inline] __queue_work+0x79e/0xa60 kernel/workqueue.c:1517 queue_work_on+0x7e/0xe0 kernel/workqueue.c:1545 queue_work include/linux/workqueue.h:503 [inline] schedule_work include/linux/workqueue.h:564 [inline] pcpu_schedule_balance_work mm/percpu.c:204 [inline] pcpu_alloc+0x972/0xf60 mm/percpu.c:1871 __alloc_percpu+0x20/0x30 mm/percpu.c:1943 xt_percpu_counter_alloc+0x6e/0x110 net/netfilter/x_tables.c:1930 find_check_entry net/ipv6/netfilter/ip6_tables.c:547 [inline] translate_table+0x9ff/0x1090 net/ipv6/netfilter/ip6_tables.c:735 do_replace net/ipv6/netfilter/ip6_tables.c:1153 [inline] do_ip6t_set_ctl+0x1468/0x1790 net/ipv6/netfilter/ip6_tables.c:1639 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x118/0x130 net/ipv6/ipv6_sockglue.c:1028 tcp_setsockopt+0x8c/0xa0 net/ipv4/tcp.c:3803 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3664 __sys_setsockopt+0x1c8/0x230 net/socket.c:2246 __do_sys_setsockopt net/socket.c:2257 [inline] __se_sys_setsockopt net/socket.c:2254 [inline] __x64_sys_setsockopt+0x62/0x70 net/socket.c:2254 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+0x63/0xcd value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3121 Comm: syz-executor.2 Not tainted 6.2.0-rc6-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 ==================================================================