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

Stacked, or bind mounts lead to kernel lockout on write files #45

Open
mirek967 opened this issue Sep 2, 2024 · 20 comments
Open

Stacked, or bind mounts lead to kernel lockout on write files #45

mirek967 opened this issue Sep 2, 2024 · 20 comments

Comments

@mirek967
Copy link

mirek967 commented Sep 2, 2024

I had situation, where I mount aufs filesystem inside other aufs filesystem. This leads into lockout.
Lets take following situation.

mount -t aufs
mount -t aufs -o br:/mnt/test/overlay.root=rw:/=ro none /mnt/test/root
mount -t aufs -o br:/mnt/test/overlay.var=rw:/var=ro none /mnt/test/root/var

Now when I try to write something in any file in /mnt/test/root/var
the job get hard lock, and aufs is gone, without any message.

@sfjro
Copy link
Owner

sfjro commented Sep 3, 2024 via email

@mirek967
Copy link
Author

Let me start from the kernel.
I use gentoo sources 6.6.47 with several patches from xanmod sources (please see attached file), and with hardened patch from
https://github.com/anthraxx/linux-hardened. On this there is patch from aufs standalone.
There is also kernel config.
xanmod_patches.zip
config.zip

@sfjro
Copy link
Owner

sfjro commented Sep 11, 2024 via email

@mirek967
Copy link
Author

Yes, of course. I think I will do it on weekend.

@sfjro
Copy link
Owner

sfjro commented Sep 11, 2024 via email

@mirek967
Copy link
Author

I stored requested files.
There is one additional thing, after lock-up, when I shut down system, it crashed on aufs.
So there is a screenshot of this.
How did I repeat the problem:
open a text file in mc editor. Change some text in that file, and it get locked when I try to save the file.

aufs.zip

@mirek967
Copy link
Author

I made one more try. According to information from strace, the last command was chown.
I tried to make chown directly on that file, with the same result. Command got locked.

@sfjro
Copy link
Owner

sfjro commented Sep 16, 2024 via email

@mirek967
Copy link
Author

log.txt

I did it. Please see attached file.

@sfjro
Copy link
Owner

sfjro commented Sep 17, 2024 via email

@mirek967
Copy link
Author

Yes, it is locked. I still didn't reboot.
In dmesg I don't see anything more than that.

@sfjro
Copy link
Owner

sfjro commented Sep 18, 2024 via email

@mirek967
Copy link
Author

I don't know if it will be helpfull. Because I don't have old kernel, I made it on newly compiled one. Right now it crashes directly when I change owner of the file. So there is crash dump.
Maybe the reason is, because I compiled in debugfs.

crash

@sfjro
Copy link
Owner

sfjro commented Sep 29, 2024 via email

@mirek967
Copy link
Author

Please see attached file.
There is SysReq W, and T.
SysReq D, and A didn't work.
kern.log.zip

@sfjro
Copy link
Owner

sfjro commented Oct 11, 2024 via email

@mirek967
Copy link
Author

With this patch the problem does not occur anymore.
The good thing is, that the root of the problem is found.
Thank you.

@sfjro
Copy link
Owner

sfjro commented Oct 11, 2024 via email

@sfjro
Copy link
Owner

sfjro commented Oct 20, 2024 via email

@mirek967
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants