linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] mm/debug_vm_pgtable: fix alignment for pmd/pud_advanced_tests()
@ 2021-05-25 13:00 Gerald Schaefer
  2021-05-25 13:00 ` [PATCH 1/1] " Gerald Schaefer
  2021-05-26  4:24 ` [PATCH 0/1] " Anshuman Khandual
  0 siblings, 2 replies; 7+ messages in thread
From: Gerald Schaefer @ 2021-05-25 13:00 UTC (permalink / raw)
  To: Andrew Morton, Anshuman Khandual
  Cc: linux-mm, LKML, linux-arch, linux-sparc, linux-s390, Gerald Schaefer

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-26 13:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 13:00 [PATCH 0/1] mm/debug_vm_pgtable: fix alignment for pmd/pud_advanced_tests() Gerald Schaefer
2021-05-25 13:00 ` [PATCH 1/1] " Gerald Schaefer
2021-05-26  4:40   ` Anshuman Khandual
2021-05-26 11:27   ` Anatoly Pugachev
2021-05-26 12:36     ` Anshuman Khandual
2021-05-26 13:36       ` Anatoly Pugachev
2021-05-26  4:24 ` [PATCH 0/1] " Anshuman Khandual

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).