Skip to content

Rebase edera/mainline onto master @ 7d51f37ed48e - #129

Closed
edera-rebase-app[bot] wants to merge 10000 commits into
edera/mainlinefrom
rebase/edera-mainline/20261121-1f12a9499e15-7d51f37ed48e
Closed

edera-rebase-app[bot] wants to merge 10000 commits into
edera/mainlinefrom
rebase/edera-mainline/20261121-1f12a9499e15-7d51f37ed48e

Conversation

@edera-rebase-app

Copy link
Copy Markdown

Nightly rebase of edera/mainline (1f12a9499e15) onto master (7d51f37ed48e), driven by Claude. Not pushed automatically because the checker found drift and Claude's report asks for a decision. Run log.

Important

Do not use the merge button: this branch replaces edera/mainline rather than merging into it. Approve the pull request to land it; the land workflow force-pushes edera/mainline to the approved head, pinned to 1f12a9499e15, and keeps a backup.

Independent checks

Builds: success (x86_64 vmlinux on the Edera host config and arm64 vmlinux, both with the Edera features built in; per-build results in the run).

Old tip 1f12a9499e15
New tip 6cbe1a894214
Old upstream base 864c07de0c7d
New upstream base 7d51f37ed48e
  • New branch is based on the upstream tip.
  • Downstream series is linear.
  • Downstream commit set changed: 134 before, 133 after; 2 commit(s) lost, added, or with different +/- lines.
  • Downstream drift: the tree changed by more than the upstream delta.
Commits whose hunk context moved (own +/- lines identical)
  • ea62ac9f1b0f iommu/xen: Add Xen PV-IOMMU driver → 778e6dda87e8
  • d8221bf28f22 x86/CPU/AMD: avoid printing reset reasons on Xen domU → 2b1185ae26f4
  • bd1c0dba57c3 sysctl: wire up PaX softmode setting → c93fcecf8e57
  • 849ed61740ea use maximum supported mmap rnd entropy by default → 59f92d48abdc
  • 5b1ff5bbc8cb 9p/xen: carry the 9P session across a restore → 9fd76c88febb
  • 85e1da02b838 9p/xen: end foreign access on the grant refs we granted, not the intf page's → 3ad5aa94c332
Commits lost, added, or whose own +/- lines changed
Before After
f492e4d0cb26 9p/xen: reconnect to the backend on resume 7d91cfd3af4d 9p/xen: reconnect to the backend on resume
3f7ca89e3d70 xen/gntdev: don't copy to user space under priv->lock (#79) (none)
Drift (changed lines: upstream delta vs. actual change)
--- upstream-lines
+++ actual-lines
@@ -801672,14 +801672,30 @@
 +	gfns = kzalloc_objs(*gfns, count);
 -	refs = kcalloc(op.count, sizeof(*refs), GFP_KERNEL);
 +	refs = kzalloc_objs(*refs, op.count);
-+	mutex_unlock(&priv->lock);
--		list_del(&map->next);
-+		mutex_lock(&priv->lock);
+-	/* The list holds one reference; this one lasts until the copy is done. */
+-	refcount_inc(&map->users);
+-	/*
+-	 * Not under priv->lock: a fault here takes mmap_lock, and
+-	 * gntdev_mmap() runs with mmap_lock held and takes priv->lock.
+-	 */
+-		struct gntdev_grant_map *m;
+-		bool listed = false;
+-
+-		/* An unmap ioctl may already have taken it off the list. */
+-		list_for_each_entry(m, &priv->maps, next) {
+-			if (m == map) {
+-				list_del(&map->next);
+-				listed = true;
+-				break;
+-			}
+-		}
 +		map = gntdev_find_map_index(priv, op.index >> PAGE_SHIFT,
 +					    op.count);
 +		if (map)
 +			list_del(&map->next);
--	mutex_unlock(&priv->lock);
+-		if (listed)
+-			gntdev_put_map(priv, map);
+-	gntdev_put_map(priv, map);
 -	mmu = devm_kzalloc(&pdev->dev, sizeof(*mmu), GFP_KERNEL);
 +	mmu = devm_kzalloc_obj(&pdev->dev, *mmu);
 -	data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL);
@@ -900128,6 +900144,18 @@
 +	return ret;
 +}
 +
