Mailing List Archive

RE: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost connections be established successfully even the ARP table is full
> From: James Lee <lizheng043@gmail.com>
> Sent: Monday, March 18, 2024 2:09 PM
> To: Ratheesh Kannoth <rkannoth@marvell.com>
> Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org;
> nhorman@tuxdriver.com; davem@davemloft.net; jmorris@namei.org;
> James.Z.Li@dell.com
> Subject: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost
> connections be established successfully even the ARP table is full
>
> Prioritize security for external emails: Confirm sender and content safety
> before clicking links or opening attachments
>
> ----------------------------------------------------------------------
> loopback neigh is a special device in the neighbour system which is used by all
> local communications and state is NUD_NOARP.
> Any setting value of gc_thresh3 might encounter arp table be full, manually
> increasing gc_thresh3 can resolve this issue for every time, but we hope this
> issue automatically be resolved in Linux kernel for all local communications
> whenever ARP table is full, rather than manually operation as a workaround.

Issue is , these are dynamic entries which cannot be removed by gc. And there is no
Threshold applicable on it. I feel like, this may be exploited.
Re: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost connections be established successfully even the ARP table is full [ In reply to ]
It's not an issue, the loopback device can only be created by kernel
itself, loopback neigh entry also can only be created by kernel, one
loopback neigh for ipv4 ,one for ipv6, impossible that the num of
loopback neigh entries exceeds 2.

Ratheesh Kannoth <rkannoth@marvell.com> ?2024?3?18??? 23:36???
>
> > From: James Lee <lizheng043@gmail.com>
> > Sent: Monday, March 18, 2024 2:09 PM
> > To: Ratheesh Kannoth <rkannoth@marvell.com>
> > Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org;
> > nhorman@tuxdriver.com; davem@davemloft.net; jmorris@namei.org;
> > James.Z.Li@dell.com
> > Subject: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost
> > connections be established successfully even the ARP table is full
> >
> > Prioritize security for external emails: Confirm sender and content safety
> > before clicking links or opening attachments
> >
> > ----------------------------------------------------------------------
> > loopback neigh is a special device in the neighbour system which is used by all
> > local communications and state is NUD_NOARP.
> > Any setting value of gc_thresh3 might encounter arp table be full, manually
> > increasing gc_thresh3 can resolve this issue for every time, but we hope this
> > issue automatically be resolved in Linux kernel for all local communications
> > whenever ARP table is full, rather than manually operation as a workaround.
>
> Issue is , these are dynamic entries which cannot be removed by gc. And there is no
> Threshold applicable on it. I feel like, this may be exploited.
>
RE: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost connections be established successfully even the ARP table is full [ In reply to ]
> From: James Lee <lizheng043@gmail.com>
> Sent: Tuesday, March 19, 2024 3:13 PM
> To: Ratheesh Kannoth <rkannoth@marvell.com>
> Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org;
> nhorman@tuxdriver.com; davem@davemloft.net; jmorris@namei.org;
> James.Z.Li@dell.com
> Subject: Re: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost
> connections be established successfully even the ARP table is full
>
> It's not an issue, the loopback device can only be created by kernel itself,
> loopback neigh entry also can only be created by kernel, one loopback neigh
> for ipv4 ,one for ipv6, impossible that the num of loopback neigh entries
> exceeds 2.
ACK. I still feel like a hack. Please post a new patch version. Let maintainers take a call.
Re: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost connections be established successfully even the ARP table is full [ In reply to ]
It's not an issue, why need "post a new patch version"?

Ratheesh Kannoth <rkannoth@marvell.com> ?2024?3?22??? 11:37???
>
> > From: James Lee <lizheng043@gmail.com>
> > Sent: Tuesday, March 19, 2024 3:13 PM
> > To: Ratheesh Kannoth <rkannoth@marvell.com>
> > Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org;
> > nhorman@tuxdriver.com; davem@davemloft.net; jmorris@namei.org;
> > James.Z.Li@dell.com
> > Subject: Re: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost
> > connections be established successfully even the ARP table is full
> >
> > It's not an issue, the loopback device can only be created by kernel itself,
> > loopback neigh entry also can only be created by kernel, one loopback neigh
> > for ipv4 ,one for ipv6, impossible that the num of loopback neigh entries
> > exceeds 2.
> ACK. I still feel like a hack. Please post a new patch version. Let maintainers take a call.
RE: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost connections be established successfully even the ARP table is full [ In reply to ]
> From: James Lee <lizheng043@gmail.com>
> Sent: Thursday, March 28, 2024 2:11 PM
> To: Ratheesh Kannoth <rkannoth@marvell.com>
> Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org;
> nhorman@tuxdriver.com; davem@davemloft.net; jmorris@namei.org;
> James.Z.Li@dell.com; Simon Horman <horms@kernel.org>
> Subject: Re: [EXTERNAL] Re: [PATCH] neighbour: guarantee the localhost
> connections be established successfully even the ARP table is full
>

> It's not an issue,
Please don’t top post

>why need "post a new patch version"?
ASFAIK, only https://patchwork.kernel.org/project/netdevbpf/list/ will be actively looked up to merge patches.
I could be wrong.

>
> Ratheesh Kannoth <rkannoth@marvell.com> ?2024?3?22???
> 11:37???
> >
> > > From: James Lee <lizheng043@gmail.com>
> > > Sent: Tuesday, March 19, 2024 3:13 PM
> > > To: Ratheesh Kannoth <rkannoth@marvell.com>
> > > Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org;
> > > nhorman@tuxdriver.com; davem@davemloft.net; jmorris@namei.org;
> > > James.Z.Li@dell.com
> > > Subject: Re: [EXTERNAL] Re: [PATCH] neighbour: guarantee the
> > > localhost connections be established successfully even the ARP table
> > > is full
> > >
> > > It's not an issue, the loopback device can only be created by kernel
> > > itself, loopback neigh entry also can only be created by kernel, one
> > > loopback neigh for ipv4 ,one for ipv6, impossible that the num of
> > > loopback neigh entries exceeds 2.
> > ACK. I still feel like a hack. Please post a new patch version. Let maintainers
> take a call.