๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.kernel
6 messages
6 total messages Started by Elliott Mitchell Sat, 24 Oct 2026 02:00
Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
#231
Author: Elliott Mitchell
Date: Sat, 24 Oct 2026 02:00
26 lines
2687 bytes
Package: nfs-common
Version: 1:2.8.3-1

The "host=" setting in /etc/nfs.conf isn't fit for the function it needs
to perform.  Of note it doesn't allow binding to multiple addresses.  It
also doesn't allow restricting to binding IPv4-only nor IPv6-only.  In
fact I was unable to get it to restrict IPv6 binding at all.

Multiple addresses is a common configuration.  Disabling IPv4 or IPv6
are also common.

It also appears stopping/starting `/etc/init.d/nfs-kernel-server` appears
to leave old address bindings in place.  If the "host=" setting is added,
then the daemon is restarted it will remain bound to the wildcard
address.

NFS is a service which should be filtered at firewalls, but it should
still be possible to restrict binding as a backup security measure.  I'm
tempted to rate this as pretty high importance.


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sigmsg@m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Processed: Re: Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
#304
Author: Debian Bug Tracking System
Date: Thu, 29 Oct 2026 06:30
10 lines
2227 bytes
Processing control commands:

> tags -1 +moreinfo
Bug #1151866 [nfs-common] nfs-common: host= setting in nfs.conf inadaquate
Added tag(s) moreinfo.

-- 
1151866: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1151866
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
#305
Author: Salvatore Bonaccorso
Date: Thu, 29 Oct 2026 06:30
33 lines
3097 bytes
Control: tags -1 +moreinfo

Hi,

On Fri, Oct 23, 2026 at 06:53:21PM -0700, Elliott Mitchell wrote:
> Package: nfs-common
> Version: 1:2.8.3-1
> 
> The "host=" setting in /etc/nfs.conf isn't fit for the function it needs
> to perform.  Of note it doesn't allow binding to multiple addresses.  It
> also doesn't allow restricting to binding IPv4-only nor IPv6-only.  In
> fact I was unable to get it to restrict IPv6 binding at all.
> 
> Multiple addresses is a common configuration.  Disabling IPv4 or IPv6
> are also common.
> 
> It also appears stopping/starting `/etc/init.d/nfs-kernel-server` appears
> to leave old address bindings in place.  If the "host=" setting is added,
> then the daemon is restarted it will remain bound to the wildcard
> address.
> 
> NFS is a service which should be filtered at firewalls, but it should
> still be possible to restrict binding as a backup security measure.  I'm
> tempted to rate this as pretty high importance.

Thanks for your report. Those are rather questions and issues to bring
to upstream. Can you report them to upstream via the linux-nfs
mailinglist (linux-nfs@vger.kernel.org) and please include as well
both Steve Dickson <steved@redhat.com> directly and this Debian
downstream bugreport, so we can keep track.

Regards,
Salvatore
Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
#323
Author: Elliott Mitchell
Date: Sat, 31 Oct 2026 01:30
53 lines
4436 bytes
On Thu, Oct 29, 2026 at 07:23:28AM +0100, Salvatore Bonaccorso wrote:
> Control: tags -1 +moreinfo
> 
> Hi,
> 
> On Fri, Oct 23, 2026 at 06:53:21PM -0700, Elliott Mitchell wrote:
> > Package: nfs-common
> > Version: 1:2.8.3-1
> > 
> > The "host=" setting in /etc/nfs.conf isn't fit for the function it needs
> > to perform.  Of note it doesn't allow binding to multiple addresses.  It
> > also doesn't allow restricting to binding IPv4-only nor IPv6-only.  In
> > fact I was unable to get it to restrict IPv6 binding at all.
> > 
> > Multiple addresses is a common configuration.  Disabling IPv4 or IPv6
> > are also common.
> > 
> > It also appears stopping/starting `/etc/init.d/nfs-kernel-server` appears
> > to leave old address bindings in place.  If the "host=" setting is added,
> > then the daemon is restarted it will remain bound to the wildcard
> > address.
> > 
> > NFS is a service which should be filtered at firewalls, but it should
> > still be possible to restrict binding as a backup security measure.  I'm
> > tempted to rate this as pretty high importance.
> 
> Thanks for your report. Those are rather questions and issues to bring
> to upstream. Can you report them to upstream via the linux-nfs
> mailinglist (linux-nfs@vger.kernel.org) and please include as well
> both Steve Dickson <steved@redhat.com> directly and this Debian
> downstream bugreport, so we can keep track.

I thought that was specifically the duty of the maintainer.  In
particular this often needs a subscription to a mailing list, which the
maintainer will have.  Whereas asking for users to subscribe to yet
another list for every bug is a major problem.

I guess this is likely actually two bugs.  First, running
`/etc/init.d/nfs-kernel-server stop` fails to close the listening socket.
Second is only being able to specify a single-IPv4 address for the host
setting.

