Skip to contentSkip to conversation

Kernel 6.1 - ocfs2 NULL pointer exception

Ocfs2-devel e-m via Ocfs2-devel 1 participant 1 message Mar 22, 2023 OCFS2

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to use ocfs2 on my machine.
ArchLinux Kernel 6.1.22-arch1-1

However, when I try to create a file (e.g. "touch") on the mounted FS, I get a BUG with a PF:

BUG: kernel NULL pointer dereference, address: 0000000000000000

It seems that the strlen() in ocfs2_calc_xattr_init() is the problem because si->name is NULL.
When I modify the code so that strlen() is not called when si->name is NULL, it  BUGs out at another position in ocfs2_xattr_set_handle() (strlen() again). It seems like the whole ocfs2 kernel code has this problem mit strlen()?

Can I provide you with any additional information?

Thanks and best regards,
Etienne

_______________________________________________
Ocfs2-devel mailing list
[email protected]
https://oss.oracle.com/mailman/listinfo/ocfs2-devel