Skip to content

mm/debug_vm_pgtable: fix alignment for pmd/pud_advanced_tests()

Gerald Schaefer linux-arch linux-mm linux-s390 lkml sparclinux stable 1 version Applied

Status from this message: [merged] mm-debug_vm_pgtable-fix-alignment-for-pmd-pud_advanced_tests.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 5 repliesApplied 1/1

Patches in v1 All 1 applied

#Subject and filesSizeRepliesApplied
1/1mm/debug_vm_pgtable: fix alignment for pmd/pud_advanced_tests()mm/debug_vm_pgtable.c+2 -24 repliesApplied

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchAnshuman KhandualAnatoly Pugachev
1/1R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] mm/debug_vm_pgtable: fix alignment for pmd/pud_advanced_tests()

We sometimes see a "BUG task_struct (Not tainted): Padding overwritten" on s390, directly after running debug_vm_pgtable. This is because of wrong vaddr alignment in pmd/pud_advanced_tests(), leading to memory corruption at least on s390, see patch description.

At first glance, other architectures do not seem to care about vaddr in their xxx_get_and_clear() implementations, so they should not be affected. One exception is sparc, where the addr is passed over to some tlb_batch code, but I'm not sure what implication the wrongly aligned vaddr would have in this case.

Also adding linux-arch, just to make sure.

Gerald Schaefer (1):
mm/debug_vm_pgtable: fix alignment for pmd/pud_advanced_tests()

 mm/debug_vm_pgtable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1