Intercept atomic bitops
Suppress race in worker_thread

==================================================================
ThreadSanitizer: data-race in worker_thread

Write of size 4 by thread T19 (K16):
 [<     inlined    >] worker_thread+0x1e0/0x750 worker_clr_flags kernel/workqueue.c:908
 [<     inlined    >] worker_thread+0x1e0/0x750 worker_leave_idle kernel/workqueue.c:1580
 [<ffffffff810a9250>] worker_thread+0x1e0/0x750 kernel/workqueue.c:2128
kworker/u8:0 (26) used greatest stack depth: 13008 bytes left
 [<ffffffff810b080c>] kthread+0x15c/0x180 kernel/kthread.c:207
 [<ffffffff81dfd2bc>] ret_from_fork+0x7c/0xb0 arch/x86/kernel/entry_64.S:347
DBG: cpu = ffffe8ffffd010b0

Previous read of size 4 by thread T11 (K0):
 [<ffffffff810a97ee>] wq_worker_waking_up+0x2e/0xc0 kernel/workqueue.c:809
 [<     inlined    >] ttwu_do_activate.constprop.97+0x4b/0x60 ttwu_activate kernel/sched/core.c:1484
 [<ffffffff810bbb1b>] ttwu_do_activate.constprop.97+0x4b/0x60 kernel/sched/core.c:1523
DBG: cpu = 0

DBG: addr: ffff88020037b5e8
DBG: first offset: 0, second offset: 0
DBG: T19 clock: {T19: 133, T11: 20610}
DBG: T11 clock: {T11: 20759}
==================================================================
Merge branch 'tsan-fixes' into tsan-dev
Suppress race in locks_wake_up_blocks

==================================================================
ThreadSanitizer: data-race in locks_wake_up_blocks

Write of size 8 by thread T388 (K2633):
 [<     inlined    >] locks_wake_up_blocks+0x126/0x1c0 __locks_delete_block fs/locks.c:567
 [<ffffffff812be9c6>] locks_wake_up_blocks+0x126/0x1c0 fs/locks.c:629
 [<ffffffff812beb93>] locks_unlink_lock+0x133/0x150 fs/locks.c:679
 [<ffffffff812bf67e>] locks_delete_lock+0x2e/0xa0 fs/locks.c:692
 [<ffffffff812bfe44>] __posix_lock_file+0x5f4/0x7e0 fs/locks.c:1062
 [<     inlined    >] vfs_lock_file+0x88/0x90 posix_lock_file fs/locks.c:1161
 [<ffffffff812c0b08>] vfs_lock_file+0x88/0x90 fs/locks.c:2054
 [<     inlined    >] fcntl_setlk+0x267/0x530 do_lock_file_wait fs/locks.c:2068
 [<ffffffff812c2db7>] fcntl_setlk+0x267/0x530 fs/locks.c:2166
 [<     inlined    >] SyS_fcntl+0x319/0x730 do_fcntl fs/fcntl.c:283
 [<     inlined    >] SyS_fcntl+0x319/0x730 SYSC_fcntl fs/fcntl.c:371
 [<ffffffff81264a29>] SyS_fcntl+0x319/0x730 fs/fcntl.c:356
 [<ffffffff81dfd329>] system_call_fastpath+0x12/0x17 arch/x86/kernel/entry_64.S:422
DBG: cpu = ffffe8ffffd010b0

Previous read of size 8 by thread T392 (K2637):
 [<     inlined    >] fcntl_setlk+0x2d6/0x530 do_lock_file_wait fs/locks.c:2071
 [<ffffffff812c2e26>] fcntl_setlk+0x2d6/0x530 fs/locks.c:2166
 [<     inlined    >] SyS_fcntl+0x319/0x730 do_fcntl fs/fcntl.c:283
 [<     inlined    >] SyS_fcntl+0x319/0x730 SYSC_fcntl fs/fcntl.c:371
 [<ffffffff81264a29>] SyS_fcntl+0x319/0x730 fs/fcntl.c:356
 [<ffffffff81dfd329>] system_call_fastpath+0x12/0x17 arch/x86/kernel/entry_64.S:422
