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

illumos 4088 - use after free in arc_release() #2162

Closed
wants to merge 1 commit into from

Conversation

dweeezil
Copy link
Contributor

@dweeezil dweeezil commented Mar 5, 2014

4088 use after free in arc_release()
Reviewed by: Matthew Ahrens mahrens@delphix.com
Reviewed by: Garrett D'Amore garrett@damore.org
Reviewed by: Saso Kiselkov skiselkov.ml@gmail.com
Approved by: Dan McDonald danmcd@nexenta.com
Ported by: Tim Chase tim@chase2k.com

From the illumos issue:

A race-induced use after free occurs in arc_release() where the ARC header
is used outside the critical section protected by the hash_lock.

4088 use after free in arc_release()
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Approved by: Dan McDonald <danmcd@nexenta.com>
Ported by: Tim Chase <tim@chase2k.com>

From the illumos issue:

A race-induced use after free occurs in arc_release() where the ARC header
is used outside the critical section protected by the hash_lock.
@dweeezil
Copy link
Contributor Author

dweeezil commented Mar 5, 2014

This looks like a useful patch. I'm wondering if #2154 might be caused by this.

@ryao
Copy link
Contributor

ryao commented Mar 7, 2014

Nice find. I took a look at the code and analysis in the Illumos issue and I agree completely that this is is an important bug fix. Feel free to add my Reviewed By: after your Ported By:.

https://www.illumos.org/issues/4088

@behlendorf
Copy link
Contributor

Merged as:

47fe91b Illumos #4088 use after free in arc_release()

ryao pushed a commit to ryao/zfs that referenced this pull request Apr 9, 2014
4088 use after free in arc_release()

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
Approved by: Dan McDonald <danmcd@nexenta.com>

References:
  https://www.illumos.org/issues/4088
  illumos/illumos-gate@ccc22e1

From the illumos issue:

A race-induced use after free occurs in arc_release() where the
ARC header is used outside the critical section protected by the
hash_lock.

Ported by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Closes openzfs#2162

Conflicts:
	module/zfs/arc.c
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.

4 participants