diff options
| author | Paul E. McKenney <[email protected]> | 2020-09-10 11:54:42 -0700 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2020-11-19 19:37:17 -0800 |
| commit | 50edb988534c621a56ca103c0c16ac59e7399f01 (patch) | |
| tree | f923f4e709fdfeb57409ea54367190a79649e4a4 /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
| parent | 56292e8609e39537297a7468dda4d87b9bd81d6a (diff) | |
srcu: Take early exit on memory-allocation failure
It turns out that init_srcu_struct() can be invoked from usermode tasks,
and that fatal signals received by these tasks can cause memory-allocation
failures. These failures are not handled well by init_srcu_struct(),
so much so that NULL pointer dereferences can result. This commit
therefore causes init_srcu_struct() to take an early exit upon detection
of memory-allocation failure.
Link: https://lore.kernel.org/lkml/[email protected]/
Reported-by: Alexey Kardashevskiy <[email protected]>
Tested-by: Alexey Kardashevskiy <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions