mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
3c79e1658f8a0a39cb41fd27c62729cee700998a
Sync up with android12-5.10 for the following commits:fbf19aeaccgki_config: Disable CONFIG_DEBUG_STACK_USAGEb44e46bb04FROMGIT: mm: improve mprotect(R|W) efficiency on pages referenced once54e7412d4fFROMGIT: mm: slub: move sysfs slab alloc/free interfaces to debugfs45d0c6c5aaANDROID: gki - CONFIG_NET_SCH_FQ=y79f44ef795ANDROID: GKI: Kconfig.gki: Add GKI_HIDDEN_ETHERNET_CONFIGS79258e28ebFROMLIST: media: Kconfig: Fix DVB_CORE can't be selected as module0451e8af91ANDROID: Update ABI and symbol list1ac622485eRevert "net: usb: cdc_ncm: don't spew notifications"9e08e97ec6Merge 5.10.43 into android12-5.10b9ae3287e3ANDROID: Fips 140: move fips symbols entirely in own list3871aa16fdANDROID: core of xt_IDLETIMER send_nl_msg supportb4355a880aANDROID: start to re-add xt_IDLETIMER send_nl_msg supporta11dacedd6ANDROID: add fips140.ko symbols to module ABI868be244bbANDROID: inject correct HMAC digest into fips140.ko at build time6be141eb36ANDROID: crypto: fips140 - perform load time integrity check0672a69424FROMLIST: crypto: shash - stop comparing function pointers to avoid breaking CFI254da9ba36ANDROID: arm64: module: preserve RELA sections for FIPS140 integrity selfcheck15f0fc91e1ANDROID: arm64: simd: omit capability check in may_use_simd()6772dcc141ANDROID: kbuild: lto: permit the use of .a archives in LTO modulesddea30c684ANDROID: arm64: only permit certain alternatives in the FIPS140 module9c556792b7ANDROID: crypto: lib/aes - add vendor hooks for AES library routines7a689ebc67ANDROID: crypto: lib/sha256 - add vendor hook for sha256() routine4190dbd6adUPSTREAM: KVM: arm64: Mark the host stage-2 memory pools static6288fa47f4UPSTREAM: arm64: mm: don't use CON and BLK mapping if KFENCE is enablede44e1f38beUPSTREAM: x86/build: Fix location of '-plugin-opt=' flags5df654d642UPSTREAM: binder: Return EFAULT if we fail BINDER_ENABLE_ONEWAY_SPAM_DETECTION2aee873ab2UPSTREAM: usb: dwc3: imx8mp: fix error return code in dwc3_imx8mp_probe()ff1eb3fcd0UPSTREAM: usb: dwc3: core: Add missing GHWPARAMS9 doc52ce94e8bfUPSTREAM: KVM: arm64: Fix error return code in init_hyp_mode()67d005b0acUPSTREAM: KVM: arm64: Support PREL/PLT relocs in EL2 codec04f2026cfUPSTREAM: iommu/mediatek: Always enable the clk on resumec46f002566UPSTREAM: mm: page_alloc: ignore init_on_free=1 for debug_pagealloc=1282faf9977UPSTREAM: dt-bindings: iommu: mediatek: update mediatek,iommu.yaml referencesdb8e491a1bUPSTREAM: media: mtk: fix mtk-smi dependencydef7a8e7d7UPSTREAM: software node: Allow node addition to already existing deviced0db984f3eUPSTREAM: coresight: etm-perf: Fix define build issue when built as module3ddee7b2eeUPSTREAM: kbuild: lto: Merge module sections if and only if CONFIG_LTO_CLANG is enabled94cf2b2d1dUPSTREAM: kunit: tool: Disable PAGE_POISONING under --alltestsa1cc08d515UPSTREAM: gpiolib: Fix error return code in gpiolib_dev_init()5f7ec0f4c3UPSTREAM: memblock: fix section mismatch warning96fd9e07c0UPSTREAM: software node: Fix device_add_software_node()4378c305d9UPSTREAM: gpio: fix NULL-deref-on-deregistration regression2fc5237198BACKPORT: kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTOf107d073ceUPSTREAM: kbuild: lto: add _mcount to list of used symbols9bf26f0aceUPSTREAM: arm64: Add missing ISB after invalidating TLB in enter_vheb1843022a9UPSTREAM: kbuild: Move .thinlto-cache removal to 'make clean'4150d73816UPSTREAM: parisc: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRYe11b323bcaUPSTREAM: kbuild: prevent CC_FLAGS_LTO self-bloating on recursive rebuilds631b4dba04UPSTREAM: regulator: qcom-rpmh: fix build after QCOM_COMMAND_DB is tristate4e0d16b049UPSTREAM: dma-buf: cma_heap: Include linux/vmalloc.h to fix build failures on MIPS4fef0d39b8UPSTREAM: signal/parisc: Remove parisc specific definition of __ARCH_UAPI_SA_FLAGS259e0a28b9UPSTREAM: nl80211: fix kernel-doc warning in the new SAE attribute8cc6bf3aafANDROID: abi_gki_aarch64_qcom: Add cpuidle_psci and gic_resume symbols5fd82d3115ANDROID: gic-v3: Export gic_resume() for vendor GIC enhancementsfb49b843afANDROID: cpuidle-psci: Add vendor hook for cpuidle psci enter and exit6227516eedFROMGIT: usb: typec: mux: Fix copy-paste mistake in typec_mux_match623c68fc85FROMGIT: usb: typec: ucsi: Clear PPM capability data in ucsi_init() error patha685bf3fceANDROID: export cpuset_cpus_allowed()for GKI purpose.12be942aadANDROID: GKI: Update abi_gki_aarch64_qcom list for shmem reclaim951358a824Linux 5.10.43d17d47da59neighbour: allow NUD_NOARP entries to be forced GCed6b53db8c4cxen-netback: take a reference to the RX task thread316de9a88cnetfilter: nf_tables: missing error reporting for not selected expressionseddf2d9f76i2c: qcom-geni: Suspend and resume the bus during SYSTEM_SLEEP_PM opsf20eef4d06lib/lz4: explicitly support in-place decompression334c59d58dx86/kvm: Disable all PV features on crash3b0becf8b1x86/kvm: Disable kvmclock on all CPUs on shutdown38b858da1cx86/kvm: Teardown PV features on boot CPU as wellb327c97747KVM: arm64: Fix debug register indexingb3ee3f50abKVM: SVM: Truncate GPR value for DR and CR accesses in !64-bit modefe910d20e2btrfs: fix unmountable seed device after fstrim05e41f6f1cdrm/msm/dpu: always use mdp device to scale bandwidth2eb4ec9c2cmm, hugetlb: fix simple resv_huge_pages underflow on UFFDIO_COPYbaa6763123btrfs: fix deadlock when cloning inline extents and low on available space0df50d47d1btrfs: abort in rename_exchange if we fail to insert the second ref48568f3944btrfs: fixup error handling in fixup_inode_link_counts466d83fdbbbtrfs: return errors from btrfs_del_csums in cleanup_ref_head5a89982fa2btrfs: fix error handling in btrfs_del_csumsb547a16b24btrfs: mark ordered extent and inode with error if we fail to finish5e5e63bacbpowerpc/kprobes: Fix validation of prefixed instructions across page boundary42f75a4381x86/apic: Mark _all_ legacy interrupts when IO/APIC is missing3a6b69221fdrm/amdgpu: make sure we unpin the UVD BO58da0b509edrm/amdgpu: Don't query CE and UE errors48ee0db61cnfc: fix NULL ptr dereference in llcp_sock_getname() after failed connect445477e927x86/sev: Check SME/SEV support in CPUID first942c5864dex86/cpufeatures: Force disable X86_FEATURE_ENQCMD and remove update_pasid()68dcd32b32mm/page_alloc: fix counting of free pages after take off from buddy5f2e1e818emm/debug_vm_pgtable: fix alignment for pmd/pud_advanced_tests()c8d5faee46ocfs2: fix data corruption by fallocate7178be006dpid: take a reference when initializing `cad_pid`a4ed12f5edusb: dwc2: Fix build in periphal-only mode3b713aafa7ext4: fix accessing uninit percpu counter variable with fast_commit2050c6e5b1ext4: fix memory leak in ext4_mb_init_backend on error path.fb86acc623ext4: fix fast commit alignment issuesd3b668b96aext4: fix bug on in ext4_es_cache_extent as ext4_split_extent_at failed01d349a481ext4: fix memory leak in ext4_fill_superb2057d138fARM: dts: imx6q-dhcom: Add PU,VDD1P1,VDD2P5 regulators623603e255ARM: dts: imx6dl-yapp4: Fix RGMII connection to QCA8334 switch846848c052ALSA: hda: update the power_state during the direct-completecfbb57fcb1ALSA: hda: Fix for mute key LED for HP Pavilion 15-CK0xx029c06103eALSA: timer: Fix master timer notificationd11e5b96efgfs2: fix scheduling while atomic bug in glocks127f25be2fHID: multitouch: require Finger field to mark Win8 reports as MTb5d013c4c7HID: magicmouse: fix NULL-deref on disconnecta5e554f789HID: i2c-hid: Skip ELAN power-on command after reset46403c1f80net: caif: fix memory leak in cfusbl_device_notifyaf2806345anet: caif: fix memory leak in caif_device_notifyd6db727457net: caif: add proper error handlingdac53568c6net: caif: added cfserl_release functiondf3b45f6d1wireguard: allowedips: free empty intermediate nodes when removing single nodec5155c741awireguard: allowedips: allocate nodes in kmem_cache70a9a71ab3wireguard: allowedips: remove nodes in O(1)42a667715bwireguard: allowedips: initialize list head in selftest842c21d6a0wireguard: selftests: make sure rp_filter is disabled on vethcb8d72ac1f2wireguard: selftests: remove old conntrack kconfig valuef74da2c254wireguard: use synchronize_net rather than synchronize_rcud4275889acwireguard: peer: allocate in kmem_cached64fdbaec0wireguard: do not use -O374caf718ccBluetooth: use correct lock to prevent UAF of hdev object3795007c8dBluetooth: fix the erroneous flush_work() order7fa8ee00b5drm/amdgpu/jpeg3: add cancel_delayed_work_sync before power gatec129465480drm/amdgpu/jpeg2.5: add cancel_delayed_work_sync before power gate58f4d45d8ddrm/amdgpu/vcn3: add cancel_delayed_work_sync before power gateec72cb50c1io_uring: use better types for cflags0b2a990e5dio_uring: fix link timeout refs3c23e23c7ariscv: vdso: fix and clean-up Makefile282c9eeda6serial: stm32: fix threaded interrupt handlingfdf1e5eec3tipc: fix unique bearer names sanity checke31ae45ed1tipc: add extack messages for bearer/media failure0d83aec6e0bus: ti-sysc: Fix flakey idling of uarts and stop using swsup_sidle_act5592731e13ARM: dts: imx: emcon-avari: Fix nxp,pca8574 #gpio-cells67ae12a57bARM: dts: imx7d-pico: Fix the 'tuning-step' propertya776ea1ecaARM: dts: imx7d-meerkat96: Fix the 'tuning-step' property8aa4700de5arm64: dts: freescale: sl28: var4: fix RGMII clock and voltage4f323ce68earm64: dts: zii-ultra: fix 12V_MAIN voltagea3716c1933arm64: dts: ls1028a: fix memory noded551b8e857bus: ti-sysc: Fix am335x resume hang for usb otg module426ba49ec5optee: use export_uuid() to copy client UUIDd866a6e61aarm64: dts: ti: j7200-main: Mark Main NAVSS as dma-coherenta1bf16616dixgbe: add correct exception tracing for XDPe369db6cdeixgbe: optimize for XDP_REDIRECT in xsk pathad505705bbice: add correct exception tracing for XDP9e1eb42884ice: optimize for XDP_REDIRECT in xsk path7bd82b73d5ice: simplify ice_run_xdp274d6eeaafi40e: add correct exception tracing for XDPfbae1a97cei40e: optimize for XDP_REDIRECT in xsk path1958a31c03cxgb4: avoid link re-train during TC-MQPRIO configuration21d494d444i2c: qcom-geni: Add shutdown callback for i2cc4b796f20cice: Allow all LLDP packets from PF to Tx68db78345fice: report supported and advertised autoneg using PHY capabilities8726b9e81bice: handle the VF VSI rebuild failurea79883ce1eice: Fix VFR issues for AVF drivers that expect ATQLEN clearedb94580b055ice: Fix allowing VF to request more/less queues via virtchnl0987023582ipv6: Fix KASAN: slab-out-of-bounds Read in fib6_nh_flush_exceptions1dcf3d435bcxgb4: fix regression with HASH tc prio value update8067da9049ixgbevf: add correct exception tracing for XDPe0b61cda5figb: add correct exception tracing for XDPe513d88962ieee802154: fix error return code in ieee802154_llsec_getparams()2a0ba0125cieee802154: fix error return code in ieee802154_add_iface()ff5039ec75bpf, lockdown, audit: Fix buggy SELinux lockdown permission checkscdf3f6db1abpf: Simplify cases in bpf_base_func_proto4cf297ef59drm/i915/selftests: Fix return value check in live_breadcrumbs_smoketest()8d614eebc0netfilter: nfnetlink_cthelper: hit EBUSY on updates if size mismatches5f3429c05enetfilter: nft_ct: skip expectations for confirmed conntrackc440cd0807nvmet: fix freeing unallocated p2pmem2a8cda3867net/mlx5: DR, Create multi-destination flow table with level less than 64c8972cf28enet/mlx5e: Check for needed capability for cvlan matching7307003375net/mlx5: Check firmware sync reset requested is set before trying to abort itc1ea8c0e71net/mlx5e: Fix incompatible castingf1d4184f12net/tls: Fix use-after-free after the TLS device goes down and up874ece252enet/tls: Replace TLS_RX_SYNC_RUNNING with RCUa5de17bb91net: sock: fix in-kernel mark setting09fdb6747bnet: dsa: tag_8021q: fix the VLAN IDs used for encoding sub-VLANs091283e3d5perf probe: Fix NULL pointer dereference in convert_variable_location()100c872c75ACPICA: Clean up context mutex during object deletiondf7c913f90nvme-rdma: fix in-casule data send for chained sglsb198f77a36mptcp: always parse mptcp options for MPC reqskbe0d850726net/sched: act_ct: Fix ct template allocation for zone 0f07c548314net/sched: act_ct: Offload connections with commit action4f00f9c169devlink: Correct VIRTUAL port to not have phys_port attributes56c45ab00aHID: i2c-hid: fix format string mismatch744db828d6HID: pidff: fix error return code in hid_pidff_init()39b92726a3HID: logitech-hidpp: initialize level variable4b1aba6536ipvs: ignore IP_VS_SVC_F_HASHED flag when adding service46ae882bb1vfio/platform: fix module_put call in error flow2adb0313b1samples: vfio-mdev: fix error handing in mdpy_fb_probe()c25454a4f4vfio/pci: zap_vma_ptes() needs MMUc303db1211vfio/pci: Fix error return code in vfio_ecap_init()8d27efbb0eefi: cper: fix snprintf() use in cper_dimm_err_location()951f8ef71defi/libstub: prevent read overflow in find_file_option()b828601c75efi: Allow EFI_MEMORY_XP and EFI_MEMORY_RO both to be cleared5148066edbefi/fdt: fix panic when no valid fdt found39a909a972netfilter: conntrack: unregister ipv4 sockopts on error unwind46e6506179hwmon: (pmbus/isl68137) remove READ_TEMPERATURE_3 for RAA2282280d0df2e532hwmon: (dell-smm-hwmon) Fix index values70df000fb8net: usb: cdc_ncm: don't spew notifications1d62b7ac83btrfs: tree-checker: do not error out if extent ref hash doesn't match Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Iec4213b0df8a7d7e04c480e99c62e197f4f58ef9
…
How do I submit patches to Android Common Kernels
-
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 not a persuasive case.
- Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux,
additions of
-
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:, orANDROID:. - 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
- tag the patch subject with
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 commit 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 ofUPSTREAM:.- use the same tags as
UPSTREAM: - add comments about the changes under the
(cherry picked from commit ...)line - Example:
- use the same tags as
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 commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
[joe: 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 uselinux-nextfor example). - if changes were required, use
BACKPORT: FROMGIT: - Example:
- if the commit message in the maintainer tree is
- tag the patch subject with
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 - 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:
- tag the patch subject with
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:
- tag the patch subject with
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)
- tag the patch subject with
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%