]> git.itanic.dy.fi Git - linux-stable/commit
NFS: populate ->net in mount data when remounting
authorMateusz Guzik <mguzik@redhat.com>
Tue, 10 Jun 2014 10:44:12 +0000 (12:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:59:11 +0000 (18:59 -0700)
commitff177fb44d47f46567543127e3ad42936b31c71f
treeb678db4637ed9e2169d88346b38e3c030f1761e3
parentca3fd5c679515e152f2e7feb980ebe8c444d5b18
NFS: populate ->net in mount data when remounting

commit a914722f333b3359d2f4f12919380a334176bb89 upstream.

Otherwise the kernel oopses when remounting with IPv6 server because
net is dereferenced in dev_get_by_name.

Use net ns of current thread so that dev_get_by_name does not operate on
foreign ns. Changing the address is prohibited anyway so this should not
affect anything.

Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Cc: linux-nfs@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/super.c