From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/2] gfs2: Fix occasional glock use-after-free
Date: Tue, 26 Mar 2019 15:14:34 -0400 (EDT) [thread overview]
Message-ID: <1596574181.15515773.1553627674557.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <9b63ba9f-fda7-91db-80b8-60bddf6733f1@citrix.com>
Hi Ross,
----- Original Message -----
> 6. gfs2_log_flush() continues and calls revoke_lo_after_commit() and
> uses the freed glock (stack trace above).
>
> Should evict_inode call gfs2_ail_flush() or something so that the revoke
> is written before it drops its reference to the glock?
>
> Or is there something else that is meant to keep the glock around if the
> inode is evicted while there is a linked gfs2_bufdata sitting on some
> AIL list?
>
> Let me know if any more specific information is needed since I now have
> a test setup that can usually reproduce this within 10 minutes.
Very interesting.
It's not unusual for glocks to outlive their inodes, but I'm not sure
what the right answer is in this case. Either the revoke should
take an additional reference to the glock, and not let go until the
revoke is written by some log flush, or else the evict needs to do the
log flush to make sure the revoke is committed. But we've had issues with
evict in the past, so we need to be careful about how we fix it.
Andreas and I will look into the best way to fix it. Thanks again for your help.
Regards,
Bob Peterson
Red Hat File Systems
next prev parent reply other threads:[~2019-03-26 19:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-31 10:55 [Cluster-devel] [PATCH 0/2] GFS2 counting fixes Ross Lagerwall
2019-01-31 10:55 ` [Cluster-devel] [PATCH 1/2] gfs2: Fix occasional glock use-after-free Ross Lagerwall
2019-01-31 11:23 ` Steven Whitehouse
2019-01-31 14:40 ` Bob Peterson
2019-01-31 17:18 ` Andreas Gruenbacher
2019-02-01 9:23 ` Ross Lagerwall
2019-02-01 14:34 ` Bob Peterson
2019-02-01 14:51 ` Bob Peterson
2019-02-01 15:03 ` [Cluster-devel] [PATCH 1/2] gfs2: Fix occasional glock use-after-free (Another debug patch) Bob Peterson
2019-03-26 18:49 ` [Cluster-devel] [PATCH 1/2] gfs2: Fix occasional glock use-after-free Ross Lagerwall
2019-03-26 19:14 ` Bob Peterson [this message]
2019-04-01 22:59 ` Andreas Gruenbacher
2019-04-05 17:50 ` Andreas Gruenbacher
2019-04-09 15:36 ` Ross Lagerwall
2019-04-09 15:41 ` Andreas Gruenbacher
2019-01-31 10:55 ` [Cluster-devel] [PATCH 2/2] gfs2: Fix lru_count going negative Ross Lagerwall
2019-01-31 11:21 ` Steven Whitehouse
2019-01-31 14:36 ` Bob Peterson
2019-01-31 15:04 ` Bob Peterson
2019-01-31 15:23 ` Ross Lagerwall
2019-01-31 18:32 ` Andreas Gruenbacher
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=1596574181.15515773.1553627674557.JavaMail.zimbra@redhat.com \
--to=rpeterso@redhat.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;
as well as URLs for NNTP newsgroup(s).