Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/proc/pid/maps reports incorrect dev and inode numbers for files on stackable file systems (e.g. overlayfs) #2312

Closed
avagin opened this issue Dec 11, 2023 · 6 comments

Comments

@avagin
Copy link
Member

avagin commented Dec 11, 2023

          As far as I understand this mount related:
mnt: Path `/usr/lib64/libc.so.6' resolved to `./' mountpoint"

I don't know if and how to correctly fix it, but it seems using a mount namespace in a mount namespace does not work as expected.

The reproducer for me is. This works without a container:

setcap cap_checkpoint_restore,cap_sys_ptrace+eip criu/criu
sudo --user=#65534 --group=#65534 unshare -Ucfpm --mount-proc -- bash -c "./test/zdtm.py run -t zdtm/static/maps00 -k always  -f h --rootless && true"

But it does not work in a container. @Snorch can you say if this should work and how?

Originally posted by @adrianreber in #2307 (comment)

@avagin
Copy link
Member Author

avagin commented Dec 11, 2023

Here is the fix: https://lkml.org/lkml/2023/12/11/1287

@adrianreber
Copy link
Member

@avagin Should I update my PR with the link to this issue and your upstream patch as a comment why the test is disabled during testing in a container or do you want to wait until your change is merged?

@avagin
Copy link
Member Author

avagin commented Dec 18, 2023

@adrianreber sorry for the delay. I am on vacation. You can add a comment and merge this pr. In the ideal case, we need to skip this test only if a kernel does have the issue.

@adrianreber
Copy link
Member

@avagin Merged with an additional comment describing the situation and referring to this issue.

Copy link

A friendly reminder that this issue had no activity for 30 days.

@avagin
Copy link
Member Author

avagin commented Jan 25, 2024

The kernel patch (torvalds/linux@3efdc78fdc21) was merged and will be in v6.8.

@avagin avagin closed this as completed Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants