Skip to content

Commit 79ef1e1

Browse files
Christoph Hellwigtorvalds
authored andcommitted
binfmt_flat: use flush_icache_user_range
load_flat_file works on user addresses. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Greg Ungerer <gerg@linux-m68k.org> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Link: http://lkml.kernel.org/r/20200515143646.3857579-28-hch@lst.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bce2b68 commit 79ef1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/binfmt_flat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ static int load_flat_file(struct linux_binprm *bprm,
854854
#endif /* CONFIG_BINFMT_FLAT_OLD */
855855
}
856856

857-
flush_icache_range(start_code, end_code);
857+
flush_icache_user_range(start_code, end_code);
858858

859859
/* zero the BSS, BRK and stack areas */
860860
if (clear_user((void __user *)(datapos + data_len), bss_len +

0 commit comments

Comments
 (0)