mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
bf760358eac3e5e80e38cfe99d7fdee5309260c6
Sync up with android12-5.10 for the following commits:d0782c9411Merge tag 'android12-5.10.160_r00' into android12-5.10e12e360999ANDROID: usb: f_accessory: Check buffer size when initialised via compositeca53b8f1b4BACKPORT: mm: make minimum slab alignment a runtime propertyb10e8ec405BACKPORT: printk: stop including cache.h from printk.hce6cc743caUPSTREAM: kasan: fix a missing header include of static_keys.h3519fc246dBACKPORT: kasan: split kasan_*enabled() functions into a separate header56583c9472UPSTREAM: usb: gadget: f_fs: Ensure ep0req is dequeued before free_requestb44330f50cUPSTREAM: usb: gadget: f_fs: Prevent race during ffs_ep0_queue_waitd53fb78733UPSTREAM: usb: dwc3: gadget: conditionally remove requests75a4f0b5e1UPSTREAM: usb: dwc3: ep0: Properly handle setup_packet_pending scenario in data stage767a360826UPSTREAM: usb: dwc3: gadget: Fix IN endpoint max packet size allocation7b90f7b05eUPSTREAM: usb: dwc3: gadget: Delay issuing End Transfer4678fabb6eUPSTREAM: usb: dwc3: gadget: Only End Transfer for ep0 data phasea79e848e52UPSTREAM: usb: dwc3: ep0: Don't prepare beyond Setup stage802b4745f7UPSTREAM: usb: dwc3: gadget: move cmd_endtransfer to extra function33b5613a43UPSTREAM: usb: dwc3: gadget: ep_queue simplify isoc start conditiond099b9a70eUPSTREAM: usb: dwc3: gadget: Skip reading GEVNTSIZn15b61c98d6UPSTREAM: usb: dwc3: gadget: Ignore Update Transfer cmd params0761373d2fUPSTREAM: usb: dwc3: gadget: Skip checking Update Transfer status7d1d982f57UPSTREAM: pstore: Properly assign mem_type propertyc83ab50b6eBACKPORT: ext4: fix use-after-free in ext4_rename_dir_prepareab89185ddbANDROID: GKI: rockchip: Update symbols6e50bbff17BACKPORT: f2fs: let's avoid panic if extent_tree is not created39b8fee3c0BACKPORT: f2fs: should use a temp extent_info for lookup937ed4eddaBACKPORT: f2fs: don't mix to use union values in extent_info073b997b02BACKPORT: f2fs: initialize extent_cache parameteraa064914fdBACKPORT: f2fs: add block_age-based extent cached6ba4dceabBACKPORT: f2fs: allocate the extent_cache by default72e9dd90cfBACKPORT: f2fs: refactor extent_cache to support for read and more561e9febb3BACKPORT: f2fs: remove unnecessary __init_extent_treebf3cafe7f1BACKPORT: f2fs: move internal functions into extent_cache.cb29b3bd7e1BACKPORT: f2fs: specify extent cache for read explicitly02cb04cb05BACKPORT: f2fs: add "c_len" into trace_f2fs_update_extent_tree_range for compressed filef6b4d18df0BACKPORT: f2fs: fix race condition on setting FI_NO_EXTENT flag3112d6f502BACKPORT: f2fs: extent cache: support unaligned extent25280f263dUPSTREAM: io_uring: kill goto error handling in io_sqpoll_wait_sq()7c31ae524cANDROID: allmodconfig: disable WERROR824c55581dUPSTREAM: Enable '-Werror' by default for all kernel builds447ba7ae75ANDROID: GKI: VIVO: Add a symbol to symbol list91e4675508ANDROID: fips140: add crypto_memneq() back to the moduleb460d3c09aANDROID: GKI: rockchip: Update module fragment and symbol list91e760f1f2ANDROID: GKI: rockchip: Enable symbols for HDMIRX1960d4cfadANDROID: GKI: rockchip: Enable symbols for Ethernet529351c4c8ANDROID: Re-enable fast mremap and fix UAF with SPFc67f268c84Revert "ANDROID: Make SPF aware of fast mremaps"1351459097ANDROID: GKI: Update symbols to symbol listfe60669d03ANDROID: fips140: add dump_jitterentropy command to fips140_lab_util6d015667ceUPSTREAM: io_uring: add missing item types for splice requestad1f2eebadANDROID: GKI: update xiaomi symbol listf677efbea1Revert "Revert "ANDROID: vendor_hooks:vendor hook for mmput""a43cd1f2bbRevert "Revert "ANDROID: vendor_hooks:vendor hook for __alloc_pages_slowpath.""9e6fb5ac72ANDROID: GKI: rockchip: Add symbol clk_hw_set_parent7bc2b8c400UPSTREAM: usb: dwc3: core: Add error log when core soft reset failed05a8f2c4d2FROMLIST: fuse: give wakeup hints to the scheduler134c1aae43ANDROID: Make SPF aware of fast mremaps16c03440dfANDROID: GKI: enable mulitcolor-led4aa3cab588UPSTREAM: HID: playstation: support updated DualSense rumble mode.63b2567f9dUPSTREAM: HID: playstation: add initial DualSense Edge controller supporta3ea8fbc1fUPSTREAM: HID: playstation: stop DualSense output work on remove.a301358cb5UPSTREAM: HID: playstation: convert to use dev_groups62964653b7UPSTREAM: HID: playstation: fix return from dualsense_player_led_set_brightness()f7901b46a2UPSTREAM: HID: playstation: expose DualSense player LEDs through LED class.a70e598cefUPSTREAM: leds: add new LED_FUNCTION_PLAYER for player LEDs for game controllers.e1cd3ffe47UPSTREAM: HID: playstation: expose DualSense lightbar through a multi-color LED.65654da06dUPSTREAM: Documentation: leds: standartizing LED namesd37e563bffANDROID: usb: gadget: uvc: remove duplicate code in unbind8ad88eae4bANDROID: dma-buf: Fix build breakage with !CONFIG_DMABUF_SYSFS_STATSce18af9b5dANDROID: dma-buf: don't re-purpose kobject as work_structeddb2f39cdUPSTREAM: drm/amdgpu: temporarily disable broken Clang builds due to blown stack-framee2a4080d04BACKPORT: Kconfig.debug: provide a little extra FRAME_WARN leeway when KASAN is enabled98671fcc32UPSTREAM: bpf: Ensure correct locking around vulnerable function find_vpid()01b3d953acBACKPORT: UPSTREAM: usb: typec: ucsi: Wait for the USB role switches37725ca62eUPSTREAM: HID: roccat: Fix use-after-free in roccat_read()8f0752d06eANDROID: arm64: mm: perform clean & invalidation in __dma_map_aread55aeb4029BACKPORT: ANDROID: dma-buf: heaps: replace mutex lock with spinlock9ef4727680Merge tag 'android12-5.10.149_r00' into android12-5.10ac30bb6084UPSTREAM: binder: Gracefully handle BINDER_TYPE_FDA objects with num_fds=0befa134c53UPSTREAM: binder: Address corner cases in deferred copy and fixup8494d73eebUPSTREAM: binder: fix pointer cast warning3e7e7f4b10UPSTREAM: binder: defer copies of pre-patched txn data58fd89db0dUPSTREAM: binder: read pre-translated fds from sender buffer92a864d9dbUPSTREAM: binder: avoid potential data leakage when copying txnd95f5e3da7ANDROID: khugepaged: fix mixing declarations warning in retract_page_tablesaaf03dd58cANDROID: mm: fix build issue in spf when CONFIG_USERFAULTFD=n1c828eb3daANDROID: mm: disable speculative page faults for CONFIG_NUMA1900436df5ANDROID: mm: fix invalid backport in speculative page fault path0f43357d37ANDROID: disable page table moves when speculative page faults are enabledd65d4a0538ANDROID: mm: assert that mmap_lock is taken exclusively in vm_write_beginbfdcf47ca3ANDROID: mm: remove sequence counting when mmap_lock is not exclusively owned5ed391bd8aANDROID: mm/khugepaged: add missing vm_write_{begin|end}59d4d125b7BACKPORT: FROMLIST: mm: implement speculative handling in filemap_fault()2bb39b9121ANDROID: mm: prevent reads of unstable pmd during speculation4b388752acANDROID: mm: prevent speculative page fault handling for in do_swap_page()0560f5f7b3ANDROID: mm: prevent speculative page fault handling for userfaults1169f70f8fANDROID: mm: skip pte_alloc during speculative page faultd84fac9795FROMGIT: mm/madvise: fix madvise_pageout for private file mappingsc7eb32a49fANDROID: GKI: Update symbols to symbol listdcdb7eadfdRevert "FROMGIT: mm/vmalloc: Add override for lazy vunmap"450a37133dRevert "FROMGIT: arm64: Work around Cortex-A510 erratum 2454944"015859081aUPSTREAM: efi: capsule-loader: Fix use-after-free in efi_capsule_write02e1387801FROMGIT: arm64: Work around Cortex-A510 erratum 2454944abb277d9f1FROMGIT: mm/vmalloc: Add override for lazy vunmap68d4b5fef2BACKPORT: mm/page_alloc: always initialize memory map for the holesa8997cb185UPSTREAM: usb: dwc3: gadget: Submit endxfer command if delayed during disconnect910e9e6049UPSTREAM: usb: dwc3: Fix ep0 handling when getting reset while doing control transfere0243d1991UPSTREAM: mm/damon/core: initialize damon_target->list in damon_new_target()82b904105aUPSTREAM: usb: typec: ucsi: Remove incorrect warning5f1257b5ffUPSTREAM: xhci: Don't show warning for reinit on known broken suspend2df2e2c084UPSTREAM: mm/damon: validate if the pmd entry is present before accessinged91943b48UPSTREAM: mm/damon/dbgfs: fix memory leak when using debugfs_lookup()3093f8b52cUPSTREAM: mm/damon/dbgfs: avoid duplicate context directory creation3f23bb2255UPSTREAM: crypto: lib - remove unneeded selection of XOR_BLOCKSbf4603f495UPSTREAM: pinctrl: sunxi: Fix name for A100 R_PIOa0630a0536UPSTREAM: cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all()2a11f678f6BACKPORT: usb: gadget: f_uac2: fix superspeed transfer347d7198a6BACKPORT: usb: dwc3: qcom: fix runtime PM wakeupaf723545edUPSTREAM: KVM: arm64: Reject 32bit user PSTATE on asymmetric systems8407a5ca14UPSTREAM: KVM: arm64: Treat PMCR_EL1.LC as RES1 on asymmetric systemsf1bf5340cdUPSTREAM: Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regressionfdc033d445UPSTREAM: mm: fix page leak with multiple threads mapping the same page5b71c43f5cUPSTREAM: PM: domains: Ensure genpd_debugfs_dir exists before remove0805a01852UPSTREAM: usb: gadget: uvc: fix changing interface name via configfsa7ee7101fbBACKPORT: dma-mapping: Fix build error unused-valuec3b65245e6UPSTREAM: tools/vm/slabinfo: Handle files in debugfs0b21c99c83UPSTREAM: mm/damon: use set_huge_pte_at() to make huge pte old5084953c40UPSTREAM: usb: gadget: f_mass_storage: Make CD-ROM emulation works with Windows OS7878f98355UPSTREAM: blk-mq: don't touch ->tagset in blk_mq_get_sq_hctxeb8869415aUPSTREAM: PM: domains: Fix initialization of genpd's next_wakeup4e1bf78ac0BACKPORT: f2fs: don't use casefolded comparison for "." and ".."afa5490fbaUPSTREAM: regulator: scmi: Fix refcount leak in scmi_regulator_probe521b2c5661UPSTREAM: block/mq-deadline: Set the fifo_time member also if inserting at heade3b4c69c57BACKPORT: Revert "mm/cma.c: remove redundant cma_mutex lock"1199a5f80dUPSTREAM: module.h: simplify MODULE_IMPORT_NS18e0efa7c0UPSTREAM: iommu/mediatek: Add mutex for m4u_group and m4u_dom in dataadec2c4a36UPSTREAM: iommu/mediatek: Remove clk_disable in mtk_iommu_removef70c5827f9UPSTREAM: iommu/mediatek: Fix 2 HW sharing pgtable issueec3e1bdddeUPSTREAM: mm: hugetlb: add missing cache flushing in hugetlb_unshare_all_pmds()b54d7c828aUPSTREAM: selftests/damon: add damon to selftests root Makefile250f35d78bFROMGIT: f2fs: allow to read node block after shutdownda05d408eeBACKPORT: f2fs: do not submit NEW_ADDR to read node block34c9208c28BACKPORT: ext4,f2fs: fix readahead of verity datac5589c7eecANDROID: dma-buf: Add vendor hook for deferred dmabuf sysfs stats release425e7c7e0eANDROID: dm-user: Remove bio recount in I/O path2f29ec11e3ANDROID: abi_gki_aarch64_qcom: Add wait_on_page_bit506e6890deUPSTREAM: drm/meson: Fix overflow implicit truncation warningsaf8a0d5f2fUPSTREAM: irqchip/tegra: Fix overflow implicit truncation warnings3d129ea9b5UPSTREAM: video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write34055de440UPSTREAM: irqchip/gic-v4: Wait for GICR_VPENDBASER.Dirty to clear before descheduling2357d700f8UPSTREAM: mm: kfence: fix missing objcg housekeeping for SLAB329b0783c6UPSTREAM: clk: Fix clk_hw_get_clk() when dev is NULL3c6f11550bUPSTREAM: arm64: kasan: fix include error in MTE functions9bb85986aaUPSTREAM: arm64: prevent instrumentation of bp hardening callbacksae9da95de3UPSTREAM: PM: domains: Fix sleep-in-atomic bug caused by genpd_debug_remove()f55885db0cUPSTREAM: mm: fix use-after-free bug when mm->mmap is reused after being freed83ed3e2c4aBACKPORT: vsprintf: Fix %pK with kptr_restrict == 0712eaeb09cUPSTREAM: net: preserve skb_end_offset() in skb_unclone_keeptruesize()0455741716BACKPORT: net: add skb_set_end_offset() helperbbb0dfa377UPSTREAM: arm64: Correct wrong label in macro __init_el2_gicv38318510708UPSTREAM: KVM: arm64: Stop handle_exit() from handling HVC twice when an SError occurs62e7b5a95cUPSTREAM: KVM: arm64: Avoid consuming a stale esr value when SError occura5642af234BACKPORT: arm64: Enable Cortex-A510 erratum 2051678 by defaultc5027380a1UPSTREAM: usb: typec: tcpm: Do not disconnect when receiving VSAFE0V044793f5afUPSTREAM: usb: typec: tcpci: don't touch CC line if it's Vconn source3630e052b5UPSTREAM: dt-bindings: memory: mtk-smi: Correct minItems to 2 for the gals clocks451971e07fBACKPORT: dt-bindings: memory: mtk-smi: No need mediatek,larb-id for mt8167f120d14123BACKPORT: dt-bindings: memory: mtk-smi: Rename clock to clocks64eedcefd4UPSTREAM: KVM: arm64: Use shadow SPSR_EL1 when injecting exceptions on !VHE6c2c1020b4UPSTREAM: block: fix async_depth sysfs interface for mq-deadline01a7ade4e5UPSTREAM: dma-buf: cma_heap: Fix mutex locking section8d34761975UPSTREAM: scsi: ufs: ufs-mediatek: Fix error checking in ufs_mtk_init_va09_pwr_ctrl()b3609875ceUPSTREAM: f2fs: include non-compressed blocks in compr_written_block8599a67e73UPSTREAM: kasan: fix Kconfig check of CC_HAS_WORKING_NOSANITIZE_ADDRESSa9370f7ce9UPSTREAM: dma-buf: DMABUF_SYSFS_STATS should depend on DMA_SHARED_BUFFERb85a4aed4eUPSTREAM: mmflags.h: add missing __GFP_ZEROTAGS and __GFP_SKIP_KASAN_POISON names3586ade72bBACKPORT: scsi: ufs: Optimize serialization of setup_xfer_req() callsab992b1bb8UPSTREAM: Kbuild: lto: fix module versionings mismatch in GNU make 3.Xfcc95f9aa8UPSTREAM: clk: versatile: Depend on HAS_IOMEM7a81ba1e08BACKPORT: arm64: meson: select COMMON_CLK0e74b64011UPSTREAM: kbuild: do not include include/config/auto.conf from adjust_autoksyms.sha2afe6cc0fUPSTREAM: inet: fully convert sk->sk_rx_dst to RCU rulesbbba68efdaANDROID: Update symbol list for mtk30f7ef6517FROMLIST: binder: fix UAF of alloc->vma in race with munmap()b1f03eefb3ANDROID: GKI: Update symbol list for mtk tablet projects3813ca3253UPSTREAM: af_key: Do not call xfrm_probe_algs in parallel4e5c3aad56UPSTREAM: mm: Fix TLB flush for not-first PFNMAP mappings in unmap_region()89fc774058UPSTREAM: mm: Force TLB flush for PFNMAP mappings before unlink_file_vma()af70ef5bfdFROMGIT: f2fs: let's avoid to get cp_rwsem twice by f2fs_evict_inode by d_invalidate356801e2ffANDROID: abi_gki_aarch64_qcom: whitelist some vm symbols Change-Id: Ife50bfa4481374091f863e0d0720846d1ecec025 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
…
…
…
…
…
…
…
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%