Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1496894

Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative"

From Al Viro <viro@ZenIV.linux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative"
Date 2016-10-07 00:50 +0200
Message-ID <sppEd-7qB-3@gated-at.bofh.it> (permalink)
References <spoyt-6y4-7@gated-at.bofh.it> <spoyt-6y4-5@gated-at.bofh.it> <spoI9-6CY-17@gated-at.bofh.it> <spp1v-72A-25@gated-at.bofh.it> <sppuy-7lV-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Oct 06, 2016 at 11:37:29PM +0100, Al Viro wrote:

> If you ever get NULL in ->d_parent of struct dentry instance, you are
> practically certain to have a dangling pointer to memory that used to
> contain a struct dentry at some point but got freed and reused since then.

... which is what happens in your case, apparently.  ->stats is still
pointing to a dentry that had just been freed and its memory reused.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative" Al Viro <viro@ZenIV.linux.org.uk> - 2016-10-06 23:40 +0200
  Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative" Sinan Kaya <okaya@codeaurora.org> - 2016-10-06 23:50 +0200
    Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative" Sinan Kaya <okaya@codeaurora.org> - 2016-10-07 00:00 +0200
      Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative" Sinan Kaya <okaya@codeaurora.org> - 2016-10-07 00:20 +0200
    Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative" Al Viro <viro@ZenIV.linux.org.uk> - 2016-10-07 00:10 +0200
      Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative" Al Viro <viro@ZenIV.linux.org.uk> - 2016-10-07 00:40 +0200
        Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative" Al Viro <viro@ZenIV.linux.org.uk> - 2016-10-07 00:50 +0200
          Re: [PATCH] Revert "debugfs: ->d_parent is never NULL or negative" Sinan Kaya <okaya@codeaurora.org> - 2016-10-07 01:30 +0200

csiph-web