mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
19f4d8d2d06d009186f48ee4e5caa208715a9a2f
This catches up the android14-5.15-lts branch up with a lot of bugfixes and ABI additions that were in the android14-5.15 branch. This consists of the following commits: *95e0307577BACKPORT: blk-crypto: dynamically allocate fallback profile *c7860b4dbdUPSTREAM: media: usb: siano: Fix warning due to null work_func_t function pointer *cb69585f72UPSTREAM: Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb *064fe2809fANDROID: Delete build.config.gki.aarch64.16k. *5acbeb3895FROMGIT: usb: typec: tcpm: Refactor the PPS APDO selection *90ad33eb0eANDROID: GKI: Update symbol list for lenovo *844dfdef1cUPSTREAM: net: tap_open(): set sk_uid from current_fsuid() *7e0b682bafUPSTREAM: net: tun_chr_open(): set sk_uid from current_fsuid() *09eac0d3a8UPSTREAM: usb: typec: tcpm: Fix response to vsafe0V event *8f1d7c6850ANDROID: Update the ABI symbol list *54afed884dUPSTREAM: net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free *d6c1899f33UPSTREAM: net/sched: cls_fw: No longer copy tcf_result on update to avoid use-after-free *cb45423bccUPSTREAM: net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free *880189fdd2UPSTREAM: netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID *4c73cba07bANDROID: usb: gadget: f_accessory: Mitgate handling of non-existent USB request *eebccae505ANDROID: Update the ABI symbol list *a845525d3eFROMGIT: Multi-gen LRU: skip CMA pages when they are not eligible *4502265e16BACKPORT: mm: skip CMA pages when they are not available *53c38ebc4eANDROID: dm-bow: Protect Ranges fetched and erased from the RB tree *b88b3d3664UPSTREAM: netfilter: nf_tables: skip bound chain on rule flush *6bcc6ff841UPSTREAM: tty: n_gsm: fix UAF in gsm_cleanup_mux *b4a6c6f4a1UPSTREAM: net/sched: sch_qfq: account for stab overhead in qfq_enqueue *1b2e6ebdc6UPSTREAM: net/sched: sch_qfq: refactor parsing of netlink parameters *4128e28878UPSTREAM: netfilter: nft_set_pipapo: fix improper element removal *1122dd3711ANDROID: Add checkpatch target. *056a17677dBACKPORT: FROMGIT: usb: typec: altmodes/displayport: Signal hpd when configuring pin assignment *ee1147625dBACKPORT: USB: Gadget: core: Help prevent panic during UVC unconfigure *7ba2131ad4FROMLIST: scsi: ufs: Disable zone write locking *4224108a41FROMLIST: scsi: ufs: Split an if-condition *1c33b80bf7FROMLIST: scsi: scsi_debug: Support injecting unaligned write errors *6c0276ef82FROMLIST: scsi: scsi_debug: Support disabling zone write locking *3347f7daaeFROMLIST: scsi: core: Retry unaligned zoned writes *4e1d1b839dFROMLIST: block/mq-deadline: Only use zone locking if necessary *5414ea3f50BACKPORT: FROMLIST: block: Introduce the flag QUEUE_FLAG_NO_ZONE_WRITE_LOCK *d01888a968Revert "ANDROID: block: Introduce a request queue flag for pipelining zoned writes" *6a1ceeede7Revert "ANDROID: block/mq-deadline: Only use zone locking if necessary" *dc77af3d38Revert "ANDROID: scsi: Retry unaligned zoned writes" *2e83e40f6aRevert "ANDROID: scsi: ufs: Enable zoned write pipelining" *e08f97fe80Revert "ANDROID: scsi: ufs: Disable zoned write pipelining" *a0565250b3Revert "ANDROID: scsi: core: Delay unaligned write error retries" *053f022ed4Revert "ANDROID: scsi: core: Limit zoned write retries" *8c7e6396daANDROID: GKI: update mtktv symbol *7d47dd77f1ANDROID: GKI: Add mtktv ABI symbol list, media, trace and remaining subsys *655a288103ANDROID: GKI: Add mtktv ABI symbol list, cpufreq and misc *663ca511e8ANDROID: GKI: Add mtktv ABI symbol list, net, eth, regulator and pinmux *99c011c37dANDROID: GKI: Add mtktv ABI symbol list, pwm, serial and snd *b85af8a6ddANDROID: GKI: Add mtktv ABI symbol list, usb and v4l2 *0f986fae12FROMGIT: BACKPORT: Multi-gen LRU: Fix can_swap in lru_gen_look_around() *12fb1c3ef5FROMGIT: BACKPORT: Multi-gen LRU: Avoid race in inc_min_seq() *bf03a7c90aFROMGIT: BACKPORT: Multi-gen LRU: Fix per-zone reclaim *0c5273e138BACKPORT: FROMGIT: block: Improve performance for BLK_MQ_F_BLOCKING drivers *d12306bb95FROMGIT: scsi: Remove a blk_mq_run_hw_queues() call *8bb4682c76BACKPORT: FROMGIT: scsi: Inline scsi_kick_queue() *4bbc8e45b2ANDROID: ABI: Update STG ABI to format version 2 *a9bc04930fANDROID: GKI: usb: phy: use ANDROID_KABI_USE for api notify_port_status *7aa67c1a12FROMGIT: dt-bindings: phy: realtek: Add Realtek DHC RTD SoC USB 3.0 PHY *d58cdad855FROMGIT: dt-bindings: phy: realtek: Add Realtek DHC RTD SoC USB 2.0 PHY *6e97af079dFROMGIT: phy: realtek: usb: Add driver for the Realtek SoC USB 3.0 PHY *3dadac8ba6FROMGIT: phy: realtek: usb: Add driver for the Realtek SoC USB 2.0 PHY *a600af2c26FROMGIT: usb: phy: add usb phy notify port status API *46ee6c3cddANDROID: GKI: Create symbol files in include/config *9c0a91f91aANDROID: fuse-bpf: Use stored bpf for create_open *77092bb630ANDROID: fuse-bpf: Add bpf to negative fuse_dentry *fe475ca0b5ANDROID: fuse-bpf: Check inode not null *feb5ea6684ANDROID: fuse-bpf: Fix flock test compile error *3c49a49167ANDROID: fuse-bpf: Add partial flock support *95e1c94a22UPSTREAM: dm init: add dm-mod.waitfor to wait for asynchronously probed block devices *098173a46bANDROID: Update the ABI symbol list *619a5f635cANDROID: cpuidle: teo: Export a function that allows modifying util_threshold *d92dd7312fRevert "ANDROID: GKI: Remove temp build file abi_gki_protected_exports" *924b7017ddANDROID: Update the ABI symbol list *c82392dabdBACKPORT: blk-crypto: use dynamic lock class for blk_crypto_profile::lock *44cf75cc35ANDROID: KVM: arm64: Fix memory ordering for pKVM module callbacks *fddd85ce63ANDROID: GKI: Update symbol list for Amlogic *f686a35a77UPSTREAM: net/sched: cls_fw: Fix improper refcount update leads to use-after-free *625e1470a9UPSTREAM: netfilter: nf_tables: fix chain binding transaction logic *de818a4efbUPSTREAM: fs/ntfs3: Check fields while reading *48fffa48b0ANDROID: GKI: Move GKI module headers to generated includes *c51761363cANDROID: set kmi_symbol_list_add_only for Kleaf builds. *1281598c53ANDROID: GKI: Remove temp build file abi_gki_protected_exports *48916f9971ANDROID: GKI: Update symbol list for Amlogic *c2591e463dUPSTREAM: ASoC: soc-pcm: Move debugfs removal out of spinlock *4dc2398a95UPSTREAM: ASoC: soc-pcm: Fix DPCM lockdep warning due to nested stream locks *1dd1248e12FROMLIST: fuse: revalidate: don't invalidate if interrupted *ef049b5a71ANDROID: GKI: Update symbol list for Amlogic *88829ece33UPSTREAM: squashfs: always build "file direct" version of page actor *044746150dUPSTREAM: squashfs: fix cache race with migration *f15bd09d1eBACKPORT: squashfs: cache partial compressed blocks *9d4be29185UPSTREAM: squashfs: fix buffer release race condition in readahead code *813c3dec23UPSTREAM: squashfs: fix extending readahead beyond end of file *dec4ef3ce4UPSTREAM: squashfs: fix read regression introduced in readahead code *80e656926eUPSTREAM: squashfs: don't call kmalloc in decompressors *401371c174UPSTREAM: squashfs: don't use intermediate buffer if pages missing *c7f85bb4c4UPSTREAM: squashfs: extend "page actor" to handle missing pages *af51b9ddedUPSTREAM: squashfs: support reading fragments in readahead call *3ba07deef7UPSTREAM: squashfs: implement readahead *feb80c37c6UPSTREAM: gfs2: Don't deref jdesc in evict *578ffd6434UPSTREAM: media: dvb-core: Fix kernel WARNING for blocking operation in wait_event*() *9b30cd89afANDROID: Incremental fs: Allocate data buffer based on input request size *a6ab807946ANDROID: GKI: Update symbol list for Amlogic *b4a6ab6566ANDROID: KVM: arm64: Fix MMU context save/restore over TLB invalidation *770ba0ef6aANDROID: Update the ABI symbol list *48d77946efUPSTREAM: kasan: suppress recursive reports for HW_TAGS *47c669cde1UPSTREAM: kasan, arm64: add arch_suppress_tag_checks_start/stop *03471b2b03BACKPORT: arm64: mte: rename TCO routines *867621cdc5BACKPORT: kasan, arm64: rename tagging-related routines *4c8e131d55UPSTREAM: kasan: drop empty tagging-related defines *c624358178ANDROID: GKI: Update symbol list for Amlogic *0c09eb760bANDROID: Update the ABI symbol list *ca0cd37761UPSTREAM: usb: gadget: u_serial: Add null pointer check in gs_start_io *b0992aa672ANDROID: Update the ABI symbol list *fb6593baffANDROID: ABI: Update lenovo symbol list *28c0341559ANDROID: Update the ABI symbol list *40a4ec538fUPSTREAM: fsverity: reject FS_IOC_ENABLE_VERITY on mode 3 fds *28d90f10d5UPSTREAM: fsverity: explicitly check for buffer overflow in build_merkle_tree() *d53de05681ANDROID: GKI: Update RTK STB KMI symbol list *0765cda329UPSTREAM: f2fs: fix deadlock in i_xattr_sem and inode page lock *38fff8f312Revert "FROMLIST: f2fs: remove i_xattr_sem to avoid deadlock and fix the original issue" *60a2ccabe2UPSTREAM: usb: gadget: udc: renesas_usb3: Fix use after free bug in renesas_usb3_remove due to race condition *ebe7bbdffdUPSTREAM: media: rkvdec: fix use after free bug in rkvdec_remove *4d634bb7beUPSTREAM: relayfs: fix out-of-bounds access in relay_file_read *b8cb7eb0b4BACKPORT: revert "net: align SO_RCVMARK required privileges with SO_MARK" *9b46997240UPSTREAM: wifi: cfg80211: fix link del callback to call correct handler *dc11ed25f7UPSTREAM: wifi: cfg80211: reject bad AP MLD address *2e6bf292f3UPSTREAM: KVM: arm64: Populate fault info for watchpoint *c8a3a08497UPSTREAM: KVM: Fix vcpu_array[0] races *d18fa8c525UPSTREAM: media: pvrusb2: fix DVB_CORE dependency *f4aace942aUPSTREAM: kasan: hw_tags: avoid invalid virt_to_page() *8f4b51c499UPSTREAM: scsi: ufs: core: mcq: Fix &hwq->cq_lock deadlock issue *94fb13dc4fUPSTREAM: x86/mm: Avoid using set_pgd() outside of real PGD pages *759c5c3fc2UPSTREAM: netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE *be89d165e3UPSTREAM: net/sched: flower: fix possible OOB write in fl_set_geneve_opt() *4ae6b40b7cUPSTREAM: PCI/PM: Extend D3hot delay for NVIDIA HDA controllers *738dfcc029UPSTREAM: wifi: cfg80211: fix MLO connection ownership *d0e0e85d34UPSTREAM: wifi: nl80211: fix NULL-ptr deref in offchan check *9e7678cc60UPSTREAM: scsi: ufs: mcq: Use active_reqs to check busy in clock scaling *9d0d5eacdaUPSTREAM: scsi: ufs: mcq: qcom: Clean the return path of ufs_qcom_mcq_config_resource() *fa5c4a2186UPSTREAM: scsi: ufs: mcq: qcom: Fix passing zero to PTR_ERR *63ab8dfd17UPSTREAM: scsi: ufs: mcq: Fix incorrectly set queue depth *6423bd5a46UPSTREAM: net: use a bounce buffer for copying skb->mark *656563759aUPSTREAM: io_uring: hold uring mutex around poll removal *1f5a89e0ccANDROID: Set arch attribute for allmodconfig builds *ceb26af319ANDROID: KVM: arm64: Remove 'struct kvm_vcpu' from the KMI *aad223db39UPSTREAM: KVM: arm64: Restore GICv2-on-GICv3 functionality *2c17fbc0d9UPSTREAM: KVM: arm64: vgic: Wrap vgic_its_create() with config_lock *ec0944c324UPSTREAM: KVM: arm64: vgic: Fix a circular locking issue *e4b31e748aUPSTREAM: KVM: arm64: vgic: Don't acquire its_lock before config_lock *b7e1f97ef7BACKPORT: KVM: arm64: Avoid lock inversion when setting the VM register width *0c5ec70ec3UPSTREAM: KVM: arm64: Avoid vcpu->mutex v. kvm->lock inversion in CPU_ON *60266126b3BACKPORT: KVM: arm64: Use config_lock to protect data ordered against KVM_RUN *1536afa216UPSTREAM: KVM: arm64: Use config_lock to protect vgic state *1d194af64aBACKPORT: KVM: arm64: Add helper vgic_write_guest_lock() *54b1b225edUPSTREAM: ipvlan:Fix out-of-bounds caused by unclear skb->cb *b31675307eUPSTREAM: net/sched: cls_u32: Fix reference counter leak leading to overflow *eda34db29bANDROID: GKI: Update symbol list for Amlogic *d8eb5e7ca9ANDROID: db845c: Fix build when using --kgdb *d40f3254b6FROMLIST: kheaders: dereferences the source tree *2ebd113814FROMLIST: f2fs: remove i_xattr_sem to avoid deadlock and fix the original issue *258f11319bANDROID: db845c: Local define for db845c targets *2af5c43333ANDROID: Update the ABI symbol list *5af00d8531ANDROID: Export cpu_push_stop *3c328a636aANDROID: Update the ABI symbol list *bdd2312e95ANDROID: rockpi4: Fix build when using --kgdb *d1601b50e6ANDROID: kleaf: android/gki_system_dlkm_modules is generated. *a7068670a7ANDROID: fuse-bpf: Move FUSE_RELEASE to correct place *ad20125502ANDROID: fuse-bpf: Ensure bpf field can never be nulled *bd30e9ff41ANDROID: Update the ABI symbol list *7a26ac9e26ANDROID: Delete MODULES_LIST from build configs. *270b27a648ANDROID: ABI: Update lenovo symbol list *0a9d005c81UPSTREAM: memstick: r592: Fix UAF bug in r592_remove due to race condition *d465a446d2UPSTREAM: xfs: verify buffer contents when we skip log replay Change-Id: I56fc52175fbae29d6dea862b66a619b249e93e7c 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%