From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+852e935b899bde73626e@syzkaller.appspotmail.com>
Cc: Frederic Weisbecker <frederic@kernel.org>,
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com,
tglx@linutronix.de
Subject: Re: [syzbot] [kernel?] WARNING in posixtimer_send_sigqueue
Date: Sat, 16 Nov 2024 07:21:17 +0800 [thread overview]
Message-ID: <20241115232117.3774-1-hdanton@sina.com> (raw)
In-Reply-To: <Zze1Jj4_pzOL1bzp@pavilion.home>
On Fri, 15 Nov 2024 21:55:02 +0100 Frederic Weisbecker <frederic@kernel.org>
>
> Can you test on git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
> timers/core instead?
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
--- x/kernel/signal.c
+++ y/kernel/signal.c
@@ -2003,9 +2003,15 @@ void posixtimer_send_sigqueue(struct k_i
if (!prepare_signal(sig, t, false)) {
result = TRACE_SIGNAL_IGNORED;
- /* Paranoia check. Try to survive. */
- if (WARN_ON_ONCE(!list_empty(&q->list)))
+ if (!list_empty(&q->list)) {
+ /*
+ * If task group is exiting with the signal already pending,
+ * wait for __exit_signal() to do its job. Otherwise if
+ * ignored, it's not supposed to be queued. Try to survive.
+ */
+ WARN_ON_ONCE(!(t->signal->flags & SIGNAL_GROUP_EXIT));
goto out;
+ }
/* Periodic timers with SIG_IGN are queued on the ignored list */
if (tmr->it_sig_periodic) {
--
next prev parent reply other threads:[~2024-11-15 23:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 0:52 syzbot
2024-11-14 16:49 ` Frederic Weisbecker
2024-11-15 11:54 ` Hillf Danton
2024-11-15 12:04 ` syzbot
2024-11-15 20:55 ` Frederic Weisbecker
2024-11-15 23:21 ` Hillf Danton [this message]
2024-11-16 0:18 ` syzbot
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=20241115232117.3774-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=frederic@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+852e935b899bde73626e@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®