$ the-wire · showcase
IOMMU out-of-bounds DTE read, tmpfs readdir reorder, and a page allocator hotplug race
By RepoJournal · Filed · About Linux · Composed from the cited sources · methodology
AMD's IOMMU can be made to fetch a device table entry past the end of the table, while Rabin's page allocator and tmpfs both get fixes for races that bite under hotplug and parallel listing.
iommu/amd: Force device table to maximum size torvalds/linux
Suravee Suthikulpanit forces the AMD IOMMU device table to its maximum size because the IOMMU can be made to fetch the entry at index N when the table holds 0 to N-1, reading past the final DTE. The table is owned by the hypervisor and laid out in 4KB pages contiguous in system physical address, so the out-of-bounds fetch lands in memory the IOMMU does not own.
Merge tag 'vfs-7.4-rc3.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs torvalds/linux
Christian Brauner's vfs pull makes readdir on tmpfs walk the offset tree in offset order rather than d_children, which stops it from skipping entries or relisting the whole directory; listing a million entries drops from 146ms to 114ms, and from 470ms to 113ms with four processes listing in parallel. The same tag finishes the ->iomap_next() conversion begun in v7.
mm/page_alloc: remove the zone_spans_pfn() check from get_pfnblock_bitmap_bitidx() torvalds/linux
by Vlastimil Babka (SUSE)
Vlastimil Babka removes the zone_spans_pfn() check from get_pfnblock_bitmap_bitidx() because that check reads zone_start_pfn and spanned_pages without span_seqlock, while memory hotplug updates the two fields one after the other. A zone whose lower end moves then appears to end before its last pages, so the DEBUG_VM assertion fires on a page that is actually in range.
Merge tag 'page_alloc-for-7.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/mm/page_alloc torvalds/linux
The page_alloc-for-7.4-rc2 tag carries stable fixes for races between the allocator's zonelist reads and memory hotplug, which Vlastimil Babka says can produce BUGs, allocation failures, or allocations from the wrong node, plus fixes to free_pages_nolock(), page_frag allocation and page isolation that trigger WARNs or degraded operation.
Merge tag 'mmc-v7.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc torvalds/linux
Ulf Hansson's MMC pull fixes a DMA channel leak in mmci when mmc_add_host() fails, busy detection on meson-gx, and clock teardown on sunxi and jz4740, among other host drivers. The omarchy side is quieter: Moonlight moves out of the default install into Install > Gaming with a matching Remove entry, the remote desktop plan is closed now that Gliff shipped, and Nautilus is dropped on existing ma...