Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing: Move mutex to protect against resetting of seq data
commit 1245800 upstream. The iter->seq can be reset outside the protection of the mutex. So can reading of user data. Move the mutex up to the beginning of the function. Fixes: d7350c3 ("tracing/core: make the read callbacks reentrants") Reported-by: Al Viro <[email protected]> Signed-off-by: Steven Rostedt <[email protected]> [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings <[email protected]>
- Loading branch information