Files
twx-linux/fs/dlm
Jordan Rife e11dea8f50 dlm: use kernel_connect() and kernel_bind()
[ Upstream commit e9cdebbe23 ]

Recent changes to kernel_connect() and kernel_bind() ensure that
callers are insulated from changes to the address parameter made by BPF
SOCK_ADDR hooks. This patch wraps direct calls to ops->connect() and
ops->bind() with kernel_connect() and kernel_bind() to protect callers
in such cases.

Link: https://lore.kernel.org/netdev/9944248dba1bce861375fcce9de663934d933ba9.camel@redhat.com/
Fixes: d74bad4e74 ("bpf: Hooks for sys_connect")
Fixes: 4fbac77d2d ("bpf: Hooks for sys_bind")
Cc: stable@vger.kernel.org
Signed-off-by: Jordan Rife <jrife@google.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-31 16:17:10 -08:00
..
2022-08-23 14:54:01 -05:00
2022-04-06 14:02:28 -05:00
2022-08-23 14:54:54 -05:00
2022-04-06 14:02:37 -05:00
2022-04-06 14:02:37 -05:00