<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 04/19/2011 12:48 PM, Joel Becker wrote:<br>
    <blockquote cite="mid:20110419194840.GA27826@noexit" type="cite">
      <pre wrap=""><tt>        You're too late here.  This is in the echo process (bash,
really).  getdents() isn't happening.
        The problem is almost certainly in configfs.  It's a race
between setup and teardown of the virtual attribute files.  If anyone
else has a cycle to look at it, great, otherwise I'll try to get to it
later this week.
</tt></pre>
    </blockquote>
    <tt><br>
      <span id="mainframespan">
        So we ran into it internally. This is what I wrote in the bug.<br>
        <br>
        <i>@ The matching code in configfs_readir() is:</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp; name = configfs_get_name(next);</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp; len = strlen(name);</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp; if (next-&gt;s_dentry)</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ino = next-&gt;s_dentry-&gt;d_inode-&gt;i_ino;&nbsp;&nbsp;
          &lt;===</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp; else</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ino = iunique(configfs_sb, 2);</i>
        <br>
        <i>@ .</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp; if (filldir(dirent, name, len, filp-&gt;f_pos, ino,</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dt_type(next)) &lt; 0)</i>
        <br>
        <i>@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 0;</i>
        <br>
        <i>@ .</i>
        <br>
        <i>@ The oops indicates that next-&gt;s_dentry-&gt;d_inode is
          NULL.</i></span><br>
      <br>
    </tt><tt><span id="mainframespan">Joel, does this give you any
        clues?<br>
      </span></tt><br>
    <tt>BTW, thanks for the testcase. And yes, I can reproduce it
      easily.</tt><br>
  </body>
</html>