Commit 2a63e398 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

seccomp: Don't exit from __export_restore_thread

After CR_STATE_RESTORE_SIGCHLD stage triggered we are
not allowed to exit, just yield the BUG instead.
Reported-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent b9c5028e
......@@ -559,13 +559,13 @@ long __export_restore_thread(struct thread_restore_args *args)
* operation bound to uid 0 in current user ns.
*/
if (restore_seccomp(args))
goto core_restore_end;
BUG();
ret = restore_creds(args->creds_args, args->ta->proc_fd);
ret = ret || restore_dumpable_flag(&args->ta->mm);
ret = ret || restore_pdeath_sig(args);
if (ret)
goto core_restore_end;
BUG();
restore_finish_stage(task_entries_local, CR_STATE_RESTORE_CREDS);
......
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