diff options
author | Dave Martin <Dave.Martin@arm.com> | 2017-06-15 17:03:41 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-06-20 14:42:59 +0300 |
commit | bb4322f74340de578bc61ed0cfb9690ddeb9ef76 (patch) | |
tree | 6977efdb0f0aa4d2fc60fbc10604a9708ab5af91 /net/core/skbuff.c | |
parent | bb4891a6c3551f27fa4d548b87a66c258bdb100b (diff) | |
download | linux-bb4322f74340de578bc61ed0cfb9690ddeb9ef76.tar.xz |
arm64: signal: factor out signal frame record allocation
This patch factors out the allocator for signal frame optional
records into a separate function, to ensure consistency and
facilitate later expansion.
No overrun checking is currently done, because the allocation is in
user memory and anyway the kernel never tries to allocate enough
space in the signal frame yet for an overrun to occur. This
behaviour will be refined in future patches.
The approach taken in this patch to allocation of the terminator
record is not very clean: this will also be replaced in subsequent
patches.
For future extension, a comment is added in sigcontext.h
documenting the current static allocations in __reserved[]. This
will be important for determining under what circumstances
userspace may or may not see an expanded signal frame.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'net/core/skbuff.c')
0 files changed, 0 insertions, 0 deletions