Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1606962ybm; Tue, 21 May 2019 17:37:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfOhbf0xMYiXAcgVQTNmweXN4xb55eoYb2iSQK+MUOeUXRSkrGmkQsbNLIhCemTz+gc0iU X-Received: by 2002:a17:902:1621:: with SMTP id g30mr45668751plg.326.1558485434755; Tue, 21 May 2019 17:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558485434; cv=none; d=google.com; s=arc-20160816; b=BgnLELKKgIMd2BpxDu2vmYUKA6Eeqahd0fqz7gr6Sb6WR+IoOejL28BUm9whZlbRF0 KzbCn3oDpchWgjCeAx86mrKxPxfttW/Cz7BS58alzP0sxMkbU4zbCgJFdxDWwyQWWkGc o3npM4Ke/Q2G0HsJ3nRhyUHjHBcMPfLbt7FVWkD0JXNtkz76vHLWedqazX4zpNQIJr6t 51/w8YAW3fgSIMk9XBKH984aaVNA0ABN4qIR1sufJsV0KIbxGAlsBxCoI19AkkH5rDvw P0SWZg7nadbhzpfZGsWlNUyIpvUsfj/e8yygQL7Je+cmRIVD3GRkmvdR0d69C2TdsmX6 aJlA== 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=dmn24KC+m6x18zOYziZWDo5rYFdprsz28GNXc60VqcM=; b=obI8NSvTwp1Bqzh2e2qnX5lTNJQzNwjaeH4H3WTXhWpmnFzyLObJQ99BgpwrnQfFGS vMq6wE5pJRCit1a8YxXp7ktL9pqAQtH2TdGFSvDOkKIId8kXl07KQROd8ftDxwCXtesd zuW7o6Q0AbDGGhJutn1YuduLH+EIGGAkZ2xk0Eckl5+AtJZ4iBgwz/USmQy85x4Y2/xG BrtKTTLUfptBWdPsPH076PNHf1iXK+v7GFdVGZhGQ8/PeblZa4Ir7udISfcSOwjNnvOL yyVxdgD13SJ8wY7u8R6BI6vuprFkWlyFMkZtQx+9vuJy9TVmOlzVb//mfCqFM9gxvBci 5d6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Et3SEPfq; 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 v189si10496323pgd.60.2019.05.21.17.36.58; Tue, 21 May 2019 17:37:14 -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=Et3SEPfq; 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 S1728024AbfEVAfv (ORCPT + 99 others); Tue, 21 May 2019 20:35:51 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:33912 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbfEVAfv (ORCPT ); Tue, 21 May 2019 20:35:51 -0400 Received: by mail-it1-f194.google.com with SMTP id g23so4095086iti.1; Tue, 21 May 2019 17:35:50 -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=dmn24KC+m6x18zOYziZWDo5rYFdprsz28GNXc60VqcM=; b=Et3SEPfqDEkMJQkdWI5NcbgBXFwSnmgc4IkpkyXuP/wF0TfGB6e1Pofok9i3gQVCdC 41wcVBJIud8W8bHbEYF6lYxT7DfMeuDvr8KHC10JS69ZipKHxoLbas7ffdXmSFC2dLWZ 4bN2MC0kFc2EOqpUsixIw6zd78MsPnS55mIhw0opNmNKfSNukaHmnnGdD3ZQH4VFykRW J8Hi0Mz3vPUcCJRgdQhxjUFgnOqxI+rry97EhQ+7EsjThzESIYE/9TZ0xRWyjvElLGen EafVNr3LpPZ9kutDJWNTeUD89h0GEuriOYD20CZRoqD3aeVsFh6X6Tqw433QgGcu3kJa D+Yg== 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=dmn24KC+m6x18zOYziZWDo5rYFdprsz28GNXc60VqcM=; b=o1lL7xMdPRrJzUhduox4MahqrF2zhI3RgUvvYVN4kzXacUvxrk58w/1sho1o4OvO3/ 7WKA9UUZudGldE9eeVUIwXxTeAOR6PvRKsa9WfkIf7+wAQWuECNJFTM82HL4FPDfwmPS 1MYPdcmSFVw+97vCsl3CmUG9Pg2s5wwjF8FKEsw2RIrGfYCKJNulLtKd/QnjiRQIx5XA xBsj6nK/sEdo9eD14nRRBtm9zPPWQxmd0xEDRuWAtkewGhr8lz+RPYk3Yb61r3LkfDAM WJjB10LxQ0BSE4JYlA74LruoYujePK2H44ZWduPm6ldCDqP0R5UFWZPPAI25e/UwOsFt 6Cdw== X-Gm-Message-State: APjAAAVBCdNGVzI7qxRiLr4UdjLTJV5BN0xpV/lNXhBHQAjIOYLFmFqC 4uOJDL8gRtcjR/Nelple2xNZDhPQ03gHxAmlKFXNwJjb X-Received: by 2002:a02:94e7:: with SMTP id x94mr21163035jah.5.1558485350392; Tue, 21 May 2019 17:35:50 -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: <20190521233319.GA17957@dcvr> From: Deepa Dinamani Date: Tue, 21 May 2019 17:35:38 -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 > > > 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.