No description
  • C 97.5%
  • Assembly 1.1%
  • Shell 0.5%
  • Makefile 0.3%
  • Python 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bruno Martins 2ba452f99a Merge tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common into HEAD
https://source.android.com/docs/security/bulletin/2026/2026-06-01
CVE-2025-40214

* tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common:
  ANDROID: KVM: arm64: iommu: Harden map/unmap checks
  ANDROID: ARM64: virtio_balloon: Disable balloon with warning if granule too large
  ANDROID: KVM: arm64: Make the pvmfw primary slot permanent
  ANDROID: KVM: arm64: Commit vCPU power_state at the top of pkvm_reset_vcpu
  ANDROID: KVM: arm64: Return SUCCESS to guest if CPU_ON target ran
  ANDROID: KVM: arm64: Make CPU_ON failure rollback atomic
  ANDROID: KVM: arm64: Treat non-protected vCPUs as always on at EL2
  ANDROID: KVM: arm64: Remove MP state tracking from EL2
  UPSTREAM: net: skbuff: propagate shared-frag marker through frag-transfer helpers
  UPSTREAM: net: skbuff: preserve shared-frag marker during coalescing
  BACKPORT: FROMGIT: f2fs: add logs in f2fs_disable_checkpoint()
  ANDROID: Update AutoFDO profile to 6.6.129
  ANDROID: Define bazel target for wrapfd kselftests and run in presubmit
  ANDROID: selftests/wrapfd: Define a wrapper for remap_file_pages()

Change-Id: If3725d30cda509db7865f392cbabe5b2806f5741
2026-06-03 21:41:23 +01:00
android Merge tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common into HEAD 2026-06-03 21:41:23 +01:00
arch Merge tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common into HEAD 2026-06-03 21:41:23 +01:00
bazel/test ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
block ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
certs ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
crypto ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
Documentation ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
drivers Merge tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common into HEAD 2026-06-03 21:41:23 +01:00
fs ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
include Merge tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common into HEAD 2026-06-03 21:41:23 +01:00
init ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
io_uring ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
ipc ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
kernel ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
lib ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
LICENSES ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
mm ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
net Merge tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common into HEAD 2026-06-03 21:41:23 +01:00
qcom_build_extensions build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
rust ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
samples ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
scripts ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
security ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
sound ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
tools Merge tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common into HEAD 2026-06-03 21:41:23 +01:00
usr ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
virt ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
.clang-format ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
.cocciconfig ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
.get_maintainer.ignore ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
.gitattributes ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
.gitignore ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
.mailmap ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
.rustfmt.toml ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
abi.bzl ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
allyes_images.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
Android.bp build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
avb_boot_img.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
bazel.WORKSPACE build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
BUILD.bazel Merge tag 'ASB-2026-06-01_15-6.6' of https://android.googlesource.com/kernel/common into HEAD 2026-06-03 21:41:23 +01:00
build.config.aarch64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.allmodconfig ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.allmodconfig.aarch64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.allmodconfig.arm ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.allmodconfig.x86_64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.allyesconfig build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.amlogic ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.arm ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.common ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.constants ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.crashdump ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.crashdump.aarch64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.crashdump.x86_64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.db845c ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki.aarch64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki.aarch64.fips140 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki.x86_64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki_consolidate.aarch64 build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.gki_kasan ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki_kasan.aarch64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki_kasan.x86_64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki_kprobes ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki_kprobes.aarch64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.gki_kprobes.x86_64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.khwasan ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.kunit.aarch64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.kunit.x86_64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.microdroid ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.microdroid.aarch64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.microdroid.x86_64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.msm.common build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.kera.le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.monaco build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.parrot build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.parrot.tuivm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.parrot.vm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.perf build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.pineapple build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.pineapple.oemvm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.pineapple.tuivm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.pineapple.vm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.qcs610 build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sdxkova build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sdxkova.common build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sdxkova.cpe.wkk build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sun build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sun.allyes build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sun.le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sun.oemvm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sun.tuivm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.sun.vm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.msm.vm build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.config.rockpi4 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.wonder ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
build.config.x86_64 ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
BUILD.dtc build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build.targets build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
build_with_bazel.py build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
consolidate.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
consolidate_16k.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
COPYING ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
CREDITS ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
files_gki_aarch64.txt build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
image_opts.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
Kbuild ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
Kconfig ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
Kconfig.ext ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
kera_le.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
MAINTAINERS ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
Makefile ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
modules.bzl ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
modules.list.msm.kera-le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.list.msm.monaco build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.list.msm.parrot build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.list.msm.pineapple build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.list.msm.qcs610 build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.list.msm.sun build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.list.msm.sun-le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.systemdlkm_blocklist.msm.kera-le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.systemdlkm_blocklist.msm.monaco build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.systemdlkm_blocklist.msm.parrot build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.systemdlkm_blocklist.msm.pineapple build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.systemdlkm_blocklist.msm.sun build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.systemdlkm_blocklist.msm.sun-le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.vendor_blocklist.msm.kera-le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.vendor_blocklist.msm.monaco build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.vendor_blocklist.msm.parrot build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.vendor_blocklist.msm.pineapple build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.vendor_blocklist.msm.sun build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules.vendor_blocklist.msm.sun-le build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
modules_unprotected.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
monaco.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
msm_abl.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
msm_common.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
msm_dtc.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
msm_kernel_16k_la.bzl build: bazel: Update hardcoded paths 2026-05-23 18:15:18 +00:00
msm_kernel_extensions.bzl build: bazel: Update hardcoded paths 2026-05-23 18:15:18 +00:00
msm_kernel_la.bzl build: bazel: Update hardcoded paths 2026-05-23 18:15:18 +00:00
msm_kernel_le.bzl build: bazel: Update hardcoded paths 2026-05-23 18:15:18 +00:00
msm_kernel_vm.bzl build: bazel: Update hardcoded paths 2026-05-23 18:15:18 +00:00
msm_platforms.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
OWNERS ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
parrot.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
parrot_tuivm.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
pineapple.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
pineapple_oemvm.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
pineapple_tuivm.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
pineapple_vms.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
qcs610.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
README ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
README.md ANDROID: KVM: arm64: iommu: Harden map/unmap checks 2026-06-02 16:37:35 +00:00
sdxkova.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
sdxkova_cpe_wkk.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
sun.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
sun_allyes.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
sun_le.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
sun_oemvm.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
sun_tuivm.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
sun_vms.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
target_variants.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
uapi_library.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00
uapi_unpacker.bzl build: bazel: Remove references to gki_ramdisk_prebuilt_binary 2026-05-23 18:15:18 +00:00

How do I submit patches to Android Common Kernels

  1. BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.

    • Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux, additions of EXPORT_SYMBOL_GPL() require an in-tree modular driver that uses the symbol -- so include the new driver or changes to an existing driver in the same patchset as the export.
    • When sending patches upstream, the commit message must contain a clear case for why the patch is needed and beneficial to the community. Enabling out-of-tree drivers or functionality is not a persuasive case.
  2. LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with [email protected]. If you want to proceed, post a patch that conforms to the patch requirements below.

Common Kernel patch requirements

  • All patches must conform to the Linux kernel coding standards and pass scripts/checkpatch.pl
  • Patches shall not break gki_defconfig or allmodconfig builds for arm, arm64, x86, x86_64 architectures (see https://source.android.com/setup/build/building-kernels)
  • If the patch is not merged from an upstream branch, the subject must be tagged with the type of patch: UPSTREAM:, BACKPORT:, FROMGIT:, FROMLIST:, or ANDROID:.
  • All patches must have a Change-Id: tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html)
  • If an Android bug has been assigned, there must be a Bug: tag.
  • All patches must have a Signed-off-by: tag by the author and the submitter

Additional requirements are listed below based on patch type

Requirements for backports from mainline Linux: UPSTREAM:, BACKPORT:

  • If the patch is a cherry-pick from Linux mainline with no changes at all
    • tag the patch subject with UPSTREAM:.
    • add upstream commit information with a (cherry picked from commit ...) line
    • Example:
      • if the upstream commit message is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>
  • then Joe Smith would upload the patch for the common kernel as
        UPSTREAM: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        Signed-off-by: Joe Smith <[email protected]>
  • If the patch requires any changes from the upstream version, tag the patch with BACKPORT: instead of UPSTREAM:.
    • use the same tags as UPSTREAM:
    • add comments about the changes under the (cherry picked from commit ...) line
    • Example:
        BACKPORT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        [joe: Resolved minor conflict in drivers/foo/bar.c ]
        Signed-off-by: Joe Smith <[email protected]>

Requirements for other backports: FROMGIT:, FROMLIST:,

  • If the patch has been merged into an upstream maintainer tree, but has not yet been merged into Linux mainline
    • tag the patch subject with FROMGIT:
    • add info on where the patch came from as (cherry picked from commit <sha1> <repo> <branch>). This must be a stable maintainer branch (not rebased, so don't use linux-next for example).
    • if changes were required, use BACKPORT: FROMGIT:
    • Example:
      • if the commit message in the maintainer tree is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>
  • then Joe Smith would upload the patch for the common kernel as
        FROMGIT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>

        Bug: 135791357
        (cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace
         https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch)
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <[email protected]>
  • If the patch has been submitted to LKML, but not accepted into any maintainer tree
    • tag the patch subject with FROMLIST:
    • add a Link: tag with a link to the submittal on lore.kernel.org
    • add a Bug: tag with the Android bug (required for patches not accepted into a maintainer tree)
    • if changes were required, use BACKPORT: FROMLIST:
    • Example:
        FROMLIST: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <[email protected]>

        Bug: 135791357
        Link: https://lore.kernel.org/lkml/[email protected]/
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <[email protected]>
  • If a patch has been submitted to the community, but rejected, do NOT use the FROMLIST: tag to try to hide this fact. Use the ANDROID: tag as described below as this must be considered as an Android-specific submission, not an upstream submission as the community will not accept these changes as-is.

Requirements for Android-specific patches: ANDROID:

  • If the patch is fixing a bug to Android-specific code
    • tag the patch subject with ANDROID:
    • add a Fixes: tag that cites the patch with the bug
    • Example:
        ANDROID: fix android-specific bug in foobar.c

        This is the detailed description of the important fix

        Fixes: 1234abcd2468 ("foobar: add cool feature")
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <[email protected]>
  • If the patch is a new feature
    • tag the patch subject with ANDROID:
    • add a Bug: tag with the Android bug (required for android-specific features)