DBG: cpu = 0

DBG: addr: ffff8801fd204040
DBG: first offset: 0, second offset: 0
DBG: T388 clock: {T388: 329325, T392: 232668}
DBG: T392 clock: {T392: 232773}
==================================================================
Suppress race in do_task_stat

==================================================================
ThreadSanitizer: data-race in do_task_stat

Read of size 4 by thread T377 (K922):
 [<ffffffff812f37ee>] do_task_stat+0x49e/0xd70 fs/proc/array.c:476
 [<ffffffff812f4d07>] proc_tgid_stat+0x37/0x50 fs/proc/array.c:548
 [<ffffffff812ee6cb>] proc_single_show+0x8b/0xd0 fs/proc/base.c:586
 [<ffffffff812813be>] seq_read+0x16e/0x7a0 fs/seq_file.c:234
 [<ffffffff81245c80>] vfs_read+0xe0/0x260 fs/read_write.c:430
 [<     inlined    >] SyS_read+0x6b/0xe0 SYSC_read fs/read_write.c:569
 [<ffffffff81246ebb>] SyS_read+0x6b/0xe0 fs/read_write.c:562
 [<ffffffff81dfd329>] system_call_fastpath+0x12/0x17 arch/x86/kernel/entry_64.S:422
DBG: cpu = ffffe8ffffd810b0

Previous write of size 4 by thread T219 (K749):
 [<ffffffff810a8c54>] rescuer_thread+0x84/0x4a0 kernel/workqueue.c:2220
 [<ffffffff810b07cc>] kthread+0x15c/0x180 kernel/kthread.c:207
 [<ffffffff81dfd27c>] ret_from_fork+0x7c/0xb0 arch/x86/kernel/entry_64.S:347
DBG: cpu = 0

DBG: addr: ffff8801ff9a8364
DBG: first offset: 4, second offset: 4
DBG: T377 clock: {T377: 990300, T219: 4168}
DBG: T219 clock: {T219: 4174}
==================================================================
Suppress race in __queue_delayed_work

==================================================================
ThreadSanitizer: data-race in __queue_delayed_work

Write of size 8 by thread T6 (K6):
 [<ffffffff810a51aa>] __queue_delayed_work+0xca/0x220 kernel/workqueue.c:1447
 [<ffffffff810a5aee>] queue_delayed_work_on+0x8e/0xa0 kernel/workqueue.c:1477
 [<     inlined    >] bdi_wakeup_thread_delayed+0x76/0x90 queue_delayed_work include/linux/workqueue.h
:489
 [<ffffffff811e4a06>] bdi_wakeup_thread_delayed+0x76/0x90 mm/backing-dev.c:302
 [<ffffffff8128f86a>] bdi_writeback_workfn+0x52a/0x700 fs/fs-writeback.c:1061
 [<ffffffff810a822a>] process_one_work+0x2aa/0x700 kernel/workqueue.c:2027
 [<ffffffff810a912b>] worker_thread+0xbb/0x710 kernel/workqueue.c:2161
 [<ffffffff810b07cc>] kthread+0x15c/0x180 kernel/kthread.c:207
 [<ffffffff81dfd27c>] ret_from_fork+0x7c/0xb0 arch/x86/kernel/entry_64.S:347
DBG: cpu = ffffe8ffffd010b0

Previous read of size 8 by thread T11 (K0):
 [<     inlined    >] get_next_timer_interrupt+0x12a/0x340 __next_timer_interrupt kernel/time/timer.c:
1244
 [<ffffffff810ff75a>] get_next_timer_interrupt+0x12a/0x340 kernel/time/timer.c:1361
 [<     inlined    >] __tick_nohz_idle_enter+0x4b6/0x760 tick_nohz_stop_sched_tick kernel/time/tick-sc
