diff options
author | Ian Rogers | 2022-10-23 18:10:24 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo | 2022-10-25 17:40:48 -0300 |
commit | 304f0a2f6a6d9336fb5e474d7f62b8677d5ee167 (patch) | |
tree | 4fe68aa11c0fcd3a403c75d0b25782d905535db3 /crypto/xctr.c | |
parent | f1bdebbb67bd21d7c5dfc42f313f2f54002440b8 (diff) |
perf record: Fix event fd races
The write call may set errno which is problematic if occurring in a
function also setting errno. Save and restore errno around the write
call.
done_fd may be used after close, clear it as part of the close and check
its validity in the signal handler.
Suggested-by: <gthelen@google.com>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Anand K Mistry <amistry@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20221024011024.462518-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'crypto/xctr.c')
0 files changed, 0 insertions, 0 deletions