fork from https://android.googlesource.com/kernel/common