I can confirm that the patch you mentioned solves the problem. I will
forward it to the mailing for inclusion in the next release.

$ uname -a
Linux ubuntu-noble-amd64-tester 6.8.0-70-generic #70 SMP PREEMPT_DYNAMIC Fri 
Jul 18 07:25:38 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

$ sudo snap install microceph
2025-07-18T07:56:10Z INFO Waiting for automatic snapd restart...
microceph (squid/stable) 19.2.0+snapab139d4a1f from Canonical✓ installed
$ sudo microceph cluster bootstrap
$ sudo microceph.ceph osd crush rule rm replicated_rule
$ sudo microceph.ceph osd crush rule create-replicated single default osd
$ sudo microceph disk add /dev/sdb --wipe
+----------+---------+
|   PATH   | STATUS  |
+----------+---------+
| /dev/sdb | Success |
+----------+---------+
$ sudo microceph.ceph config set global osd_pool_default_size 1
$ sudo microceph.ceph osd pool create cephfs_metadata 8
pool 'cephfs_metadata' created
$ sudo microceph.ceph osd pool create cephfs_data 8
pool 'cephfs_data' created
$ sudo microceph.ceph fs new cephfs cephfs_metadata cephfs_data
  Pool 'cephfs_data' (id '3') has pg autoscale mode 'on' but is not marked as 
bulk.
  Consider setting the flag by running
    # ceph osd pool set cephfs_data bulk true
new fs with metadata pool 2 and data pool 3

$ sudo apt install selinux-basics selinux-policy-default -y && sudo 
selinux-activate
...
SE Linux is activated.  You may need to reboot now.
$ sudo reboot

$ sudo mkdir -p /mnt/cephfs
$ sudo microceph.ceph auth get-or-create client.admin mon 'allow *' mds 'allow 
*' osd 'allow *' mgr 'allow *'
[client.admin]
        key = XXXYYYZZZ
$ sudo mount -t ceph $(hostname -I | awk '{print $1}'):6789:/ /mnt/cephfs -o 
name=admin,secret=XXXYYYZZZ
$ sudo touch /mnt/cephfs/test.txt
$ ll /mnt/cephfs/
total 4
drwxr-xr-x. 2 root root    1 Jul 18 08:05 ./
drwxr-xr-x. 3 root root 4096 Jul 18 08:04 ../
-rw-r--r--. 1 root root    0 Jul 18 08:05 test.txt

** No longer affects: ceph (Ubuntu)

** No longer affects: apparmor (Ubuntu)

** Also affects: linux (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu)
       Status: Triaged => Invalid

** Changed in: linux (Ubuntu Noble)
       Status: New => In Progress

** Changed in: linux (Ubuntu Noble)
     Assignee: (unassigned) => Massimiliano Pellizzer (mpellizzer)

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

Title:
  Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

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


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

Reply via email to