Greg Kroah-Hartman b6b9dff07b Merge branch android12-5.10 into android12-5.10-lts
Sync up after the -lts merge, contains the following commits:

2329f61535dd Merge branch android12-5.10 into android12-5.10-lts
851de32d27 Merge tag 'android12-5.10.177_r00' into android12-5.10
7f9a9a8fe4 UPSTREAM: KVM: x86: do not report a vCPU as preempted outside instruction boundaries
7c835be7ec ANDROID: remove CONFIG_NET_CLS_TCINDEX from gki_defconfig
21a4564a6c BACKPORT: net/sched: Retire tcindex classifier
f27e7efdc6 FROMLIST: usb: xhci: Remove unused udev from xhci_log_ctx trace event
948b2a1205 UPSTREAM: ext4: avoid a potential slab-out-of-bounds in ext4_group_desc_csum
f60101a030 ANDROID: GKI: Update symbols to symbol list
64c7044d39 ANDROID: vendor_hook: add hooks in dm_bufio.c
f03258701d ANDROID: GKI: Update symbol list for mtk
9d8c9d868e UPSTREAM: ext4: fix invalid free tracking in ext4_xattr_move_to_block()
97aa93c23f ANDROID: uid_sys_stats: defer process_notifier work if uid_lock is contended
c28be8ff1d BACKPORT: scsi: ufs: Fix device management cmd timeout flow
3641f511ee UPSTREAM: usb: dwc3: debugfs: Resume dwc3 before accessing registers
694b75e0ce UPSTREAM: kvm: initialize all of the kvm_debugregs structure before sending it to userspace
368fb8a50c BACKPORT: scsi: ufs: fix a race condition related to device management
e36eef3783 Revert "Revert "mm/rmap: Fix anon_vma->degree ambiguity leading to double-reuse""
a42b1b6119 BACKPORT: usb: dwc3: gadget: Ignore End Transfer delay on teardown
57f609a261 BACKPORT: usb: dwc3: gadget: Do not clear ep delayed stop flag during ep disable
66cba6260a FROMLIST: binder: fix UAF caused by faulty buffer cleanup
ce88d51c72 ANDROID: GKI: Increase max 8250 uarts
4d70900718 ANDROID: GKI: add missing vendor hook and other ktrace symbols
00499a5f22 ANDROID: GKI: reorder symbols within ABI files
e2ed7e5048 BACKPORT: f2fs: introduce gc_urgent_mid mode
4d2352ab07 UPSTREAM: ext4: fix use-after-free in ext4_xattr_set_entry
3acba5c435 UPSTREAM: ext4: remove duplicate definition of ext4_xattr_ibody_inline_set()
49652e1bbd UPSTREAM: Revert "ext4: fix use-after-free in ext4_xattr_set_entry"
2e61d90c44 ANDROID: fix use of plain integer as NULL pointer
306223f885 UPSTREAM: dm verity: stop using WQ_UNBOUND for verify_wq
3de420d372 BACKPORT: dm verity: enable WQ_HIGHPRI on verify_wq
004c469370 UPSTREAM: dm verity: remove WQ_CPU_INTENSIVE flag since using WQ_UNBOUND
7513f3e148 UPSTREAM: usb: typec: tcpm: Add support for altmodes
5bbc750d9e UPSTREAM: usb: typec: Add typec_port_register_altmodes()
8c9c56dbe5 FROMGIT: usb: dwc3: gadget: Add 1ms delay after end transfer command without IOC
7771fe887f BACKPORT: f2fs: give priority to select unpinned section for foreground GC
7b7cd11586 BACKPORT: f2fs: check pinfile in gc_data_segment() in advance
4078681792 ANDROID: Enable percpu high priority kthreads for erofs
76e536328f UPSTREAM: erofs: fix an error code in z_erofs_init_zip_subsystem()
6f48588062 BACKPORT: erofs: add per-cpu threads for decompression as an option
1b307b685c UPSTREAM: usb: gadget: f_uac2: Fix incorrect increment of bNumEndpoints
43390f1621 BACKPORT: hugetlb: unshare some PMDs when splitting VMAs
391c34feed UPSTREAM: KVM: arm64: Free hypervisor allocations if vector slot init fails
2f9858326d UPSTREAM: coresight: trbe: remove cpuhp instance node before remove cpuhp state
73c8565a9e UPSTREAM: block: mq-deadline: Fix dd_finish_request() for zoned devices
9a595405c4 UPSTREAM: mm/page_exit: fix kernel doc warning in page_ext_put()
8adfaec154 BACKPORT: arm64: mm: kfence: only handle translation faults
d11c3f780c UPSTREAM: mm/damon/dbgfs: check if rm_contexts input is for a real context
8eb30a41f5 UPSTREAM: mm/shmem: use page_mapping() to detect page cache for uffd continue
f74be44246 UPSTREAM: usb: dwc3: gadget: Don't delay End Transfer on delayed_status
37b3a6153f UPSTREAM: powerpc/64: Include cache.h directly in paca.h
3815eca894 UPSTREAM: firmware: tegra: Fix error application of sizeof() to pointer
1b3cfadf63 BACKPORT: drm/amd/display: Allocate structs needed by dcn_bw_calc_rq_dlg_ttu in pipe_ctx
3fafe0740e BACKPORT: drm/amd/display: Pass display_pipe_params_st as const in DML
61344663df ANDROID: clear memory trylock-bit when page_locked.
d55931c1cc UPSTREAM: ext4: fix kernel BUG in 'ext4_write_inline_data_end()'
08ccb44bff ANDROID: GKI: Update symbols to symbol list
faf3626b8e ANDROID: incremental fs: Evict inodes before freeing mount data
b7b3a636ad UPSTREAM: mm: memcontrol: set the correct memcg swappiness restriction
3ea370605a UPSTREAM: media: rc: Fix use-after-free bugs caused by ene_tx_irqsim()
d88cd5c7f0 ANDROID: Fix kernelci break: eventfd_signal_mask redefined
2a7aed7298 ANDROID: dm-default-key: update for blk_crypto_evict_key() returning void
0dad2818cb BACKPORT: FROMGIT: blk-crypto: make blk_crypto_evict_key() more robust
b3926f1a34 BACKPORT: FROMGIT: blk-crypto: make blk_crypto_evict_key() return void
e7bfca1670 BACKPORT: FROMGIT: blk-mq: release crypto keyslot before reporting I/O complete
469e02cc6d BACKPORT: of: base: Skip CPU nodes with "fail"/"fail-..." status
e0d8206f5d UPSTREAM: hid: bigben_probe(): validate report count
7fd7972fc1 UPSTREAM: HID: bigben: use spinlock to safely schedule workers
1bba06f3e8 UPSTREAM: HID: bigben_worker() remove unneeded check on report_field
aaffce1ef4 UPSTREAM: HID: bigben: use spinlock to protect concurrent accesses
d1d2d17fe9 BACKPORT: USB: gadget: Fix use-after-free during usb config switch

Change-Id: Ia2fcbb257da4641590addf2da2f6938144405043
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-05-30 19:13:34 +00:00
2023-04-05 11:23:43 +02:00
2021-05-20 15:35:25 +02: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 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:, 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%