aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2022-12-08 02:11:40 +0530
committerAlexei Starovoitov <[email protected]>2022-12-08 18:39:28 -0800
commit76d16077bef0954528ec3896710f9eda8b2b4db1 (patch)
treef99d754b4bb61f95c24dbc7c3026e2fa2727f742 /lib/mpi/mpi-sub-ui.c
parentf6ee298fa140f6b5bae3acf6d6108741278bcced (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