Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dwc_otg: fix potential use-after-free case in interrupt handler #235

Merged
merged 1 commit into from
Mar 1, 2013

Conversation

P33M
Copy link
Contributor

@P33M P33M commented Feb 28, 2013

If a transaction had previously aborted, certain interrupts are
enabled to track error counts and reset where necessary. On IN
endpoints the host generates an ACK interrupt near-simultaneously
with completion of transfer. In the case where this transfer had
previously had an error, this results in a use-after-free on
the QTD memory space with a 1-byte length being overwritten to
0x00.

Fixes the corruption found by SLUB debugging in #217.

If a transaction had previously aborted, certain interrupts are
enabled to track error counts and reset where necessary. On IN
endpoints the host generates an ACK interrupt near-simultaneously
with completion of transfer. In the case where this transfer had
previously had an error, this results in a use-after-free on
the QTD memory space with a 1-byte length being overwritten to
0x00.
popcornmix added a commit that referenced this pull request Mar 1, 2013
dwc_otg: fix potential use-after-free case in interrupt handler
@popcornmix popcornmix merged commit 770459f into raspberrypi:rpi-3.6.y Mar 1, 2013
@popcornmix
Copy link
Collaborator

Not spotted any problems, and your analysis seems believable. I'll push it out for more testing.
Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants