[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-10-18 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the linux-xilinx/6.8.0-1018.19
kernel in -proposed solves the problem. Please test the kernel and
update this bug with the results. If the problem is solved, change the
tag 'verification-needed-noble-linux-xilinx' to 'verification-done-
noble-linux-xilinx'. If the problem still exists, change the tag
'verification-needed-noble-linux-xilinx' to 'verification-failed-noble-
linux-xilinx'.


If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.


See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: kernel-spammed-noble-linux-xilinx-v2 
verification-needed-noble-linux-xilinx

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-09-26 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the linux-iot/6.8.0-1005.5 kernel
in -proposed solves the problem. Please test the kernel and update this
bug with the results. If the problem is solved, change the tag
'verification-needed-noble-linux-iot' to 'verification-done-noble-linux-
iot'. If the problem still exists, change the tag 'verification-needed-
noble-linux-iot' to 'verification-failed-noble-linux-iot'.


If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.


See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: kernel-spammed-noble-linux-iot-v2 
verification-needed-noble-linux-iot

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-09-18 Thread Massimiliano Pellizzer
Hello Christopher
I checked again: noble 6.8.0-83.83 is based on 6.8.0-79.79 so it does NOT 
include the fix.
Noble 6.8.0-84.84 will be based on top of 6.8.0-81.81 so that version will have 
the fix.
In the meantime I suggest to stick to 6.8.0-81.81 to solve the Ceph issue

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-09-17 Thread Christopher Dion
"the fix was included in Noble 6.8.0-81.81. This means that 6.8.0-83.83
includes the fix", we are not seeing this to be true, any chance you
could verify as well?

We are running this kernel (Released a few days ago):
# uname -rv
6.8.0-83-generic #83-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep  5 21:46:54 UTC 2025

and we see the same panic as above when trying to verify the fix. We're
a bit confused as to if we are seeing the .83 correct content or not.

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-09-17 Thread Christopher Dion
We do not see this in the latest 24.04 kernel (.83) released today.. was
this supposed to be in this changeset? I am a little confused here.

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-09-17 Thread Massimiliano Pellizzer
Hello Christopher
As you can see in Noble changelog:
https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/noble/tree/debian.master/changelog?h=master-next

the fix was included in Noble 6.8.0-81.81. This means that 6.8.0-83.83
includes the fix

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-09-15 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the linux-nvidia-
tegra/6.8.0-1010.10 kernel in -proposed solves the problem. Please test
the kernel and update this bug with the results. If the problem is
solved, change the tag 'verification-needed-noble-linux-nvidia-tegra' to
'verification-done-noble-linux-nvidia-tegra'. If the problem still
exists, change the tag 'verification-needed-noble-linux-nvidia-tegra' to
'verification-failed-noble-linux-nvidia-tegra'.


If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.


See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: kernel-spammed-noble-linux-nvidia-tegra-v2 
verification-needed-noble-linux-nvidia-tegra

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-08-29 Thread Stefan Bader
This is not released, yet. Do not change status manually. Launchpad will
handle this once validation finishes.

** Changed in: linux (Ubuntu Noble)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Noble)
   Status: Fix Released => Fix Committed

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-08-25 Thread Christopher Dion
** Tags removed: verification-needed-noble-linux 
verification-needed-noble-linux-bluefield
** Tags added: verification-done-noble-linux 
verification-done-noble-linux-bluefield

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-08-25 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the linux-bluefield/6.8.0-1009.13
kernel in -proposed solves the problem. Please test the kernel and
update this bug with the results. If the problem is solved, change the
tag 'verification-needed-noble-linux-bluefield' to 'verification-done-
noble-linux-bluefield'. If the problem still exists, change the tag
'verification-needed-noble-linux-bluefield' to 'verification-failed-
noble-linux-bluefield'.


If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.


See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: kernel-spammed-noble-linux-bluefield-v2 
verification-needed-noble-linux-bluefield

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-08-20 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the linux/6.8.0-80.80 kernel in
-proposed solves the problem. Please test the kernel and update this bug
with the results. If the problem is solved, change the tag
'verification-needed-noble-linux' to 'verification-done-noble-linux'. If
the problem still exists, change the tag 'verification-needed-noble-
linux' to 'verification-failed-noble-linux'.


