]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - kernel/signal.c
bpf: Prevent re-mmap()'ing BPF map as writable for initially r/o mapping
[mirror_ubuntu-jammy-kernel.git] / kernel / signal.c
index 5b2396350dd183cc3ce04d115763cc590d5e3cc0..e58a6c619824fd5067825c588de5ab7b9749700f 100644 (file)
@@ -1931,7 +1931,7 @@ bool do_notify_parent(struct task_struct *tsk, int sig)
                 * This is only possible if parent == real_parent.
                 * Check if it has changed security domain.
                 */
-               if (tsk->parent_exec_id != tsk->parent->self_exec_id)
+               if (tsk->parent_exec_id != READ_ONCE(tsk->parent->self_exec_id))
                        sig = SIGCHLD;
        }