Repository navigation
Rebase edera/mainline onto master @ 4843f6873f7c - #130
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(4843f6873f7c), 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).
1f12a9499e154d2a996ccd7d864c07de0c7d4843f6873f7cCommits whose hunk context moved (own +/- lines identical)
ea62ac9f1b0f iommu/xen: Add Xen PV-IOMMU driver→c542022e3d46d8221bf28f22 x86/CPU/AMD: avoid printing reset reasons on Xen domU→49e0bc67bc07bd1c0dba57c3 sysctl: wire up PaX softmode setting→28adfa6f1bc9849ed61740ea use maximum supported mmap rnd entropy by default→5ad6e6b4a5f15b1ff5bbc8cb 9p/xen: carry the 9P session across a restore→3431016efeed85e1da02b838 9p/xen: end foreign access on the grant refs we granted, not the intf page's→731ff70ce778Commits lost, added, or whose own +/- lines changed
f492e4d0cb26 9p/xen: reconnect to the backend on resumecfed65f8abba 9p/xen: reconnect to the backend on resume3f7ca89e3d70 xen/gntdev: don't copy to user space under priv->lock (#79)6b2631020b1c xen/gntdev: don't copy to user space under priv->lock (#79)Drift (changed lines: upstream delta vs. actual change)
Claude's report
Summary
Rebased
edera/mainline(1f12a9499e15) onto torvalds master4843f6873f7c(v7.2-rc5-44189-g4843f6873f7c). The old base was864c07de0c7d(v7.2-rc5-26646-g864c07de0c7d), so the upstream range is 16498 non-merge commits (merge window). All 134 downstream commits were replayed ontorebase-resultin their original order. There was no merge commit to flatten and no commit was dropped. Five commits conflicted and I resolved each one. Four of the resolutions show up as drift; the fifth (Kconfig) does not. x86_64 and arm64 both build.verify-upstream-rebase.shpasses on base, linearity and commit count. It fails on two items, both expected from the resolutions below:9p/xen: reconnect to the backend on resumeandxen/gntdev: don't copy to user space under priv->locknow have different +/- lines.kernel/sysctl.c,net/9p/trans_xen.canddrivers/xen/gntdev.c.Needs a decision
UNSURE:
xen/gntdev: don't copy to user space under priv->lock (#79)(3f7ca89 → 6b26310) fixes the same mmap_lock/priv->lock deadlock as upstream 7620a99xen/gntdev: fix deadlock between map ioctl and mmap(Cc: stable, sameFixes:tag). The two fixes differ:copy_to_user(). On failure it re-takes the lock and looks the map up again withgntdev_find_map_index().priv->maps, then drops both references.What I committed: the downstream version as-is. After the resolution,
gntdev_ioctl_map_grant_ref()is byte-identical to what it was on the old tip, and upstream's lookup-by-index lines are gone (that is the gntdev drift). I believe the downstream version covers everything upstream's fix does: the lock is dropped across the copy, and a concurrent unmap is tolerated. It also avoids a case upstream's version can hit: a concurrent unmap followed by a new map that reuses the same index, after which the index lookup would unlist and put somebody else's map.Other reading: the fix is upstream now, so take upstream's code and let the downstream commit shrink to nothing or be dropped. That leaves less downstream delta, but brings in the index-reuse case above.
A maintainer should choose. If the downstream version stays, it may be worth sending upstream.
UNSURE: upstream 228e217
Drivers: hv: Run VMBus kexec cleanup from syscore shutdownchanges behaviour for the Hyper-V-nested-on-Xen feature, although no lines collided.hv_kexec_handler()ran only fromhv_machine_shutdown(). That hook is installed byms_hyperv_init_platform(), i.e. only whenx86_hyper_type == X86_HYPER_MS_HYPERV, so it never ran on a Xen PV dom0 nested under Hyper-V..shutdownon any kexec. On a nested-on-Xen dom0 that is new behaviour:vmbus_initiate_unload(),hv_stimer_global_cleanup()and the SynIC cpuhp teardown. The Xen VMBus VIRQ bridge (hyperv_remove_xen_vmbus_irq()) is still not torn down on that path.One reading: this is an improvement, since the L0 host gets a VMBus unload before kexec, as on native Hyper-V.
Other reading: this teardown has never run on Xen-proxied SynIC MSRs, so kexec on a nested dom0 is now an untested path. It may also need the Xen bridge removed.
I left upstream's code unchanged and made no downstream change. Someone who owns the nested-on-Xen feature should confirm kexec still works (or doesn't matter) there.
Conflicts resolved
sysctl: wire up PaX softmode setting(bd1c0db → 28adfa6),kernel/sysctl.c. Collided with upstream 443bea2sysctl: consolidate CONFIG_SYSCTL into a single block in kernel/sysctl.c(and acd19f2), which movedsysctl_subsys_tableandsysctl_init_bases()into the single#ifdef CONFIG_SYSCTLblock. I put thepax_tabledefinition and theregister_sysctl_init("kernel/pax", pax_table)call in their new location, unchanged, and dropped the stale copy of the old block that git left after the#elsestubs. Upstream's layout is kept as it is. The drift is the PaX lines moving with the code they belong to.use maximum supported mmap rnd entropy by default(849ed61 → 5ad6e6b),arch/Kconfig. Collided with upstream 8cdae75arch/Kconfig: fix dead conditions by removing dead options. Upstream removedARCH_MMAP_RND_{,COMPAT_}BITS_DEFAULTand theirdefault ... if ...lines; using an int symbol as a condition always evaluated false, so those lines never had any effect. I kept that removal and applied the downstream change, falling back to..._MAXinstead of..._MIN. The behaviour is the same as before. The commit's own +/- lines are unchanged, so this one is not drift.9p/xen: reconnect to the backend on resume(f492e4d → cfed65f),net/9p/trans_xen.c. Collided with two upstream commits:9p/xen: Use array for data rings:priv->ringsbecame a fixed array insidepriv.9p/xen: drain response work after unbinding IRQ(Fixes:, Cc: stable).What I kept:
rings[XEN_9PFS_NUM_RINGS]array, with the downstreamring_order,rings_semandconnectedfields added after it.xen_9pfs_front_free_rings()/xen_9pfs_front_free(), but with upstream's ordering infree_rings:unbind_from_irqhandler()first, thencancel_work_sync(). The fix wins, and the downstream disconnect/reconnect path, which callsfree_rings, gets the same guarantee.xen_9pfs_front_free()no longer null-checks or kfreespriv->rings.xen_9pfs_front_init()keeps the downstreamring_order/init_rwsemsetup and drops the downstream kzalloc of the rings array.9p/xen: carry the 9P session across a restore(5b1ff5b → 3431016),net/9p/trans_xen.c. Collided with upstream 9b4cf609p/xen: validate the response size from the backend(Fixes:, Cc: stable) inp9_xen_response(), and with b3d07d6 as above.h.sizerange check comes before the downstream ring-0P9_NOTAGcontrol-reply branch. That branch also advancesconsbyh.sizeand copies up toh.sizebytes, so it is now covered by the check.ring == priv->ringsis still valid with the array: it decays to&priv->rings[0].INIT_LIST_HEAD/init_completion, without the rings kzalloc/kfree.The commit's own +/- lines are unchanged; only the context moved.
xen/gntdev: don't copy to user space under priv->lock (#79)(3f7ca89 → 6b26310),drivers/xen/gntdev.c. Collided with upstream 7620a99. I kept the downstream version; see the first item under Needs a decision.Dropped downstream commits
None.
Build fixes
None.
Upstream commits that meet the series
Fixes (Fixes:/CVE/stable) on files the series touches, checked in the final tree:
7b6f2e3c29fb 9p/xen: drain response work after unbinding IRQ: intact.xen_9pfs_front_free_rings()unbinds beforecancel_work_sync(), and the downstream disconnect path uses that same function.9b4cf60c6b73 9p/xen: validate the response size from the backend: intact, and it runs before the downstream control-reply branch (see Conflicts).4d183e6f1532 9p/xen: fix refcount leak in p9_xen_response() on wrong tag: intact (p9_req_put()on the wrong-tag path).241d46901226 9p: reject RERROR/RLERROR with zero errcode: intact inp9_check_errors(). The downstream control path inxen_9pfs_front_ctl()already rejectsecode == 0/> MAX_ERRNOwith-EPROTOon its own.7620a997e485 xen/gntdev: fix deadlock between map ioctl and mmap: superseded by the downstream version (UNSURE above). The deadlock stays fixed because priv->lock is not held acrosscopy_to_user().a02926f7c89b xen-blkback: Avoid UAF when reading I/O statistics(XSA-528 / CVE-2026-100082): intact. Therings_lockcovers ring alloc/free and the sysfs readers. The downstream NUMA changes only addhost_nodeand kthread/IRQ placement and don't touch the locked sections.bfddc420afe8 xen-netback: defer xenvif_mcast_addr_list_free()(XSA-527 / CVE-2026-100081): intact. The call is no longer inxenvif_disconnect_data()and comes aftersynchronize_net()inbackend_disconnect(). The downstream interface.c changes only touch IRQ/kthread placement.ea51d1a4c31f x86/CPU/AMD: Don't print reset reason in VMs: intact. ItsX86_FEATURE_HYPERVISORcheck covers the narrower downstreamd8221bf28f22 x86/CPU/AMD: avoid printing reset reasons on Xen domUcheck (XENPV && !dom0), which replayed cleanly next to it. The downstream commit is now redundant but harmless; a maintainer may want to drop it later.13fc99f46399,c386d799f423,ff82ce7f90f5,f987d9f38a46,b1ee87802111,0193e8336802,4c2dec1dce36,168ed9c5d5ec,769417e410dd,8146c6478224,aa09311c40f6,68cb098eadda,7135a05838e8(mm/vma hotfixes): these don't reach OpenPaX. OpenPaX keeps its state in a separatemm->pax_flagsword, not in VMA flags. Its only mm/vma.c hook (the MPROTECT strip indo_brk_flags()) and themap_deny_write_exec()change both still apply to the newvma_flags_tAPI, and both builds pass.0f4a9e682f7f xattr: always invoke cap_convert_nscap() for security.capability writes: no interaction with the downstreampax_getxattr().51e766bcd35e,b82ed0e3a1da(init/main argv/env fixes): no interaction withpax_softmode=.2b66f2cc7532,4ebb3b8d129c(gnttab_dma_* error handling / PV restriction): intact. No downstream code callsgnttab_dma_{alloc,free}_pages().dd57772e36f7 Drivers: hv: vmbus: Check ACPI companion before use: intact, no interaction.228e21764b38 Drivers: hv: Run VMBus kexec cleanup from syscore shutdown: see UNSURE above.Other upstream commits that touch files the series touches, with no conflict or interaction found:
6eecb67b69af xen/grant-table: stop setting PG_private on pages for grant mapping. The downstreamgnttab_alloc_pages_node()and the gntdev placeholder relocation go throughgnttab_pages_set_private()/gnttab_free_pages(). Nothing downstream usesPagePrivate/PG_private(grepped).704f812cdab8 xen/grant-table: annotate on-stack work in gnttab_unmap_refs_sync().1ae140d0f272 iommu: Make iommu-dma helpers private. This adds#include "iommu-priv.h"todma-iommu.c, which the downstream PV-IOMMU commits also add, so the header is now included twice (header-guarded, harmless). I left the downstream commit unchanged; the line can be dropped there later.fdd81f15fc43,1c8f6308e557(dma-iommu cleanups). The downstreamxen_iommu_manages_iova()exception iniova_reserve_iommu_regions()is intact.2690d4156b51 iommu/hyperv: Add para-virtualized IOMMU support for Hyper-V guest. It setsx86_init.iommu.iommu_initonly inhyperv_init(), which the nested-on-Xen path (hyperv_init_nested_on_xen()) does not run.118bdac10546 Drivers: hv: Add logical device ID registry for vPCI devices. It applies to the nested-on-Xen vPCI path unchanged; the downstream MSI root-domain/vector overrides are separate.56fb075b77f8 mshv: Redesign hypervisor memory deposit logic.d0ec95a8a4e7 hv_netvsc: Advertise the SR-IOV capability for CoCo VMs.0af298e62e5c treewide: refresh kmalloc_obj() conversions.b3d07d64832c 9p/xen: Use array for data rings(see Conflicts),2acd800de882 9p: fix caches_show() out-of-bounds write,9eb9b583ea35,8bb0279930cc,7fb9bd365905,5852cdf0006f,33625427a382 net/9p: add vsock transport(does not setshare_client).443bea2f71c5,acd19f2c56f2(see Conflicts),242bac52294e,d08ab285b096,2bfbb09b505c.8cdae75cebe0 arch/Kconfig: fix dead conditions by removing dead options(see Conflicts),2e83e2ce34ff arch, mm: promote DEBUG_WX to CHECK_WX,47e725702b0b mm: make per-VMA locks available universally.mm/vma.c,mm/vma.h,mm/mmap.c,mm/util.c,mm/vma_internal.handtools/testing/vma/include/{dup,stubs}.h(72a993449cb0,44debd840ec9,c911e7ebebf5,9201d0f5b9d5,7fdbc26b69c0,b7b4d8f37a4f,9cae38dc11da,86a779c53204,f85eb0656c40,e59c9a971a9f,4b019e056f6c,35e340a47888,69d38c792c53and others in the range). The downstream randomisation/brk hunks replayed unchanged. I did not run the userland VMA tests intools/testing/vma.278b2abf660a,084100a1b579,aabe6e1b36ce,677f83795fdf,958c01049e0a,10823ced2f18,8ebd2eb87f50,f000a06da2a5,cf27412f19c9,5728d3523f12,799203afd298,e3e7a85730a4,681f3b68f435,28d5df7b7274,537ec2b15fdd,38828d44f31e,abaa0835b4f3,264d8fd2794f,bbe5d3b3d402.0bf031ba8c49,42eed9bb9ca4.641a9b9cc697,95d2fec40c48.Builds
kernel-build.sh x86_64, Edera host config from edera-dev/linux-kernel-oci@1084f6d48a94).kernel-build.sh arm64, defconfig).