autofs4 hangs waiting to mount local file-system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
18.04 amd64, 4.15.0-
The system has a number of local autofs mounts created and managed by systemd through .automount units.
Earlier today I had finished working on one such ("SourceCode") and it had auto-unmounted after the idle time. A short time after that I tried to use that auto-mount directory again ("/home/
Initially couldn't see any clues in the logs but after a while the kernel dumped a couple of stack traces of which I include the first here.
After the stack-traces appeared the shell was able to report an error for other auto-mounts that haven't hung but trying to access the problematic "/home/
ls: cannot access '/home/
In trying to clean up I manually stopped all the systemd .mount/.automount units. As soon as I stopped the home-tj-
Not sure if this is caused by the systemd autofs handling or there was some race condition behind it, but it seems to have recovered.
Jun 24 11:01:02 T300CHI kernel: INFO: task ls:29630 blocked for more than 120 seconds.
Jun 24 11:01:02 T300CHI kernel: Tainted: G OE 4.15.0-
Jun 24 11:01:02 T300CHI kernel: "echo 0 > /proc/sys/
Jun 24 11:01:02 T300CHI kernel: Call Trace:
Jun 24 11:01:02 T300CHI kernel: __schedule+
Jun 24 11:01:02 T300CHI kernel: schedule+0x33/0x90
Jun 24 11:01:02 T300CHI kernel: schedule_
Jun 24 11:01:02 T300CHI kernel: ? autofs4_
Jun 24 11:01:02 T300CHI kernel: wait_for_
Jun 24 11:01:02 T300CHI kernel: ? wake_up_q+0x80/0x80
Jun 24 11:01:02 T300CHI kernel: autofs4_
Jun 24 11:01:02 T300CHI kernel: do_expire_
Jun 24 11:01:02 T300CHI kernel: ? __d_alloc+
Jun 24 11:01:02 T300CHI kernel: autofs4_
Jun 24 11:01:02 T300CHI kernel: follow_
Jun 24 11:01:02 T300CHI kernel: lookup_
Jun 24 11:01:02 T300CHI kernel: walk_component+
Jun 24 11:01:02 T300CHI kernel: path_lookupat+
Jun 24 11:01:02 T300CHI kernel: filename_
Jun 24 11:01:02 T300CHI kernel: ? mem_cgroup_
Jun 24 11:01:02 T300CHI kernel: ? __check_
Jun 24 11:01:02 T300CHI kernel: ? strncpy_
Jun 24 11:01:02 T300CHI kernel: user_path_
Jun 24 11:01:02 T300CHI kernel: ? user_path_
Jun 24 11:01:02 T300CHI kernel: vfs_statx+0x76/0xe0
Jun 24 11:01:02 T300CHI kernel: SYSC_newstat+
Jun 24 11:01:02 T300CHI kernel: ? __do_page_
Jun 24 11:01:02 T300CHI kernel: SyS_newstat+
Jun 24 11:01:02 T300CHI kernel: do_syscall_
Jun 24 11:01:02 T300CHI kernel: entry_SYSCALL_
Jun 24 11:01:02 T300CHI kernel: RIP: 0033:0x7f4a02814775
Jun 24 11:01:02 T300CHI kernel: RSP: 002b:00007fff7c
Jun 24 11:01:02 T300CHI kernel: RAX: ffffffffffffffda RBX: 000055fb8dd08640 RCX: 00007f4a02814775
Jun 24 11:01:02 T300CHI kernel: RDX: 000055fb8dd08658 RSI: 000055fb8dd08658 RDI: 00007fff7c276d68
Jun 24 11:01:02 T300CHI kernel: RBP: 00007fff7c274f40 R08: 0000000000000000 R09: 00007fff7c276d72
Jun 24 11:01:02 T300CHI kernel: R10: 000000007c276d00 R11: 0000000000000246 R12: 00007fff7c276d68
Jun 24 11:01:02 T300CHI kernel: R13: 0000000000000001 R14: 0000000000000000 R15: 000055fb8dd08658
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1834003
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.