If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.


See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: kernel-spammed-noble-linux-v2 verification-needed-noble-linux

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-08-17 Thread Marshall Shao
** Changed in: linux (Ubuntu Noble)
   Status: Fix Committed => Fix Released

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-08-08 Thread Mehmet Basaran
** Changed in: linux (Ubuntu Noble)
   Status: In Progress => Fix Committed

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-24 Thread Christopher Dion
Right, at this point we are looking to unblock development for 24.04 for
our Q3 release (not production at this point). Once it hits -proposed we
will pull that one but we are looking internally to just locally build
this kernel package and use this in our solution until the -proposed is
available. If you happen to have this package built already it would
save us this effort. Also the assumption the build is just the 24.04
kernel + the patch (no more), and thus we can make a reasonable
assumption that our development is sound for the time being.

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-24 Thread Massimiliano Pellizzer
Hello,
Private PPAs are not meant to be used in production since kernels built there 
don't go through the testing phase our official kernels go through.
The fixed kernel should land in -proposed by mid august, is it still to late 
for you?

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-23 Thread Christopher Dion
Thanks, so this time frame (looks like sept.) might be a little late for
us..is it possible to provide us this kernel much like you did before "$
sudo add-apt-repository ppa:mpellizzer/lp-bugfix"? This way we could
cache it locally and use this package in the meantime (we are also
looking at how we can build the kernel package as well, but if you have
it available that would be great).

Thanks,
Chris

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-21 Thread Massimiliano Pellizzer
The patch has been sent to KTML:
- https://lists.ubuntu.com/archives/kernel-team/2025-July/161393.html

It will be picked up in the next SRU cycle. You can check the approximate dates 
in the kernel team main page:
- https://kernel.ubuntu.com/

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-21 Thread Christopher Dion
Thanks, next steps? This is fairly critical to us hitting some business
related dates. It would be great to get an estimated date this will be
available to download..thanks!

Thanks,
Chris

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-18 Thread Massimiliano Pellizzer
** Description changed:

