I did set up a SMB share for Time machine, as per the documentation.
I can see the share, access it, create files, etc.
When I start using it for Time machine, smbd crashes in loop with messages like
After some Googling, it comes out it's because of a samba bug
Please make sure the version of samba shipped with Freenas has that bug fixed