Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1177097ybk; Thu, 14 May 2020 02:22:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc49FqAz3uNmRPGFZaEgbew5zsFavCJz7uyIL1ujIOsuTs8ylEJbPs/EnXAovgeAQIGjmy X-Received: by 2002:a05:6402:1b0e:: with SMTP id by14mr2978336edb.329.1589448145951; Thu, 14 May 2020 02:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589448145; cv=none; d=google.com; s=arc-20160816; b=uHIHZnjOt5hNVcY47jlEXzqciok5ZPK/4LA4ybuOzK41a+RplGSBEnIb2g+lSg2K5Q Oefyi8FLwn6s9BLfogNB0E296eOfhSYIOfvgat4u9V86EG8yS8kM6yfHF9DraNK2hDSt Oydg/QpTYJkXVa7af+SrMQ2/Ba6LwafQDNw1LeHLN+3L9vJKMk2oOEk9JO+taxb417bK GCS6M/GsQpi8qeNy2lefLYoVLkGDgvdkcDKmL0nblmjEpn4/ADJ521EvO5ErIeaEjnc0 +B62mP2rYbG0YUpSxc+Kr8wFsrBQqpA77gntqVGBYohAufiH7l5Q7jBwd39Qk4uC79Gu qZ4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/uwK69cKvIIvKOO5ymbYqzBNjG47n+IyGnvHw5vJrl0=; b=SWj4DVmB2RP3URhtouftQ/MAXq0bg5t5fpW5nXNx7WsjXVI7WocCest6tQR4UOy1nB WuO1qwXqOdjDml7ZmIIoiRTlpKuZTKmv8m0/9d8LGzxFXP+UJNU4qg51tROHebJmhOww XX89XbWaWAHsp85gEoF9wNkMdsXVPUJhjxreLnWV4azonDuoDds5zebX/E8UYBjtTaRn 8utFSMrU/WqmNw5EKsmtS9iIDrQPeLxEcn+fp2fgLaR/zDv+6IkB39xOUpVrV/GiX6jz nJFZ38wNTY8pnHyvvjLs6F9v9RDH60eVtSYWAIWptCuDTBlDAcFhqX5d42aBfEx1DID8 JUlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=U4jpM5eg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si1426420edl.11.2020.05.14.02.22.03; Thu, 14 May 2020 02:22:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=U4jpM5eg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726116AbgENJUd (ORCPT + 99 others); Thu, 14 May 2020 05:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725878AbgENJUd (ORCPT ); Thu, 14 May 2020 05:20:33 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21019C061A0C for ; Thu, 14 May 2020 02:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/uwK69cKvIIvKOO5ymbYqzBNjG47n+IyGnvHw5vJrl0=; b=U4jpM5egpZ5/F/T2TZKbxuiiMB kGuNxkxBQX50aexS/vNQcdKYfMcMk5FcXYzlSSvUv90v4fMYALjiVnyRPZz6KEZUU4Cy6kJ+aHM4/ Uvmi5y6228cvJvA6OyzsB8sQSgC3XtT6ER7lG8pDpXtiApswWFfb1gwo6Ar0wHhhl8W52j1uy5wIQ boVDvMxTIcxxYneZMAxQmEbe8qK0hZHF40KYTz3Ht9D4F93WPiRaMZeWCkSnH8+i+3+xgbltYArkx 6RdAIc9iqbsmHOvbpZCh9TsCtSpgmfAtTK0tQtHMvLxEFSH+yx2S5QYpjat3P0vwioegH4lzn8jov XUmy0IEA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZA1m-0005lb-Gc; Thu, 14 May 2020 09:19:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 74E72301205; Thu, 14 May 2020 11:19:40 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 47CF724C14F19; Thu, 14 May 2020 11:19:40 +0200 (CEST) Date: Thu, 14 May 2020 11:19:40 +0200 From: Peter Zijlstra To: Mathieu Desnoyers Cc: Thomas Gleixner , rostedt , linux-kernel , x86 , paulmck , Andy Lutomirski , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , "Joel Fernandes, Google" , Boris Ostrovsky , Juergen Gross , Brian Gerst , Josh Poimboeuf , Will Deacon Subject: Re: [patch V4 part 1 05/36] x86/entry: Flip _TIF_SIGPENDING and _TIF_NOTIFY_RESUME handling Message-ID: <20200514091940.GS2978@hirez.programming.kicks-ass.net> References: <20200505131602.633487962@linutronix.de> <20200505134058.560059744@linutronix.de> <1970736614.19996.1589403401588.JavaMail.zimbra@efficios.com> <20200513171047.04c2c10e@gandalf.local.home> <87v9kzz862.fsf@nanos.tec.linutronix.de> <1779765540.20682.1589424713646.JavaMail.zimbra@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1779765540.20682.1589424713646.JavaMail.zimbra@efficios.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 10:51:53PM -0400, Mathieu Desnoyers wrote: > Yes, I'm very well aware of this. But the patch commit message states: > > "Make sure task_work runs before any kind of userspace -- very much > including signals -- is invoked." > > which seems to imply that "userspace" can be "invoked" before the task_work > runs. Which makes no sense whatsoever. Hence my confused state. I initially missed the run_task_work in the signal handling maze. Then later figured this order still made more sense, but apparently there's an actual problem. I've no problem with the patch getting dropped.