netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Stable Backport: net: Avoid address overwrite in kernel_connect
@ 2023-08-31 18:47 Jordan Rife
  2023-08-31 19:26 ` Daniel Borkmann
  0 siblings, 1 reply; 7+ messages in thread
From: Jordan Rife @ 2023-08-31 18:47 UTC (permalink / raw)
  To: netdev; +Cc: dborkman

Upstream Commit ID: 0bdf399342c5acbd817c9098b6c7ed21f1974312
Patchwork Link:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=0bdf399342c5
Requested Kernel Versions: 4.19, 5.4, 5.10, 5.15, 6.1, 6.4, 6.5

This patch addresses an incompatibility between eBPF connect4/connect6
programs and kernel space clients such as NFS. At present, the issue
this patch fixes is a blocker for users that want to combine NFS with
Cilium. The fix has been applied upstream but the same bug exists with
older kernels.

-Jordan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stable Backport: net: Avoid address overwrite in kernel_connect
  2023-08-31 18:47 Stable Backport: net: Avoid address overwrite in kernel_connect Jordan Rife
@ 2023-08-31 19:26 ` Daniel Borkmann
  2023-08-31 19:47   ` Greg KH
  2023-09-02  7:29   ` Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Borkmann @ 2023-08-31 19:26 UTC (permalink / raw)
  To: Jordan Rife; +Cc: netdev, gregkh

[ Adding Greg to Cc ]

On 8/31/23 8:47 PM, Jordan Rife wrote:
> Upstream Commit ID: 0bdf399342c5acbd817c9098b6c7ed21f1974312
> Patchwork Link:
> https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=0bdf399342c5
> Requested Kernel Versions: 4.19, 5.4, 5.10, 5.15, 6.1, 6.4, 6.5
> 
> This patch addresses an incompatibility between eBPF connect4/connect6
> programs and kernel space clients such as NFS. At present, the issue
> this patch fixes is a blocker for users that want to combine NFS with
> Cilium. The fix has been applied upstream but the same bug exists with
> older kernels.
> 
> -Jordan
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stable Backport: net: Avoid address overwrite in kernel_connect
  2023-08-31 19:26 ` Daniel Borkmann
@ 2023-08-31 19:47   ` Greg KH
  2023-08-31 20:09     ` Jordan Rife
  2023-09-02  7:29   ` Greg KH
  1 sibling, 1 reply; 7+ messages in thread
From: Greg KH @ 2023-08-31 19:47 UTC (permalink / raw)
  To: Daniel Borkmann; +Cc: Jordan Rife, netdev

On Thu, Aug 31, 2023 at 09:26:31PM +0200, Daniel Borkmann wrote:
> [ Adding Greg to Cc ]
> 
> On 8/31/23 8:47 PM, Jordan Rife wrote:
> > Upstream Commit ID: 0bdf399342c5acbd817c9098b6c7ed21f1974312
> > Patchwork Link:
> > https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=0bdf399342c5
> > Requested Kernel Versions: 4.19, 5.4, 5.10, 5.15, 6.1, 6.4, 6.5
> > 
> > This patch addresses an incompatibility between eBPF connect4/connect6
> > programs and kernel space clients such as NFS. At present, the issue
> > this patch fixes is a blocker for users that want to combine NFS with
> > Cilium. The fix has been applied upstream but the same bug exists with
> > older kernels.

Jordan:

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stable Backport: net: Avoid address overwrite in kernel_connect
  2023-08-31 19:47   ` Greg KH
@ 2023-08-31 20:09     ` Jordan Rife
  2023-08-31 20:26       ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Jordan Rife @ 2023-08-31 20:09 UTC (permalink / raw)
  To: Greg KH; +Cc: Daniel Borkmann, netdev

Greg,

