Files
linux-stable-mirror/include/linux
Jens Axboe b5e683d5ca 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>
2020-02-03 17:27:38 -07:00
..
2020-01-27 14:35:32 +01:00
2020-01-23 12:37:18 +00:00
2020-01-23 00:35:50 +01:00
2020-01-27 11:09:31 +01:00
2020-01-18 09:19:18 -05:00
2020-01-13 21:48:42 +01:00
2020-01-03 09:33:24 +01:00
2020-01-14 12:20:48 +01:00
2020-01-16 17:09:18 +01:00
2020-01-13 18:16:43 -08:00
2020-01-10 14:00:58 -08:00
2020-01-24 10:24:31 -08:00
2020-01-24 10:24:31 -08:00
2020-01-13 18:31:48 -08:00
2020-01-26 15:28:47 +01:00
2020-01-14 12:20:48 +01:00
2020-01-17 22:33:37 -05:00