io_uring: don't assume mm is constant across submits
[linux-2.6-microblaze.git] / kernel / cred.c
index 71a7926..421b114 100644 (file)
@@ -315,6 +315,9 @@ struct cred *prepare_exec_creds(void)
        new->process_keyring = NULL;
 #endif
 
+       new->suid = new->fsuid = new->euid;
+       new->sgid = new->fsgid = new->egid;
+
        return new;
 }