aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-02-02 08:23:03 -0700
committerJens Axboe <axboe@kernel.dk>2020-02-03 17:27:38 -0700
commitb5e683d5cab8cd433b06ae178621f083cabd4f63 (patch)
treeff80c1fcdd40441ae015b35d67897c1f63129a9c /scripts/Makefile.lib
parentd7f62e825fd19202a0749d10fb439714c51f67d2 (diff)
downloadlinux-b5e683d5cab8cd433b06ae178621f083cabd4f63.tar.gz
eventfd: track eventfd_signal() recursion depth
eventfd use cases from aio and io_uring can deadlock due to circular or resursive calling, when eventfd_signal() tries to grab the waitqueue lock. On top of that, it's also possible to construct notification chains that are deep enough that we could blow the stack. Add a percpu counter that tracks the percpu recursion depth, warn if we exceed it. The counter is also exposed so that users of eventfd_signal() can do the right thing if it's non-zero in the context where it is called. Cc: stable@vger.kernel.org # 4.19+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.lib')
0 files changed, 0 insertions, 0 deletions