From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luis R. Rodriguez" Subject: Re: [PATCH v2] firmware: fix sending -ERESTARTSYS due to signal on fallback Date: Fri, 26 May 2017 14:32:31 -0700 Message-ID: References: <20170524205658.GK8951@wotan.suse.de> <20170524214027.7775-1-mcgrof@kernel.org> <87fufr3mdy.fsf@xmission.com> <20170526194640.GS8951@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dmitry Torokhov Cc: "Eric W. Biederman" , "Fuzzey, Martin" , Andy Lutomirski , "Michael Kerrisk (man-pages)" , Linux API , Peter Zijlstra , Greg KH , Daniel Wagner , David Woodhouse , jewalt-d4N2ExZK1jaSe5ORCPIMD9BPR1lH4CV8@public.gmane.org, rafal-g1n6cQUeyibVItvQsEIGlw@public.gmane.org, Arend Van Spriel , "Rafael J. Wysocki" , "Li, Yi" , atull-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org, Moritz Fischer , Petr Mladek , Johannes Berg , Emmanuel Grumbach , Luca Coelho List-Id: linux-api@vger.kernel.org On Fri, May 26, 2017 at 2:26 PM, Dmitry Torokhov wrote: > On Fri, May 26, 2017 at 12:46 PM, Luis R. Rodriguez wrote: >> On Fri, May 26, 2017 at 06:09:29AM -0500, Eric W. Biederman wrote: >>> "Fuzzey, Martin" writes: >>> >>>> Maybe SIGCHLD shouldn't interrupt firmware loading? >>> > >>> > I don't think there's a way of doing that without disabling all >>> > signals (ie using the non interruptible wait variants). >>> > It used to be that way (which is why I only ran into this after >>> > updating from an ancient 3.16 kernel to a slightly less ancient 4.4) >>> > But there are valid reasons for wanting to be able to interrupt >>> > firmware loading (like being able to kill the userspace helper) >>> >>> Perhaps simply using a killable wait and not a fully interruptible >>> wait would be better? >> >> What do you mean by a killable wait BTW? > > https://lwn.net/Articles/288056/ > > I think only interrupting firmware loading with fatal signals would > make a lot of sense. > >> >> ret = swait_event_interruptible_timeout() is being used right now. > > It looks like we are missing swait_event_killable*(), but I do not > think it would be hard to add. What should we do for stable ? Is this a *stable* issue ? Luis