All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: stable@vger.kernel.org, debian-s390@lists.debian.org,
	debian-kernel@lists.debian.org, svens@linux.ibm.com,
	hca@linux.ibm.com, gor@linux.ibm.com, Ulrich.Weigand@de.ibm.com,
	dipak.zope1@ibm.com
Subject: Re: [PATCH v2 1/1] s390/signal: fix endless loop in do_signal
Date: Fri, 17 Feb 2023 15:04:54 +0100	[thread overview]
Message-ID: <Y++JhmacN9qADFj7@kroah.com> (raw)
In-Reply-To: <20230215141324.1239245-1-sumanthk@linux.ibm.com>

On Wed, Feb 15, 2023 at 03:13:24PM +0100, Sumanth Korikkar wrote:
> No upstream commit exists: the problem addressed here is that 
> 'commit 75309018a24d ("s390: add support for TIF_NOTIFY_SIGNAL")' 
> was backported to 5.10. This commit is broken, but nobody noticed
> upstream, since shortly after s390 converted to generic entry with
> 'commit 75309018a24d ("s390: add support for TIF_NOTIFY_SIGNAL")', which
> implicitly fixed the problem outlined below.
> 
> Thread flag is set to TIF_NOTIFY_SIGNAL for io_uring work.  The io work
> user or syscall calls do_signal when either one of the TIF_SIGPENDING or
> TIF_NOTIFY_SIGNAL flag is set.  However, do_signal does consider only
> TIF_SIGPENDING signal and ignores TIF_NOTIFY_SIGNAL condition.  This
> means get_signal is never invoked  for TIF_NOTIFY_SIGNAL and hence the
> flag is not cleared, which results in an endless do_signal loop.
> 
> Reference: 'commit 788d0824269b ("io_uring: import 5.15-stable io_uring")'
> Fixes: 75309018a24d ("s390: add support for TIF_NOTIFY_SIGNAL")
> Cc: stable@vger.kernel.org  # 5.10.162
> Acked-by: Heiko Carstens <hca@linux.ibm.com>
> Acked-by: Sven Schnelle <svens@linux.ibm.com>
> Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
> ---
>  arch/s390/kernel/signal.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Now queued up, thanks.

greg k-h

      reply	other threads:[~2023-02-17 14:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-15 14:13 [PATCH v2 1/1] s390/signal: fix endless loop in do_signal Sumanth Korikkar
2023-02-17 14:04 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y++JhmacN9qADFj7@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=debian-kernel@lists.debian.org \
    --cc=debian-s390@lists.debian.org \
    --cc=dipak.zope1@ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=stable@vger.kernel.org \
    --cc=sumanthk@linux.ibm.com \
    --cc=svens@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.