Re: Reproducible, long-standing fanotify+autofs problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marko Rauhamaa <marko.rauhamaa@xxxxxxxxxxxx>:

> Amir Goldstein <amir73il@xxxxxxxxx>:
> I have narrowed the problem down a bit in the kernel. The hanging
> function is "user_path_at":
>
>     user_path_at(filename="/sshome/test/user/", lookup_flags=0x1)
>       called from: fanotify_find_path()
>       called from: fanotify_mark()
>
> And Ctrl-C wakes it up.

I have dug a bit deeper. What hangs is this statement:

    mnt = path->dentry->d_op->d_automount(path);

in:

    follow_automount() // fs/namei.c
      called from: follow_managed()
      called from: walk_component()
      called from: lookup_last()
      called from: path_lookupat()
      called from: filename_lookup()
      called from: user_path_at_empty()
      called from: user_path_at(filename="/sshome/test/user/", lookup_flags=0x1)
      called from: fanotify_find_path() // fs/notify/fanotify_user.c
      called from: fanotify_mark()

And Ctrl-C wakes it up.

The d_automount() method is bound to autofs4_d_automount() in
fs/autofs4/root.c. The hanging statement is:

     wait_event_interruptible(wq->queue, wq->name.name == NULL);

in:

    autofs4_wait() // fs/autofs4/waitq.c
      called from: autofs4_mount_wait() // fs/autofs4/root.c
      called from: autofs4_d_automount()


Marko

-- 
+358 44 990 4795
Skype: marko.rauhamaa_f-secure
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux