aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-02-01 21:30:11 -0700
committerJens Axboe <axboe@kernel.dk>2020-02-03 17:27:47 -0700
commitf0b493e6b9a8959356983f57112229e69c2f7b8c (patch)
treee1b2bdd95a1b37cb4563a798a18ace70a2a1cd80 /tools/perf/scripts/python/syscall-counts.py
parentb5e683d5cab8cd433b06ae178621f083cabd4f63 (diff)
io_uring: prevent potential eventfd recursion on poll
If we have nested or circular eventfd wakeups, then we can deadlock if we run them inline from our poll waitqueue wakeup handler. It's also possible to have very long chains of notifications, to the extent where we could risk blowing the stack. Check the eventfd recursion count before calling eventfd_signal(). If it's non-zero, then punt the signaling to async context. This is always safe, as it takes us out-of-line in terms of stack and locking context. Cc: stable@vger.kernel.org # 5.1+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions