[linux-cifs-client] Re: [PATCH] CIFS: fix bad test in cifs_lock for
unlocks on non-posix nounts
Steve French
smfrench at gmail.com
Fri Aug 24 03:35:34 GMT 2007
Jeff Layton wrote:
>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. The following
>patch fixed the reproducer but I haven't done any testing beyond that.
Merged into cifs-2.6.git
If you think it needs a last minute merge to mainline let me know -
but I would prefer to wait until the next merge window opens.
--
Thanks,
Steve
More information about the linux-cifs-client
mailing list