kernel_samsung_a53x/net/ceph
Jordan Rife 157b04adf5 libceph: use kernel_connect()
commit 7563cf17dce0a875ba3d872acdc63a78ea344019 upstream.

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: stable@vger.kernel.org
Link: https://lore.kernel.org/netdev/20230821100007.559638-1-jrife@google.com/
Link: https://lore.kernel.org/netdev/9944248dba1bce861375fcce9de663934d933ba9.camel@redhat.com/
Fixes: d74bad4e74ee ("bpf: Hooks for sys_connect")
Signed-off-by: Jordan Rife <jrife@google.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-08 11:25:50 +01:00
..
crush Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
armor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_none.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_none.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_x.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_x_protocol.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
buffer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ceph_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ceph_hash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ceph_strings.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cls_lock_client.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
decode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
messenger.c libceph: use kernel_connect() 2024-11-08 11:25:50 +01:00
mon_client.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msgpool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
osd_client.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
osdmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pagelist.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pagevec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
snapshot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
string_table.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
striper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00