]> git.baikalelectronics.ru Git - kernel.git/commitdiff
binfmt_flat: use flush_icache_user_range
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Jun 2020 04:42:46 +0000 (21:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 8 Jun 2020 18:05:58 +0000 (11:05 -0700)
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>
fs/binfmt_flat.c

index 9b82bc111d0a0086cc8d9f3407ad72cc18a55b69..87ce229c63cf390ceefaa513a37506be64b22c4f 100644 (file)
@@ -854,7 +854,7 @@ static int load_flat_file(struct linux_binprm *bprm,
 #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 */
        if (clear_user((void __user *)(datapos + data_len), bss_len +