Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1613401ybm; Tue, 21 May 2019 17:45:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqztkGTcezet4RPQMU4F/ut/CTFpA6Dej8+VEKrvx0OScyWPCLxpaSgTl/zoB/lobaJ1raUs X-Received: by 2002:a17:902:e708:: with SMTP id co8mr85203727plb.141.1558485958788; Tue, 21 May 2019 17:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558485958; cv=none; d=google.com; s=arc-20160816; b=X1YikPrKhwpnSne3BR2cq1mPgfGSmStsGY91aQtXNXf2ZfDqMxBcMtpajeABhBWlRB w4/r07OqYYDJ4lyYmR+1ZbwdlhWwIIVRPZT6gK50OCW9kRpTVv/QIB5uKtD/SVqznfhO 33UuvUFrmK9r9sMqi70NDemSYI8u923T0h92M9M8QuhabqKbr8yUo26BOIWN2vHUx6fh C5Ql0g00WpeLqrdqtOr1ggkh5dmIOjUnX9HZUWT5qfwXB9ES+/aUF1nQL5LTm7iwv8xj 8R3RVGFVoCZeh0VAlbafzxVX7GQ3/5fY5JKIdQn8o+85NCPU5ijPxVfdF35UMN7WWAhx 4/xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pWCi9dROwOfQvBvMAXELot1dHsDW9NHuGvLhfRnJ4hE=; b=Fw2Gz6lFQU4ganPYEycJbZuaaV67MBufoHnZP14ae6DvX1FWeZhSVdIgibTmJGaN0e oUPVsaR/qssfAraauyRxMOrJ4BnO773/nAxSfeCg0yK9+ZRghvWnTbm1f4PWPILzfGQM zlrwUlradjAIAY6E8nOMxYhdoW56BmknPjT0nKpgX7mYkRyK5tlf6X/AFlWE0luotIVT V5wu+Q9StMOj5LWPqJIdkTvARW99xRXPPA/JLTYZA7ekuBRqH8VnYtvs3g34ZdoEFhaD 96hVACvlRh8NzCvBDj5z34w1DTgOBVlfo6Wmz9MpzYw9v9nbxMbXHz0m5DNtJ0Ok7ivO UlOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SfSWg9Te; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si22938858plr.16.2019.05.21.17.45.41; Tue, 21 May 2019 17:45:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SfSWg9Te; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728022AbfEVAoc (ORCPT + 99 others); Tue, 21 May 2019 20:44:32 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:39127 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726434AbfEVAoc (ORCPT ); Tue, 21 May 2019 20:44:32 -0400 Received: by mail-io1-f67.google.com with SMTP id m7so458149ioa.6; Tue, 21 May 2019 17:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pWCi9dROwOfQvBvMAXELot1dHsDW9NHuGvLhfRnJ4hE=; b=SfSWg9TeEu5DaP5TRGUM57CeTAi++dYX546ZT6YQE1GsntXdrEm80yuE3lgKb5R7hI Fxj0EWfVmZFdIz8GxjIpdKO+gtBRBBpLtejZBPnrYL4gZejAh01OTXkKGk/ZWOeJLhY8 m9Z/pj1g6xv1c9tejcJjP4HFwp95EFIKLcOYDRyJJc9vGNOwoUSBjFmxy2yQhSuxRFtN Zn4kg3aVuL+lM2Ze13lYlR3bhDPX3FhOB4iHPIKyVjkp6s0epY1/DyCUykGga/I3dBQF e/JRdL3Vnx1SzeCcS2pZWHSjgpOXNUuUfCaPb7wutTP5guOmTphZc8f0CzptOO3mDluX dUwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pWCi9dROwOfQvBvMAXELot1dHsDW9NHuGvLhfRnJ4hE=; b=KnwN1q0ZrpQAN/B9St6PAjwRklU1+P8tGId/kwAhhJ37AP2mtGWdk8GDEp0w/BRRi6 Hv7yRKgzG23WRs+bJuOb5fqxL8264PKgACABrw+/pIHIOKRk6bw6HxnwhnHpcHCGEHzb PJsMnvJOa176nRlA3ERaIr8H66SF4Uc92p4wQNsmi2Uq8Rg5eiabaDjFEoTD+hGllOxd +wdzkVxwDNgQAzg5wZPSP2i5x51MVZ60voRQ7aS8F4wuQz5iYsPMTat478oIWzug9HD1 7j/58rFR3kNSFrZ5mbqgte7EbcphrizWyfi1ntiZAeZKyWwtztJzaNJOI19ewLE26AWm IfCA== X-Gm-Message-State: APjAAAUUwbxpgrUJgXIbaVBSsNESNd4+FAoFCPfimDxV5JsjHtX9+snu Q5HuwPecsGXYZ7QlrTz5S4GplmKUvz2OPUa75Bk= X-Received: by 2002:a5e:840c:: with SMTP id h12mr6278956ioj.81.1558485871505; Tue, 21 May 2019 17:44:31 -0700 (PDT) MIME-Version: 1.0 References: <20190507043954.9020-1-deepa.kernel@gmail.com> <20190521092551.fwtb6recko3tahwj@dcvr> <20190521152748.6b4cd70cf83a1183caa6aae7@linux-foundation.org> <20190521233319.GA17957@dcvr> In-Reply-To: From: Deepa Dinamani Date: Tue, 21 May 2019 17:44:19 -0700 Message-ID: Subject: Re: [PATCH 1/1] signal: Adjust error codes according to restore_user_sigmask() To: Eric Wong Cc: Andrew Morton , Linux Kernel Mailing List , Alexander Viro , Arnd Bergmann , dbueso@suse.de, axboe@kernel.dk, Davidlohr Bueso , Jason Baron , Linux FS-devel Mailing List , linux-aio , Omar Kilani , Thomas Gleixner , stable@vger.kernel.org, Oleg Nesterov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 21, 2019 at 5:35 PM Deepa Dinamani wrote: > > > > > It's been 2 weeks and this fix hasn't appeared in mmots / mmotm. > > > > I also noticed it's missing Cc: for stable@ (below) > > > > > > Why is a -stable backport needed? I see some talk above about lost > > > signals but it is unclear whether these are being observed after fixing > > > the regression caused by 854a6ed56839a. > > > > I guess Deepa's commit messages wasn't clear... > > I suggest prepending this as the first paragraph to Deepa's > > original message: > > > > This fixes a bug introduced with 854a6ed56839a which caused > > EINTR to not be reported to userspace on epoll_pwait. Failure > > to report EINTR to userspace caused problems with user code > > which relies on EINTR to run signal handlers. > > This is not what the patch fixed. > > The notable change is userspace is that now whenever a signal is > delivered, the return value is adjusted to reflect the signal > delivery. > Prior to this patch, there was a window, however small it might have > been, when the signal was delivered but the errono was not adjusted > appropriately. > This is because of the regression caused by 854a6ed56839a, which > extended the window of delivery of signals that was delivered to > userspace. > The patch also fixes more than sys_epoll_pwait(). > > I will post a follow up patch. > > > > > > IOW, can we please have a changelog which has a clear and complete > > > description of the user-visible effects of the change. > > > > > > And please Cc Oleg. > > I will cc Oleg. Also the commit message was brief because the issue was explained in the link that was quoted in the commit message. Detailed issue discussion permalink: https://lore.kernel.org/linux-fsdevel/20190427093319.sgicqik2oqkez3wk@dcvr/ -Deepa