If your buffer is too small it will just fail. It ends the file after a fact is returned. I think I forgot to shout that out in the article. Oops.
Well, thanks for the quick intro for how to actually use this new rust-in-kernel stuff and also for showing how to easily test it with nix. That's a great article, so thank you for sharing!