From: John Youn <John.Youn@synopsys.com>
To: Doug Anderson <dianders@chromium.org>,
John Youn <John.Youn@synopsys.com>
Cc: "balbi@ti.com" <balbi@ti.com>, "Yunzhi Li" <lyz@rock-chips.com>,
"Heiko Stübner" <heiko@sntech.de>,
"linux-rockchip@lists.infradead.org"
<linux-rockchip@lists.infradead.org>,
"Julius Werner" <jwerner@chromium.org>,
"gregory.herrero@intel.com" <gregory.herrero@intel.com>,
"yousaf.kaukab@intel.com" <yousaf.kaukab@intel.com>,
"dinguyen@opensource.altera.com" <dinguyen@opensource.altera.com>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] usb: dwc2: host: Fix use after free w/ simultaneous irqs
Date: Fri, 16 Oct 2015 07:57:36 +0000 [thread overview]
Message-ID: <2B3535C5ECE8B5419E3ECBE30077290901DC39A5FE@US01WEMBX2.internal.synopsys.com> (raw)
In-Reply-To: <CAD=FV=UExajBowJ9CRJEiutzSL5TaKdDFeuZJGcOrQsj6PAx8A@mail.gmail.com>
On 10/15/2015 4:38 PM, Doug Anderson wrote:
> John,
>
> On Thu, Oct 15, 2015 at 4:21 PM, John Youn <John.Youn@synopsys.com> wrote:
>> Passing a NULL qtd to some of the subcases will lead to a NULL
>> pointer dereference in that function or some function that it
>> calls.
>>
>> I think you could just check the qtd after each call and bail if
>> it's not ok.
>
> I worry a little bit about ignoring an interrupt that we've already
> acknowledged, but if you think that's safer I can certainly change the
> patch.
>
In terms of avoiding crashes it's probably safer.
Whether it is correct or not, I'm not sure. I need to review the
code more.
The question is: after the qtd has been freed, is anything the
other handlers do necessary? Might have to look at each case
separately.
John
prev parent reply other threads:[~2015-10-16 7:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 22:51 Douglas Anderson
2015-10-15 23:21 ` John Youn
2015-10-15 23:38 ` Doug Anderson
2015-10-16 7:57 ` John Youn [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=2B3535C5ECE8B5419E3ECBE30077290901DC39A5FE@US01WEMBX2.internal.synopsys.com \
--to=john.youn@synopsys.com \
--cc=balbi@ti.com \
--cc=dianders@chromium.org \
--cc=dinguyen@opensource.altera.com \
--cc=gregkh@linuxfoundation.org \
--cc=gregory.herrero@intel.com \
--cc=heiko@sntech.de \
--cc=jwerner@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=lyz@rock-chips.com \
--cc=yousaf.kaukab@intel.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 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®