syzbot


KCSAN: data-race in binder_dec_node_nilocked / binder_state_show

Status: auto-closed as invalid on 2020/04/17 15:24
Reported-by: syzbot+71f39766a98dddab97b5@syzkaller.appspotmail.com
First crash: 914d, last: 914d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in binder_dec_node_nilocked / binder_state_show (3) 1 776d 776d 0/23 auto-closed as invalid on 2020/07/26 15:33
upstream KCSAN: data-race in binder_dec_node_nilocked / binder_state_show (2) 3 787d 822d 0/23 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in binder_dec_node_nilocked / binder_state_show

write to 0xffff88809f276954 of 4 bytes by task 1408 on cpu 0:
 binder_state_show+0xd8/0x260 drivers/android/binder.c:5938
 seq_read+0x350/0x9d0 fs/seq_file.c:229
 full_proxy_read+0xbd/0x100 fs/debugfs/file.c:220
 do_loop_readv_writev fs/read_write.c:714 [inline]
 do_loop_readv_writev fs/read_write.c:701 [inline]
 do_iter_read+0x357/0x3d0 fs/read_write.c:935
 vfs_readv+0x9c/0xf0 fs/read_write.c:997
 do_preadv+0x131/0x1d0 fs/read_write.c:1089
 __do_sys_preadv fs/read_write.c:1139 [inline]
 __se_sys_preadv fs/read_write.c:1134 [inline]
 __x64_sys_preadv+0x61/0x80 fs/read_write.c:1134
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88809f276954 of 4 bytes by task 1416 on cpu 1:
 binder_dec_node_nilocked+0x382/0x610 drivers/android/binder.c:1261
 binder_dec_node_tmpref+0xa3/0x120 drivers/android/binder.c:1379
 binder_put_node drivers/android/binder.c:1387 [inline]
 binder_state_show+0x1aa/0x260 drivers/android/binder.c:5950
 seq_read+0x350/0x9d0 fs/seq_file.c:229
 full_proxy_read+0xbd/0x100 fs/debugfs/file.c:220
 do_loop_readv_writev fs/read_write.c:714 [inline]
 do_loop_readv_writev fs/read_write.c:701 [inline]
 do_iter_read+0x357/0x3d0 fs/read_write.c:935
 vfs_readv+0x9c/0xf0 fs/read_write.c:997
 do_preadv+0x131/0x1d0 fs/read_write.c:1089
 __do_sys_preadv fs/read_write.c:1139 [inline]
 __se_sys_preadv fs/read_write.c:1134 [inline]
 __x64_sys_preadv+0x61/0x80 fs/read_write.c:1134
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/02/04 17:56 https://github.com/google/ktsan.git kcsan 245a43005292 93e5e335 .config log report