Greg Kroah-Hartman 96e5d6e9d5 Merge branch 'android13-5.10' into branch 'android13-5.10-lts'
Sync back up with changes in the android13-5.10 branch to catch the new
symbols that we need to track properly.

29c427664a Merge tag 'android13-5.10.149_r00' into android13-5.10
70be865521 ANDROID: Update the ABI representation
57e680a1a8 ANDROID: Sched: Add restricted vendor hook in update_misfit_status()
64b7606115 ANDROID: Sched: Add restricted vendor hook in schedule()
ef815ee856 ANDROID: Sched: Add restricted vendor hook in wake_up_new_task()
b7dbea10b1 ANDROID: Fix license for BUILD.bazel file.
c45168c6c2 ANDROID: kleaf: load() then package().
2ff20aeeb6 ANDROID: update the .xml ABI file due to LTS changes.
887fa8f059 Revert "mtd: fix 'part' field data corruption in mtd_info"
e6a51ad94c Revert "audit: log AUDIT_TIME_* records only from rules"
cac3a605c5 Merge 64f18041dd ("Merge branch 'android13-5.10' into branch 'android13-5.10-lts'") into android13-5.10-lts
cc59c47abb ANDROID: GKI: rockchip: Enable symbols for charger and battery
fd1290ee6c ANDROID: GKI: MGLRU ABI Fixup
e0f24fb5c6 ANDROID: GKI: Build multi-gen LRU
92c47e2a15 ANDROID: Make MGLRU aware of speculative faults
9d5b3a1547 BACKPORT: mm: multi-gen LRU: design doc
ee101878a8 UPSTREAM: mm: multi-gen LRU: admin guide
86b889811d BACKPORT: mm: multi-gen LRU: debugfs interface
3369bf02b2 UPSTREAM: mm: multi-gen LRU: thrashing prevention
e9983679e7 BACKPORT: mm: multi-gen LRU: kill switch
e4ed637282 BACKPORT: mm: multi-gen LRU: optimize multiple memcgs
c2869b6c22 BACKPORT: mm: multi-gen LRU: support page table walks
fd80133d8c BACKPORT: mm: multi-gen LRU: exploit locality in rmap
8455e88fe4 BACKPORT: mm: multi-gen LRU: minimal implementation
278f56801a BACKPORT: mm: multi-gen LRU: groundwork
245ea1de3e BACKPORT: mm/vmscan.c: refactor shrink_node()
4ccde30ac9 BACKPORT: mm: x86: add CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG
f04c2fbac2 BACKPORT: mm: x86, arm64: add arch_has_hw_pte_young()
691008625e Revert "FROMLIST: mm: x86, arm64: add arch_has_hw_pte_young()"
4741bcbac4 Revert "FROMLIST: mm: x86: add CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG"
a38ef3be2b Revert "FROMLIST: mm/vmscan.c: refactor shrink_node()"
ead7512d05 Revert "FROMLIST: mm: multi-gen LRU: groundwork"
b61dbc579b Revert "FROMLIST: mm: multi-gen LRU: minimal implementation"
7a2929e68c Revert "FROMLIST: mm: multi-gen LRU: exploit locality in rmap"
db1832bb7c Revert "FROMLIST: mm: multi-gen LRU: support page table walks"
6fa2a68b43 Revert "FROMLIST: mm: multi-gen LRU: optimize multiple memcgs"
56c66e7cc4 Revert "FROMLIST: mm: multi-gen LRU: kill switch"
06e6006a04 Revert "FROMLIST: mm: multi-gen LRU: thrashing prevention"
0d9f7bf39c Revert "FROMLIST: mm: multi-gen LRU: debugfs interface"
43c49618c8 Revert "FROMLIST: mm: multi-gen LRU: admin guide"
3676a0c29a Revert "FROMLIST: mm: multi-gen LRU: design doc"
66f2c69836 Revert "ANDROID: GKI: build multi-gen LRU"
40dd81e34c Revert "ANDROID: Make MGLRU aware of speculative faults"
baa23246e9 UPSTREAM: binder: Gracefully handle BINDER_TYPE_FDA objects with num_fds=0
3d213a626d UPSTREAM: binder: Address corner cases in deferred copy and fixup
9d1efccf5e UPSTREAM: binder: fix pointer cast warning
b83173bf86 UPSTREAM: binder: defer copies of pre-patched txn data
aaf2369717 UPSTREAM: binder: read pre-translated fds from sender buffer
ecf61e4e11 UPSTREAM: binder: avoid potential data leakage when copying txn
3767674eac ANDROID: khugepaged: fix mixing declarations warning in retract_page_tables
c440edc7a2 ANDROID: mm: fix build issue in spf when CONFIG_USERFAULTFD=n
2a62463d6e UPSTREAM: f2fs: don't use casefolded comparison for "." and ".."
c63efa6751 UPSTREAM: regulator: scmi: Fix refcount leak in scmi_regulator_probe
9b8948cb0e UPSTREAM: KVM: arm64: vgic-v3: Consistently populate ID_AA64PFR0_EL1.GIC
3bba44a8c3 UPSTREAM: block/mq-deadline: Set the fifo_time member also if inserting at head
49823ad276 BACKPORT: Revert "mm/cma.c: remove redundant cma_mutex lock"
fb3cba1815 UPSTREAM: module.h: simplify MODULE_IMPORT_NS
9257ade3bc UPSTREAM: procfs: prevent unprivileged processes accessing fdinfo dir
ae1f81f7f4 UPSTREAM: KVM: arm64: nvhe: Eliminate kernel-doc warnings
17d733d05b UPSTREAM: iommu/mediatek: Add mutex for m4u_group and m4u_dom in data
b66bdceff1 UPSTREAM: iommu/mediatek: Remove clk_disable in mtk_iommu_remove
c19e8027fe UPSTREAM: iommu/mediatek: Fix 2 HW sharing pgtable issue
80b363ae64 UPSTREAM: mm: hugetlb: add missing cache flushing in hugetlb_unshare_all_pmds()
4d39f905f5 UPSTREAM: firmware: arm_ffa: Remove incorrect assignment of driver_data
d57c415ab0 UPSTREAM: firmware: arm_ffa: Fix uuid parameter to ffa_partition_probe
dba02a021a UPSTREAM: selftests/damon: add damon to selftests root Makefile
9e059fe061 BACKPORT: KVM: arm64: Actually prevent SMC64 SYSTEM_RESET2 from AArch32
c6408580e1 UPSTREAM: KVM: arm64: Generally disallow SMC64 for AArch32 guests
1eed68cdc9 UPSTREAM: irqchip/gic-v4: Wait for GICR_VPENDBASER.Dirty to clear before descheduling
968c524ded UPSTREAM: virtio: use virtio_device_ready() in virtio_device_restore()
9eaf45a22b UPSTREAM: mm: kfence: fix missing objcg housekeeping for SLAB
7923c77f8f UPSTREAM: fs: erofs: add sanity check for kobject in erofs_unregister_sysfs
e7bbb89470 UPSTREAM: clk: Fix clk_hw_get_clk() when dev is NULL
69914efc9b UPSTREAM: arm64: kasan: fix include error in MTE functions
2be9d2b296 UPSTREAM: arm64: prevent instrumentation of bp hardening callbacks
2917f48bdb UPSTREAM: PM: domains: Fix sleep-in-atomic bug caused by genpd_debug_remove()
d9612d6109 UPSTREAM: mm: fix use-after-free bug when mm->mmap is reused after being freed
3b68c1140f UPSTREAM: kasan: test: prevent cache merging in kmem_cache_double_destroy
d27c600b42 BACKPORT: vsprintf: Fix %pK with kptr_restrict == 0
75a8a2c657 ANDROID: KVM: arm64: Use 32-bit function ID for PSCI MEM_PROTECT call
24ba7e97d3 UPSTREAM: efi: capsule-loader: Fix use-after-free in efi_capsule_write
d2426b0692 UPSTREAM: net: preserve skb_end_offset() in skb_unclone_keeptruesize()
2ea1a8c467 BACKPORT: net: add skb_set_end_offset() helper
7d40247c5b UPSTREAM: arm64: Correct wrong label in macro __init_el2_gicv3
cb515c669c UPSTREAM: KVM: arm64: Stop handle_exit() from handling HVC twice when an SError occurs
316b7560ab UPSTREAM: KVM: arm64: Avoid consuming a stale esr value when SError occur
e3e5b3b856 UPSTREAM: usb: typec: tcpm: Do not disconnect when receiving VSAFE0V
2317bc5306 UPSTREAM: usb: typec: tcpci: don't touch CC line if it's Vconn source
8f2ac1deb1 UPSTREAM: dt-bindings: memory: mtk-smi: Correct minItems to 2 for the gals clocks
72decd9765 BACKPORT: dt-bindings: memory: mtk-smi: No need mediatek,larb-id for mt8167
33e4819112 BACKPORT: dt-bindings: memory: mtk-smi: Rename clock to clocks
851451819e UPSTREAM: dma-buf: cma_heap: Fix mutex locking section
c8f988d00d UPSTREAM: scsi: core: Declare 'scsi_scan_type' static
f3fe2dacb0 UPSTREAM: scsi: core: Suppress a kernel-doc warning
17b50edfad UPSTREAM: dma-buf: DMABUF_SYSFS_STATS should depend on DMA_SHARED_BUFFER
4ececb4ebd UPSTREAM: clk: versatile: Depend on HAS_IOMEM
9b70ff660f BACKPORT: arm64: meson: select COMMON_CLK
05fbbf0d13 UPSTREAM: tools: do not include scripts/Kbuild.include
924872e549 UPSTREAM: kbuild: dummy-tools: adjust to scripts/cc-version.sh
252e42f395 UPSTREAM: kbuild: do not include include/config/auto.conf from adjust_autoksyms.sh
b9a8323fde UPSTREAM: scsi: docs: ABI: sysfs-driver-ufs: Add DeepSleep power mode
26369cdee4 ANDROID: gki_defconfig: enable CONFIG_USB_CONFIGFS_F_UVC
0481654d9f ANDROID: mm: disable speculative page faults for CONFIG_NUMA
f6ddc1c41e ANDROID: mm: fix invalid backport in speculative page fault path
c3f0fd7976 ANDROID: disable page table moves when speculative page faults are enabled
3d3b77c9c0 ANDROID: mm: assert that mmap_lock is taken exclusively in vm_write_begin
df62da3909 ANDROID: mm: remove sequence counting when mmap_lock is not exclusively owned
66544e79f4 ANDROID: mm/khugepaged: add missing vm_write_{begin|end}
2a3979df04 BACKPORT: FROMLIST: mm: implement speculative handling in filemap_fault()
ec35e912e7 ANDROID: mm: prevent reads of unstable pmd during speculation
ce7fa7020a ANDROID: mm: prevent speculative page fault handling for in do_swap_page()
4812532ece ANDROID: mm: prevent speculative page fault handling for userfaults
43247cf563 ANDROID: mm: skip pte_alloc during speculative page fault
2f2dc42fbf ANDROID: GKI: rockchip: Add symbols for cpufreq
c8f45c4915 ANDROID: Update the ABI representation
0fabf2342f ANDROID: sched: add hook point in do_sched_yield()
2aed2a7cb0 ANDROID: KVM: arm64: s2mpu: Fix SYNC latency regression
e1ea4666e1 ANDROID: KVM: arm64: iommu: Add host_stage2_idmap_complete
15e65b4a22 ANDROID: KVM: arm64: Issue CMOs when tearing down shadow pages
80fcf382d1 ANDROID: Add ashmem ioctl to return a unique file identifier
056ee87d05 ANDROID: Update the ABI representation
b6cfd9d69f ANDROID: KVM: arm64: Fix repainting of PSCI SYSTEM_RESET2 calls
03b60942fe ANDROID: Update the ABI representation
d08c3d3ba2 ANDROID: Update the ABI representation
01645da2f5 ANDROID: Update the ABI representation
6c86db3f70 ANDROID: Update the ABI representation
db144888f8 ANDROID: kernel: sched: Export reweight_task
6f642cd2f2 FROMGIT: f2fs: allow to read node block after shutdown
92a7e867cf FROMGIT: usb: core: stop USB enumeration if too many retries
f3fe2e6612 ANDROID: KVM: arm64: Adjust PSCI MEM_PROTECT refcount across share/unshare
e7b635a520 BACKPORT: ext4,f2fs: fix readahead of verity data
c57ed31850 ANDROID: Update the ABI representation
bcf1e503f5 ANDROID: adjust vendor hook to control blk_plug
6cbaa88f4a ANDROID: dm-user: Remove bio recount in I/O path
69e2e9275b ANDROID: Update the ABI representation
501eeee6e2 UPSTREAM: irqchip/tegra: Fix overflow implicit truncation warnings
13a5e047bd UPSTREAM: drm/meson: Fix overflow implicit truncation warnings
55a2910224 UPSTREAM: video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write
52e7aa3245 FROMLIST: KVM: arm64: pkvm: Fixup boot mode to reflect that the kernel resumes from EL1
bcb19fa296 ANDROID: GKI: Add symbol list for exynos
9e3ae1fbd3 UPSTREAM: sched: Fix yet more sched_fork() races
3de7d142cf BACKPORT: KVM: arm64: Fix bad dereference on MTE-enabled systems
b684150a44 FROMLIST: binder: fix UAF of alloc->vma in race with munmap()
9ffd177dce ANDROID: Update the ABI representation
89fed37332 ANDROID: vendor hook to control blk_plug for shrink_lruvec
c0ce22abf7 UPSTREAM: mm: Fix TLB flush for not-first PFNMAP mappings in unmap_region()
75c194cf1a UPSTREAM: af_key: Do not call xfrm_probe_algs in parallel
8812ab3f9d UPSTREAM: mm: Force TLB flush for PFNMAP mappings before unlink_file_vma()
4e97b7ff2b ANDROID: KVM: arm64: Donate memory per vcpu for each vcpu shadow state
6a7700c5b5 ANDROID: KVM: arm64: Initialize shadow vcpus with separate hypercalls
0b7f3b9652 ANDROID: KVM: arm64: Refactor unpinning host vcpu
d345371dd2 ANDROID: KVM: arm64: Separate functions for shadow vm and vcpu init
66be6be8fb ANDROID: KVM: arm64: Refactor code for reclaiming guest memory into a function
232bdcbd66 ANDROID: pass argument in zap_pte_range vendor hooks
a83ef907f0 ANDROID: GKI: Add for rockchip platform basic symbol
05c1e5a6fd ANDROID: GKI: Add Bazel rockchip symbol list entry
56e639d3ff ANDROID: sched: check on_rq in freezer_should_skip()
90a47b6250 ANDROID: Update the ABI representation
14c8176992 ANDROID: KVM: arm64: Only unpin a vCPU SVE state if set
559e6700c3 ANDROID: Update the ABI representation
9966a706d1 FROMGIT: f2fs: let's avoid to get cp_rwsem twice by f2fs_evict_inode by d_invalidate
86d2835139 ANDROID: Update the ABI representation
a17e132ec4 ANDROID: vendor hook to control blk_plug for memory reclaim
1c741865f4 ANDROID: Update the ABI representation
6c543641c6 UPSTREAM: wifi: mac80211: fix MBSSID parsing use-after-free
187e6dad2a UPSTREAM: wifi: mac80211: don't parse mbssid in assoc response
12bd079b61 UPSTREAM: mac80211: mlme: find auth challenge directly
13c3ed22fe UPSTREAM: wifi: cfg80211: update hidden BSSes to avoid WARN_ON
4bff45998e UPSTREAM: wifi: mac80211: fix crash in beacon protection for P2P-device
7e9ccb517a UPSTREAM: wifi: mac80211_hwsim: avoid mac80211 warning on bad rate
88b3da7668 UPSTREAM: wifi: cfg80211: avoid nontransmitted BSS list corruption
1e18328c84 UPSTREAM: wifi: cfg80211: fix BSS refcounting bugs
d56839bb09 UPSTREAM: wifi: cfg80211: ensure length byte is present before access
d96c2b5944 UPSTREAM: wifi: cfg80211/mac80211: reject bad MBSSID elements
4ae8e2c20f UPSTREAM: wifi: cfg80211: fix u8 overflow in cfg80211_update_notlisted_nontrans()
6e0df30312 ANDROID: Update the ABI representation
74e2ea264c ANDROID: vendor hook to control bh_lru and lru_cache_disable
f45d10e83b ANDROID: Update the ABI representation
d257ef6764 ANDROID: vendor hook for TLB batching control
2823b3889d UPSTREAM: fbcon: Prevent that screen size is smaller than font size
739b963eb8 UPSTREAM: fbcon: Disallow setting font bigger than screen size
cf3742cba4 UPSTREAM: fbmem: Check virtual screen sizes in fb_set_var()
788ba5e9de ANDROID: GKI: Add build for rockchip platform
90db4c38b9 ANDROID: Update the ABI representation
2f8253b7e6 ANDROID: vendor hook to control pagevec flush
992b5f98ca ANDROID: KVM: arm64: s2mpu: Add SysMMU_SYNC timeout
19424168db ANDROID: KVM: arm64: Force CMOs with FWB when reclaiming guest pages
f177a280b1 ANDROID: KVM: arm64: Fix MMIO guard map error handling
32bef95f91 UPSTREAM: psi: Fix psi state corruption when schedule() races with cgroup move
e4c738dd13 ANDROID: Update the ABI representation
07e046b996 BACKPORT: HID: steam: Prevent NULL pointer dereference in steam_{recv,send}_report
b366878684 ANDROID: KVM: arm64: Fix MMIO guard unmap
befd3e393e UPSTREAM: crypto: jitter - add oversampling of noise source
6ed90e9805 ANDROID: Update the ABI representation
9a8b45a9e4 FROMGIT: f2fs: support recording stop_checkpoint reason into super_block

.xml file updated with the abi preservation change:

type 'struct sk_buff' changed
  member 'union { struct { __u8 scm_io_uring; __u8 android_kabi_reserved1_padding1; __u16 android_kabi_reserved1_padding2; __u32 android_kabi_reserved1_padding3; }; struct { u64 android_kabi_reserved1; }; union { }; }' was added
  member 'u64 android_kabi_reserved1' was removed

Change-Id: I9ebc56503eafbab7e85a3d7dd6974beda91427ee
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2022-12-02 11:37:47 +00:00
2021-05-20 15:35:25 +02:00
2022-06-19 02:47:56 +00: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%