Android Ashmem to Memfd
summary
Android replaces the legacy ashmem driver (removed from staging in kernel 5.18) by switching allocations to memfd_create via an ashared interface, temporarily emulating ashmem ioctls on memfds for apps built against older SDKs, and upstreaming memfd class SELinux support so memfds carry allocator-specific security contexts. Migration confines memfd allocation to launching devices and newer-targeted apps until vendors and apps update, then ashmem allocations are disallowed and the driver can be removed.
AI-written summary · about
