]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 13 Mar 2017 20:40:48 +0000 (21:40 +0100)
commitdb93e51d674ee33fad1f3210cf41997ffccd5fb4
tree81f668a05b855a8e1128b38fec2a294208243b66
parentf304013e0dcc431ec722b2bd9e5b7e462a7b68ce
nlm: Ensure callback code also checks that the files match

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: Jiri Slaby <jslaby@suse.cz>
include/linux/lockd/lockd.h