Bug 217128 - Kernel panic on 11.0-Release when executing files over NFS(AutoFS) before it's automounted
Summary: Kernel panic on 11.0-Release when executing files over NFS(AutoFS) before it'...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 11.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-16 04:57 UTC by Chang, Ching-hao
Modified: 2017-05-23 13:24 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chang, Ching-hao 2017-02-16 04:57:52 UTC
We've just upgraded a couple of our servers from 10.3-RELEASE to 11.0-RELEASE.

In our environment, we have an executable file on NFS, which is automounted on /net.
If we executed /net/executable_file before the directory is automounted, kernel panic will occur.

However, 10.3-RELEASE and previous releases doesn't seem to have such problem.
Comment 1 Conrad Meyer freebsd_committer freebsd_triage 2017-02-16 05:04:41 UTC
Can you get a backtrace of the panic, please?
Comment 2 Chang, Ching-hao 2017-02-16 06:49:18 UTC
I tried to get a core dump of the kernel panic by setting the dumpdev to AUTO and dumpdir to /var/crash but still got nothing. My FreeBSD would just freeze or worse, reboot.

And please let me repharse it a little bit, we have a setuid executable on local drive as a setuid wrapper which calls execve() to execute a perl script located on the NFS. And kernel panic occured only when the /net folder is not automounted. If we list the /net folder (so that the NFS get mounted) and execute the setuid wrapper then everything is fine.
Comment 3 Konstantin Belousov freebsd_committer freebsd_triage 2017-02-16 07:19:29 UTC
This might be a bug fixed in r311284, not yet merged to stable/11.  Do you use autofs or amd ?
Comment 4 Chang, Ching-hao 2017-02-16 08:06:10 UTC
We use autofs.
Comment 5 Chang, Ching-hao 2017-02-16 08:11:03 UTC
I'll try to apply the patch provided in r311284 and see if it work.
Comment 6 Chang, Ching-hao 2017-02-16 08:44:21 UTC
Thanks guys, The r311284 patch worked like a charm.