From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kees Cook Subject: Re: [PATCH 3/9] signal/seccomp: Dump core when there is only one live thread Date: Fri, 25 Jun 2021 20:20:29 -0700 Message-ID: <202106252018.0EC329C@keescook> References: <87a6njf0ia.fsf@disp2133> <87tulpbp19.fsf@disp2133> <87zgvgabw1.fsf@disp2133> <875yy3850g.fsf_-_@disp2133> <87lf6z6qbd.fsf_-_@disp2133> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=m/r2jKnf6mzXHGS0+mY6tO8kdxoIVifevnwrBMvWaHk=; b=k5evDFcu122UMvrbb5kz6pJG46rSJobzAashV394QfzBP+VFZW1qcemLOWIMTqTwnO KhX0VgfKs97JSqirj7NxmKbJhyY7pwgk8AjhjA15rr2M34TyDxxbjmKofm2KW8+ZtL0q Wq8LJ8oNzBFS43JDygd5Msv1UzewtYzPIfmIg= Content-Disposition: inline In-Reply-To: <87lf6z6qbd.fsf_-_@disp2133> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Eric W. Biederman" Cc: Linus Torvalds , Al Viro , Michael Schmitz , linux-arch , Jens Axboe , Oleg Nesterov , Linux Kernel Mailing List , Richard Henderson , Ivan Kokshaysky , Matt Turner , alpha , Geert Uytterhoeven , linux-m68k , Arnd Bergmann , Ley Foon Tan , Tejun Heo On Thu, Jun 24, 2021 at 02:00:22PM -0500, Eric W. Biederman wrote: > Replace get_nr_threads with atomic_read(¤t->signal->live) as > that is a more accurate number that is decremented sooner. Okay, seems fine to me. :) -- Kees Cook