]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
nlm: Ensure callback code also checks that the files match
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 11 Feb 2017 15:37:38 +0000 (10:37 -0500)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 15 Mar 2017 15:32:11 +0000 (10:32 -0500)
commit3e62d3dfd8a2f485e462841329f40f7fd8e221b7
tree4daf72dae8863b4405cbfbd25a4b9f1c7de28873
parentae1e944ad190d70ee6c7fbb6a2729a9905b06c0c
nlm: Ensure callback code also checks that the files match

BugLink: http://bugs.launchpad.net/bugs/1673118
commit 251af29c320d86071664f02c76f0d063a19fefdf upstream.

It is not sufficient to just check that the lock pids match when
granting a callback, we also need to ensure that we're granting
the callback on the right file.

Reported-by: Pankaj Singh <psingh.ait@gmail.com>
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
include/linux/lockd/lockd.h