diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-03-14 13:20:58 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2023-03-14 21:00:55 +0300 |
commit | 7ff84910c66c9144cc0de9d9deed9fb84c03aff0 (patch) | |
tree | 1f95b18e84919a78f4d9dab926661c5ba48c1112 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9c88ea00fef03031ce6554531e89be82f6a42835 (diff) | |
download | linux-7ff84910c66c9144cc0de9d9deed9fb84c03aff0.tar.xz |
lockd: set file_lock start and end when decoding nlm4 testargs
Commit 6930bcbfb6ce dropped the setting of the file_lock range when
decoding a nlm_lock off the wire. This causes the client side grant
callback to miss matching blocks and reject the lock, only to rerequest
it 30s later.
Add a helper function to set the file_lock range from the start and end
values that the protocol uses, and have the nlm_lock decoder call that to
set up the file_lock args properly.
Fixes: 6930bcbfb6ce ("lockd: detect and reject lock arguments that overflow")
Reported-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Amir Goldstein <amir73il@gmail.com>
Cc: stable@vger.kernel.org #6.0
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions