binder: make active thread sequence counter 64-bit
We are using an atomic_t for the active thread sequence counter which could rollover and possibly result in premature reaping of zombie objects. Change to atomic64_t. Bug: 36072376 Change-Id: I6f5d3f2b9e81e4f1cab3fa330299c25bee4fb9ef Test: tested manually Signed-off-by: Todd Kjos <tkjos@google.com> Signed-off-by: Siqi Lin <siqilin@google.com>
This commit is contained in:
committed by
Thierry Strudel
parent
aa8bac23d5
commit
e98c35d65d
@@ -3249,11 +3249,11 @@ static u64 binder_get_seq(struct binder_seq_head *tracker)
|
||||
return seq;
|
||||
}
|
||||
|
||||
atomic_t binder_seq_count;
|
||||
atomic64_t binder_seq_count;
|
||||
|
||||
static inline u64 binder_get_next_seq(void)
|
||||
{
|
||||
return atomic_inc_return(&binder_seq_count);
|
||||
return atomic64_inc_return(&binder_seq_count);
|
||||
}
|
||||
|
||||
static void binder_add_seq(struct binder_seq_node *node,
|
||||
|
||||
Reference in New Issue
Block a user