linux-apfs / linux-apfs-rw

APFS module for linux, with experimental write support
GNU General Public License v2.0
510 stars 34 forks source link

umount cause NULL dereference #27

Closed zvova7890 closed 2 years ago

zvova7890 commented 2 years ago

I have mounted apfs partition, created by Catalina. No problems, mount's fine, ls /mnt I can see files, after that I'm umount directory and got backtrace. I'm using 5.18.10-zen1-1-zen kernel on archlinux. dmesg.txt

eafer commented 2 years ago

Thanks for the report. I haven't tested 5.18 at all yet, and some people are reporting it doesn't even build there, so I guess it's not surprising that it's broken in other ways. I'll test it out myself and get back to you.

eafer commented 2 years ago

How did you get it to build? Were you using this patch?

zvova7890 commented 2 years ago

Yes, I look at the nop function and thought what bad gonna happen? :)

eafer commented 2 years ago

Haha yes, everything collapses in my tests too. I think I have a better solution, I'll push it soon.

eafer commented 2 years ago

I just pushed something that builds and looks correct, but I haven't tested it yet. When you can let me know if it helps with your problem.

zvova7890 commented 2 years ago

I built a development branch, builds fine, but same behavior while umount

eafer commented 2 years ago

I built a development branch, builds fine, but same behavior while umount

Thanks. I guess this is a separate issue then.

eafer commented 2 years ago

I think it's fixed now.

zvova7890 commented 2 years ago

Yes it is! Thank you!