Open JoeMattie opened 1 year ago
@mihalicyn @brauner This is about the following commit to shiftfs: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/commit/fs/shiftfs.c?h=master-next&id=16fdcaeef4aedf3a0281d79c0978e3aec47c62a6
I assume you declared the function _‘is_idmappedmnt’ somewhere else in the ubuntu kernel, can this be included here?
Edit: I found the commit: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/commit/?h=master-next&id=03dfc6a8ca9206357f6d8e02ff2fe5321baca348 It mentions an upstream commit...
Update2: Build on 6.1 kernel works flawless, so I assume a kernel version problem, if a kernel does not include the mentioned commit.
@JoeMattie Interesting. Sry for the problem, I should have tested the new release beforehand, I assumed that everything was working correctly, but other users seem to have used regular Ubuntu kernels....
In case you did not know, you could try the following ways to "workaround" the problem:
shiftfs-k516
:
Run: wget 'https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/plain/fs/shiftfs.c?h=master-next&id=b1210ccf924ede51e4d8a1f451a7ffdd8e9ea03d'
and: mv 'shiftfs.c?h=master-next&id=b1210ccf924ede51e4d8a1f451a7ffdd8e9ea03d' shiftfs.c
(this will download and rename the new shiftfs.c file)
and then run the build again.git revert 879243299831e054443bb92dd20ab5c2ab5c6238
in the shiftfs folder, usually named shiftfs-k516
and then run the build again.@JoeMattie As my build on a 6.1 kernel is working, I assume it could be a problem with the kernel version :thinking:.
Your kernel needs to include commit bb49e9e730c2906a958eee273a7819f401543d6c
, which is described here: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/commit/?h=master-next&id=03dfc6a8ca9206357f6d8e02ff2fe5321baca348
I will test a 5.15 kernel tomorrow.
Thank you for the quick reply! We worked around the issue temporarily with git checkout 941cb2dbf892c5838355c74078e571d490936827
So I checked 5.15 kernels (5.15.94) and everything works normal.
I guess the problem is with specific kernels like yours, that somehow don't have the mentioned commit or that maybe deactivated the functionality.
I assume you use this kernel from Ubuntu: https://packages.ubuntu.com/jammy/linux-image-5.15.0-1017-aws ? In that case, I would encourage you to contact the Ubuntu team about this (https://launchpad.net/ubuntu/+source/linux-signed-aws/+bugs) and see what they got to say.
Guys, do you need any help from my side?
I guess the problem is with specific kernels like yours, that somehow don't have the mentioned commit or that maybe deactivated the functionality.
It looks like they haven't ported idmapped mounts support to this kernel version yet.
I guess the problem is with specific kernels like yours, that somehow don't have the mentioned commit or that maybe deactivated the functionality.
It looks like they haven't ported idmapped mounts support to this kernel version yet.
Thx for confirming.
Seeing this crop up since the update a few days ago:
Comment by @toby63:
Workaround is to use an older commit for now. Run the following in your shiftfs folder, usually named shiftfs-k516:
git checkout 941cb2dbf892c5838355c74078e571d490936827
- this will use the 4th last commit, which still worked. Then run the build withmake -f Makefile.dkms
again.