Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UBUNTU: SAUCE: shiftfs: handle copy_to_user() return values correctly
shiftfs expects copy_to_user() to return a negative error code on failure, when it actually returns the amount of uncopied data. Fix all code using copy_to_user() to handle the return values correctly. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> CVE-2021-3492 Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com> Acked-by: Stefan Bader <stefan.bader@canonical.com> Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
- Loading branch information