Merge tag 'thermal-v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/therma...
[linux-2.6-microblaze.git] / kernel / seccomp.c
index 53a7d15..15f47fc 100644 (file)
@@ -356,14 +356,14 @@ static inline void seccomp_assign_mode(struct task_struct *task,
 
        task->seccomp.mode = seccomp_mode;
        /*
-        * Make sure TIF_SECCOMP cannot be set before the mode (and
+        * Make sure SYSCALL_WORK_SECCOMP cannot be set before the mode (and
         * filter) is set.
         */
        smp_mb__before_atomic();
        /* Assume default seccomp processes want spec flaw mitigation. */
        if ((flags & SECCOMP_FILTER_FLAG_SPEC_ALLOW) == 0)
                arch_seccomp_spec_mitigate(task);
-       set_tsk_thread_flag(task, TIF_SECCOMP);
+       set_task_syscall_work(task, SECCOMP);
 }
 
 #ifdef CONFIG_SECCOMP_FILTER
@@ -928,7 +928,7 @@ static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd,
 
        /*
         * Make sure that any changes to mode from another thread have
-        * been seen after TIF_SECCOMP was seen.
+        * been seen after SYSCALL_WORK_SECCOMP was seen.
         */
        rmb();