mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
0e6932267072df335aae38c2eee95fdb4ba464c6
A back-merge to catch the latest changes that are in the android14-5.15 branch. This contains the following commits: *1982cd32aeANDROID: GKI: Remove CONFIG_MEDIA_CEC_RC *270ce44fdbMerge "Merge tag 'android14-5.15.144_r00' into branch 'android14-5.15'" into android14-5.15 |\ | *f26b6b0390Merge tag 'android14-5.15.144_r00' into branch 'android14-5.15' * |9a196e8051ANDROID: uid_sys_stats: Drop CONFIG_UID_SYS_STATS_DEBUG logic * |debd0f470bANDROID: uid_sys_stats: Fully initialize uid_entry_tmp value * |cf1268f696UPSTREAM: usb: gadget: uvc: Remove nested locking * |c9395ddbaaUPSTREAM: usb: gadget: uvc: Fix use are free during STREAMOFF * |7a71ed71fcANDROID: fuse-bpf: Fix the issue of abnormal lseek system calls * |da99db444bANDROID: Update the ABI symbol list * |4f66f3be95ANDROID: Export sysctl_sched_min_granularity * |e32aeb03b9UPSTREAM: sched/fair: Limit sched slice duration * |b9e9a2c009FROMGIT: mm: update mark_victim tracepoints fields * |61d5f76a90UPSTREAM: mmc: core: Do not force a retune before RPMB switch * |d85e6cb679ANDROID: GKI: add symbol list for etm driver * |eb31cad2dfUPSTREAM: coresight: tmc: Don't enable TMC when it's not ready. * |57ddb1ecd7UPSTREAM: netfilter: nf_tables: bail out on mismatching dynset and set expressions |/ *a4da62d21cFROMGIT: usb: dwc3: gadget: Handle EP0 request dequeuing properly *0d3c49180fUPSTREAM: usb: dwc3: gadget: Refactor EP0 forced stall/restart into a separate API *154a4394d0UPSTREAM: usb: dwc3: gadget: Execute gadget stop after halting the controller *0b1767af48BACKPORT: usb: dwc3: gadget: Stall and restart EP0 if host is unresponsive *b68fafef56UPSTREAM: usb: dwc3: gadget: Submit endxfer command if delayed during disconnect *02524b7519UPSTREAM: usb: dwc3: ep0: Don't prepare beyond Setup stage *149320568dANDROID: arm64: mm: perform clean & invalidation in __dma_map_area *d0cdb904f9ANDROID: GKI: Update symbol list for Amlogic *a95b355479UPSTREAM: bcache: move uapi header bcache.h to bcache code directory *6246b8f3efUPSTREAM: netfilter: nf_tables: skip set commit for deleted/destroyed sets *6048991845ANDROID: KVM: arm64: Avoid BUG-ing from the host abort path *38cb0b1181ANDROID: GKI: Update symbol list for lenovo *3cd672870aANDROID: binder: fix KMI-break due to alloc->lock *63f7ddea2eANDROID: binder: fix KMI-break due to address type change *74ecd99c15BACKPORT: FROMGIT: binder: switch alloc->mutex to spinlock_t *5a8658eac3BACKPORT: FROMGIT: binder: reverse locking order in shrinker callback *f0667c870cFROMGIT: binder: avoid user addresses in debug logs *b93c9f8565FROMGIT: binder: refactor binder_delete_free_buffer() *f6b1c043aeFROMGIT: binder: collapse print_binder_buffer() into caller *683f84a35fFROMGIT: binder: document the final page calculation *4c82cbad43BACKPORT: FROMGIT: binder: rename lru shrinker utilities *eba1fb9603UPSTREAM: drivers/android: remove redundant ret variable *356047fe2aFROMGIT: binder: make oversized buffer code more readable *f7476dca31FROMGIT: binder: remove redundant debug log *477e8e8453BACKPORT: FROMGIT: binder: perform page installation outside of locks *af71193412FROMGIT: binder: initialize lru pages in mmap callback *ef524f4dd4FROMGIT: binder: malloc new_buffer outside of locks *b23dbdbf19BACKPORT: FROMGIT: binder: refactor page range allocation *59e0d62fc8BACKPORT: FROMGIT: binder: relocate binder_alloc_clear_buf() *081ddad216FROMGIT: binder: relocate low space calculation *e1d195e94dFROMGIT: binder: separate the no-space debugging logic *26d06d9349FROMGIT: binder: remove pid param in binder_alloc_new_buf() *d5c44f9065FROMGIT: binder: do unlocked work in binder_alloc_new_buf() *0b24368fffFROMGIT: binder: split up binder_update_page_range() *c38a89805fFROMGIT: binder: keep vma addresses type as unsigned long *ca5c7be9e0FROMGIT: binder: remove extern from function prototypes *2a250a1528FROMGIT: binder: fix comment on binder_alloc_new_buf() return value *26f0c01348FROMGIT: binder: fix trivial typo of binder_free_buf_locked() *11ca07657cFROMGIT: binder: fix unused alloc->free_async_space *65cf1585eaFROMGIT: binder: fix async space check for 0-sized buffers *1787dddd97FROMGIT: binder: fix race between mmput() and do_exit() *8dce2880bcFROMGIT: binder: fix use-after-free in shinker's callback *3c4732563eFROMGIT: binder: use EPOLLERR from eventpoll.h *486b17a096ANDROID: GKI: Update symbol list for Amlogic *bfefe25dfaUPSTREAM: bpf: Fix prog_array_map_poke_run map poke update *274748592eANDROID: gki_defconfig: Set CONFIG_IDLE_INJECT and CONFIG_CPU_IDLE_THERMAL into y *597362d44fANDROID: KVM: arm64: Don't prepopulate MMIO regions for host stage-2 *45d542adb4ANDROID: KVM: arm64: Fix host_smc print typo *38bb85f2fbANDROID: KVM: arm64: Fix hyp event alignment *c09c7c05d0ANDROID: KVM: arm64: Document module_change_host_prot_range *80d91f64baBACKPORT: USB: gadget: core: adjust uevent timing on gadget unbind *19a4494b2bANDROID: GKI: Update RTK STB KMI symbol list *55f6a96975UPSTREAM: dm verity: don't perform FEC for failed readahead IO *781393c0a2UPSTREAM: ipv4: igmp: fix refcnt uaf issue when receiving igmp query packet *97c69470feUPSTREAM: netfilter: nft_set_pipapo: skip inactive elements during set walk *16ea59408cANDROID: fuse-bpf: Follow mounts in lookups *abea1cb16eANDROID: Snapshot Mainline's version of checkpatch.pl *9f6f0c1de5ANDROID: GKI: Update symbol list for Amlogic *a5123cff8dANDROID: KVM: arm64: Skip prefaulting ptes which will be modified later *97bbbf4497ANDROID: KVM: arm64: Introduce module_change_host_prot_range *1dc2dbbb57ANDROID: KVM: arm64: Relax checks in module_change_host_page_prot *b43baa770bANDROID: KVM: arm64: Optimise module_change_host_page_prot *dc87f3522eANDROID: KVM: arm64: Prefault entries when splitting a block mapping *ab6f88aebeANDROID: GKI: Update symbol list for transsion *896cff8734ANDROID: Add vendor_hooks to workaround CONFIG_TASK_DELAY_ACCT *3d3f9377b2ANDROID: Add missing symbol for QCOM *5feaf92b24UPSTREAM: binder: fix memory leaks of spam and pending work *92bef7c6afUPSTREAM: mm,kfence: decouple kfence from page granularity mapping judgement *e6ffb329eeUPSTREAM: arm64/mm: fold check for KFENCE into can_set_direct_map() *b39c28c44cANDROID: GKI: db845c: Update symbols list and ABI on rpmsg_register_device_override *d0b481d97eANDROID: fix up rpmsg_device ABI break *6bfb30205bANDROID: fix up platform_device ABI break *649e9135dfUPSTREAM: rpmsg: Fix possible refcount leak in rpmsg_register_device_override() *b1e39deac4UPSTREAM: rpmsg: glink: Release driver_override *9697a16480BACKPORT: rpmsg: Fix calling device_lock() on non-initialized device *01b4519a41BACKPORT: rpmsg: Fix kfree() of static memory on setting driver_override *d82ae69002UPSTREAM: rpmsg: Constify local variable in field store macro *341acb7bacUPSTREAM: driver: platform: Add helper for safer setting of driver_override *81051a615fRevert "ANDROID: Enable CONFIG_KUNIT=y." *1d5461bec0Revert "ANDROID: Add kunit targets." *12ab8f1569UPSTREAM: io_uring/fdinfo: lock SQ thread while retrieving thread cpu/pid *3a7b8e544bANDROID: arm64: Remove a bunch of duplicate errata hunks *4ba6c3197cANDROID: arm64: Disable workaround for CPU errata 2441007 and 2441009 *0bea71c862ANDROID: abi_gki_aarch64_qcom: Add GIC and hibernation APIs *3923e9952dANDROID: irqchip/irq-gic-v3: Add vendor hook for gic suspend *bd58836882ANDROID: Update the ABI representation *16a47663f5BACKPORT: fscrypt: support crypto data unit size less than filesystem block size *a934b92361ANDROID: mm: do not allow file-backed pages from CMA *35482d0d38UPSTREAM: netfilter: nf_tables: remove catchall element in GC sync path *e19a3cd1ceANDROID: fuse-bpf: Ignore readaheads unless they go to the daemon *5421e17c17ANDROID: Update the ABI symbol list *46f8b2ca58ANDROID: GKI: add a vendor hook in ptep_clear_flush_young() *0add0e52efUPSTREAM: fs: drop_caches: draining pages before dropping caches *0d1f309e44Merge "Merge tag 'android14-5.15.137_r00' into branch 'android14-5.15'" into android14-5.15 |\ | *6dfd4d406cMerge tag 'android14-5.15.137_r00' into branch 'android14-5.15' * |73c2c0d53dANDROID: Update the ABI symbol list * |87344b2ab7ANDROID: sched: Add trace_android_rvh_set_user_nice_locked |/ *bd1e76c09bANDROID: GKI: update symbol list *fdaddcab76ANDROID: GKI: vendor code needs __balance_callbacks access *e2fbc5cc3aANDROID: KVM: arm64: pkvm_module_ops documentation *bf291bdd70UPSTREAM: usb: typec: tcpm: Fix NULL pointer dereference in tcpm_pd_svdm() *52ecdc264dUPSTREAM: USB: core: Fix race by not overwriting udev->descriptor in hub_port_init() *a7f103722bUPSTREAM: USB: core: Change usb_get_device_descriptor() API *28e703ec05UPSTREAM: USB: core: Unite old scheme and new scheme descriptor reads *e5f9357102ANDROID: GKI: Update symbol list for lenovo *dcf95aa0afFROMGIT: usb:gadget:uvc Do not use worker thread to pump isoc usb requests *8078e50f5eFROMGIT: usb: gadget: uvc: Fix use-after-free for inflight usb_requests *0041748215FROMGIT: usb: gadget: uvc: move video disable logic to its own function *563283055bFROMGIT: usb: gadget: uvc: Allocate uvc_requests one at a time *848fa308a9FROMGIT: usb: gadget: uvc: prevent use of disabled endpoint *24e0a18cb4ANDROID: abi_gki_aarch64_qcom: Update symbol list *8ab43e8a3eANDROID: arch_topology: Add android_rvh_update_thermal_stats *6ac8b4fbb4ANDROID: fuse-bpf: Add NULL pointer check in fuse_release_in *4030b1eeedANDROID: GKI: update symbol list for lenovo *71647086d7ANDROID: GKI: add a vendor hook in cpufreq_online *2cecfa7378FROMGIT: Input: uinput - allow injecting event times *e9a7a2060aANDROID: Update the ABI symbol list *984523c368ANDROID: sched: Add vendor hook for update_load_sum *f88c9605bdANDROID: GKI: update mtktv symbol *b6fd46aaf1ANDROID: GKI: Add symbol list for Transsion *17d202d85bANDROID: KVM: arm64: mount procfs for pKVM module loading *be8f9c8bf9ANDROID: GKI: Update symbol list for Amlogic *76fcf197f2UPSTREAM: ASoC: soc-compress: Fix deadlock in soc_compr_open_fe *7f194d670fBACKPORT: ASoC: add snd_soc_card_mutex_lock/unlock() *8cdc41d9b8BACKPORT: ASoC: expand snd_soc_dpcm_mutex_lock/unlock() *2721efad0aBACKPORT: ASoC: expand snd_soc_dapm_mutex_lock/unlock() *b7bcf839e1ANDROID: KVM: arm64: Fix error path in pkvm_mem_abort() *27aaaa9af5ANDROID: GKI: Update symbol list for Amlogic *0681d570baANDROID: mm: add vendor hook in isolate_freepages() *f206a8c31cANDROID: GKI: Update symbol list for Amlogic *88b56693e9ANDROID: GKI: Update symbol list for rtktv *dbeed23196ANDROID: fs/passthrough: Fix compatibility with R/O file system *bde02310d4ANDROID: Update the ABI symbol list *71320d0c1eRevert "ANDROID: KVM: arm64: Don't allocate from handle_host_mem_abort" *7b356cb300UPSTREAM: netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c *7d75f8038bUPSTREAM: vringh: don't use vringh_kiov_advance() in vringh_iov_xfer() *484868e95cBACKPORT: usb: gadget: uvc: Add missing initialization of ssp config descriptor *ae71397d90BACKPORT: usb: gadget: unconditionally allocate hs/ss descriptor in bind operation *f5beeb23edUPSTREAM: usb: gadget: f_uvc: change endpoint allocation in uvc_function_bind() *65aa3dd94aUPSTREAM: usb: gadget: function: Remove unused declarations *81bffd1c1aUPSTREAM: usb: gadget: uvc: clean up comments and styling in video_pump *0772c040aeUPSTREAM: ravb: Fix use-after-free issue in ravb_tx_timeout_work() *069cc1491eUPSTREAM: ravb: Fix up dma_free_coherent() call in ravb_remove() *501954e892BACKPORT: usb: typec: altmodes/displayport: Signal hpd low when exiting mode *b39c40b693ANDROID: Update the ABI symbol list *858e65da9cANDROID: f2fs: Fix the calculation of the number of zones *2eb175772dANDROID: GKI: Update symbol list for lenovo *0a25bb8f1cANDROID: KVM: arm64: Fix KVM_HOST_S2_DEFAULT_MMIO_PTE encoding Change-Id: I7d833acbf81f15f2b96f130d293febe6a8b3fca2 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
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:, 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%