<div dir="ltr">It&#39;s in read_fd_link() called by fixup_aufs_vma_fd() called by vma_get_mapfile().<div><br></div><div>I could not use strip_deleted() because its argument is a pointer to struct fd_link.<div><br></div><div>Below is a snippet listing of /proc/&lt;pid&gt;map_files for Nginx-streaming.  You see the AUFS branch names exposed (which we handle) and then you see &quot;/dev/zero (deleted)&quot;.</div><div><br></div><div>By the way, /dev/zero isn&#39;t really deleted but I think because it&#39;s mmap()&#39;ed as both shared and writable (a strange combination), we get &quot; (deleted)&quot; appended to it by the kernel.</div><div><br></div><div><div>...</div><div>lr-------- 1 root root 64 Jan 20 11:07 7fc5c5840000-7fc5c5863000 -&gt; /var/lib/docker/aufs/diff/3b363fd9d7dab4db9591058a3f43e806f6fa6f7e2744b63b2df4b84eadb0685a/lib/x86_64-linux-gnu/<a href="http://ld-2.19.so">ld-2.19.so</a><br></div><div>lrw------- 1 root root 64 Jan 20 11:07 7fc5c5a5f000-7fc5c5a60000 -&gt; /dev/zero (deleted)</div><div>lr-------- 1 root root 64 Jan 20 11:07 7fc5c5a62000-7fc5c5a63000 -&gt; /var/lib/docker/aufs/diff/3b363fd9d7dab4db9591058a3f43e806f6fa6f7e2744b63b2df4b84eadb0685a/lib/x86_64-linux-gnu/<a href="http://ld-2.19.so">ld-2.19.so</a></div></div><div>...</div><div><br></div><div>--Saied</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 19, 2015 at 2:04 AM, Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/16/2015 11:45 PM, Saied Kazemi wrote:<br>
&gt; The kernel (see fs/dcache.c) appends the string &quot; (deleted)&quot; to a deleted<br>
&gt; dentry pathname.  We need to remove the string when reading a symlink<br>
&gt; that contains it (e.g., symlinks in /proc/&lt;pid&gt;/map_files).<br>
<br>
</span>Saied, in which function (or calltrace) do you see the &quot;(deleted)&quot; suffix?<br>
We tried to address this, we have a function called strip_deleted() which<br>
does exactly this, but it looks like we haven&#39;t fixed all the cases where<br>
this suffix appears.<br>
<br>
&gt; Signed-off-by: Saied Kazemi &lt;<a href="mailto:saied@google.com">saied@google.com</a>&gt;<br>
<br>
Thanks,<br>
Pavel<br>
<br>
</blockquote></div><br></div>