Greg Kroah-Hartman 19f4d8d2d0 Merge android14-5.15 into android14-5.15-lts
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:

* 95e0307577 BACKPORT: blk-crypto: dynamically allocate fallback profile
* c7860b4dbd UPSTREAM: media: usb: siano: Fix warning due to null work_func_t function pointer
* cb69585f72 UPSTREAM: Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb
* 064fe2809f ANDROID: Delete build.config.gki.aarch64.16k.
* 5acbeb3895 FROMGIT: usb: typec: tcpm: Refactor the PPS APDO selection
* 90ad33eb0e ANDROID: GKI: Update symbol list for lenovo
* 844dfdef1c UPSTREAM: net: tap_open(): set sk_uid from current_fsuid()
* 7e0b682baf UPSTREAM: net: tun_chr_open(): set sk_uid from current_fsuid()
* 09eac0d3a8 UPSTREAM: usb: typec: tcpm: Fix response to vsafe0V event
* 8f1d7c6850 ANDROID: Update the ABI symbol list
* 54afed884d UPSTREAM: net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free
* d6c1899f33 UPSTREAM: net/sched: cls_fw: No longer copy tcf_result on update to avoid use-after-free
* cb45423bcc UPSTREAM: net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free
* 880189fdd2 UPSTREAM: netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
* 4c73cba07b ANDROID: usb: gadget: f_accessory: Mitgate handling of non-existent USB request
* eebccae505 ANDROID: Update the ABI symbol list
* a845525d3e FROMGIT: Multi-gen LRU: skip CMA pages when they are not eligible
* 4502265e16 BACKPORT: mm: skip CMA pages when they are not available
* 53c38ebc4e ANDROID: dm-bow: Protect Ranges fetched and erased from the RB tree
* b88b3d3664 UPSTREAM: netfilter: nf_tables: skip bound chain on rule flush
* 6bcc6ff841 UPSTREAM: tty: n_gsm: fix UAF in gsm_cleanup_mux
* b4a6c6f4a1 UPSTREAM: net/sched: sch_qfq: account for stab overhead in qfq_enqueue
* 1b2e6ebdc6 UPSTREAM: net/sched: sch_qfq: refactor parsing of netlink parameters
* 4128e28878 UPSTREAM: netfilter: nft_set_pipapo: fix improper element removal
* 1122dd3711 ANDROID: Add checkpatch target.
* 056a17677d BACKPORT: FROMGIT: usb: typec: altmodes/displayport: Signal hpd when configuring pin assignment
* ee1147625d BACKPORT: USB: Gadget: core: Help prevent panic during UVC unconfigure
* 7ba2131ad4 FROMLIST: scsi: ufs: Disable zone write locking
* 4224108a41 FROMLIST: scsi: ufs: Split an if-condition
* 1c33b80bf7 FROMLIST: scsi: scsi_debug: Support injecting unaligned write errors
* 6c0276ef82 FROMLIST: scsi: scsi_debug: Support disabling zone write locking
* 3347f7daae FROMLIST: scsi: core: Retry unaligned zoned writes
* 4e1d1b839d FROMLIST: block/mq-deadline: Only use zone locking if necessary
* 5414ea3f50 BACKPORT: FROMLIST: block: Introduce the flag QUEUE_FLAG_NO_ZONE_WRITE_LOCK
* d01888a968 Revert "ANDROID: block: Introduce a request queue flag for pipelining zoned writes"
* 6a1ceeede7 Revert "ANDROID: block/mq-deadline: Only use zone locking if necessary"
* dc77af3d38 Revert "ANDROID: scsi: Retry unaligned zoned writes"
* 2e83e40f6a Revert "ANDROID: scsi: ufs: Enable zoned write pipelining"
* e08f97fe80 Revert "ANDROID: scsi: ufs: Disable zoned write pipelining"
* a0565250b3 Revert "ANDROID: scsi: core: Delay unaligned write error retries"
* 053f022ed4 Revert "ANDROID: scsi: core: Limit zoned write retries"
* 8c7e6396da ANDROID: GKI: update mtktv symbol
* 7d47dd77f1 ANDROID: GKI: Add mtktv ABI symbol list, media, trace and remaining subsys
* 655a288103 ANDROID: GKI: Add mtktv ABI symbol list, cpufreq and misc
* 663ca511e8 ANDROID: GKI: Add mtktv ABI symbol list, net, eth, regulator and pinmux
* 99c011c37d ANDROID: GKI: Add mtktv ABI symbol list, pwm, serial and snd
* b85af8a6dd ANDROID: GKI: Add mtktv ABI symbol list, usb and v4l2
* 0f986fae12 FROMGIT: BACKPORT: Multi-gen LRU: Fix can_swap in lru_gen_look_around()
* 12fb1c3ef5 FROMGIT: BACKPORT: Multi-gen LRU: Avoid race in inc_min_seq()
* bf03a7c90a FROMGIT: BACKPORT: Multi-gen LRU: Fix per-zone reclaim
* 0c5273e138 BACKPORT: FROMGIT: block: Improve performance for BLK_MQ_F_BLOCKING drivers
* d12306bb95 FROMGIT: scsi: Remove a blk_mq_run_hw_queues() call
* 8bb4682c76 BACKPORT: FROMGIT: scsi: Inline scsi_kick_queue()
* 4bbc8e45b2 ANDROID: ABI: Update STG ABI to format version 2
* a9bc04930f ANDROID: GKI: usb: phy: use ANDROID_KABI_USE for api notify_port_status
* 7aa67c1a12 FROMGIT: dt-bindings: phy: realtek: Add Realtek DHC RTD SoC USB 3.0 PHY
* d58cdad855 FROMGIT: dt-bindings: phy: realtek: Add Realtek DHC RTD SoC USB 2.0 PHY
* 6e97af079d FROMGIT: phy: realtek: usb: Add driver for the Realtek SoC USB 3.0 PHY
* 3dadac8ba6 FROMGIT: phy: realtek: usb: Add driver for the Realtek SoC USB 2.0 PHY
* a600af2c26 FROMGIT: usb: phy: add usb phy notify port status API
* 46ee6c3cdd ANDROID: GKI: Create symbol files in include/config
* 9c0a91f91a ANDROID: fuse-bpf: Use stored bpf for create_open
* 77092bb630 ANDROID: fuse-bpf: Add bpf to negative fuse_dentry
* fe475ca0b5 ANDROID: fuse-bpf: Check inode not null
* feb5ea6684 ANDROID: fuse-bpf: Fix flock test compile error
* 3c49a49167 ANDROID: fuse-bpf: Add partial flock support
* 95e1c94a22 UPSTREAM: dm init: add dm-mod.waitfor to wait for asynchronously probed block devices
* 098173a46b ANDROID: Update the ABI symbol list
* 619a5f635c ANDROID: cpuidle: teo: Export a function that allows modifying util_threshold
* d92dd7312f Revert "ANDROID: GKI: Remove temp build file abi_gki_protected_exports"
* 924b7017dd ANDROID: Update the ABI symbol list
* c82392dabd BACKPORT: blk-crypto: use dynamic lock class for blk_crypto_profile::lock
* 44cf75cc35 ANDROID: KVM: arm64: Fix memory ordering for pKVM module callbacks
* fddd85ce63 ANDROID: GKI: Update symbol list for Amlogic
* f686a35a77 UPSTREAM: net/sched: cls_fw: Fix improper refcount update leads to use-after-free
* 625e1470a9 UPSTREAM: netfilter: nf_tables: fix chain binding transaction logic
* de818a4efb UPSTREAM: fs/ntfs3: Check fields while reading
* 48fffa48b0 ANDROID: GKI: Move GKI module headers to generated includes
* c51761363c ANDROID: set kmi_symbol_list_add_only for Kleaf builds.
* 1281598c53 ANDROID: GKI: Remove temp build file abi_gki_protected_exports
* 48916f9971 ANDROID: GKI: Update symbol list for Amlogic
* c2591e463d UPSTREAM: ASoC: soc-pcm: Move debugfs removal out of spinlock
* 4dc2398a95 UPSTREAM: ASoC: soc-pcm: Fix DPCM lockdep warning due to nested stream locks
* 1dd1248e12 FROMLIST: fuse: revalidate: don't invalidate if interrupted
* ef049b5a71 ANDROID: GKI: Update symbol list for Amlogic
* 88829ece33 UPSTREAM: squashfs: always build "file direct" version of page actor
* 044746150d UPSTREAM: squashfs: fix cache race with migration
* f15bd09d1e BACKPORT: squashfs: cache partial compressed blocks
* 9d4be29185 UPSTREAM: squashfs: fix buffer release race condition in readahead code
* 813c3dec23 UPSTREAM: squashfs: fix extending readahead beyond end of file
* dec4ef3ce4 UPSTREAM: squashfs: fix read regression introduced in readahead code
* 80e656926e UPSTREAM: squashfs: don't call kmalloc in decompressors
* 401371c174 UPSTREAM: squashfs: don't use intermediate buffer if pages missing
* c7f85bb4c4 UPSTREAM: squashfs: extend "page actor" to handle missing pages
* af51b9dded UPSTREAM: squashfs: support reading fragments in readahead call
* 3ba07deef7 UPSTREAM: squashfs: implement readahead
* feb80c37c6 UPSTREAM: gfs2: Don't deref jdesc in evict
* 578ffd6434 UPSTREAM: media: dvb-core: Fix kernel WARNING for blocking operation in wait_event*()
* 9b30cd89af ANDROID: Incremental fs: Allocate data buffer based on input request size
* a6ab807946 ANDROID: GKI: Update symbol list for Amlogic
* b4a6ab6566 ANDROID: KVM: arm64: Fix MMU context save/restore over TLB invalidation
* 770ba0ef6a ANDROID: Update the ABI symbol list
* 48d77946ef UPSTREAM: kasan: suppress recursive reports for HW_TAGS
* 47c669cde1 UPSTREAM: kasan, arm64: add arch_suppress_tag_checks_start/stop
* 03471b2b03 BACKPORT: arm64: mte: rename TCO routines
* 867621cdc5 BACKPORT: kasan, arm64: rename tagging-related routines
* 4c8e131d55 UPSTREAM: kasan: drop empty tagging-related defines
* c624358178 ANDROID: GKI: Update symbol list for Amlogic
* 0c09eb760b ANDROID: Update the ABI symbol list
* ca0cd37761 UPSTREAM: usb: gadget: u_serial: Add null pointer check in gs_start_io
* b0992aa672 ANDROID: Update the ABI symbol list
* fb6593baff ANDROID: ABI: Update lenovo symbol list
* 28c0341559 ANDROID: Update the ABI symbol list
* 40a4ec538f UPSTREAM: fsverity: reject FS_IOC_ENABLE_VERITY on mode 3 fds
* 28d90f10d5 UPSTREAM: fsverity: explicitly check for buffer overflow in build_merkle_tree()
* d53de05681 ANDROID: GKI: Update RTK STB KMI symbol list
* 0765cda329 UPSTREAM: f2fs: fix deadlock in i_xattr_sem and inode page lock
* 38fff8f312 Revert "FROMLIST: f2fs: remove i_xattr_sem to avoid deadlock and fix the original issue"
* 60a2ccabe2 UPSTREAM: usb: gadget: udc: renesas_usb3: Fix use after free bug in renesas_usb3_remove due to race condition
* ebe7bbdffd UPSTREAM: media: rkvdec: fix use after free bug in rkvdec_remove
* 4d634bb7be UPSTREAM: relayfs: fix out-of-bounds access in relay_file_read
* b8cb7eb0b4 BACKPORT: revert "net: align SO_RCVMARK required privileges with SO_MARK"
* 9b46997240 UPSTREAM: wifi: cfg80211: fix link del callback to call correct handler
* dc11ed25f7 UPSTREAM: wifi: cfg80211: reject bad AP MLD address
* 2e6bf292f3 UPSTREAM: KVM: arm64: Populate fault info for watchpoint
* c8a3a08497 UPSTREAM: KVM: Fix vcpu_array[0] races
* d18fa8c525 UPSTREAM: media: pvrusb2: fix DVB_CORE dependency
* f4aace942a UPSTREAM: kasan: hw_tags: avoid invalid virt_to_page()
* 8f4b51c499 UPSTREAM: scsi: ufs: core: mcq: Fix &hwq->cq_lock deadlock issue
* 94fb13dc4f UPSTREAM: x86/mm: Avoid using set_pgd() outside of real PGD pages
* 759c5c3fc2 UPSTREAM: netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE
* be89d165e3 UPSTREAM: net/sched: flower: fix possible OOB write in fl_set_geneve_opt()
* 4ae6b40b7c UPSTREAM: PCI/PM: Extend D3hot delay for NVIDIA HDA controllers
* 738dfcc029 UPSTREAM: wifi: cfg80211: fix MLO connection ownership
* d0e0e85d34 UPSTREAM: wifi: nl80211: fix NULL-ptr deref in offchan check
* 9e7678cc60 UPSTREAM: scsi: ufs: mcq: Use active_reqs to check busy in clock scaling
* 9d0d5eacda UPSTREAM: scsi: ufs: mcq: qcom: Clean the return path of ufs_qcom_mcq_config_resource()
* fa5c4a2186 UPSTREAM: scsi: ufs: mcq: qcom: Fix passing zero to PTR_ERR
* 63ab8dfd17 UPSTREAM: scsi: ufs: mcq: Fix incorrectly set queue depth
* 6423bd5a46 UPSTREAM: net: use a bounce buffer for copying skb->mark
* 656563759a UPSTREAM: io_uring: hold uring mutex around poll removal
* 1f5a89e0cc ANDROID: Set arch attribute for allmodconfig builds
* ceb26af319 ANDROID: KVM: arm64: Remove 'struct kvm_vcpu' from the KMI
* aad223db39 UPSTREAM: KVM: arm64: Restore GICv2-on-GICv3 functionality
* 2c17fbc0d9 UPSTREAM: KVM: arm64: vgic: Wrap vgic_its_create() with config_lock
* ec0944c324 UPSTREAM: KVM: arm64: vgic: Fix a circular locking issue
* e4b31e748a UPSTREAM: KVM: arm64: vgic: Don't acquire its_lock before config_lock
* b7e1f97ef7 BACKPORT: KVM: arm64: Avoid lock inversion when setting the VM register width
* 0c5ec70ec3 UPSTREAM: KVM: arm64: Avoid vcpu->mutex v. kvm->lock inversion in CPU_ON
* 60266126b3 BACKPORT: KVM: arm64: Use config_lock to protect data ordered against KVM_RUN
* 1536afa216 UPSTREAM: KVM: arm64: Use config_lock to protect vgic state
* 1d194af64a BACKPORT: KVM: arm64: Add helper vgic_write_guest_lock()
* 54b1b225ed UPSTREAM: ipvlan:Fix out-of-bounds caused by unclear skb->cb
* b31675307e UPSTREAM: net/sched: cls_u32: Fix reference counter leak leading to overflow
* eda34db29b ANDROID: GKI: Update symbol list for Amlogic
* d8eb5e7ca9 ANDROID: db845c: Fix build when using --kgdb
* d40f3254b6 FROMLIST: kheaders: dereferences the source tree
* 2ebd113814 FROMLIST: f2fs: remove i_xattr_sem to avoid deadlock and fix the original issue
* 258f11319b ANDROID: db845c: Local define for db845c targets
* 2af5c43333 ANDROID: Update the ABI symbol list
* 5af00d8531 ANDROID: Export cpu_push_stop
* 3c328a636a ANDROID: Update the ABI symbol list
* bdd2312e95 ANDROID: rockpi4: Fix build when using --kgdb
* d1601b50e6 ANDROID: kleaf: android/gki_system_dlkm_modules is generated.
* a7068670a7 ANDROID: fuse-bpf: Move FUSE_RELEASE to correct place
* ad20125502 ANDROID: fuse-bpf: Ensure bpf field can never be nulled
* bd30e9ff41 ANDROID: Update the ABI symbol list
* 7a26ac9e26 ANDROID: Delete MODULES_LIST from build configs.
* 270b27a648 ANDROID: ABI: Update lenovo symbol list
* 0a9d005c81 UPSTREAM: memstick: r592: Fix UAF bug in r592_remove due to race condition
* d465a446d2 UPSTREAM: xfs: verify buffer contents when we skip log replay

Change-Id: I56fc52175fbae29d6dea862b66a619b249e93e7c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-08-25 11:06:54 +00:00
2023-02-25 15:44:31 +00:00
2021-10-18 20:22:03 -10:00
2023-06-15 09:54:56 +01:00

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.

    • 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.
  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 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:, 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 commit ...) 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 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 of UPSTREAM:.
    • use the same tags as UPSTREAM:
    • add comments about the changes under the (cherry picked from commit ...) 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 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 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
    • 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:
        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)
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%