diff options
author | Hangyu Hua <[email protected]> | 2022-09-09 10:29:43 +0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2022-09-20 15:05:29 +0300 |
commit | 4b46a6079d2f8a9aa23c96227dfdb8692ac10421 (patch) | |
tree | 4013dec4790454a94d0d6a4d3db38e3c0c4571f7 /scripts/bpf_doc.py | |
parent | 13f42e5166bc73786d21b5fae13ff89e67dcbe8b (diff) |
RDMA/srpt: Use flex array destination for memcpy()
In preparation for FORTIFY_SOURCE performing run-time destination buffer
bounds checking for memcpy(), specify the destination output buffer
explicitly, instead of asking memcpy() to write past the end of what looked
like a fixed-size object.
Notice that srp_rsp[] is a pointer to a structure that contains
flexible-array member data[]:
struct srp_rsp {
...
__be32 sense_data_len;
__be32 resp_data_len;
u8 data[];
};
link: https://github.com/KSPP/linux/issues/201
Signed-off-by: Hangyu Hua <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions