Repository navigation
Rebase edera/mainline onto master @ 7d51f37ed48e - #129
Closed
edera-rebase-app[bot] wants to merge 10000 commits into
Closed
edera-rebase-app[bot] wants to merge 10000 commits into
edera-rebase-app[bot] wants to merge 10000 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nightly rebase of
edera/mainline(1f12a9499e15) ontomaster(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/mainlinerather than merging into it. Approve the pull request to land it; the land workflow force-pushesedera/mainlineto the approved head, pinned to1f12a9499e15, 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).
1f12a9499e156cbe1a894214864c07de0c7d7d51f37ed48eCommits whose hunk context moved (own +/- lines identical)
ea62ac9f1b0f iommu/xen: Add Xen PV-IOMMU driver→778e6dda87e8d8221bf28f22 x86/CPU/AMD: avoid printing reset reasons on Xen domU→2b1185ae26f4bd1c0dba57c3 sysctl: wire up PaX softmode setting→c93fcecf8e57849ed61740ea use maximum supported mmap rnd entropy by default→59f92d48abdc5b1ff5bbc8cb 9p/xen: carry the 9P session across a restore→9fd76c88febb85e1da02b838 9p/xen: end foreign access on the grant refs we granted, not the intf page's→3ad5aa94c332Commits lost, added, or whose own +/- lines changed
f492e4d0cb26 9p/xen: reconnect to the backend on resume7d91cfd3af4d 9p/xen: reconnect to the backend on resume3f7ca89e3d70 xen/gntdev: don't copy to user space under priv->lock (#79)(none)Drift (changed lines: upstream delta vs. actual change)
Claude's report
Summary
Rebased
edera/mainline(old tip1f12a9499e15) from merge base864c07de0c7d(v7.2-rc5-26646-g864c07de0c7d) onto upstream7d51f37ed48e(v7.2-rc5-43942-g7d51f37ed48e), an upstream range of 16266 non-merge commits (merge window). 134 downstream commits were replayed; 133 remain onrebase-result(tip6cbe1a894214). 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 restoreandxen/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 arm64vmlinuxboth build. The checker reports what this report explains: the commit set changed (134 → 133, plus a changed9p/xen: reconnect…), and there is drift indrivers/xen/gntdev.c,kernel/sysctl.candnet/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
3f7ca89e3d70 xen/gntdev: don't copy to user space under priv->lock (#79). Upstream7620a997e485 xen/gntdev: fix deadlock between map ioctl and mmap(Cc: stable) also dropspriv->lockbeforecopy_to_user()ingntdev_ioctl_map_grant_ref(). On failure it re-takes the lock and removes the map by index withgntdev_find_map_index(). Downstream took an extrarefcount_inc(&map->users)and removed the map by pointer identity.3f7ca89e3d70on top of upstream's version as a deliberate override and send it upstream.if (listed) gntdev_put_map()line into upstream's error path. Leaving it there would have put the map twice, and I removed it.ea51d1a4c31f x86/CPU/AMD: Don't print reset reason in VMs(Cc: stable) now returns early fromprint_s5_reset_status_mmio()wheneverX86_FEATURE_HYPERVISORis set.x86/CPU/AMD: avoid printing reset reasons on Xen domUskipped only Xen PV domU, and deliberately kept the print in dom0. Both checks are now inarch/x86/kernel/cpu/amd.c, and the downstream one is dead code.X86_FEATURE_HYPERVISORis set in a Xen PV dom0 (I believe it is, but could not confirm from this tree), dom0 no longer prints the reset reason.HYPERVISOR && !(XENPV && xen_initial_domain())to keep the dom0 print.228e21764b38 Drivers: hv: Run VMBus kexec cleanup from syscore shutdownmovedhv_kexec_handler()(VMBus unload plus SynIC cpuhp teardown) into the VMBus syscore.shutdown, guarded bykexec_is_in_progress().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 fromhv_machine_shutdown(), which is installed only on native Hyper-V.hyperv_remove_xen_vmbus_irq()is not called on this path).Conflicts resolved
sysctl: wire up PaX softmode setting:kernel/sysctl.c; collided with443bea2f71c5 sysctl: consolidate CONFIG_SYSCTL into a single block in kernel/sysctl.candacd19f2c56f2.sysctl_subsys_tableandsysctl_init_bases()into the single#ifdef CONFIG_SYSCTLblock and dropped the inner#ifdef CONFIG_SYSCTL.pax_table(underCONFIG_OPENPAX_SOFTMODE) immediately before the movedsysctl_subsys_table, and itsregister_sysctl_init("kernel/pax", …)in the movedsysctl_init_bases().CONFIG_SYSCTL. The checker shows this as drift because the block moved.use maximum supported mmap rnd entropy by default:arch/Kconfig; collided with8cdae75cebe0 arch/Kconfig: fix dead conditions by removing dead options.ARCH_MMAP_RND_BITS_DEFAULTandARCH_MMAP_RND_COMPAT_BITS_DEFAULTand theirdefault … if …lines. Nothing in the tree referenced them, and anintused as a condition is always false.default …_MINtodefault …_MAX. The downstream commit's own +/- lines are unchanged.9p/xen: reconnect to the backend on resume:net/9p/trans_xen.c; collided withb3d07d64832c 9p/xen: Use array for data ringsand7b6f2e3c29fb 9p/xen: drain response work after unbinding IRQ(Fixes:, Cc: stable).rings[XEN_9PFS_NUM_RINGS]and added the downstream fields (ring_order,rings_sem,connected).kzalloc_objs/kfree(priv->rings)/if (priv->rings).xen_9pfs_front_free()now callsxen_9pfs_front_free_rings()unconditionally.xen_9pfs_front_free_rings()I kept upstream's fixed order:unbind_from_irqhandler()beforecancel_work_sync(). Downstream had moved the code with the old order.xen_9pfs_front_disconnect()still doesschedule_work()+flush_work()while the IRQ is bound, to collect replies. It then callsfree_rings(), which unbinds and then cancels, so any re-queue is drained.9p/xen: carry the 9P session across a restore:net/9p/trans_xen.c; collided with9b4cf60c6b73 9p/xen: validate the response size from the backend(Fixes:, Cc: stable) andb3d07d64832c.h.sizevalidation (sizeof(h) <= h.size <= queued) inp9_xen_response()before the downstream control-reply (P9_NOTAG on ring 0) branch, so control replies are validated too.ctl_done.xen_9pfs_front_ctl()then returns-ETIMEDOUTafterXEN_9PFS_CTL_TIMEOUT(5 s) instead of-EPROTO, and the ring is left stalled, as upstream does for any malformed reply.ringsallocation as above, and keptINIT_LIST_HEAD(&priv->session),init_completion(&priv->ctl_done)andxen_9pfs_front_session_free().xen/gntdev: don't copy to user space under priv->lock (#79):drivers/xen/gntdev.c; collided with7620a997e485 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 upstream7620a997e485 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 callscopy_to_user()underpriv->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_lockpublish/unpublish and the stats read-lock are intact. The downstream NUMA placement inxen_blkif_map()/connect_ring()is independent.bfddc420afe8 xen-netback: defer xenvif_mcast_addr_list_free(): the only call is still aftersynchronize_net()inxenbus.c. The downstreaminterface.cchange only places kthreads and IRQs.7b6f2e3c29fb 9p/xen: drain response work after unbinding IRQ: kept inxen_9pfs_front_free_rings()(unbind, then cancel). Every teardown path (remove, init error, reconnect error, resume disconnect) goes through it. Later downstream9p/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 ofdata.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->clientguard 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 downstreamfeatures_showsits next tocaches_showwithout 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 downstreamdma-iommu.cchanges 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 downstreampax_softmode=change only adds code.ff82ce7f90f5,f987d9f38a46,b1ee87802111,0193e8336802,4c2dec1dce36,168ed9c5d5ec,c386d799f423,769417e410dd,13fc99f46399,8146c6478224,ef694e2d2101,68cb098eadda,7135a05838e8,aa09311c40f6: all intact.vma_flags_tAPI.map_deny_write_execwithPAXF_MPROTECTreads only. The brk change clears bits on a local copy before the VMA exists.pax_flagslives onmm_struct, not the VMA, so the atomic-VMA-flag fixes don't apply.ef694e2d2101, fork copiespax_flagswith the mm struct undermmap_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 onlyDocumentation/admin-guide/kernel-parameters.txt(or neighbouring docs) where the series meets them. The downstreampax_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:gnttab_alloc_pages_node()goes through the samegnttab_pages_set_private().drivers/xen,arch/x86/xenandinclude/xenfinds noPagePrivate/SetPagePrivate/ClearPagePrivate/PG_private.push_page()) and the 2 MiB balloon usezone_device_data,lruandPageOffline, notpage->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 inp9_check_errors(). The downstream control-request path applies the same rule on its own (it rejectsecode == 0andecode > MAX_ERRNOwith-EPROTO).2690d4156b51 iommu/hyperv: Add para-virtualized IOMMU support for Hyper-V guest:CONFIG_HYPERV_PVIOMMU=yin the x86 build. Itsx86_init.iommu.iommu_init = hv_iommu_initis installed only fromhyperv_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 inhv_common_init(), whichhyperv_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 scalarkernel.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 ofamd.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:
xen_9pfs_front_disconnect(),priv->clientis checked once beforeflush_work().p9_xen_close()can clear it concurrently. The downstream!priv->clientguard inp9_xen_response()narrows this window but is not locked.map_deny_write_exec) checks the requested flags before anymmap/mmap_preparehook runs, the same gap upstream MDWE has.Builds
edera-dev/linux-kernel-oci@1084f6d48a94).olddefconfigwarned only about=mvalues 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.