On 8/10/23 9:31 PM, thinker.li@xxxxxxxxx wrote:
From: Kui-Feng Lee <kuifeng@xxxxxxxx> Since the buffer pointed by ctx->user_optval is in user space, BPF programs in kernel space should not access it directly. They should use bpf_copy_from_user() and bpf_copy_to_user() to move data between user and kernel space. Signed-off-by: Kui-Feng Lee <kuifeng@xxxxxxxx> Signed-off-by: Kui-Feng Lee <thinker.li@xxxxxxxxx>
You probably only want Signed-off-by: Kui-Feng Lee <thinker.li@xxxxxxxxx> since it matches email 'From'. Also, From: Kui-Feng Lee <kuifeng@xxxxxxxx> is different from email 'From'. Strange. [...]