No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Greg Kroah-Hartman d13b9b5a0a Merge tag 'android11-5.4.301_r00' into android11-5.4
This merges the android11-5.4.301_r00 tag into the android11-5.4 branch,
catching it up with the latest LTS releases.

It contains the following commits:

* 6c4d697461 ANDROID: GKI: fix up build break where timer_delete_sync() was used
* d9d086d36e Revert "net: rtnetlink: remove redundant assignment to variable err"
* 85c7d734c7 Revert "net: rtnetlink: add msg kind names"
* 3f77162543 Revert "net: rtnetlink: add helper to extract msg type's kind"
* 2c1c741fc7 Revert "net: rtnetlink: use BIT for flag values"
* 11a4078a8a Revert "net: netlink: add NLM_F_BULK delete request modifier"
* fc27935e9f Revert "net: rtnetlink: add bulk delete support flag"
* 49a5ba893c Revert "net: rtnetlink: fix module reference count leak issue in rtnetlink_rcv_msg"
* 2a0670011e Revert "net: add ndo_fdb_del_bulk"
* af72578d25 Revert "net: rtnetlink: add NLM_F_BULK support to rtnl_fdb_del"
* 13a2c8a68f Revert "rtnetlink: Allow deleting FDB entries in user namespace"
*   f6520a7c91 Merge 5.4.301 into android11-5.4-lts
|\
| * 2e58fc1413 Linux 5.4.301
| * 283ee8ce3b net: rtnetlink: fix module reference count leak issue in rtnetlink_rcv_msg
| * 7d993371c1 media: s5p-mfc: remove an unused/uninitialized variable
| * 61e8a8c424 NFSD: Fix last write offset handling in layoutcommit
| * 702d8d6e7e NFSD: Minor cleanup in layoutcommit processing
| * a39ae0d8f8 padata: Reset next CPU when reorder sequence wraps around
| * 07861d6371 KEYS: trusted_tpm1: Compare HMAC values in constant time
| * a75994dd87 NFSD: Define a proc_layoutcommit for the FlexFiles layout type
| * b5abafd0aa vfs: Don't leak disconnected dentries on umount
| * 71cdb58dc7 jbd2: ensure that all ongoing I/O complete before freeing blocks
| * 4954d297c9 ext4: detect invalid INLINE_DATA + EXTENTS flag combination
| * 301c668d5e drm/amdgpu: use atomic functions with memory barriers for vm fault info
| * 7bf46ff83a ext4: avoid potential buffer over-read in parse_apply_sb_mount_options()
| * 05eb29effe spi: cadence-quadspi: Flush posted register writes before DAC access
| * 4612070e4c spi: cadence-quadspi: Flush posted register writes before INDAC access
| * 5879837bfe memory: samsung: exynos-srom: Fix of_iomap leak in exynos_srom_probe
| * a8e7fc99d4 memory: samsung: exynos-srom: Correct alignment
| * 133bb61caf arm64: errata: Apply workarounds for Neoverse-V3AE
| * 0db16ce5e5 arm64: cputype: Add Neoverse-V3AE definitions
| * 4ffea48c69 comedi: fix divide-by-zero in comedi_buf_munge()
| * 9d053f9856 binder: remove "invalid inc weak" check
| * 428c804752 xhci: dbc: enable back DbC in resume if it was enabled before suspend
| * 02a089cf40 usb/core/quirks: Add Huawei ME906S to wakeup quirk
| * 2b24cd3ab1 USB: serial: option: add Telit FN920C04 ECM compositions
| * e9639d4237 USB: serial: option: add Quectel RG255C
| * 84c73088ec USB: serial: option: add UNISOC UIS7720
| * 14b68ab4f6 net: ravb: Ensure memory write completes before ringing TX doorbell
| * a8749742e6 net: usb: rtl8150: Fix frame padding
| * 93166bc53c ocfs2: clear extent cache after moving/defragmenting extents
| * d7fb245842 MIPS: Malta: Fix keyboard resource preventing i8042 driver from registering
| * 5568efa5bd Revert "cpuidle: menu: Avoid discarding useful information"
| * 839028e70a net: bonding: fix possible peer notify event loss or dup issue
| * 61cda2777b sctp: avoid NULL dereference when chunk data buffer is missing
| * b735a3e81b arm64, mm: avoid always making PTE dirty in pte_mkwrite()
| * 5f192fdc26 net: enetc: correct the value of ENETC_RXB_TRUESIZE
| * 509da3463f rtnetlink: Allow deleting FDB entries in user namespace
| * 4b7140925d net: rtnetlink: add NLM_F_BULK support to rtnl_fdb_del
| * 7111cc9552 net: add ndo_fdb_del_bulk
| * 2b0d1dc340 net: rtnetlink: add bulk delete support flag
| * 6dea96a841 net: netlink: add NLM_F_BULK delete request modifier
| * b3eed4bf84 net: rtnetlink: use BIT for flag values
| * 85c154222d net: rtnetlink: add helper to extract msg type's kind
| * a8b1eeb931 net: rtnetlink: add msg kind names
| * c49d31809a net: rtnetlink: remove redundant assignment to variable err
| * fdc8217820 m68k: bitops: Fix find_*_bit() signatures
| * 7e173b4ee1 hfsplus: return EIO when type of hidden directory mismatch in hfsplus_fill_super()
| * fc56548fca hfs: fix KMSAN uninit-value issue in hfs_find_set_zero_bits()
| * 1b87b8f872 dlm: check for defined force value in dlm_lockspace_release
| * a2bee43b45 hfsplus: fix KMSAN uninit-value issue in hfsplus_delete_cat()
| * f7d9f600c7 hfs: validate record offset in hfsplus_bmap_alloc
| * c1ec90bed5 hfsplus: fix KMSAN uninit-value issue in __hfsplus_ext_cache_extent()
| * f823d27308 hfs: make proper initalization of struct hfs_find_data
| * 257271282a hfs: clear offset and space out of valid records in b-tree node
| * 577b13e5b2 exec: Fix incorrect type for ret
| * 603158d4ef hfsplus: fix slab-out-of-bounds read in hfsplus_strcasecmp()
| * 7196826274 ALSA: firewire: amdtp-stream: fix enum kernel-doc warnings
| * d0936c8b07 sched/fair: Fix pelt lost idle time detection
| * ca51183ed9 sched/balancing: Rename newidle_balance() => sched_balance_newidle()
| * 7335a5a006 sched/fair: Trivial correction of the newidle_balance() comment
| * d8dd04003c sched: Make newidle_balance() static again
| * 3477af7026 tls: don't rely on tx_work during send()
| * 12027b0990 tls: always set record_type in tls_process_cmsg
| * e06a8f2ff7 tg3: prevent use of uninitialized remote_adv and local_adv variables
| * 8b7ac7af3a tcp: fix tcp_tso_should_defer() vs large RTT
| * 96fac1bbd2 amd-xgbe: Avoid spurious link down messages during interface toggle
| * 566f8d5c8a net/ip6_tunnel: Prevent perpetual tunnel growth
| * eb8be540b5 net: dlink: handle dma_map_single() failure properly
| * 75ca4fd107 net: dl2k: switch from 'pci_' to 'dma_' API
| * 6c397c1b33 media: pci: ivtv: Add missing check after DMA map
| * 1b00b73350 media: pci/ivtv: switch from 'pci_' to 'dma_' API
| * 979dca8d24 xen/events: Update virq_to_irq on migration
| * 83fc1f68fb media: lirc: Fix error handling in lirc_register()
| * bc35a8cc8a media: rc: Directly use ida_free()
| * e73416a108 drm/exynos: exynos7_drm_decon: remove ctx->suspended
| * 60de2f55d2 btrfs: avoid potential out-of-bounds in btrfs_encode_fh()
| * da3cadb8b0 pwm: berlin: Fix wrong register in suspend/resume
| * 18b7e4b960 media: cx18: Add missing check after DMA map
| * 0aa9e273ac xen/events: Cleanup find_virq() return codes
| * 68151c7120 cramfs: Verify inode mode when loading from disk
| * 6ad65ae94d fs: Add 'initramfs_options' to set initramfs mount options
| * 75dbc029c5 pid: Add a judgment for ns null in pid_nr_ns
| * 6b9f2563bd minixfs: Verify inode mode when loading from disk
| * 07926ce598 tracing: Fix race condition in kprobe initialization causing NULL pointer dereference
| * 9dc43ea6a2 dm: fix NULL pointer dereference in __dm_suspend()
| * 642ff39838 mfd: intel_soc_pmic_chtdc_ti: Set use_single_read regmap_config flag
| * 09fa52968a mfd: intel_soc_pmic_chtdc_ti: Drop unneeded assignment for cache_type
| * b8a2083822 mfd: intel_soc_pmic_chtdc_ti: Fix invalid regmap-config max_register value
| * 54170057a5 Squashfs: reject negative file sizes in squashfs_read_inode()
| * 5b5cd739c5 Squashfs: add additional inode sanity checking
| * dd156f44ea media: mc: Clear minor number before put device
| * 38bdc302c5 mfd: vexpress-sysreg: Check the return value of devm_gpiochip_add_data()
| * 14496175b2 fs: udf: fix OOB read in lengthAllocDescs handling
| * a908eca437 KVM: x86: Don't (re)check L1 intercepts when completing userspace I/O
| * a5901a0dfb net/9p: fix double req put in p9_fd_cancelled
| * ea39e712c2 ext4: guard against EA inode refcount underflow in xattr update
| * 7a1286e5a8 ext4: correctly handle queries for metadata mappings
| * a87def3f44 ext4: increase i_disksize to offset + len in ext4_update_disksize_before_punch()
| * 16013e03e4 nfsd: nfserr_jukebox in nlm_fopen should lead to a retry
| * 1c572370fd x86/umip: Fix decoding of register forms of 0F 01 (SGDT and SIDT aliases)
| * ad5c71fa9b x86/umip: Check that the instruction opcode is at least two bytes
| * e1bfc50444 PCI: keystone: Use devm_request_irq() to free "ks-pcie-error-irq" on exit
| * 43a7d0beff PCI/AER: Fix missing uevent on recovery when a reset is requested
| * 5c1cd7d405 PCI/IOV: Add PCI rescan-remove locking when enabling/disabling SR-IOV
| * 9f363bf6f9 rseq/selftests: Use weak symbol reference, not definition, to link with glibc
| * 524e37f785 rtc: interface: Fix long-standing race when setting alarm
| * 755e5a8ffb rtc: interface: Ensure alarm irq is enabled when UIE is enabled
| * 8613c9fb1c mmc: core: SPI mode remove cmd7
| * d70c726547 mtd: rawnand: fsmc: Default to autodetect buswidth
| * bf70d603af sparc: fix error handling in scan_one_device()
| * bbb085bc0a sparc64: fix hugetlb for sun4u
| * b93fa8dc52 sctp: Fix MAC comparison to be constant-time
| * 76307bb571 scsi: hpsa: Fix potential memory leak in hpsa_big_passthru_ioctl()
| * 9cad93c788 parisc: don't reference obsolete termio struct for TC* constants
| * 41e5d9cef3 lib/genalloc: fix device leak in of_gen_pool_get()
| * e19da48937 iio: frequency: adf4350: Fix prescaler usage.
| * ae75b83897 iio: dac: ad5421: use int type to store negative error codes
| * d0bdae59b2 iio: dac: ad5360: use int type to store negative error codes
| * 4819f5f864 crypto: atmel - Fix dma_unmap_sg() direction
| * 15ac9579eb cpufreq: intel_pstate: Fix object lifecycle issue in update_qos_request()
| * 868ce19497 drm/nouveau: fix bad ret code in nouveau_bo_move_prep
| * 9dc4dc99f9 media: i2c: mt9v111: fix incorrect type for ret
| * f08cbec8ce firmware: meson_sm: fix device leak at probe
| * aa35033261 xen/manage: Fix suspend error path
| * fe9f84cc90 arm64: dts: qcom: msm8916: Add missing MDSS reset
| * 6beaa602f6 ACPI: debug: fix signedness issues in read/write helpers
| * e2512755bc ACPI: TAD: Add missing sysfs_remove_group() for ACPI_TAD_RT
| * 41d73f8054 tpm_tis: Fix incorrect arguments in tpm_tis_probe_irq_single
| * dae78a1d64 tpm, tpm_tis: Claim locality before writing interrupt registers
| * 29294dd6f1 crypto: essiv - Check ssize for decryption and in-place encryption
| * 4e5a929f5c mailbox: zynqmp-ipi: Remove dev.parent check in zynqmp_ipi_free_mboxes
| * 5906eede6f mailbox: zynqmp-ipi: Remove redundant mbox_controller_unregister() call
| * aeb1fe8a52 tools build: Align warning options with perf
| * 7a12f1a184 net: fsl_pq_mdio: Fix device node reference leak in fsl_pq_mdio_probe
| * e359b742ea tcp: Don't call reqsk_fastopen_remove() in tcp_conn_request().
| * 1014b83778 net/sctp: fix a null dereference in sctp_disposition sctp_sf_do_5_1D_ce()
| * 1822e5287b drm/vmwgfx: Fix Use-after-free in validation
| * 2357cf8954 net/mlx4: prevent potential use after free in mlx4_en_do_uc_filter()
| * a6f68f219d scsi: mvsas: Fix use-after-free bugs in mvs_work_queue
| * 87e2fc78aa scsi: mvsas: Use sas_task_find_rq() for tagging
| * 3a635fab5c scsi: mvsas: Delete mvs_tag_init()
| * c51f9de091 scsi: libsas: Add sas_task_find_rq()
| * 0cbbf2741f clk: nxp: Fix pll0 rate check condition in LPC18xx CGU driver
| * 5bc41ef2e7 clk: nxp: lpc18xx-cgu: convert from round_rate() to determine_rate()
| * 681e7a933f perf session: Fix handling when buffer exceeds 2 GiB
| * c8a20c9ef7 rtc: x1205: Fix Xicor X1205 vendor prefix
| * bc4eb7e7df perf util: Fix compression checks returning -1 as bool
| * 662995895f iio: frequency: adf4350: Fix ADF4350_REG3_12BIT_CLKDIV_MODE
| * 20fd916244 clocksource/drivers/clps711x: Fix resource leaks in error paths
| * 1a7fc8fed2 pinctrl: check the return value of pinmux_ops::get_function_name()
| * 1b31779601 Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak
| * 30498c44c2 mm: hugetlb: avoid soft lockup when mprotect to large memory area
| * 540aac117e uio_hv_generic: Let userspace take care of interrupt mask
| * f81a5bc9e9 Squashfs: fix uninit-value in squashfs_get_parent
| * d8e8528007 Revert "net/mlx5e: Update and set Xon/Xoff upon MTU set"
| * 49f9f4c5cb net: ena: return 0 in ena_get_rxfh_key_size() when RSS hash key is not configurable
| * 21f7d60a89 nfp: fix RSS hash key size when RSS is not supported
| * ef442edff2 drivers/base/node: fix double free in register_one_node()
| * 283333079d ocfs2: fix double free in user_cluster_connect()
| * cce3c0e21c net: usb: Remove disruptive netif_wake_queue in rtl8150_set_multicast
| * 18b8163807 RDMA/siw: Always report immediate post SQ errors
| * 0ba8541351 usb: vhci-hcd: Prevent suspending virtually attached devices
| * b3a6d15386 scsi: mpt3sas: Fix crash in transport port remove by using ioc_info()
| * 8a6ecab384 ipvs: Defer ip_vs_ftp unregister during netns cleanup
| * 5e4b916024 NFSv4.1: fix backchannel max_resp_sz verification check
| * f29579803b remoteproc: qcom: q6v5: Avoid disabling handover IRQ twice
| * 03db640a5c sparc: fix accurate exception reporting in copy_{from,to}_user for M7
| * c171f8e02a sparc: fix accurate exception reporting in copy_to_user for Niagara 4
| * 05440320ea sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara
| * fdd43fe6d2 sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC III
| * 0bf3dc3a21 sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC
| * b81739e033 IB/sa: Fix sa_local_svc_timeout_ms read race
| * bd1aaea359 RDMA/core: Resolve MAC of next-hop device without ARP support
| * c24a1f683b wifi: mt76: fix potential memory leak in mt76_wmac_probe()
| * 9f4ef845d2 drivers/base/node: handle error properly in register_one_node()
| * 7b323e67d2 watchdog: mpc8xxx_wdt: Reload the watchdog timer when enabling the watchdog
| * e16592112d netfilter: ipset: Remove unused htable_bits in macro ahash_region
| * e7c31aac98 iio: consumers: Fix offset handling in iio_convert_raw_to_processed()
| * bff827b0d5 ASoC: Intel: bytcr_rt5651: Fix invalid quirk input mapping
| * 2c27e047bd ASoC: Intel: bytcr_rt5640: Fix invalid quirk input mapping
| * ef7028c957 ASoC: Intel: bytcht_es8316: Fix invalid quirk input mapping
| * 38c7bb10aa pps: fix warning in pps_register_cdev when register device fail
| * 3564c62d10 misc: genwqe: Fix incorrect cmd field being reported in error
| * b86de42c42 usb: gadget: configfs: Correctly set use_os_string at bind
| * a88df38970 usb: phy: twl6030: Fix incorrect type for ret
| * 4f88c5c187 tcp: fix __tcp_close() to only send RST when required
| * c523bdc6ae PCI: tegra: Fix devm_kcalloc() argument order for port->phys allocation
| * 58ce953c01 wifi: mwifiex: send world regulatory domain to driver
| * 534b6c26d1 ALSA: lx_core: use int type to store negative error codes
| * a05e38d179 media: rj54n1cb0c: Fix memleak in rj54n1_probe()
| * d186a8200b scsi: myrs: Fix dma_alloc_coherent() error check
| * d94be0a6ae scsi: pm80xx: Fix array-index-out-of-of-bounds on rmmod
| * 148aba0be5 serial: max310x: Add error checking in probe()
| * 89838fe5c6 usb: host: max3421-hcd: Fix error pointer dereference in probe cleanup
| * 3e992a82d5 drm/radeon/r600_cs: clean up of dead code in r600_cs
| * 46b35621d6 i2c: designware: Add disabling clocks when probe fails
| * 7dc48c447a i2c: mediatek: fix potential incorrect use of I2C_MASTER_WRRD
| * de44cdc50d bpf: Explicitly check accesses to bpf_sock_addr
| * 93818c7ce4 selftests: watchdog: skip ping loop if WDIOF_KEEPALIVEPING not supported
| * abf7cf212a pwm: tiehrpwm: Fix corner case in clock divisor calculation
| * 48d6e1424c block: use int to store blk_stack_limits() return value
| * a8c53553f1 blk-mq: check kobject state_in_sysfs before deleting in blk_mq_unregister_hctx
| * 6d39bc327c pinctrl: meson-gxl: add missing i2c_d pinmux
| * cdf96ac33a soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS
| * 7c4d9b3177 ACPI: processor: idle: Fix memory leak when register cpuidle device failed
| * 4b48bfa2e5 regmap: Remove superfluous check for !config in __regmap_init()
| * dfd57c6210 x86/vdso: Fix output operand size of RDPID
| * 656e9a5d69 perf: arm_spe: Prevent overflow in PERF_IDX2OFF()
| * a9f8f33f5d driver core/PM: Set power.no_callbacks along with power.no_pm
| * 86bdd3deca staging: axis-fifo: flush RX FIFO on read errors
| * 5873888534 staging: axis-fifo: fix maximum TX packet length check
| * e58778d9c8 perf subcmd: avoid crash in exclude_cmds when excludes is empty
| * cbffccccc8 dm-integrity: limit MAX_TAG_SIZE to 255
| * 463222f233 wifi: rtlwifi: rtl8192cu: Don't claim USB ID 07b8:8188
| * a1f24c2e91 USB: serial: option: add SIMCom 8230C compositions
| * 9348976003 media: rc: fix races with imon_disconnect()
| * e1b1ba1864 media: imon: grab lock earlier in imon_ir_change_protocol()
| * ab5d16511e media: imon: reorganize serialization
| * f61cad824f media: rc: Add support for another iMON 0xffdc device
| * 9205fb6e61 media: i2c: tc358743: Fix use-after-free bugs caused by orphan timer in probe
| * bc4ffd962c media: tuner: xc5000: Fix use-after-free in xc5000_release
| * 0006640fb7 media: tunner: xc5000: Refactor firmware load
| * 1355027317 udp: Fix memory accounting leak.
| * 607010d07b media: b2c2: Fix use-after-free causing by irq_check_work in flexcop_pci_remove
| * e6eeee5dc0 scsi: target: target_core_configfs: Add length check to avoid buffer overflow
* cdb7045549 Merge android11-5.4 into android11-5.4-lts

