Linus's Law
Principle, named after Linus Torvalds, that with enough reviewers and testers almost every software bug will be found quickly and easily fixed.
Linus's law is the claim that when source code is open to a large enough community of testers and co-developers, almost every problem will be identified quickly, and the fix will be obvious to someone. Eric S. Raymond formulated and named it in "The Cathedral and the Bazaar" in honor of Linus Torvalds, whose public development of the Linux kernel inspired the idea. It became a common argument that open-source software can be more reliable and secure than closed software because more people can inspect it.
Experience has shown that the principle depends on people actually reviewing the code. Heartbleed, a serious flaw in OpenSSL disclosed in 2014, had been present in released versions for about two years, and the Shellshock flaw in Bash, also disclosed in 2014, dated back to code written around 1989. Both were in software used by millions. Researchers have argued that the number of potential reviewers matters less than the expertise and attention of those who look closely at critical code.
Security practice treats openness as a necessary but not sufficient condition for quality and security. Projects add systematic code review, automated testing, static analysis and continuous fuzzing, and funders support audits of critical components. A different principle with the same name, attributed to Torvalds in Pekka Himanen's book "The Hacker Ethic", concerns motivation rather than bugs. In both senses the law reflects confidence in distributed communities, tempered by the knowledge that participation must be organized.
Key points
- Linus's law holds that many reviewers make bugs easier to find and fix.
- Eric S. Raymond named the principle after Linus Torvalds.
- Heartbleed and Shellshock showed that open code is not automatically well reviewed.
- Effective review depends on expertise, attention and resources, not just openness.
Related entries
The Cathedral and the Bazaar
Influential essay by Eric S. Raymond contrasting closed, centrally planned software development with open, decentralized development in public.
Eric S. Raymond
American software developer and author of "The Cathedral and the Bazaar" who co-founded the Open Source Initiative and helped popularize open source.
Linus Torvalds
Finnish-American software engineer who created the Linux kernel in 1991 and the Git version control system in 2005.
Code Review
Practice in which developers examine each other's source code changes to find defects, share knowledge and keep the codebase consistent.
OpenSSL
Widely used open-source cryptography library and toolkit that implements the TLS protocol securing much of the internet's encrypted traffic.
Maintainer
Person or team responsible for reviewing contributions, managing releases and guiding the long-term health of a software project or package.
Featured in guides
Referenced by
Other entries that discuss or point to Linus's Law.