================================================================== BUG: KCSAN: data-race in snd_ctl_notify / snd_ctl_notify read to 0xffff888126fa0858 of 4 bytes by interrupt on cpu 0: snd_ctl_notify sound/core/control.c:154 [inline] snd_ctl_notify+0xd7/0x3b0 sound/core/control.c:141 loopback_active_notify+0xcb/0xe0 sound/drivers/aloop.c:242 loopback_trigger+0x59f/0x710 sound/drivers/aloop.c:296 snd_pcm_do_stop sound/core/pcm_native.c:1279 [inline] snd_pcm_do_stop+0xe6/0xf0 sound/core/pcm_native.c:1275 snd_pcm_action_single+0x5a/0xc0 sound/core/pcm_native.c:1072 snd_pcm_action+0x83/0x90 sound/core/pcm_native.c:1155 snd_pcm_stop+0x2e/0x40 sound/core/pcm_native.c:1312 __snd_pcm_xrun+0x92/0x300 sound/core/pcm_lib.c:149 snd_pcm_update_state+0x31f/0x330 sound/core/pcm_lib.c:190 snd_pcm_update_hw_ptr0+0xa05/0x1280 sound/core/pcm_lib.c:453 snd_pcm_period_elapsed+0x141/0x1c0 sound/core/pcm_lib.c:1791 loopback_timer_function+0x130/0x137 sound/drivers/aloop.c:525 call_timer_fn+0x5f/0x2f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0xc0c/0xcd0 kernel/time/timer.c:1786 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830 arch_atomic_dec_and_test arch/x86/include/asm/atomic.h:125 [inline] atomic_dec_and_test include/asm-generic/atomic-instrumented.h:761 [inline] page_ref_dec_and_test include/linux/page_ref.h:139 [inline] put_page_testzero include/linux/mm.h:608 [inline] release_pages+0x19b/0x980 mm/swap.c:802 free_pages_and_swap_cache+0x233/0x2a0 mm/swap_state.c:296 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:184 [inline] tlb_flush_mmu+0x72/0x3b0 mm/mmu_gather.c:191 zap_pte_range mm/memory.c:1128 [inline] zap_pmd_range mm/memory.c:1166 [inline] zap_pud_range mm/memory.c:1195 [inline] zap_p4d_range mm/memory.c:1216 [inline] unmap_page_range+0x1562/0x18d0 mm/memory.c:1237 unmap_single_vma+0x144/0x200 mm/memory.c:1282 unmap_vmas+0xda/0x1a0 mm/memory.c:1314 exit_mmap+0x13e/0x300 mm/mmap.c:3161 __mmput kernel/fork.c:1079 [inline] mmput+0xea/0x280 kernel/fork.c:1100 exit_mm kernel/exit.c:485 [inline] do_exit+0x4c9/0x18f0 kernel/exit.c:804 do_group_exit+0xb4/0x1c0 kernel/exit.c:921 get_signal+0x2a2/0x1320 kernel/signal.c:2734 do_signal+0x3b/0xbf0 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x250/0x2c0 arch/x86/entry/common.c:159 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff888126fa0858 of 4 bytes by interrupt on cpu 1: snd_ctl_notify sound/core/control.c:154 [inline] snd_ctl_notify+0xe9/0x3b0 sound/core/control.c:141 loopback_active_notify+0xcb/0xe0 sound/drivers/aloop.c:242 loopback_trigger+0x59f/0x710 sound/drivers/aloop.c:296 snd_pcm_do_stop sound/core/pcm_native.c:1279 [inline] snd_pcm_do_stop+0xe6/0xf0 sound/core/pcm_native.c:1275 snd_pcm_action_single+0x5a/0xc0 sound/core/pcm_native.c:1072 snd_pcm_action+0x83/0x90 sound/core/pcm_native.c:1155 snd_pcm_stop+0x2e/0x40 sound/core/pcm_native.c:1312 __snd_pcm_xrun+0x92/0x300 sound/core/pcm_lib.c:149 snd_pcm_update_state+0x31f/0x330 sound/core/pcm_lib.c:190 snd_pcm_update_hw_ptr0+0xa05/0x1280 sound/core/pcm_lib.c:453 snd_pcm_period_elapsed+0x141/0x1c0 sound/core/pcm_lib.c:1791 loopback_timer_function+0x130/0x137 sound/drivers/aloop.c:525 call_timer_fn+0x5f/0x2f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0xc0c/0xcd0 kernel/time/timer.c:1786 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830 tomoyo_check_acl+0x9d/0x270 security/tomoyo/domain.c:170 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0xe3/0x160 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x2b9/0x320 security/tomoyo/file.c:780 tomoyo_file_open security/tomoyo/tomoyo.c:319 [inline] tomoyo_file_open+0x75/0x90 security/tomoyo/tomoyo.c:314 security_file_open+0x69/0x210 security/security.c:1497 do_dentry_open+0x20a/0x8f0 fs/open.c:784 vfs_open+0x62/0x80 fs/open.c:914 do_last fs/namei.c:3408 [inline] path_openat+0xf73/0x36e0 fs/namei.c:3525 do_filp_open+0x11e/0x1b0 fs/namei.c:3555 do_sys_open+0x3b3/0x4f0 fs/open.c:1097 __do_sys_open fs/open.c:1115 [inline] __se_sys_open fs/open.c:1110 [inline] __x64_sys_open+0x55/0x70 fs/open.c:1110 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 11010 Comm: syz-executor.0 Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================