Change-Id: If506ff4ca59154a08ec491ff09df49463e952cb7
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2025-11-24 09:59:06 +00:00
android ANDROID: GKI: update Trimble symbol list 2025-08-12 16:58:01 +08:00
arch This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
block This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
certs
crypto This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
Documentation This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
drivers ANDROID: GKI: fix up build break where timer_delete_sync() was used 2025-10-31 08:05:55 +00:00
fs This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
include Revert "net: rtnetlink: add msg kind names" 2025-10-31 07:58:56 +00:00
init This is the 5.4.296 stable release 2025-07-18 10:57:54 +00:00
ipc ipc: fix to protect IPCS lookups using RCU 2025-06-27 11:02:52 +01:00
kernel This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
lib This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
LICENSES
mm This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
net Revert "net: rtnetlink: remove redundant assignment to variable err" 2025-10-31 07:59:01 +00:00
samples This is the 5.4.297 stable release 2025-09-02 10:52:40 +00:00
scripts This is the 5.4.299 stable release 2025-09-10 05:55:28 +00:00
security This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
sound This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
tools This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
usr kbuild: hdrcheck: fix cross build with clang 2025-07-17 18:24:51 +02:00
virt KVM: arm64: Ignore PMCNTENSET_EL0 while checking for overflow status 2024-12-19 18:05:04 +01:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore Remove *.orig pattern from .gitignore 2024-11-08 16:20:33 +01:00
.mailmap
build.config.aarch64
build.config.allmodconfig
build.config.allmodconfig.aarch64
build.config.allmodconfig.arm
build.config.allmodconfig.x86_64
build.config.arm
build.config.common
build.config.db845c
build.config.gki
build.config.gki-debug.aarch64
build.config.gki-debug.x86_64
build.config.gki.aarch64 ANDROID: GKI: add Trimble symbol list 2025-01-16 06:41:15 -08:00
build.config.gki.x86_64
build.config.gki_kasan
build.config.gki_kasan.aarch64
build.config.gki_kasan.x86_64
build.config.gki_kprobes
build.config.gki_kprobes.aarch64
build.config.gki_kprobes.x86_64
build.config.hikey960
build.config.x86_64
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS This is the 5.4.295 stable release 2025-06-30 08:05:33 +00:00
Makefile This is the 5.4.301 stable release 2025-10-30 07:52:10 +00:00
OWNERS
README
README.md

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.

  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 kernel-team@android.com. 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 script/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 ...) 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 <fred.jones@foo.org>
    - 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 <fred.jones@foo.org>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry-picked from c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • 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 ...) line
    • Example:
        BACKPORT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

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

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 <fred.jones@foo.org>
    - 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 <fred.jones@foo.org>

        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 <joe.smith@foo.org>
  • 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
    • 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 <fred.jones@foo.org>

        Bug: 135791357
        Link: https://lore.kernel.org/lkml/20190619171517.GA17557@someone.com/
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>

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 <joe.smith@foo.org>
  • 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)