From: Jakub Kicinski <kuba@kernel.org>
To: Duoming Zhou <duoming@zju.edu.cn>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
isdn@linux-pingi.de
Subject: Re: [PATCH] mISDN: fix use-after-free bugs in l1oip timer handlers
Date: Thu, 22 Sep 2022 06:35:10 -0700 [thread overview]
Message-ID: <20220922063510.3d241df4@kernel.org> (raw)
In-Reply-To: <20220920115716.125741-1-duoming@zju.edu.cn>
On Tue, 20 Sep 2022 19:57:16 +0800 Duoming Zhou wrote:
> - if (timer_pending(&hc->keep_tl))
> - del_timer(&hc->keep_tl);
> + del_timer_sync(&hc->keep_tl);
>
> - if (timer_pending(&hc->timeout_tl))
> - del_timer(&hc->timeout_tl);
> + del_timer_sync(&hc->timeout_tl);
>
> cancel_work_sync(&hc->workq);
There needs to be some more cleverness here.
hc->workq and hc->socket_thread can kick those timers right back in.
next prev parent reply other threads:[~2022-09-22 13:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-20 11:57 [PATCH] mISDN: fix use-after-free bugs in l1oip timer handlers Duoming Zhou
2022-09-22 13:35 ` Jakub Kicinski [this message]
2022-09-23 9:07 ` duoming
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=20220922063510.3d241df4@kernel.org \
--to=kuba@kernel.org \
--cc=duoming@zju.edu.cn \
--cc=isdn@linux-pingi.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).