Re: [regression?] escaping commas in overlayfs mount options

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

 



[CCing the regression list, as it should be in the loop for regressions:
https://docs.kernel.org/admin-guide/reporting-regressions.html]

[TLDR: I'm adding this report to the list of tracked Linux kernel
regressions; the text you find below is based on a few templates
paragraphs you might have encountered already in similar form.
See link in footer if these mails annoy you.]

On 29.09.23 03:07, Ryan Hendrickson wrote:
> Up to and including kernel 6.4.15, it was possible to have commas in the
> lowerdir/upperdir/workdir paths used by overlayfs, provided they were
> escaped with backslashes:
> 
>     mkdir /tmp/test-lower, /tmp/test-upper /tmp/test-work /tmp/test
>     mount -t overlay overlay -o
> 'lowerdir=/tmp/test-lower\,,upperdir=/tmp/test-upper,workdir=/tmp/test-work' /tmp/test
> 
> In 6.5.2 and 6.5.5, this no longer works; dmesg reports that overlayfs
> can't resolve '/tmp/test-lower' (without the comma).
> 
> I see that there is a commit between the 6.4 and 6.5 lines titled [ovl:
> port to new mount api][1]. I haven't compiled a kernel before and after
> this commit to verify, but based on the code it deletes I strongly
> suspect that it, or if not then one of the ovl commits committed on the
> same day, is responsible for this change.
> 
> [1]:
> https://github.com/torvalds/linux/commit/1784fbc2ed9c888ea4e895f30a53207ed7ee8208
> 
> Does this count as a regression? I can't find documentation for this
> escaping feature anywhere, even as it pertains to the non-comma
> characters '\\' and ':' (which, I've tested, can still be escaped as
> expected), so perhaps it was never properly supported? But a search for
> escaping commas in overlayfs turns up resources like [this post][2],
> suggesting that there are others who figured this out and expect it to
> work.
> 
> [2]: https://unix.stackexchange.com/a/552640
> 
> Is there a new way to escape commas for overlayfs options?

Thanks for the report. To be sure the issue doesn't fall through the
cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression
tracking bot:

#regzbot ^introduced v6.4..v6.5.2
#regzbot title ovl: commas in overlayfs mount options broke
#regzbot ignore-activity

This isn't a regression? This issue or a fix for it are already
discussed somewhere else? It was fixed already? You want to clarify when
the regression started to happen? Or point out I got the title or
something else totally wrong? Then just reply and tell me -- ideally
while also telling regzbot about it, as explained by the page listed in
the footer of this mail.

Developers: When fixing the issue, remember to add 'Link:' tags pointing
to the report (the parent of this mail). See page linked in footer for
details.

Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat)
--
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
That page also explains what to do if mails like this annoy you.



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux