linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Fix issues with vmalloc flush flag
@ 2019-05-21 20:51 Rick Edgecombe
  2019-05-21 20:51 ` [PATCH v4 1/2] vmalloc: Fix calculation of direct map addr range Rick Edgecombe
  2019-05-21 20:51 ` [PATCH v4 2/2] vmalloc: Avoid rare case of flushing tlb with weird arguements Rick Edgecombe
  0 siblings, 2 replies; 6+ messages in thread
From: Rick Edgecombe @ 2019-05-21 20:51 UTC (permalink / raw)
  To: linux-kernel, peterz, sparclinux, linux-mm, netdev, luto
  Cc: dave.hansen, namit, Rick Edgecombe

These two patches address issues with the recently added
VM_FLUSH_RESET_PERMS vmalloc flag.

Patch 1 is the most critical and addresses an issue that could cause a
crash on x86.

Patch 2 addresses an issue where in a rare case strange arguments
could be provided to flush_tlb_kernel_range(). Most arch's should be
fine with it, but some may not like them, so we should avoid doing
this.

v3->v4:
 - Drop patch that switched vm_unmap_alias() calls to regular flush
 - Add patch to address correctness previously fixed in dropped patch

v2->v3:
 - Split into two patches

v1->v2:
 - Update commit message with more detail
 - Fix flush end range on !CONFIG_ARCH_HAS_SET_DIRECT_MAP case

Rick Edgecombe (2):
  vmalloc: Fix calculation of direct map addr range
  vmalloc: Avoid rare case of flushing tlb with weird arguements

 mm/vmalloc.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-05-27 20:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21 20:51 [PATCH v4 0/2] Fix issues with vmalloc flush flag Rick Edgecombe
2019-05-21 20:51 ` [PATCH v4 1/2] vmalloc: Fix calculation of direct map addr range Rick Edgecombe
2019-05-27 12:20   ` Peter Zijlstra
2019-05-27 20:05     ` Edgecombe, Rick P
2019-05-21 20:51 ` [PATCH v4 2/2] vmalloc: Avoid rare case of flushing tlb with weird arguements Rick Edgecombe
2019-05-27 12:24   ` Peter Zijlstra

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