Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After calling opinfo_put(), the opinfo may be freed, then using this opinfo in the next traversal will cause UAF bug. To fix it, swap the call order of opinfo_put() and rcu_read_lock(), so that the opinfo_free_rcu() will not be called, and the opinfo will not be freed, then we can safely perform the next traversal. Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3") Signed-off-by: Qi Zheng <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
- Loading branch information