++#ifdef CONFIG_OPENPAX_SOFTMODE
++static const struct ctl_table pax_table[] = {
++	{
++		.procname       = "softmode",
++		.data           = &pax_softmode,
++		.maxlen         = sizeof(int),
++		.mode           = 0600,
++		.proc_handler   = proc_dointvec,
++	},
++};
++#endif
++
 +static const struct ctl_table sysctl_subsys_table[] = {
 +	{
 +		.procname	= "sysctl_writes_strict",
@@ -900175,6 +900203,9 @@
 +int __init sysctl_init_bases(void)
 +{
 +	register_sysctl_init("kernel", sysctl_subsys_table);
++#ifdef CONFIG_OPENPAX_SOFTMODE
++	register_sysctl_init("kernel/pax", pax_table);
++#endif
 +
 +	return 0;
 +}
@@ -900208,6 +900239,18 @@
 -	mutex_unlock(&static_key_mutex);
 -	return ret;
 +	return -ENOSYS;
+-#ifdef CONFIG_OPENPAX_SOFTMODE
+-static const struct ctl_table pax_table[] = {
+-	{
+-		.procname       = "softmode",
+-		.data           = &pax_softmode,
+-		.maxlen         = sizeof(int),
+-		.mode           = 0600,
+-		.proc_handler   = proc_dointvec,
+-	},
+-};
+-#endif
+-
 -static const struct ctl_table sysctl_subsys_table[] = {
 -#ifdef CONFIG_SYSCTL
 -	{
@@ -900257,6 +900300,9 @@
 -int __init sysctl_init_bases(void)
 -{
 -	register_sysctl_init("kernel", sysctl_subsys_table);
+-#ifdef CONFIG_OPENPAX_SOFTMODE
+-	register_sysctl_init("kernel/pax", pax_table);
+-#endif
 -
 -	return 0;
 -}
@@ -937543,64 +937589,15 @@
 +
 +			if (req)
 +				p9_req_put(priv->client, req);
--	if (priv->rings) {
--		for (i = 0; i < XEN_9PFS_NUM_RINGS; i++) {
--			struct xen_9pfs_dataring *ring = &priv->rings[i];
-+	for (i = 0; i < XEN_9PFS_NUM_RINGS; i++) {
-+		struct xen_9pfs_dataring *ring = &priv->rings[i];
--			cancel_work_sync(&ring->work);
-+		if (!ring->intf)
-+			break;
-+		if (ring->irq >= 0) {
-+			unbind_from_irqhandler(ring->irq, ring);
-+			ring->irq = -1;
-+		}
+-		cancel_work_sync(&ring->work);
+-
 +		cancel_work_sync(&ring->work);
--			if (!ring->intf)
--				break;
--			if (ring->irq >= 0) {
--				unbind_from_irqhandler(ring->irq, ring);
--				ring->irq = -1;
--			}
--			if (ring->data.in) {
--				for (j = 0; j < (1 << ring->intf->ring_order);
--				     j++) {
--					grant_ref_t ref;
--
--					ref = ring->intf->ref[j];
--					gnttab_end_foreign_access(ref, NULL);
--					ring->intf->ref[j] = INVALID_GRANT_REF;
--				}
--				free_pages_exact(ring->data.in,
--						 1UL << (ring->intf->ring_order +
--							 XEN_PAGE_SHIFT));
--				ring->data.in = NULL;
--				ring->data.out = NULL;
--			}
--			if (ring->ref != INVALID_GRANT_REF) {
--				gnttab_end_foreign_access(ring->ref, NULL);
--				ring->ref = INVALID_GRANT_REF;
-+		if (ring->data.in) {
-+			for (j = 0; j < (1 << ring->intf->ring_order); j++) {
-+				grant_ref_t ref;
-+
-+				ref = ring->intf->ref[j];
-+				gnttab_end_foreign_access(ref, NULL);
-+				ring->intf->ref[j] = INVALID_GRANT_REF;
--			free_page((unsigned long)ring->intf);
--			ring->intf = NULL;
-+			free_pages_exact(ring->data.in,
-+					 1UL << (ring->intf->ring_order +
-+						 XEN_PAGE_SHIFT));
-+			ring->data.in = NULL;
-+			ring->data.out = NULL;
++
+-	if (priv->rings) {
+-		xen_9pfs_front_free_rings(priv);
 -		kfree(priv->rings);
-+		if (ring->ref != INVALID_GRANT_REF) {
-+			gnttab_end_foreign_access(ring->ref, NULL);
-+			ring->ref = INVALID_GRANT_REF;
-+		}
-+		free_page((unsigned long)ring->intf);
-+		ring->intf = NULL;
+-	}
++	xen_9pfs_front_free_rings(priv);
 -	priv->rings = kzalloc_objs(*priv->rings, XEN_9PFS_NUM_RINGS);
 -	if (!priv->rings) {
 -		kfree(priv);

Claude's report

Summary

Rebased edera/mainline (old tip 1f12a9499e15) from merge base 864c07de0c7d (v7.2-rc5-26646-g864c07de0c7d) onto upstream 7d51f37ed48e (v7.2-rc5-43942-g7d51f37ed48e), an upstream range of 16266 non-merge commits (merge window). 134 downstream commits were replayed; 133 remain on rebase-result (tip 6cbe1a894214). Five commits conflicted and were resolved by hand: sysctl: wire up PaX softmode setting, use maximum supported mmap rnd entropy by default, 9p/xen: reconnect to the backend on resume, 9p/xen: carry the 9P session across a restore and xen/gntdev: don't copy to user space under priv->lock (#79). The last of these became empty when resolved in upstream's favour, and git dropped it. x86_64 and arm64 vmlinux both build. The checker reports what this report explains: the commit set changed (134 → 133, plus a changed 9p/xen: reconnect…), and there is drift in drivers/xen/gntdev.c, kernel/sysctl.c and net/9p/trans_xen.c. All of that drift comes from the resolutions below. I expect the base, linearity and build checks to pass, and the commit-set and drift checks to flag exactly these items.

Needs a decision

  • UNSURE: Upstream and downstream fix the same gntdev deadlock in different ways, so I dropped downstream 3f7ca89e3d70 xen/gntdev: don't copy to user space under priv->lock (#79). Upstream 7620a997e485 xen/gntdev: fix deadlock between map ioctl and mmap (Cc: stable) also drops priv->lock before copy_to_user() in gntdev_ioctl_map_grant_ref(). On failure it re-takes the lock and removes the map by index with gntdev_find_map_index(). Downstream took an extra refcount_inc(&map->users) and removed the map by pointer identity.
    • Reading A (committed): upstream wins on fixes. The final function is byte-identical to upstream, the downstream commit became empty, and git dropped it.
    • Reading B: keep the downstream variant on top. It never removes a different map that reused the same index after a concurrent unmap-then-map in the same fd, which upstream's index lookup can do (userspace racing itself; no memory-safety impact that I can see).
    • If you prefer B, re-apply 3f7ca89e3d70 on top of upstream's version as a deliberate override and send it upstream.
    • Note: git auto-merged a downstream if (listed) gntdev_put_map() line into upstream's error path. Leaving it there would have put the map twice, and I removed it.
  • UNSURE: Upstream ea51d1a4c31f x86/CPU/AMD: Don't print reset reason in VMs (Cc: stable) now returns early from print_s5_reset_status_mmio() whenever X86_FEATURE_HYPERVISOR is set.
    • Downstream x86/CPU/AMD: avoid printing reset reasons on Xen domU skipped only Xen PV domU, and deliberately kept the print in dom0. Both checks are now in arch/x86/kernel/cpu/amd.c, and the downstream one is dead code.
    • If X86_FEATURE_HYPERVISOR is set in a Xen PV dom0 (I believe it is, but could not confirm from this tree), dom0 no longer prints the reset reason.
    • What I committed: I replayed the downstream commit unchanged; it applied cleanly.
    • Alternatives:
      • Accept the cosmetic loss and drop the now-redundant downstream commit.
      • Change the condition to HYPERVISOR && !(XENPV && xen_initial_domain()) to keep the dom0 print.
  • UNSURE: Upstream 228e21764b38 Drivers: hv: Run VMBus kexec cleanup from syscore shutdown moved hv_kexec_handler() (VMBus unload plus SynIC cpuhp teardown) into the VMBus syscore .shutdown, guarded by kexec_is_in_progress().
    • That syscore is registered from hv_acpi_init(), which also runs in the downstream Xen PV dom0 nested on Hyper-V (hv_is_hyperv_initialized() is true there). Before this change, the handler only ran from hv_machine_shutdown(), which is installed only on native Hyper-V.
    • So a Linux-native kexec in the nested dom0 now unloads VMBus but leaves the downstream Xen VMBus VIRQ bound (hyperv_remove_xen_vmbus_irq() is not called on this path).
    • This is probably harmless, or an improvement, since Xen dom0 kexec normally goes through Xen. I could not rule it out. I committed nothing for it.

Conflicts resolved

  • sysctl: wire up PaX softmode setting: kernel/sysctl.c; collided with 443bea2f71c5 sysctl: consolidate CONFIG_SYSCTL into a single block in kernel/sysctl.c and acd19f2c56f2.
    • Upstream moved sysctl_subsys_table and sysctl_init_bases() into the single #ifdef CONFIG_SYSCTL block and dropped the inner #ifdef CONFIG_SYSCTL.
    • I placed the downstream pax_table (under CONFIG_OPENPAX_SOFTMODE) immediately before the moved sysctl_subsys_table, and its register_sysctl_init("kernel/pax", …) in the moved sysctl_init_bases().
    • Content is unchanged, and it is still built only with CONFIG_SYSCTL. The checker shows this as drift because the block moved.
  • use maximum supported mmap rnd entropy by default: arch/Kconfig; collided with 8cdae75cebe0 arch/Kconfig: fix dead conditions by removing dead options.
    • Upstream removed ARCH_MMAP_RND_BITS_DEFAULT and ARCH_MMAP_RND_COMPAT_BITS_DEFAULT and their default … if … lines. Nothing in the tree referenced them, and an int used as a condition is always false.
    • I kept upstream's removal and the downstream change from default …_MIN to default …_MAX. The downstream commit's own +/- lines are unchanged.
  • 9p/xen: reconnect to the backend on resume: net/9p/trans_xen.c; collided with b3d07d64832c 9p/xen: Use array for data rings and 7b6f2e3c29fb 9p/xen: drain response work after unbinding IRQ (Fixes:, Cc: stable).
    • Downstream reuses the same rings across a reconnect and never reallocates the array, so I kept upstream's embedded rings[XEN_9PFS_NUM_RINGS] and added the downstream fields (ring_order, rings_sem, connected).
    • I dropped the downstream kzalloc_objs/kfree(priv->rings)/if (priv->rings). xen_9pfs_front_free() now calls xen_9pfs_front_free_rings() unconditionally.
    • In the downstream-extracted xen_9pfs_front_free_rings() I kept upstream's fixed order: unbind_from_irqhandler() before cancel_work_sync(). Downstream had moved the code with the old order.
    • The downstream xen_9pfs_front_disconnect() still does schedule_work() + flush_work() while the IRQ is bound, to collect replies. It then calls free_rings(), which unbinds and then cancels, so any re-queue is drained.
    • This is the "changed +/- lines" commit in the checker output.
  • 9p/xen: carry the 9P session across a restore: net/9p/trans_xen.c; collided with 9b4cf60c6b73 9p/xen: validate the response size from the backend (Fixes:, Cc: stable) and b3d07d64832c.
    • I put upstream's h.size validation (sizeof(h) <= h.size <= queued) in p9_xen_response() before the downstream control-reply (P9_NOTAG on ring 0) branch, so control replies are validated too.
    • Consequence: if the backend sends a malformed control reply, the worker now stops instead of completing ctl_done. xen_9pfs_front_ctl() then returns -ETIMEDOUT after XEN_9PFS_CTL_TIMEOUT (5 s) instead of -EPROTO, and the ring is left stalled, as upstream does for any malformed reply.
    • I dropped the rings allocation as above, and kept INIT_LIST_HEAD(&priv->session), init_completion(&priv->ctl_done) and xen_9pfs_front_session_free().
  • xen/gntdev: don't copy to user space under priv->lock (#79): drivers/xen/gntdev.c; collided with 7620a997e485 xen/gntdev: fix deadlock between map ioctl and mmap. I resolved it to upstream's version; see Needs a decision.

Dropped downstream commits

  • xen/gntdev: don't copy to user space under priv->lock (#79) (3f7ca89e3d70). It became empty after resolving to upstream 7620a997e485 xen/gntdev: fix deadlock between map ioctl and mmap, which fixes the same deadlock differently (see Needs a decision).

Build fixes

None.

Upstream commits that meet the series

I list fixes (Fixes:/Cc: stable) first, each with my reading of the final tree. The remaining commits follow.

Fixes:

  • 7620a997e485 xen/gntdev: fix deadlock between map ioctl and mmap: gntdev_ioctl_map_grant_ref() is identical to upstream. No other downstream gntdev path calls copy_to_user() under priv->lock.
  • 2b66f2cc7532 Xen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages(): intact. Downstream doesn't touch these functions.
  • 704f812cdab8 xen/grant-table: annotate on-stack work in gnttab_unmap_refs_sync(): intact.
  • a02926f7c89b xen-blkback: Avoid UAF when reading I/O statistics: rings_lock publish/unpublish and the stats read-lock are intact. The downstream NUMA placement in xen_blkif_map()/connect_ring() is independent.
  • bfddc420afe8 xen-netback: defer xenvif_mcast_addr_list_free(): the only call is still after synchronize_net() in xenbus.c. The downstream interface.c change only places kthreads and IRQs.
  • 7b6f2e3c29fb 9p/xen: drain response work after unbinding IRQ: kept in xen_9pfs_front_free_rings() (unbind, then cancel). Every teardown path (remove, init error, reconnect error, resume disconnect) goes through it. Later downstream 9p/xen: end foreign access on the grant refs we granted… kept the order.
  • 9b4cf60c6b73 9p/xen: validate the response size from the backend: validated before both the downstream control-reply branch and the tag lookup. p9_xen_response() is the only consumer of data.in.
  • 4d183e6f1532 9p/xen: fix refcount leak in p9_xen_response() on wrong tag: p9_req_put() on a wrong tag is intact. Downstream added a !priv->client guard before it.
  • 2acd800de882 9p: fix caches_show() out-of-bounds write, 7fb9bd365905 9p: fix privport option setting wrong RDMA field, 8bb0279930cc 9p: skip intermediate directory entry name copy in p9dirent_read(): all intact. The downstream features_show sits next to caches_show without changing it.
  • ea51d1a4c31f x86/CPU/AMD: Don't print reset reason in VMs: intact, and the downstream domU check is now redundant (see Needs a decision).
  • 228e21764b38 Drivers: hv: Run VMBus kexec cleanup from syscore shutdown: intact (see Needs a decision).
  • dd57772e36f7 Drivers: hv: vmbus: Check ACPI companion before use: intact.
  • 1c8f6308e557 iommu/dma: Catch scatterlist length overflows: intact. The downstream dma-iommu.c changes are in the reserved-region code.
  • 0f4a9e682f7f xattr: always invoke cap_convert_nscap() for security.capability writes: intact. Downstream only adds a read path (pax_getxattr).
  • 278b2abf660a init/bootconfig: pass init arguments in documented order, 51e766bcd35e init/main: fix false-positive kernel panic on environment variable overwrite, b82ed0e3a1da init/main: fix off-by-one in argv_init cleanup: intact. The downstream pax_softmode= change only adds code.
  • mm/vma fixes ff82ce7f90f5, f987d9f38a46, b1ee87802111, 0193e8336802, 4c2dec1dce36, 168ed9c5d5ec, c386d799f423, 769417e410dd, 13fc99f46399, 8146c6478224, ef694e2d2101, 68cb098eadda, 7135a05838e8, aa09311c40f6: all intact.
    • The downstream OpenPaX mm changes only add code and use the new vma_flags_t API. map_deny_write_exec with PAXF_MPROTECT reads only. The brk change clears bits on a local copy before the VMA exists.
    • pax_flags lives on mm_struct, not the VMA, so the atomic-VMA-flag fixes don't apply.
    • Since ef694e2d2101, fork copies pax_flags with the mm struct under mmap_lock, which is still correct.
  • 799203afd298 nvme-tcp: validate the TLS handshake timeout, e3e7a85730a4 nvmet-tcp: validate the TLS handshake timeout, 681f3b68f435 KVM: guest_memfd: Fix the in-place conversion documentation, 5728d3523f12 memblock: reject non-page-aligned reserve_mem regions: these touch only Documentation/admin-guide/kernel-parameters.txt (or neighbouring docs) where the series meets them. The downstream pax_softmode= doc entry is intact.

Other upstream commits touching shared files (no fix tags). I checked them for contract changes and found no collision:

  • 6eecb67b69af xen/grant-table: stop setting PG_private on pages for grant mapping:
    • Downstream gnttab_alloc_pages_node() goes through the same gnttab_pages_set_private().
    • A tree-wide grep of drivers/xen, arch/x86/xen and include/xen finds no PagePrivate/SetPagePrivate/ClearPagePrivate/PG_private.
    • unpopulated-alloc (including push_page()) and the 2 MiB balloon use zone_device_data, lru and PageOffline, not page->private.
  • 4ebb3b8d129c xen: don't allow gnttab_dma_[alloc|free]_pages() in PV guest: intact.
  • b3d07d64832c 9p/xen: Use array for data rings: adopted (see conflicts).
  • 241d46901226 9p: reject RERROR/RLERROR with zero errcode: intact in p9_check_errors(). The downstream control-request path applies the same rule on its own (it rejects ecode == 0 and ecode > MAX_ERRNO with -EPROTO).
  • 2690d4156b51 iommu/hyperv: Add para-virtualized IOMMU support for Hyper-V guest: CONFIG_HYPERV_PVIOMMU=y in the x86 build. Its x86_init.iommu.iommu_init = hv_iommu_init is installed only from hyperv_init() (native Hyper-V). The downstream nested-on-Xen path (hyperv_init_nested_on_xen()) never installs it, so it cannot compete with the Xen PV-IOMMU. Latent only: hv_is_hyperv_initialized() returns true when nested on Xen, so this would need care if the hook were ever wired into the Xen path.
  • 118bdac10546 Drivers: hv: Add logical device ID registry for vPCI devices: the registry is set up in hv_common_init(), which hyperv_init_nested_on_xen() calls, and freed on its error path. No collision.
  • 1ae140d0f272 iommu: Make iommu-dma helpers private, fdd81f15fc43 iommu/dma: Clean up redundant MSI cookie check: the downstream Xen PV-IOMMU uses neither moved helper and reserves its MSI window as a plain reserved region. Builds pass.
  • 641a9b9cc697 dma-mapping: use exact allocation for DMA pages, 95d2fec40c48 dma-mapping: rename dma_opt_mapping_size(): no downstream user of the old name or behaviour.
  • d0ec95a8a4e7 hv_netvsc: Advertise the SR-IOV capability for CoCo VMs: independent of the downstream tx DMA mapping.
  • 56fb075b77f8 mshv: Redesign hypervisor memory deposit logic: root-partition only; downstream doesn't use the removed declarations.
  • 443bea2f71c5, acd19f2c56f2 (sysctl consolidation): see conflicts. 242bac52294e, d08ab285b096, 2bfbb09b505c (sysctl vector semantics) don't affect the scalar kernel.pax.softmode.
  • 8cdae75cebe0 arch/Kconfig: fix dead conditions by removing dead options: see conflicts.
  • cf27412f19c9 x86/bugs: Mitigate TSA on AMD Zen5: a different region of amd.c.

Remaining upstream commits that touch a shared file (cleanups, renames, docs; no collision found and the build passes):
38828d44f31e rcu-tasks: Use pr_debug() for callback contend/collapse messages, 0af298e62e5c treewide: refresh kmalloc_obj() conversions, 9eb9b583ea35 9p: remove duplicated assignment in v9fs_fill_super(), dc0b17144d62 mm/vma: don't remove VMA from rmap if pgoff unchanged, 14a5c975b138 mm: update comments to refer to anon rmap rather than anon_vma, 38564710f443 mm: implement and use vma_has_anon_rmap(), silence KCSAN, 6a9ef02c60bf mm/vma: const-ify vma_assert_stabilised() and associated functions, 72a993449cb0 mm: eliminate VM_SPECIAL, VMA_SPECIAL_FLAGS, 44debd840ec9 mm/vma: introduce vma[_flags]_is_mm_backed(), c911e7ebebf5 mm: rename is_vm_hugetlb_page() to vma_is_hugetlb(), 94c86564538e mm: remove hugetlb_inline.h, 88d77002e1a1 mm: remove VMA_IO_BIT check in vma[_flags]_is_mm_managed(), 99fd6bf43d5d mm/vma: enforce that mm-managed mappings may not set VMA_IO_BIT, 61e012ab9a1c mm/mlock: clear VMA_LOCKED_MASK over mmap callback, 9201d0f5b9d5 mm/vma: add and use vma_[flags]_is_fixed_mapping, d99c4a302c5a mm/vma: only allow mmap to clear VMA_MAYWRITE_BIT if not mm-managed, 7fdbc26b69c0 mm/vma: add vma[_flags]_is_mm_managed() predicates, b7b4d8f37a4f mm: add mmap action for discontiguous kernel page mapping, 4852f3421456 mm/vma: tidy up map kernel pages enum values, 6335c786299f mm/vma: ensure mmap_prepare doesn't set actions on a mergeable vma, 9cae38dc11da mm: consistently validate VMA state after mmap[_prepare] hooks, 86a779c53204 mm/vma: introduce and use vma_[flags_]can_merge(), f85eb0656c40 mm/vma: fix mmap_prepare file handling, remove file_doesnt_need_get, 2e83e2ce34ff arch, mm: promote DEBUG_WX to CHECK_WX, c2d4ccfbba3f mm: fix typos in various comments, f000a06da2a5 docs: admin-guide: Fix typo in kernel-parameters.txt, 28d5df7b7274 KVM: split CONFIG_KVM_PRIVATE_MEMATTR_VM out of KVM_VM_MEMORY_ATTRIBUTES, 084100a1b579 tracing: Parse filter from boot event string, aabe6e1b36ce init/main.c: remove unreachable check in obsolete_checksetup(), 677f83795fdf bootconfig: Move BOOTCONFIG_FOOTER_SIZE to include/linux/bootconfig.h, 958c01049e0a bootconfig: Skip printing early params to cmdline from bootconfig, 10823ced2f18 kho: rename kho_scratch= commandline parameter to kho_bootmem=, 8ebd2eb87f50 kho: rename KHO scratch to KHO bootmem, bbe5d3b3d402 treewide: remove PagePrivate() and PG_private from comments and docs, e59c9a971a9f mm/vma: make MAP_PRIVATE-mapped /dev/zero mappings truly anonymous, fe73aa910ea5 mm/vma: only permit MAP_PRIVATE /dev/zero to be mapped anonymous, 4b019e056f6c mm: implement file_is_dev_zero() to uniquely identify /dev/zero, 35e340a47888 mm: userland pgtable freeing is RCU-safe now, remove leftover bits, 47e725702b0b mm: make per-VMA locks available universally, 0bf031ba8c49 iommu: Add Broadcom BCM2712 IOMMU driver, 42eed9bb9ca4 iommu: apple-dart: Support specifying the DMA aperture in the DT, 537ec2b15fdd KVM: Let userspace disable per-VM mem attributes, enable per-gmem attributes, 33625427a382 net/9p: add vsock transport, 69d38c792c53 mm: Add copy_remote_mm_str(), 5852cdf0006f net/9p: fix typos in comments, abaa0835b4f3 bpf: Refuse caller-supplied keyrings when the bpf one is active, 264d8fd2794f bpf, keys: Add a bpf keyring for program signature validation.

Observations that come from downstream code as it was before this rebase, not from this rebase. For information only:

  • In xen_9pfs_front_disconnect(), priv->client is checked once before flush_work(). p9_xen_close() can clear it concurrently. The downstream !priv->client guard in p9_xen_response() narrows this window but is not locked.
  • OpenPaX MPROTECT (map_deny_write_exec) checks the requested flags before any mmap/mmap_prepare hook runs, the same gap upstream MDWE has.

Builds

  • x86_64: pass (Edera host config edera-dev/linux-kernel-oci@1084f6d48a94). olddefconfig warned only about =m values for built-in-only symbols (ACPI_HED, NETFILTER_NETLINK, FB_BACKLIGHT, CRYPTO_LIB_CURVE25519_GENERIC, CRYPTO_LIB_POLY1305_GENERIC); the build script did not fail.
  • arm64: pass.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.