[PATCH] smb: use kernel_connect() and kernel_bind()

Steve French smfrench at gmail.com
Wed Oct 4 17:14:48 UTC 2023


tentatively merged into cifs-2.6.git for-next pending testing and
additional review

On Wed, Oct 4, 2023 at 10:44 AM Paulo Alcantara <pc at manguebit.com> wrote:
>
> Jordan Rife <jrife at google.com> writes:
>
> > 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 ensure that SMB
> > mounts do not see their mount address overwritten in such cases.
> >
> > Link: https://lore.kernel.org/netdev/9944248dba1bce861375fcce9de663934d933ba9.camel@redhat.com/
> > Cc: <stable at vger.kernel.org> # 6.x.y
> > Signed-off-by: Jordan Rife <jrife at google.com>
> > ---
> >  fs/smb/client/connect.c | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
>
> Acked-by: Paulo Alcantara (SUSE) <pc at manguebit.com>



-- 
Thanks,

Steve



More information about the samba-technical mailing list