From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Desnoyers Subject: Re: [RFC PATCH 2/4] rseq: Fix: Unregister rseq for CLONE_TLS Date: Tue, 10 Sep 2019 20:31:01 -0400 (EDT) Message-ID: <248314994.16.1568161861658.JavaMail.zimbra@efficios.com> References: <20190911002744.8690-1-mathieu.desnoyers@efficios.com> <20190911002744.8690-2-mathieu.desnoyers@efficios.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190911002744.8690-2-mathieu.desnoyers@efficios.com> Sender: linux-kernel-owner@vger.kernel.org To: Thomas Gleixner , Peter Zijlstra , Paul Turner Cc: linux-kernel , paulmck , Boqun Feng , "H. Peter Anvin" , Dmitry Vyukov , linux-api List-Id: linux-api@vger.kernel.org Of course, this patch title should read: rseq: Fix: Unregister rseq for CLONE_SETTLS ----- On Sep 11, 2019, at 1:27 AM, Mathieu Desnoyers mathieu.desnoyers@efficios.com wrote: > /* > * If parent process has a registered restartable sequences area, the > - * child inherits. Only applies when forking a process, not a thread. > + * child inherits. Unregister rseq for a clone with CLONE_TLS set. and here CLONE_SETTLS as well. > */ > static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) > { > - if (clone_flags & CLONE_THREAD) { > + if (clone_flags & CLONE_TLS) { .. and here. Thanks, Mathieu > t->rseq = NULL; > t->rseq_sig = 0; > t->rseq_event_mask = 0; > -- > 2.17.1 -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com