Sorry if I've misunderstood. The netdev FAQ
(https://www.kernel.org/doc/html/v5.7/networking/netdev-FAQ.html#q-i-see-a-network-patch-and-i-think-it-should-be-backported-to-stable)
seemed to indicate that I should send network backport requests to
netdev. I saw "option 2" in
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
which reads

> send an email to stable@vger.kernel.org containing the subject of the patch, the commit ID, why you think it should be applied, and what kernel version you wish it to be applied to.

Would "option 3" listed there be preferred?

-Jordan

On Thu, Aug 31, 2023 at 12:47 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Aug 31, 2023 at 09:26:31PM +0200, Daniel Borkmann wrote:
> > [ Adding Greg to Cc ]
> >
> > On 8/31/23 8:47 PM, Jordan Rife wrote:
> > > Upstream Commit ID: 0bdf399342c5acbd817c9098b6c7ed21f1974312
> > > Patchwork Link:
> > > https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=0bdf399342c5
> > > Requested Kernel Versions: 4.19, 5.4, 5.10, 5.15, 6.1, 6.4, 6.5
> > >
> > > This patch addresses an incompatibility between eBPF connect4/connect6
> > > programs and kernel space clients such as NFS. At present, the issue
> > > this patch fixes is a blocker for users that want to combine NFS with
> > > Cilium. The fix has been applied upstream but the same bug exists with
> > > older kernels.
>
> Jordan:
>
> <formletter>
>
> This is not the correct way to submit patches for inclusion in the
> stable kernel tree.  Please read:
>     https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> for how to do this properly.
>
> </formletter>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stable Backport: net: Avoid address overwrite in kernel_connect
  2023-08-31 20:09     ` Jordan Rife
@ 2023-08-31 20:26       ` Greg KH
  2023-08-31 20:34         ` Jordan Rife
  0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2023-08-31 20:26 UTC (permalink / raw)
  To: Jordan Rife; +Cc: Daniel Borkmann, netdev

On Thu, Aug 31, 2023 at 01:09:04PM -0700, Jordan Rife wrote:
> Greg,
> 
> Sorry if I've misunderstood. The netdev FAQ
> (https://www.kernel.org/doc/html/v5.7/networking/netdev-FAQ.html#q-i-see-a-network-patch-and-i-think-it-should-be-backported-to-stable)
> seemed to indicate that I should send network backport requests to
> netdev.

5.7 is a very old kernel version, please use the documentation from the
latest kernel version.

You can use "latest" instead of "v5.7" there.

> I saw "option 2" in
> https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> which reads
> 
> > send an email to stable@vger.kernel.org containing the subject of the patch, the commit ID, why you think it should be applied, and what kernel version you wish it to be applied to.
> 
> Would "option 3" listed there be preferred?

What's wrong with option 2?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stable Backport: net: Avoid address overwrite in kernel_connect
  2023-08-31 20:26       ` Greg KH
@ 2023-08-31 20:34         ` Jordan Rife
  0 siblings, 0 replies; 7+ messages in thread
From: Jordan Rife @ 2023-08-31 20:34 UTC (permalink / raw)
  To: Greg KH; +Cc: Daniel Borkmann, netdev

Oops, my mistake. Sorry for the mixup! In that case, I will

> send an email to stable@vger.kernel.org containing the subject of the patch, the commit ID, why you think it should be applied, and what kernel version you wish it to be applied to.

as option 2 suggests.

-Jordan

On Thu, Aug 31, 2023 at 1:26 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Aug 31, 2023 at 01:09:04PM -0700, Jordan Rife wrote:
> > Greg,
> >
> > Sorry if I've misunderstood. The netdev FAQ
> > (https://www.kernel.org/doc/html/v5.7/networking/netdev-FAQ.html#q-i-see-a-network-patch-and-i-think-it-should-be-backported-to-stable)
> > seemed to indicate that I should send network backport requests to
> > netdev.
>
> 5.7 is a very old kernel version, please use the documentation from the
> latest kernel version.
>
> You can use "latest" instead of "v5.7" there.
>
> > I saw "option 2" in
> > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> > which reads
> >
> > > send an email to stable@vger.kernel.org containing the subject of the patch, the commit ID, why you think it should be applied, and what kernel version you wish it to be applied to.
> >
> > Would "option 3" listed there be preferred?
>
> What's wrong with option 2?
>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stable Backport: net: Avoid address overwrite in kernel_connect
  2023-08-31 19:26 ` Daniel Borkmann
  2023-08-31 19:47   ` Greg KH
@ 2023-09-02  7:29   ` Greg KH
  1 sibling, 0 replies; 7+ messages in thread
From: Greg KH @ 2023-09-02  7:29 UTC (permalink / raw)
  To: Daniel Borkmann; +Cc: Jordan Rife, netdev

On Thu, Aug 31, 2023 at 09:26:31PM +0200, Daniel Borkmann wrote:
> [ Adding Greg to Cc ]
> 
> On 8/31/23 8:47 PM, Jordan Rife wrote:
> > Upstream Commit ID: 0bdf399342c5acbd817c9098b6c7ed21f1974312
> > Patchwork Link:
> > https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=0bdf399342c5
> > Requested Kernel Versions: 4.19, 5.4, 5.10, 5.15, 6.1, 6.4, 6.5
> > 
> > This patch addresses an incompatibility between eBPF connect4/connect6
> > programs and kernel space clients such as NFS. At present, the issue
> > this patch fixes is a blocker for users that want to combine NFS with
> > Cilium. The fix has been applied upstream but the same bug exists with
> > older kernels.

Also, no one tested this, it doesn't even actually apply to any of those
trees :(

Jordan, please provide working backports after you have tested this, if
you wish to see it applied to any stable trees.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-02  7:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31 18:47 Stable Backport: net: Avoid address overwrite in kernel_connect Jordan Rife
2023-08-31 19:26 ` Daniel Borkmann
2023-08-31 19:47   ` Greg KH
2023-08-31 20:09     ` Jordan Rife
2023-08-31 20:26       ` Greg KH
2023-08-31 20:34         ` Jordan Rife
2023-09-02  7:29   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).