syzbot


KCSAN: data-race in binder_thread_read / do_signal_stop

Status: auto-closed as invalid on 2020/09/07 10:58
Subsystems: kernel
[Documentation on labels]
First crash: 1392d, last: 1362d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in binder_thread_read / do_signal_stop

write to 0xffff88810ca2a0a4 of 4 bytes by task 10053 on cpu 0:
 freezer_do_not_count include/linux/freezer.h:109 [inline]
 binder_wait_for_work drivers/android/binder.c:4083 [inline]
 binder_thread_read+0xa53/0x4460 drivers/android/binder.c:4216
 binder_ioctl_write_read+0x195/0x6d0 drivers/android/binder.c:4867
 binder_ioctl+0x26e/0xde0 drivers/android/binder.c:5031
 vfs_ioctl fs/ioctl.c:48 [inline]
 ksys_ioctl fs/ioctl.c:753 [inline]
 __do_sys_ioctl fs/ioctl.c:762 [inline]
 __se_sys_ioctl+0xc9/0x130 fs/ioctl.c:760
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:760
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810ca2a0a4 of 4 bytes by task 10052 on cpu 1:
 task_set_jobctl_pending kernel/signal.c:291 [inline]
 do_signal_stop+0x32e/0x6d0 kernel/signal.c:2354
 get_signal+0x10c8/0x1650 kernel/signal.c:2703
 do_signal+0x25/0x270 arch/x86/kernel/signal.c:810
 exit_to_usermode_loop arch/x86/entry/common.c:235 [inline]
 __prepare_exit_to_usermode+0x127/0x230 arch/x86/entry/common.c:269
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:352
 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:393
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10052 Comm: syz-executor.3 Not tainted 5.8.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/03 10:55 upstream bcf876870b95 96dd3623 .config console log report ci2-upstream-kcsan-gce
2020/07/04 13:01 upstream 35e884f89df4 4f739670 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.