Commit 79ef1e1f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

binfmt_flat: use flush_icache_user_range

load_flat_file works on user addresses.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Link: http://lkml.kernel.org/r/20200515143646.3857579-28-hch@lst.deSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bce2b68b
...@@ -854,7 +854,7 @@ static int load_flat_file(struct linux_binprm *bprm, ...@@ -854,7 +854,7 @@ static int load_flat_file(struct linux_binprm *bprm,
#endif /* CONFIG_BINFMT_FLAT_OLD */ #endif /* CONFIG_BINFMT_FLAT_OLD */
} }
flush_icache_range(start_code, end_code); flush_icache_user_range(start_code, end_code);
/* zero the BSS, BRK and stack areas */ /* zero the BSS, BRK and stack areas */
if (clear_user((void __user *)(datapos + data_len), bss_len + if (clear_user((void __user *)(datapos + data_len), bss_len +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment