bpf: rework the compat kernel probe handling
[linux-2.6-microblaze.git] / fs / binfmt_flat.c
index 831a2b2..87ce229 100644 (file)
@@ -534,7 +534,7 @@ static int load_flat_file(struct linux_binprm *bprm,
 
        /* Flush all traces of the currently running executable */
        if (id == 0) {
-               ret = flush_old_exec(bprm);
+               ret = begin_new_exec(bprm);
                if (ret)
                        goto err;
 
@@ -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 +
@@ -963,8 +963,6 @@ static int load_flat_binary(struct linux_binprm *bprm)
                }
        }
 
-       install_exec_creds(bprm);
-
        set_binfmt(&flat_format);
 
 #ifdef CONFIG_MMU