+ [ Impact ]
+ 
+ fs/ceph,selinux: fix NULL pointer dereference on CephFS write with
+ SELinux in permissive mode
+ 
+ A NULL pointer dereference occurs in the Ceph kernel client (CephFS)
+ when a file is created on a mounted CephFS volume while SELinux is
+ enabled in permissive mode.
+ 
+ [   86.678570] BUG: kernel NULL pointer dereference, address: 001d
+ [   86.679238] #PF: supervisor read access in kernel mode
+ [   86.679859] #PF: error_code(0x) - not-present page
+ [   86.680445] PGD 0 P4D 0
+ [   86.681021] Oops:  [#1] PREEMPT SMP PTI
+ [   86.681558] CPU: 0 PID: 2818 Comm: touch Not tainted 6.8.0-62-generic 
#65-Ubuntu
+ [   86.682095] Hardware name: VMware, Inc. VMware Virtual Platform/440BX 
Desktop Reference Platform, BIOS 6.00 11/12/2020
+ [   86.682716] RIP: 0010:memcpy_orig+0x54/0x130
+ [   86.683267] Code: 89 07 4c 89 4f 08 4c 89 57 10 4c 89 5f 18 48 8d 7f 20 73 
d4 83 c2 20 eb 44 48 01 d6 48 01 d7 48 83 ea 20 0f 1f 00 48 83 ea 20 <4c> 8b 46 
f8 4c 8b 4e f0 4c 8b 56 e8 4c 8b 5e e0 48 8d 76 e0 4c 89
+ [   86.684464] RSP: 0018:a79300b2f7e0 EFLAGS: 00010283
+ [   86.685060] RAX: 9aeb6123a008 RBX: 0ff8 RCX: 

+ [   86.685659] RDX: ffe5 RSI: 0025 RDI: 
9aeb6123a02d
+ [   86.686265] RBP: a79300b2f810 R08: 0025 R09: 

+ [   86.686843] R10:  R11:  R12: 
0025
+ [   86.687366] R13:  R14: 9aeb408d5960 R15: 
a79300b2f8e4
+ [   86.687888] FS:  724d07b47740() GS:9aec77c0() 
knlGS:
+ [   86.688416] CS:  0010 DS:  ES:  CR0: 80050033
+ [   86.688947] CR2: 001d CR3: 00012038a004 CR4: 
001706f0
+ [   86.689541] Call Trace:
+ [   86.690124]  
+ [   86.690704]  ? show_regs+0x6d/0x80
+ [   86.691256]  ? __die+0x24/0x80
+ [   86.691807]  ? page_fault_oops+0x99/0x1b0
+ [   86.692426]  ? kernelmode_fixup_or_oops.isra.0+0x69/0x90
+ [   86.692991]  ? __bad_area_nosemaphore+0x19e/0x2c0
+ [   86.693563]  ? find_vma+0x34/0x60
+ [   86.694214]  ? bad_area_nosemaphore+0x16/0x30
+ [   86.694835]  ? do_user_addr_fault+0x29d/0x670
+ [   86.695439]  ? exc_page_fault+0x83/0x1b0
+ [   86.696024]  ? asm_exc_page_fault+0x27/0x30
+ [   86.696614]  ? memcpy_orig+0x54/0x130
+ [   86.697202]  ? ceph_pagelist_append+0x124/0x150 [libceph]
+ [   86.697995]  ceph_security_init_secctx+0xce/0x1f0 [ceph]
+ [   86.698733]  ceph_new_inode+0x80/0xe0 [ceph]
+ [   86.699484]  ceph_atomic_open+0x3b2/0x9d0 [ceph]
+ [   86.700239]  ? may_create+0x141/0x150
+ [   86.700903]  lookup_open.isra.0+0x3a9/0x570
+ [   86.701534]  open_last_lookups+0x14f/0x400
+ [   86.702196]  path_openat+0x99/0x2d0
+ [   86.702815]  do_filp_open+0xaf/0x170
+ [   86.703475]  do_sys_openat2+0xb3/0xe0
+ [   86.704098]  __x64_sys_openat+0x55/0xa0
+ [   86.704804]  x64_sys_call+0x1eb1/0x25a0
+ [   86.705437]  do_syscall_64+0x7f/0x180
+ [   86.706120]  ? filemap_map_pages+0x2fe/0x4c0
+ [   86.706792]  ? __lruvec_stat_mod_folio+0x70/0xc0
+ [   86.707444]  ? do_read_fault+0x112/0x200
+ [   86.708157]  ? do_fault+0xf0/0x260
+ [   86.708850]  ? handle_pte_fault+0x114/0x1d0
+ [   86.709519]  ? __handle_mm_fault+0x654/0x800
+ [   86.710216]  ? __count_memcg_events+0x6b/0x120
+ [   86.710884]  ? count_memcg_events.constprop.0+0x2a/0x50
+ [   86.711505]  ? handle_mm_fault+0xad/0x380
+ [   86.712136]  ? do_user_addr_fault+0x334/0x670
+ [   86.712778]  ? irqentry_exit_to_user_mode+0x7b/0x260
+ [   86.713433]  ? irqentry_exit+0x43/0x50
+ [   86.714111]  ? clear_bhb_loop+0x15/0x70
+ [   86.714777]  ? clear_bhb_loop+0x15/0x70
+ [   86.715330]  ? clear_bhb_loop+0x15/0x70
+ [   86.715844]  entry_SYSCALL_64_after_hwframe+0x78/0x80
+ [   86.716378] RIP: 0033:0x724d0791b175
+ [   86.716895] Code: 83 e2 40 75 50 89 f0 f7 d0 a9 00 00 41 00 74 45 80 3d de 
fe 0e 00 00 74 60 89 da 4c 89 e6 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 
f0 ff ff 0f 87 7f 00 00 00 48 8b 55 b8 64 48 2b 14 25 28
+ [   86.718058] RSP: 002b:7ffd9c151d40 EFLAGS: 0202 ORIG_RAX: 
0101
+ [   86.718648] RAX: ffda RBX: 0941 RCX: 
724d0791b175
+ [   86.719225] RDX: 0941 RSI: 7ffd9c153635 RDI: 
ff9c
+ [   86.719833] RBP: 7ffd9c151db0 R08:  R09: 

+ [   86.720414] R10: 01b6 R11: 0202 R12: 
7ffd9c153635
+ [   86.720982] R13: 724d07a03248 R14:  R15: 
0001
+ [   86.721596]  
+ 
+ [ Fix ]
+ 
+ The issue must be solved modifying kernel code as follows:
+ - In the SELinux hook selinux_dentry_init_security(), remove a faulty cast 
when
+   assigning the context pointer is removed, allowing the LSM to populate
+   the context buffer correctly, avoinding the NULL pointer dereference
+ - In ceph_security_init_secctx(), add the missing encoding of the xattr name
+   and it's length to the pag

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-18 Thread Massimiliano Pellizzer
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 root1 Jul 18 08:05 ./
drwxr-xr-x. 3 root root 4096 Jul 18 08:04 ../
-rw-r--r--. 1 root root0 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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-15 Thread Christopher Dion
Apologies the patch above wasn't quite full/correct, this patch on top
of Ubuntu-6.8.0-64.67 is what the team has stated seems to be working
ok:

diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
index 4c767a20ac4c..29998982e456 100644
--- a/fs/ceph/xattr.c
+++ b/fs/ceph/xattr.c
@@ -1428,6 +1428,8 @@ int ceph_security_init_secctx(struct dentry *dentry, 
umode_t mode,
as_ctx->pagelist = pagelist;
}

+   ceph_pagelist_encode_32(pagelist, name_len);
+   ceph_pagelist_append(pagelist, name, name_len);
ceph_pagelist_encode_32(pagelist, as_ctx->lsmctx.len);
ceph_pagelist_append(pagelist, as_ctx->lsmctx.context,
 as_ctx->lsmctx.len);
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 35e763fa6aa5..ee67157e7143 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2909,7 +2909,7 @@ static int selinux_dentry_init_security(struct dentry 
*dentry, int mode,
*xattr_name = XATTR_NAME_SELINUX;

cp->id = LSM_ID_SELINUX;
-   return security_sid_to_context(newsid, (char **)cp->context,
+   return security_sid_to_context(newsid, &cp->context,
   &cp->len);
 }

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-15 Thread Massimiliano Pellizzer
In Noble Ubuntu-6.8.0-64.67, the function selinux_dentry_init_security()
looks like this:

static int selinux_dentry_init_security(struct dentry *dentry, int mode,
const struct qstr *name,
const char **xattr_name,
struct lsmcontext *cp)
{
u32 newsid;
int rc;

rc = selinux_determine_inode_label(selinux_cred(current_cred()),
   d_inode(dentry->d_parent), name,
   inode_mode_to_security_class(mode),
   &newsid);
if (rc)
return rc;

if (xattr_name)
*xattr_name = XATTR_NAME_SELINUX;

cp->id = LSM_ID_SELINUX;
return security_sid_to_context(newsid, (char **)cp->context,
   &cp->len);
}

From your last comment I see that using the following patch completely
solves the problem:

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 35e763fa6aa5..98eacf8ce4a3 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2909,8 +2909,7 @@ static int selinux_dentry_init_security(struct dentry 
*dentry, int mode,
*xattr_name = XATTR_NAME_SELINUX;
 
cp->id = LSM_ID_SELINUX;
-   return security_sid_to_context(newsid, (char **)cp->context,
-  &cp->len);
+   return security_sid_to_context(newsid, &cp->context, &cp->len);
 }
 
 static int selinux_dentry_create_files_as(struct dentry *dentry, int mode,

Am I right?

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-14 Thread Christopher Dion
Thanks for the prompt responses. Much appreciated.

For what it's worth, The patch above
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2115447/comments/6

built on top of Ubuntu-6.8.0-64.67. With this change we were unable to
reproduce the issue. Just in case that is useful information.

Thanks,
Chris

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-14 Thread Massimiliano Pellizzer
Thanks for testing the kernel, I am currently debugging the new issue

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-09 Thread Christopher Dion
I updated my 3 node cluster each to the given kernel and while I
don't see the null reference above, I still am not able to write a file
to cephfs and it appears as if my MDS crashes after I write:

 ceph version 19.2.0 (16063ff2022298c9300e49a547a16ffda59baf13) squid (stable)
 1: /lib/x86_64-linux-gnu/libc.so.6(+0x45330) [0x79fab5e45330]
 2: pthread_kill()
 3: gsignal()
 4: abort()
 5: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xa5ff5) [0x79fab62a5ff5]
 6: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xbb0da) [0x79fab62bb0da]
 7: (std::unexpected()+0) [0x79fab62a5a55]
 8: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xbb391) [0x79fab62bb391]
 9: (ceph::buffer::v15_2_0::list::iterator_impl::copy(unsigned int, 
char*)+0xc4) [0x79fab6c933e4]
 10: (void 
decode_noshare(std::map, mempool::mds_co::pool_allocator >, 
ceph::buffer::v15_2_0::ptr, std::less, mempool::mds_co::pool_allocator > >, 
mempool::mds_co::pool_allocator, mempool::mds_co::pool_allocator > const, 
ceph::buffer::v15_2_0::ptr> > >&, 
ceph::buffer::v15_2_0::list::iterator_impl&)+0xdc) [0x62254b5c6c1c]
 11: (Server::prepare_new_inode(boost::intrusive_ptr const&, 
CDir*, inodeno_t, unsigned int, file_layout_t const*)+0xfed) [0x62254b5ded1d]
 12: (Server::handle_client_openc(boost::intrusive_ptr 
const&)+0x58f) [0x62254b61a54f]
 13: (MDSContext::complete(int)+0x60) [0x62254b8cc860]
 14: (void finish_contexts 
> >(ceph::common::CephContext*, std::vector >&, int)+0x8f) [0x62254b52958f]
 15: (Locker::eval(CInode*, int, bool)+0x444) [0x62254b78a734]
 16: (Locker::handle_client_caps(boost::intrusive_ptr 
const&)+0x1d3c) [0x62254b797afc]
 17: (Locker::dispatch(boost::intrusive_ptr const&)+0xdd) 
