================================================================== BUG: KCSAN: data-race in handle_userfault / userfaultfd_wake_function read to 0xffffc90002e738d0 of 8 bytes by task 3516 on cpu 1: list_empty_careful include/linux/list.h:287 [inline] handle_userfault+0xeed/0x1060 fs/userfaultfd.c:564 do_anonymous_page mm/memory.c:3090 [inline] handle_pte_fault mm/memory.c:3943 [inline] __handle_mm_fault+0x2db9/0x2e00 mm/memory.c:4075 handle_mm_fault+0x21b/0x530 mm/memory.c:4112 do_user_addr_fault arch/x86/mm/fault.c:1441 [inline] __do_page_fault+0x456/0x8d0 arch/x86/mm/fault.c:1506 do_page_fault+0x38/0x194 arch/x86/mm/fault.c:1530 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203 copy_user_enhanced_fast_string+0xe/0x30 arch/x86/lib/copy_user_64.S:204 copy_from_user include/linux/uaccess.h:144 [inline] sctp_getsockopt_sctp_status+0x71/0x450 net/sctp/socket.c:5495 sctp_getsockopt net/sctp/socket.c:8041 [inline] sctp_getsockopt+0xdd6/0x5258 net/sctp/socket.c:8010 sock_common_getsockopt+0x67/0x90 net/core/sock.c:3108 __sys_getsockopt+0xf1/0x210 net/socket.c:2162 __do_sys_getsockopt net/socket.c:2177 [inline] __se_sys_getsockopt net/socket.c:2174 [inline] __x64_sys_getsockopt+0x70/0x90 net/socket.c:2174 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffffc90002e738d0 of 8 bytes by task 3523 on cpu 0: INIT_LIST_HEAD include/linux/list.h:29 [inline] list_del_init include/linux/list.h:191 [inline] userfaultfd_wake_function fs/userfaultfd.c:140 [inline] userfaultfd_wake_function+0x168/0x1d0 fs/userfaultfd.c:106 __wake_up_common+0x7b/0x180 kernel/sched/wait.c:93 __wake_up_locked_key+0x16/0x20 kernel/sched/wait.c:157 userfaultfd_release+0x30e/0x3a0 fs/userfaultfd.c:933 __fput+0x1e1/0x520 fs/file_table.c:280 ____fput+0x1f/0x30 fs/file_table.c:313 task_work_run+0xf6/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3523 Comm: syz-executor.2 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================