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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs