Well, one thing written to test-drive Rust for Linux was in-kernel server for 9P, which is probably the closest thing to ksmbd, in-kernel server for SMB, without being identical: https://lwn.net/Articles/907685/
This is hilarious:
> Initially, he had started trying to replace the ksmbd server, but that turned out to not be an ideal project.