--- uksm-5.4.patch 2020-01-02 19:55:25.000000000 +0800 +++ uksm-5.4.33.patch 2020-04-29 17:04:58.000000000 +0800 @@ -80,7 +80,7 @@ @@ -1384,6 +1385,7 @@ void setup_new_exec(struct linux_binprm * bprm) /* An exec changes our domain. We are no longer part of the thread group */ - current->self_exec_id++; + WRITE_ONCE(current->self_exec_id, current->self_exec_id + 1); + flush_signal_handlers(current, 0); }