diff options
author | Jordan Rife <[email protected]> | 2023-10-04 18:38:27 -0500 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2023-10-09 13:35:24 +0200 |
commit | 7563cf17dce0a875ba3d872acdc63a78ea344019 (patch) | |
tree | f264a67c2e29ea8461f60b7257c842db97fbb939 /scripts/gdb/linux/utils.py | |
parent | 42b71826fe5d01f3e6cdddc91f81d0e4afb91801 (diff) |
libceph: use kernel_connect()
Direct calls to ops->connect() can overwrite the address parameter when
used in conjunction with BPF SOCK_ADDR hooks. Recent changes to
kernel_connect() ensure that callers are insulated from such side
effects. This patch wraps the direct call to ops->connect() with
kernel_connect() to prevent unexpected changes to the address passed to
ceph_tcp_connect().
This change was originally part of a larger patch targeting the net tree
addressing all instances of unprotected calls to ops->connect()
throughout the kernel, but this change was split up into several patches
targeting various trees.
Cc: [email protected]
Link: https://lore.kernel.org/netdev/[email protected]/
Link: https://lore.kernel.org/netdev/[email protected]/
Fixes: d74bad4e74ee ("bpf: Hooks for sys_connect")
Signed-off-by: Jordan Rife <[email protected]>
Reviewed-by: Ilya Dryomov <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions