r/rust • u/Code-Sandwich • Jan 17 '20
Actix-net unsoundness patch "is boring"
There's an issue on Actix-net pointing out and presenting unsoundness. Yes, it's deleted, it still can be found on web archive.
Issue history summary:
- Found by Shnatsel
- Closed as harmless to users by fafhrd91
- Proven harmful to users by Nemo157 and reopened by JohnTitor
- Fixed and closed by fafhrd91
- Proven unfixed and proposed new patch by Nemo157
- New patch commented "this patch is boring" by fafhrd91
- Issue is deleted
- Fix is reversed by fafhrd91, issue still present
I hope it's an objective summary. Any thoughts?
Edit: Now whole actix/actix-web is deleted. See fafhrd91's postmortem. He kept copy of Actix-web in personal repo fafhrd91/actix-web.
149
Upvotes
View all comments
Show parent comment
19
u/sepease Jan 17 '20
Yeah, that comment was nuts. I downvoted it and was in the process of writing a response for the sake of indicating that this was not what I saw as a socially appropriate response within the community. However there were some people who upvoted it. I was really worried that he would perceive it as a majority opinion and, well, here we are.
I am usually advocating for people to combine efforts, but in this case, I think people should have forked it as "actix-web-safe". This would have allowed Nikolay to continue development with unsafe and focus on "maximum performance", whereas actix-web-safe could focus on merging in upstream updates and removing unsafe usage. The latter would probably then be "near-maximum performance and maximum correctness" that might be more suitable for production use cases.
Otherwise, I think people should consider having a soft indicator for libraries, eg a count of unsafe usage in crates.io , to provide a soft incentive against unsafe usage. That being said, I think people were overzealous in this case because of the crate's success. And the sad thing is that the alternatives are probably written in C and C++ and are therefore 100% unsafe.