[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <650af33778093_37ac73294a9@willemb.c.googlers.com.notmuch>
Date: Wed, 20 Sep 2023 09:27:19 -0400
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Jordan Rife <jrife@...gle.com>,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
willemdebruijn.kernel@...il.com,
netdev@...r.kernel.org
Cc: dborkman@...nel.org,
philipp.reisner@...bit.com,
lars.ellenberg@...bit.com,
christoph.boehmwalder@...bit.com,
axboe@...nel.dk,
chengyou@...ux.alibaba.com,
kaishen@...ux.alibaba.com,
jgg@...pe.ca,
leon@...nel.org,
bmt@...ich.ibm.com,
ccaulfie@...hat.com,
teigland@...hat.com,
mark@...heh.com,
jlbec@...lplan.org,
joseph.qi@...ux.alibaba.com,
sfrench@...ba.org,
pc@...guebit.com,
lsahlber@...hat.com,
sprasad@...rosoft.com,
tom@...pey.com,
ericvh@...nel.org,
lucho@...kov.net,
asmadeus@...ewreck.org,
linux_oss@...debyte.com,
idryomov@...il.com,
xiubli@...hat.com,
jlayton@...nel.org,
horms@...ge.net.au,
ja@....bg,
pablo@...filter.org,
kadlec@...filter.org,
fw@...len.de,
santosh.shilimkar@...cle.com,
Jordan Rife <jrife@...gle.com>,
stable@...r.kernel.org
Subject: Re: [PATCH net v4 1/3] net: replace calls to sock->ops->connect()
with kernel_connect()
Jordan Rife wrote:
> commit 0bdf399342c5 ("net: Avoid address overwrite in kernel_connect")
> ensured that kernel_connect() will not overwrite the address parameter
> in cases where BPF connect hooks perform an address rewrite. This change
> replaces all direct calls to sock->ops->connect() with kernel_connect()
> to make these call safe.
>
> Link: https://lore.kernel.org/netdev/20230912013332.2048422-1-jrife@google.com/
> Fixes: d74bad4e74ee ("bpf: Hooks for sys_connect")
> Cc: stable@...r.kernel.org
> Signed-off-by: Jordan Rife <jrife@...gle.com>
Reviewed-by: Willem de Bruijn <willemb@...gle.com>
Powered by blists - more mailing lists