Autofs leak file descriptors when reloaded (-HUP) and daemon may stop working on high # of shares/reloads
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Fix Released
|
Undecided
|
Rafael David Tinoco | ||
Saucy |
Won't Fix
|
Undecided
|
Rafael David Tinoco | ||
Trusty |
Fix Released
|
Undecided
|
Rafael David Tinoco | ||
autofs5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Rafael David Tinoco |
Bug Description
[Impact]
* Autofs leak file descriptors when reloaded (-HUP) and daemon may stop working on high # of shares/reloads.
[Test Case]
1. Configure a simple direct mount:
# cat /etc/auto.master
/- /etc/auto.direct
# cat /etc/auto.direct
/nfs server:/nfs
2. Start the automounter and do NOT trigger the mount
3. Replace /etc/auto.direct with:
# cat /etc/auto.direct
/nfs/1 server:/nfs
/nfs/2 server:/nfs
4. Reload:
# kill -HUP $(pidof automount)
>From now on, every reload will leak a file descriptor:
# ls -la /proc/$(pidof automount)/fd | grep /nfs
lr-x------ 1 root root 64 Aug 14 22:08 11 -> /nfs
lr-x------ 1 root root 64 Aug 14 22:08 12 -> /nfs
lr-x------ 1 root root 64 Aug 14 22:08 13 -> /nfs
lr-x------ 1 root root 64 Aug 14 22:08 14 -> /nfs
lr-x------ 1 root root 64 Aug 14 22:08 5 -> /nfs
[Regression Potential]
* based on upstream commit: autofs - version 5.0.7 - dd66c61a - file descriptor leak when reloading automount daemon. Tested with the same test case fix the error and not changing any other behavior.
[Other Info ]
-
Changed in autofs5 (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in autofs5 (Ubuntu Precise): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in autofs5 (Ubuntu Saucy): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in autofs5 (Ubuntu): | |
assignee: | Rafael David Tinoco (inaddy) → nobody |
status: | In Progress → Fix Released |
Changed in autofs5 (Ubuntu Precise): | |
status: | New → In Progress |
Changed in autofs5 (Ubuntu Saucy): | |
status: | New → In Progress |
Changed in autofs5 (Ubuntu): | |
status: | Fix Released → In Progress |
tags: | removed: removal-candidate |
tags: |
added: verification-done-precise verification-needed removed: verification-done |
tags: |
added: precise removed: verification-done verification-done-saucy |
Changed in autofs (Ubuntu Saucy): | |
status: | Fix Committed → Won't Fix |
Attaching patch for affected versions.
This one if for Precise.