diff options
author | Eli Cohen <eli@mellanox.com> | 2017-01-03 23:55:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-24 07:11:15 +0200 |
commit | b51e4b0ac6618814bb1b294086b84aa9a51aaf48 (patch) | |
tree | 1fcd168443ab177bad21233c8ffd65625e7781d3 /sound/core/info.c | |
parent | dca02651cee78260ad9b6f1dce8f40b28367b7e2 (diff) | |
download | linux-rt-b51e4b0ac6618814bb1b294086b84aa9a51aaf48.tar.gz |
IB/mlx5: Fix kernel to user leak prevention logic
commit de8d6e02efbdb259c67832ccf027d7ace9b91d5d upstream.
The logic was broken as it failed to update the response length for
architectures with PAGE_SIZE larger than 4kB. As a result further
extension of the ucontext response struct would fail.
Fixes: d69e3bcf7976 ('IB/mlx5: Mmap the HCA's core clock register to user-space')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/core/info.c')
0 files changed, 0 insertions, 0 deletions