diff options
author | Xu Kuohai | 2023-08-04 03:37:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-08-16 18:27:26 +0200 |
commit | ed90fe7435c573897c2ab7624f24d67c866f94a9 (patch) | |
tree | fae676ef2265c12d66475f3843603ff836fd3e0d /mm/pagewalk.c | |
parent | 20acffcdc2b74fb7dcc4e299f7aca173df89d911 (diff) |
bpf, sockmap: Fix map type error in sock_map_del_link
commit 7e96ec0e6605b69bb21bbf6c0ff9051e656ec2b1 upstream.
sock_map_del_link() operates on both SOCKMAP and SOCKHASH, although
both types have member named "progs", the offset of "progs" member in
these two types is different, so "progs" should be accessed with the
real map type.
Fixes: 604326b41a6f ("bpf, sockmap: convert to generic sk_msg interface")
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20230804073740.194770-2-xukuohai@huaweicloud.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/pagewalk.c')
0 files changed, 0 insertions, 0 deletions