================================================================== BUG: KCSAN: data-race in devlink_trap_report / devlink_trap_stats_put read-write to 0xffffe8ffffd87fb0 of 8 bytes by task 54 on cpu 1: devlink_trap_stats_update net/core/devlink.c:9799 [inline] devlink_trap_report+0xd1/0x290 net/core/devlink.c:9836 nsim_dev_trap_report drivers/net/netdevsim/dev.c:575 [inline] nsim_dev_trap_report_work+0x4dc/0x5b0 drivers/net/netdevsim/dev.c:603 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272 worker_thread+0x635/0xb90 kernel/workqueue.c:2418 kthread+0x1fa/0x220 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 read to 0xffffe8ffffd87fb0 of 8 bytes by task 15956 on cpu 0: devlink_trap_stats_read net/core/devlink.c:6741 [inline] devlink_trap_stats_put+0x97/0x270 net/core/devlink.c:6756 devlink_nl_trap_group_fill+0x2c4/0x350 net/core/devlink.c:7038 devlink_nl_cmd_trap_group_get_dumpit+0x193/0x270 net/core/devlink.c:7108 genl_lock_dumpit+0x3c/0x60 net/netlink/genetlink.c:623 netlink_dump+0x34a/0x690 net/netlink/af_netlink.c:2268 __netlink_dump_start+0x3ec/0x4e0 net/netlink/af_netlink.c:2373 genl_family_rcv_msg_dumpit net/netlink/genetlink.c:686 [inline] genl_family_rcv_msg net/netlink/genetlink.c:780 [inline] genl_rcv_msg+0x575/0x800 net/netlink/genetlink.c:800 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2494 genl_rcv+0x24/0x40 net/netlink/genetlink.c:811 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x5df/0x6b0 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x6f8/0x7c0 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:671 [inline] ____sys_sendmsg+0x352/0x4c0 net/socket.c:2353 ___sys_sendmsg net/socket.c:2407 [inline] __sys_sendmsg+0x1e2/0x260 net/socket.c:2440 __do_sys_sendmsg net/socket.c:2449 [inline] __se_sys_sendmsg net/socket.c:2447 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2447 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 15956 Comm: syz-executor.3 Not tainted 5.9.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================