<!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>@ name = configfs_get_name(next);</i>
<br>
<i>@ len = strlen(name);</i>
<br>
<i>@ if (next->s_dentry)</i>
<br>
<i>@ ino = next->s_dentry->d_inode->i_ino;
<===</i>
<br>
<i>@ else</i>
<br>
<i>@ ino = iunique(configfs_sb, 2);</i>
<br>
<i>@ .</i>
<br>
<i>@ if (filldir(dirent, name, len, filp->f_pos, ino,</i>
<br>
<i>@ dt_type(next)) < 0)</i>
<br>
<i>@ return 0;</i>
<br>
<i>@ .</i>
<br>
<i>@ The oops indicates that next->s_dentry->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>