Commit 65bb7abf authored by Alice Ryhl's avatar Alice Ryhl
Browse files

ANDROID: rust_binder: check FDA len before allocating



Userspace can currently make Rust Binder attempt to allocate a really
large amount of memory with kmalloc, which triggers a WARN_ON inside the
allocator. To fix this, validate the length before reserving space.

Bug: 415211355
Change-Id: Icc223a7489d9aead227d70c6d8b3749cb4347f55
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent 87dbecd2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment