]> git.baikalelectronics.ru Git - kernel.git/commit
NLM: Fix a regression in lockd
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Nov 2010 13:11:55 +0000 (09:11 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 16 Nov 2010 01:44:26 +0000 (20:44 -0500)
commitac1bd1990db86918ff0ee69c20e643a054006892
tree1da21fa631fe471f6eae604dcbd3a416220de25a
parente3d836929ee27a7d4f50d1582e5cff670e18a13f
NLM: Fix a regression in lockd

Nick Bowler reports:
There are no unusual messages on the client... but I just logged into
the server and I see lots of messages of the following form:

  nfsd: request from insecure port (192.168.8.199:35766)!
  nfsd: request from insecure port (192.168.8.199:35766)!
  nfsd: request from insecure port (192.168.8.199:35766)!
  nfsd: request from insecure port (192.168.8.199:35766)!
  nfsd: request from insecure port (192.168.8.199:35766)!

Bisected to commit 88f7d02d38af81b8409f22529daf6d418cc852ec (SUNRPC:
Properly initialize sock_xprt.srcaddr in all cases)

Apparently, removing the 'transport->srcaddr.ss_family = family' from
xs_create_sock() triggers this due to nlmclnt_lookup_host() incorrectly
initialising the srcaddr family to AF_UNSPEC.

Reported-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/host.c
include/linux/lockd/lockd.h