hed.c:594
 [<ffffffff81119096>] __tick_nohz_idle_enter+0x4b6/0x760 kernel/time/tick-sched.c:805
 [<ffffffff8111948b>] tick_nohz_irq_exit+0x4b/0x60 kernel/time/tick-sched.c:865
 [<     inlined    >] irq_exit+0x98/0xb0 tick_irq_exit kernel/softirq.c:368
 [<ffffffff81088d98>] irq_exit+0x98/0xb0 kernel/softirq.c:389
 [<ffffffff81dfe13d>] apic_timer_interrupt+0x6d/0x80 arch/x86/kernel/entry_64.S:955
 [<ffffffff8101501f>] arch_cpu_idle+0x1f/0x30 arch/x86/kernel/process.c:304
 [<     inlined    >] cpu_startup_entry+0x31a/0x460 cpuidle_idle_call kernel/sched/idle.c:120
 [<     inlined    >] cpu_startup_entry+0x31a/0x460 cpu_idle_loop kernel/sched/idle.c:226
 [<ffffffff810cf4ea>] cpu_startup_entry+0x31a/0x460 kernel/sched/idle.c:274
DBG: cpu = 0

DBG: addr: ffff8801fd0d3b78
DBG: first offset: 0, second offset: 0
DBG: T6 clock: {T6: 1575163, T11: 2627096}
DBG: T11 clock: {T11: 2627733}
==================================================================
Merge branch 'tsan-fixes' into tsan-dev
Suppress race in complete_signal

==================================================================
ThreadSanitizer: data-race in complete_signal

Read of size 4 by thread T367 (K915):
 [<     inlined    >] complete_signal+0x6a/0x370 wants_signal kernel/signal.c:912
 [<ffffffff81094bda>] complete_signal+0x6a/0x370 kernel/signal.c:932
 [<ffffffff8109584d>] __send_signal+0x29d/0x5c0 kernel/signal.c:1121
 [<ffffffff81095baf>] send_signal+0x3f/0x90 kernel/signal.c:1137 (discriminator 6)
 [<     inlined    >] do_notify_parent+0x485/0x4f0 __group_send_sig_info kernel/signal.c:1176
 [<ffffffff81098555>] do_notify_parent+0x485/0x4f0 kernel/signal.c:1698
 [<     inlined    >] do_exit+0x12f4/0x1420 exit_notify kernel/exit.c:626
 [<ffffffff810853c4>] do_exit+0x12f4/0x1420 kernel/exit.c:781
 [<ffffffff8108722f>] do_group_exit+0x7f/0x140 kernel/exit.c:890
 [<     inlined    >] __wake_up_parent+0x0/0x50 SYSC_exit_group kernel/exit.c:901
 [<ffffffff81087310>] __wake_up_parent+0x0/0x50 kernel/exit.c:899
 [<ffffffff81dfd269>] system_call_fastpath+0x12/0x17 arch/x86/kernel/entry_64.S:422
DBG: cpu = ffffe8ffffc010b0

Previous write of size 4 by thread T363 (K911):
 [<ffffffff810157dc>] init_fpu+0xac/0x130 arch/x86/kernel/i387.c:249
 [<ffffffff81017100>] __restore_xstate_sig+0x3d0/0x8c0 arch/x86/kernel/xsave.c:351 (discriminator 1)
 [<     inlined    >] restore_sigcontext+0x28b/0x2b0 restore_xstate_sig ./arch/x86/include/asm/fpu-internal.h:492
 [<ffffffff8100404b>] restore_sigcontext+0x28b/0x2b0 arch/x86/kernel/signal.c:116
 [<ffffffff810052d9>] sys_rt_sigreturn+0xd9/0x100 arch/x86/kernel/signal.c:582
 [<ffffffff81dfd899>] stub_rt_sigreturn+0x69/0xd0 arch/x86/kernel/entry_64.S:665
DBG: cpu = ffffe8ffffd010b0

DBG: addr: ffff8801ff7ab4e4
DBG: first offset: 4, second offset: 4
DBG: T367 clock: {T367: 92855, T363: 59123}
DBG: T363 clock: {T363: 59138}
==================================================================
Merge branch 'tsan-fixes' into tsan-dev
Use memory order release for kt_bitop_change_bit
Merge pull request #14 from google/tsan-dev

Intercept atomic bitops