[0x62254b79981d]
 18: (MDSRank::_dispatch(boost::intrusive_ptr const&, 
bool)+0x603) [0x62254b539c63]
 19: (MDSRankDispatcher::ms_dispatch(boost::intrusive_ptr 
const&)+0x54) [0x62254b53a554]
 20: (MDSDaemon::ms_dispatch2(boost::intrusive_ptr const&)+0x13c) 
[0x62254b52195c]
 21: (Messenger::ms_deliver_dispatch(boost::intrusive_ptr 
const&)+0x118) [0x79fab6b4a788]
 22: (DispatchQueue::entry()+0x6c9) [0x79fab6b48929]
 23: (DispatchQueue::DispatchThread::entry()+0x11) [0x79fab6c18f61]
 24: /lib/x86_64-linux-gnu/libc.so.6(+0x9caa4) [0x79fab5e9caa4]
 25: /lib/x86_64-linux-gnu/libc.so.6(+0x129c3c) [0x79fab5f29c3c]
 NOTE: a copy of the executable, or `objdump -rdS ` is needed to 
interpret this.


-3> 2025-07-10T02:10:25.047+ 79fab0ff66c0 10 log_client handle_log_ack 
log(last 1)
-2> 2025-07-10T02:10:25.047+ 79fab0ff66c0 10 log_client  logged 
2025-07-10T02:10:23.036649+ mds.ceph3 (mds.0) 1 : cluster [DBG] reconnect 
by client.444190 10.244.132.136:0/4274967196 after 0.0035
-1> 2025-07-10T02:10:25.050+ 79faabfec6c0  4 mds.0.server 
handle_client_request client_request(client.444190:2 create owner_uid=0, 
owner_gid=0 #0x1/test 2025-07-10T02:10:17.516922+ RETRY=2 caller_uid=0, 
caller_gid=0{0,})
 0> 2025-07-10T02:10:25.054+ 79fab0ff66c0 -1 *** Caught signal 
