================================================================== BUG: KCSAN: data-race in ktime_get_seconds / timekeeping_advance write to 0xffffffff86fce8c8 of 280 bytes by interrupt on cpu 0: timekeeping_advance+0x88e/0xd80 include/linux/string.h:381 update_wall_time+0x15/0x20 kernel/time/timekeeping.c:2136 tick_do_update_jiffies64+0x1e5/0x2a0 kernel/time/tick-sched.c:101 tick_sched_do_timer+0xc7/0xd0 kernel/time/tick-sched.c:147 tick_sched_timer+0x3f/0xd0 kernel/time/tick-sched.c:1313 __run_hrtimer kernel/time/hrtimer.c:1520 [inline] __hrtimer_run_queues+0x271/0x600 kernel/time/hrtimer.c:1584 hrtimer_interrupt+0x226/0x490 kernel/time/hrtimer.c:1646 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1113 [inline] smp_apic_timer_interrupt+0xd8/0x270 arch/x86/kernel/apic/apic.c:1138 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 should_watch kernel/kcsan/core.c:260 [inline] check_access kernel/kcsan/core.c:581 [inline] __tsan_read8+0xe4/0x110 kernel/kcsan/core.c:770 __find_vmap_area mm/vmalloc.c:432 [inline] remove_vm_area+0x95/0x170 mm/vmalloc.c:2209 vm_remove_mappings mm/vmalloc.c:2244 [inline] __vunmap+0xb1/0x560 mm/vmalloc.c:2306 __vfree+0x42/0xb0 mm/vmalloc.c:2363 vfree+0x45/0x70 mm/vmalloc.c:2393 copy_entries_to_user net/ipv4/netfilter/arp_tables.c:712 [inline] get_entries net/ipv4/netfilter/arp_tables.c:867 [inline] do_arpt_get_ctl+0x474/0x590 net/ipv4/netfilter/arp_tables.c:1489 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x6a/0xa0 net/netfilter/nf_sockopt.c:122 ip_getsockopt net/ipv4/ip_sockglue.c:1576 [inline] ip_getsockopt+0x119/0x160 net/ipv4/ip_sockglue.c:1556 tcp_getsockopt net/ipv4/tcp.c:3726 [inline] tcp_getsockopt+0x6c/0xb0 net/ipv4/tcp.c:3720 sock_common_getsockopt+0x5d/0x80 net/core/sock.c:3131 __sys_getsockopt+0xed/0x210 net/socket.c:2177 __do_sys_getsockopt net/socket.c:2192 [inline] __se_sys_getsockopt net/socket.c:2189 [inline] __x64_sys_getsockopt+0x6b/0x80 net/socket.c:2189 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff86fce940 of 8 bytes by task 20232 on cpu 1: ktime_get_seconds+0x42/0x60 kernel/time/timekeeping.c:917 tcp_store_ts_recent net/ipv4/tcp_input.c:3490 [inline] tcp_replace_ts_recent net/ipv4/tcp_input.c:3504 [inline] tcp_ack+0x2834/0x3100 net/ipv4/tcp_input.c:3646 tcp_rcv_state_process+0x609/0x275c net/ipv4/tcp_input.c:6236 tcp_v4_do_rcv+0x21b/0x4f0 net/ipv4/tcp_ipv4.c:1643 sk_backlog_rcv include/net/sock.h:996 [inline] __release_sock+0x130/0x1e0 net/core/sock.c:2460 release_sock+0x5e/0x160 net/core/sock.c:2976 inet_shutdown+0x14a/0x240 net/ipv4/af_inet.c:898 kernel_sock_shutdown+0x38/0x50 net/socket.c:3849 rds_tcp_accept_one+0x3bb/0x710 net/rds/tcp_listen.c:245 rds_tcp_accept_worker+0x2b/0x50 net/rds/tcp.c:525 process_one_work+0x424/0x930 kernel/workqueue.c:2268 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2414 kthread+0x203/0x230 kernel/kthread.c:268 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 20232 Comm: kworker/u4:6 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_tcp_accept_worker ==================================================================