From: Jeff Layton Date: Fri, 24 Aug 2007 03:16:51 +0000 (+0000) Subject: [CIFS] Byte range unlock request to non-Unix server can unlock too much X-Git-Tag: v2.6.24-rc1~138^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39db810cb6c1e7d1f2e43ae38b437b7ee72fe815;p=pandora-kernel.git [CIFS] Byte range unlock request to non-Unix server can unlock too much On a mount without posix extensions enabled, when an unlock request is made, the client can release more than is intended. To reproduce, on a CIFS mount without posix extensions enabled: 1) open file 2) do fcntl lock: start=0 len=1 3) do fcntl lock: start=2 len=1 4) do fcntl unlock: start=0 len=1 ...on the unlock call the client sends an unlock request to the server for both locks. The problem is a bad test in cifs_lock. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed