================================================================== BUG: KCSAN: data-race in __perf_event_overflow / perf_event_exit_event read to 0xffff88813ad499a4 of 4 bytes by task 24075 on cpu 1: perf_event_wakeup kernel/events/core.c:6626 [inline] perf_event_exit_event+0x261/0x400 kernel/events/core.c:12984 perf_event_exit_task_context kernel/events/core.c:13050 [inline] perf_event_exit_task+0x3d1/0x520 kernel/events/core.c:13081 do_exit+0x60f/0x1670 kernel/exit.c:883 do_group_exit+0x141/0x150 kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1033 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd write to 0xffff88813ad499a4 of 4 bytes by interrupt on cpu 0: __perf_event_overflow+0x7f/0x3e0 kernel/events/core.c:9502 perf_swevent_hrtimer+0x23d/0x2e0 kernel/events/core.c:10986 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x73/0x210 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 is_atomic kernel/kcsan/core.c:249 [inline] should_watch kernel/kcsan/core.c:277 [inline] check_access kernel/kcsan/core.c:752 [inline] __tsan_read4+0xe4/0x180 kernel/kcsan/core.c:1024 crc32_body lib/crc32.c:110 [inline] crc32_le_generic lib/crc32.c:179 [inline] __crc32c_le_base+0x10e/0x520 lib/crc32.c:201 chksum_update+0x32/0x50 crypto/crc32c_generic.c:88 crypto_shash_update+0x136/0x1a0 crypto/shash.c:134 ext4_chksum fs/ext4/ext4.h:2399 [inline] ext4_block_bitmap_csum_set+0x13e/0x250 fs/ext4/bitmap.c:91 ext4_mb_mark_diskspace_used+0x793/0xa90 fs/ext4/mballoc.c:3857 ext4_mb_new_blocks+0xa2b/0x2100 fs/ext4/mballoc.c:5861 ext4_ext_map_blocks+0xe1f/0x36c0 fs/ext4/extents.c:4286 ext4_map_blocks+0x738/0x1050 fs/ext4/inode.c:623 ext4_iomap_alloc fs/ext4/inode.c:3298 [inline] ext4_iomap_begin+0x4a9/0x5d0 fs/ext4/inode.c:3348 iomap_iter+0x401/0x820 fs/iomap/iter.c:91 __iomap_dio_rw+0x75d/0x1100 fs/iomap/direct-io.c:597 iomap_dio_rw+0x40/0x90 fs/iomap/direct-io.c:688 ext4_dio_write_iter fs/ext4/file.c:597 [inline] ext4_file_write_iter+0x9e6/0x10e0 fs/ext4/file.c:708 do_iter_write+0x4ae/0x770 fs/read_write.c:860 vfs_iter_write+0x50/0x70 fs/read_write.c:901 iter_file_splice_write+0x456/0x7d0 fs/splice.c:795 do_splice_from fs/splice.c:873 [inline] direct_splice_actor+0x84/0xa0 fs/splice.c:1039 splice_direct_to_actor+0x2ee/0x5f0 fs/splice.c:994 do_splice_direct+0x104/0x180 fs/splice.c:1082 do_sendfile+0x3b8/0x950 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 24071 Comm: syz-executor.3 Not tainted 6.4.0-rc6-syzkaller-00242-g1639fae5132b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 ================================================================== net_ratelimit: 13 callbacks suppressed TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies. TCP: request_sock_TCPv6: Possible SYN flooding on port [::]:20002. Sending cookies.