(Aborted) **

If I turn selinux off (selinux=0 in cmdline) I'm able to write to the
cluster without issue.

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-09 Thread Massimiliano Pellizzer
Please try kernel 6.8.0-64.68 from my PPA as follows:

$ sudo add-apt-repository ppa:mpellizzer/lp-bugfix
$ sudo apt update
$ sudo apt upgrade -y
$ sudo reboot

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-09 Thread Christopher Dion
Thank you for the prompt update! Looking forward to trying it. Thanks
again, Chris

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-08 Thread Massimiliano Pellizzer
Hello o/
I am building a kernel for you to try, it will be ready in a couple of hours

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-08 Thread Christopher Dion
Hi any chance there is an update on this? This is starting to become
critical to resolve as we don't currently have a way to work around this
in the GA kernel (and are experiencing another issue with the 6.14
kernel so we do not wish to jump to it immediately.  Thanks, Chris

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-01 Thread Massimiliano Pellizzer
** Also affects: apparmor (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: ceph (Ubuntu)
   Importance: Undecided
   Status: New

-- 
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/apparmor/+bug/2115447/+subscriptions


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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-07-01 Thread Massimiliano Pellizzer
Thanks for providing detailed info.

After debugging I can confirm that the NULL pointer dereference is
caused by the following code in selinux_dentry_init_security():

return security_sid_to_context(newsid, (char **)cp->context,
   &cp->len);

The signature of the function security_sid_to_context() is the following
one:

int security_sid_to_context(u32 sid, char **scontext, u32 *scontext_len)

It is possible to notice that it expects a double char pointer, but
selinux_dentry_init_security is passing a single one (cp->context).

This can be solved by applying the following patch:

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 35e763fa6aa52..98eacf8ce4a39 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2909,8 +2909,7 @@ static int selinux_dentry_init_security(struct dentry 
*dentry, int mode,
*xattr_name = XATTR_NAME_SELINUX;
 
cp->id = LSM_ID_SELINUX;
-   return security_sid_to_context(newsid, (char **)cp->context,
-  &cp->len);
+   return security_sid_to_context(newsid, &cp->context, &cp->len);
 }
 
 static int selinux_dentry_create_files_as(struct dentry *dentry, int mode,

However, after solving the NULL ptr deref, I am facing a new bug: every
time I write on a ceph storage I get the following:

...
[  100.352279] ceph: [b999c973-e962-4fd6-ba06-c83b2f6f679c 24126]: mds0 
reconnect start
[  100.353931] ceph: [b999c973-e962-4fd6-ba06-c83b2f6f679c 24126]: mds0 
reconnect success
[  102.440164] ceph: [b999c973-e962-4fd6-ba06-c83b2f6f679c 24126]: mds0 
recovery completed
[  102.593905] libceph: mds0 (1)192.168.8.133:6801 socket closed (con state 
OPEN)
[  103.039016] libceph: mds0 (1)192.168.8.133:6801 socket error on write
[  103.295025] libceph: mds0 (1)192.168.8.133:6801 socket error on write
[  103.798653] libceph: mds0 (1)192.168.8.133:6801 socket error on write
[  105.070530] ceph: [b999c973-e962-4fd6-ba06-c83b2f6f679c 24126]: mds0 
reconnect start
[  105.071884] ceph: [b999c973-e962-4fd6-ba06-c83b2f6f679c 24126]: mds0 
reconnect success
[  107.183395] ceph: [b999c973-e962-4fd6-ba06-c83b2f6f679c 24126]: mds0 
recovery completed
[  107.360695] libceph: mds0 (1)192.168.8.133:6801 socket closed (con state 
OPEN)
[  108.030861] libceph: mds0 (1)192.168.8.133:6801 socket error on write
[  108.286839] libceph: mds0 (1)192.168.8.133:6801 socket error on write
...

This new issue requires more debugging

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-06-30 Thread Massimiliano Pellizzer
** Changed in: linux (Ubuntu)
   Status: Confirmed => Triaged

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-06-28 Thread Marshall Shao
The commit b530104 seems correct. I tried the following change then the
panic issue is gone.

@@ -2885,8 +2885,8 @@ static int selinux_dentry_init_security(struct dentry 
*dentry, int mode,
if (xattr_name)
*xattr_name = XATTR_NAME_SELINUX;
 
-   return security_sid_to_context(newsid, (char **)ctx,
-  ctxlen);
+   cp->id = LSM_ID_SELINUX;
+   return security_sid_to_context(newsid, &cp->context, &cp->len);
 }


It looks like that the ctx was not initialized in this case.

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-06-27 Thread Christopher Dion
yes looks ok in 6.14

Looks like some of these works need to be ported to 6.8 to finish up
some of the work needed for
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2028253 :

$ git log Ubuntu-6.8.0-64.67.. --grep=^lsm: --oneline fs/ceph/
b530104f50e8 lsm: lsm_context in security_dentry_init_security
6fba89813ccf lsm: ensure the correct LSM context releaser

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-06-27 Thread Massimiliano Pellizzer
The bug is not reproducible in 6.14.0-24-generic

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-06-27 Thread Massimiliano Pellizzer
The issue is easily reproducible on my side:

$ uname -r
6.8.0-62-generic

$ sudo snap install microceph
2025-06-27T09:12:27Z 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

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop07:00  50.9M  1 loop /snap/snapd/24718
loop17:10  66.8M  1 loop /snap/core24/1006
loop27:20 111.8M  1 loop /snap/microceph/1393
sda  8:00  93.1G  0 disk 
├─sda1   8:10 1G  0 part /boot/efi
└─sda2   8:20  92.1G  0 part /
sdb  8:16   020G  0 disk 

$ 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 1 and data pool 3

$ sudo microceph.ceph auth get-or-create client.admin mon 'allow *' mds 'allow 
*' osd 'allow *' mgr 'allow *'
[client.admin]
key = XXXYYYZZZ

$ sudo mkdir -p /mnt/cephfs
$ sudo mount -t ceph $(hostname -I | awk '{print $1}'):6789:/ /mnt/cephfs -o 
name=admin,secret=XXXYYYZZZ
$ mount
...
192.168.1.20:6789:/ on /mnt/cephfs type ceph 
(rw,relatime,name=admin,secret=,acl)

$ cd /mnt/cephfs/
$ sudo touch before.txt
$ ll
total 4
drwxr-xr-x 2 root root1 Jun 27 09:18 ./
drwxr-xr-x 3 root root 4096 Jun 27 09:14 ../
-rw-r--r-- 1 root root0 Jun 27 09:18 before.txt
$ sudo dmesg | tail
...
[  152.158221] netfs: FS-Cache loaded
[  152.186537] ceph: loaded (mds proto 32)
[  152.189962] libceph: mon0 (1)192.168.1.20:6789 session established
[  152.190529] libceph: client14165 fsid 44252ee5-5d40-4334-8290-df906d1a0655

$ sudo apt install selinux-basics selinux-policy-default
$ sudo selinux-activate
$ sudo reboot

$ sestatus
SELinux status: enabled
SELinuxfs mount:/sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: default
Current mode:   permissive
Mode from config file:  permissive
Policy MLS status:  enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version:  33

$ sudo mount -t ceph $(hostname -I | awk '{print $1}'):6789:/ /mnt/cephfs -o 
name=admin,secret=XXXYYYZZZ
$ cd /mnt/cephfs/
$ sudo touch after.txt
Killed

** Changed in: linux (Ubuntu)
   Status: Incomplete => Confirmed

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-06-27 Thread Massimiliano Pellizzer
Thank you for taking the time to report this bug and contributing to Ubuntu.
Can you try the new linux-hwe-6.14 [1] from noble-proposed [2] and attach the 
whole output of "sudo dmesg"? Is the bug still reproducible in 6.14?

[1] https://launchpad.net/ubuntu/+source/linux-hwe-6.14
[2] https://wiki.ubuntu.com/Testing/EnableProposed

** Changed in: linux (Ubuntu)
   Status: New => Incomplete

-- 
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

[Bug 2115447] Re: Ubuntu 24.04.2: NULL pointer dereference with Ceph and selinux

2025-06-27 Thread Massimiliano Pellizzer
** Changed in: linux (Ubuntu)
 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