Re: Re: [PATCH] nfsd: fix kernel crash when load nfsd in docker

2020-06-26 Thread J. Bruce Fields
On Fri, Jun 26, 2020 at 08:45:23PM +0800, Luo Xiaogang wrote: > At 2020-06-24 09:29:01, "J. Bruce Fields" wrote: > >On Mon, Jun 15, 2020 at 03:12:11PM +0800, Luo Xiaogang wrote: > >> We load nfsd module in the docker container, kernel crash as following. > >> > >> The

Re:Re: [PATCH] nfsd: fix kernel crash when load nfsd in docker

2020-06-26 Thread Luo Xiaogang
At 2020-06-24 09:29:01, "J. Bruce Fields" wrote: >On Mon, Jun 15, 2020 at 03:12:11PM +0800, Luo Xiaogang wrote: >> We load nfsd module in the docker container, kernel crash as following. >> >> The 'current->nsproxy->net_ns->gen->ptr[nfsd_net_id]' is overflow in the >> nfsd_init_net. >> >> We

Re:Re: [PATCH] nfsd: fix kernel crash when load nfsd in docker

2020-06-26 Thread 骆小刚
Thanks for reply. Very well, the two patches you provided solved this problem.

Re: [PATCH] nfsd: fix kernel crash when load nfsd in docker

2020-06-23 Thread J. Bruce Fields
On Mon, Jun 15, 2020 at 03:12:11PM +0800, Luo Xiaogang wrote: > We load nfsd module in the docker container, kernel crash as following. > > The 'current->nsproxy->net_ns->gen->ptr[nfsd_net_id]' is overflow in the > nfsd_init_net. > > We should use the net_ns which is being init in the

[PATCH] nfsd: fix kernel crash when load nfsd in docker

2020-06-15 Thread Luo Xiaogang
We load nfsd module in the docker container, kernel crash as following. The 'current->nsproxy->net_ns->gen->ptr[nfsd_net_id]' is overflow in the nfsd_init_net. We should use the net_ns which is being init in the nfsd_init_net, not the 'current->nsproxy->net_ns'. [ 939.174448] Installing knfsd