Re: [PATCH] Fix NFS mount from IPv6 addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2019-01-12 at 09:15 -0600, Goldwyn Rodrigues wrote:
> On  8:23 12/01, Ian Kent wrote:
> > 
> > > 
> > > However, this would allow mount from "proto=tcp" for an IPv6
> > > addressed server.
> > 
> > This statement is a bit confusing, Isn't this the point of the
> > change?
> > 
> 
> Yes, I was mentioning the side-effects of the patch :)

Yeah, I got that after reading it a couple of times, ;)

Looking at my description for commit 90532146bc I'm not sure
this matters because it says I'm supposed to be checking the
case where proto=(tcp6|udp6) has been specified.

Maybe it would be better to just return success if neither
tcp6 or udp6 has been specified, I'll have another look at
your original patch to see if that's essentially what it
does.

> The other way would be not to set TCP_REQUESTED at all, and
> set it later by returning version from check_address_proto.

I'd rather keep setting this out of the function, I try not
to bury bits like this in called functions.

> 
> I  have another bigger patch [attached] but decided against
> it. It kinda looked too ugly for resolving this. Take your pick ;)

It does look like it's more than should be needed to fix this.

It also looks like it assumes UDP can't be used for NFSv4.

While that's valid I want to try not to impose that restriction
where possible.

> 
> > I need to try and find the reason I added this check in the
> > first place to work out if removing the check could introduce
> > a problem ...
> > 
> > > 
> > > Fixes: 9053214 ("autofs-5.1.3 - fix ipv6 proto option handling")
> > 
> > Can I have a look at the bug, couldn't find it by searching for
> > it?
> 
> Add this entry in relevant auto file.
> 
> local-dir	-fstype=nfs		[IP:v6:address]:/export-dir/on/server
> 
> and try to access it.

Right, I had already gathered that from the description.

Ian




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux