Hi Luca,

Yes, I also think you are seeing the exact same issue. The WARN_ON was 
introduced
in the following commit:

ubuntu-noble b2ad25ba539452f492805e5f7d94e80894aa860f
commit a776bf5f3c2300cfdf8a195663460b1793ac9847
Author: Qu Wenruo <[email protected]>
Date:   Fri Apr 19 14:29:32 2024 +0930
Subject: btrfs: slightly loosen the requirement for qgroup removal
Link: 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a776bf5f3c2300cfdf8a195663460b1793ac9847
    
$ git describe --contains b2ad25ba539452f492805e5f7d94e80894aa860f
Ubuntu-6.8.0-50.51~143

This doesn't exactly panic the kernel as you say, it outputs a warning to dmesg.
You seem to have the sysctl panic_on_warn set, and that's what panics the 
system.

For now use 6.8.0-49-generic or turn off panic_on_warn as a workaround until 
this
gets fixed.

Now the commit:

btrfs-devel c61ffaa0a3d9a2094e24d1fe2b17f20e109d2cc8
Author: Qu Wenruo <[email protected]>
Date:   Mon Nov 11 07:29:07 2024 +1030
Subject: btrfs: improve the warning and error message for btrfs_remove_qgroup()
Link: 
https://github.com/btrfs/linux/commit/c61ffaa0a3d9a2094e24d1fe2b17f20e109d2cc8

This hasn't been merged into mainline just yet, it is still in the btrfs devel
tree.

We need to wait until it reaches Linus's tree before we can merge into
Ubuntu.

For the mean time, if you like, I made a test kernel based on 6.8.0-50-generic
for 24.04 with the commit applied if you want to test it out to see if it
fixes your problem.

Please note this package is NOT SUPPORTED by Canonical, and is for TESTING
PURPOSES ONLY. ONLY Install in a dedicated test environment.

Instructions to Install (On a mantic system):
1) sudo add-apt-repository ppa:mruffell/lp2091719-test
2) sudo apt update
3) sudo apt install linux-image-unsigned-6.8.0-50-generic 
linux-modules-6.8.0-50-generic linux-modules-extra-6.8.0-50-generic 
linux-headers-6.8.0-50-generic
4) sudo reboot
5) uname -rv
6.8.0-50-generic #51+TEST2091719v20241216b1-Ubuntu SMP PREEMPT_DYNAMIC Sun Dec 
15

Again, if it works, we will wait until it reaches mainline, and then we can
begin the SRU process.

Thanks,
Matthew

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2091719

Title:
  BTRFS kernel panic on btrfs_remove_qgroup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2091719/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to