I should add it could be useful to bind different ports on different
addresses.  One might even desire a port on the wildcard address, then
different ports on various interfaces.  Then there is the issue of being
unable to disable IPv4 (likely IPv6 too).


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sigmsg@m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
#408
Author: Uwe Kleine-Kรถnig
Date: Wed, 04 Nov 2026 21:50
53 lines
4422 bytes
--7vs7lyq3kjo2miqt
Content-Type: text/plain; protected-headers=v1; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
MIME-Version: 1.0

Hello Elliott,

On Fri, Oct 30, 2026 at 06:03:47PM -0700, Elliott Mitchell wrote:
> On Thu, Oct 29, 2026 at 07:23:28AM +0100, Salvatore Bonaccorso wrote:
> > Thanks for your report. Those are rather questions and issues to bring
> > to upstream. Can you report them to upstream via the linux-nfs
> > mailinglist (linux-nfs@vger.kernel.org) and please include as well
> > both Steve Dickson <steved@redhat.com> directly and this Debian
> > downstream bugreport, so we can keep track.
>=20
> I thought that was specifically the duty of the maintainer.  In
> particular this often needs a subscription to a mailing list, which the
> maintainer will have.  Whereas asking for users to subscribe to yet
> another list for every bug is a major problem.

Playing man in the middle for every bug is the matching problem for the
case where the maintainer does the forwarding. So given that you have
the main interest in getting this bug fixed (as it's quite niche and
doesn't affect most Debian users) the direct communication between you
and upstream is IMO the best way forward. Ideally keep
1151866@bugs.debian.org on Cc: to keep the bug updated.

Also note that for vger.kernel.org lists you don't need to subscribe to
post and the kernel folks is usually good at replying correctly there.
So there shouldn't be a need for a subscription.

Best regards
Uwe

--7vs7lyq3kjo2miqt
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmrrpdIACgkQj4D7WH0S
/k47Ogf/QNn6blNxHYfP0tW2MK2yGFnzxoHGxVy0jCKX/1x1eQU7ezaYTwqpcwTi
tnQs3FWYCGx5OyqJfEKOxmhJvN9JV1APrsZaBX2qOF5LLxYjiFTN8EDKh9uhmmI2
59iCGdRdHip7hG6AyIDtmH5jGdxFeARolT3fPHzb6cDw7ts82ueILoQ9QSkEk4SE
bW7ERVd/dJivMOJT9l2dt7Ih5+faJ2H1/vRmVQukOLKHDTbvmdZUK0t+G53zeJpt
kDyj05K0e9S2Vr1qgGn4Xjy5JV6vhlK5QuZ88ifNQ3z8RjPxatq2XlBDgzGAD/Mr
Kaa0foXwQCQFaL28F+St+e8Q/O2/ug==
=z4Y5
-----END PGP SIGNATURE-----

--7vs7lyq3kjo2miqt--
Bug#1151866: nfs-common: host= setting in nfs.conf inadaquate
#597
Author: Elliott Mitchell
Date: Fri, 13 Nov 2026 00:40
58 lines
4281 bytes
On Thu, Oct 29, 2026 at 07:23:28AM +0100, Salvatore Bonaccorso wrote:
> 
> On Fri, Oct 23, 2026 at 06:53:21PM -0700, Elliott Mitchell wrote:
> > Package: nfs-common
> > Version: 1:2.8.3-1
> > 
> > The "host=" setting in /etc/nfs.conf isn't fit for the function it needs
> > to perform.  Of note it doesn't allow binding to multiple addresses.  It
> > also doesn't allow restricting to binding IPv4-only nor IPv6-only.  In
> > fact I was unable to get it to restrict IPv6 binding at all.
> > 
> > Multiple addresses is a common configuration.  Disabling IPv4 or IPv6
> > are also common.
> > 
> > It also appears stopping/starting `/etc/init.d/nfs-kernel-server` appears
> > to leave old address bindings in place.  If the "host=" setting is added,
> > then the daemon is restarted it will remain bound to the wildcard
> > address.
> > 
> > NFS is a service which should be filtered at firewalls, but it should
> > still be possible to restrict binding as a backup security measure.  I'm
> > tempted to rate this as pretty high importance.
> 
> Thanks for your report. Those are rather questions and issues to bring
> to upstream. Can you report them to upstream via the linux-nfs
> mailinglist (linux-nfs@vger.kernel.org) and please include as well
> both Steve Dickson <steved@redhat.com> directly and this Debian
> downstream bugreport, so we can keep track.

Hopefully more than enough in the initial message.

Restarting the kernel nfs server doesn't remove old bindings.

The host= directive appears to only work for a single IPv4 host.

It should be possible to be IPv4-only on a dual-stack computer.  It
should be possible to be IPv6-only on a dual-stack computer.

I guess I should also add I could imagine someone wanting to bind to
different ports on different addresses.




I could see allowing multiple "host=" lines (single entry per).

I could see using commas to separate entries on a single "host=" line.

I could see using spaces to separate entries on a single "host=" line.

I could see allowing multiple of those.


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sigmsg@m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads