projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ef1e1
)
nommu: use flush_icache_user_range in brk and mmap
author
Christoph Hellwig
<hch@lst.de>
Mon, 8 Jun 2020 04:42:49 +0000
(21:42 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 8 Jun 2020 18:05:58 +0000
(11:05 -0700)
These obviously operate on user addresses.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg Ungerer <gerg@linux-m68k.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Link:
http://lkml.kernel.org/r/20200515143646.3857579-29-hch@lst.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/nommu.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/nommu.c
b/mm/nommu.c
index dfae55f41901374d3aa1db9a70ba415e237d1293..062dc1c90d2133b295b1ee8417d5fc3b21ae4723 100644
(file)
--- a/
mm/nommu.c
+++ b/
mm/nommu.c
@@
-433,7
+433,7
@@
SYSCALL_DEFINE1(brk, unsigned long, brk)
/*
* Ok, looks good - let it rip.
*/
- flush_icache_range(mm->brk, brk);
+ flush_icache_
user_
range(mm->brk, brk);
return mm->brk = brk;
}
@@
-1277,7
+1277,7
@@
share:
/* we flush the region from the icache only when the first executable
* mapping of it is made */
if (vma->vm_flags & VM_EXEC && !region->vm_icache_flushed) {
- flush_icache_range(region->vm_start, region->vm_end);
+ flush_icache_
user_
range(region->vm_start, region->vm_end);
region->vm_icache_flushed = true;
}