diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2022-12-08 02:11:40 +0530 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-12-08 18:39:28 -0800 |
commit | 76d16077bef0954528ec3896710f9eda8b2b4db1 (patch) | |
tree | f99d754b4bb61f95c24dbc7c3026e2fa2727f742 /lib/mpi/mpi-sub-ui.c | |
parent | f6ee298fa140f6b5bae3acf6d6108741278bcced (diff) |
bpf: Use memmove for bpf_dynptr_{read,write}
It may happen that destination buffer memory overlaps with memory dynptr
points to. Hence, we must use memmove to correctly copy from dynptr to
destination buffer, or source buffer to dynptr.
This actually isn't a problem right now, as memcpy implementation falls
back to memmove on detecting overlap and warns about it, but we
shouldn't be relying on that.
Acked-by: Joanne Koong <[email protected]>
Acked-by: David Vernet <[email protected]>
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions