LXD containers using shiftfs on ZFS or TMPFS broken on 5.15.0-48.54
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Unassigned | ||
Kinetic |
Fix Released
|
Medium
|
Unassigned | ||
Lunar |
Fix Released
|
Medium
|
Unassigned | ||
zfs-linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Jammy |
Confirmed
|
Undecided
|
Unassigned | ||
Kinetic |
Won't Fix
|
Undecided
|
Unassigned | ||
Lunar |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since 5.15.0-48.54 LXD containers using shiftfs ontop of ZFS or TMPFS are broken.
Reproducer steps:
```
sudo snap install lxd
sudo snap set lxd shiftfs.enable=true
sudo lxd init --auto
lxc storage create zfs zfs
lxc launch images:ubuntu/jammy c1 -s zfs
lxc exec c1 -- touch /root/foo
touch: cannot touch '/root/foo': Value too large for defined data type
```
Expected result can be achieved by disabling shiftfs:
```
sudo snap set lxd shiftfs.
sudo systemctl reload snap.lxd.daemon
lxc launch images:ubuntu/jammy c2 -s zfs
lxc exec c2 -- touch /root/foo
lxc exec c2 -- ls -la /root/foo
-rw-r--r-- 1 root root 0 Sep 26 14:00 /root/foo
```
Kernel 5.15.0-47-generic does not exhibit this issue.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.15.0-48-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon Sep 26 14:55:52 2022
InstallationDate: Installed on 2022-03-04 (205 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220228)
MachineType: LENOVO 20R1000RUS
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 20220329.
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/15/2021
dmi.bios.release: 1.34
dmi.bios.vendor: LENOVO
dmi.bios.version: N2QET40W(1.34 )
dmi.board.
dmi.board.name: 20R1000RUS
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.ec.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad X1 Carbon 7th
dmi.product.name: 20R1000RUS
dmi.product.sku: LENOVO_
dmi.product.
dmi.sys.vendor: LENOVO
no longer affects: | linux (Ubuntu Kinetic) |
no longer affects: | zfs-linux (Ubuntu Kinetic) |
Changed in linux (Ubuntu Kinetic): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Lunar): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Jammy): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Lunar): | |
status: | Confirmed → Fix Committed |
Changed in linux (Ubuntu Kinetic): | |
status: | Confirmed → Fix Committed |
tags: |
added: verification-done-kinetic removed: verification-needed-kinetic |
Changed in linux (Ubuntu Jammy): | |
status: | Confirmed → Fix Committed |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
tags: |
added: verification-done-kinetic removed: verification-needed-kinetic |
Added sudo systemctl reload snap.lxd.daemon after disabling shiftfs.