

Memory Safety with Yael Grauer
Feb 14, 2023
01:17:52
Personal Fear Drives Memory Safety Advocacy
- Yael Grauer shared a personal story about fearing being targeted by Pegasus spyware due to her investigative journalism work.
- This fear highlighted memory safety's critical role in preventing such intrusions and protecting human rights and safety.
CVE System Lacks Mandatory Reporting
- Participation in the CVE (Common Vulnerability and Exposure) database is 100% voluntary with no consumer transparency on who reports bugs.
- This lack of accountability hinders understanding and addressing memory safety vulnerabilities effectively.
Push for Transparency in Bug Reporting
- Advocate for transparency and accountability in bug reporting to understand the prevalence of memory safety issues.
- Encourage companies to participate openly in CVE reporting to enable informed consumer choices and industry progress.
Get the Snipd Podcast app to discover more snips from this episode
Get the app 1 chevron_right 2 chevron_right 3 chevron_right 4 chevron_right 5 chevron_right 6 chevron_right 7 chevron_right 8 chevron_right 9 chevron_right 10 chevron_right 11 chevron_right 12 chevron_right 13 chevron_right 14 chevron_right 15 chevron_right 16 chevron_right 17 chevron_right 18 chevron_right 19 chevron_right 20 chevron_right 21 chevron_right 22 chevron_right 23 chevron_right 24 chevron_right 25 chevron_right
Introduction
00:00 • 2min
Is This Early Hit for You?
01:39 • 5min
Never Send Me a Chat, Can We Talk?
06:33 • 5min
Are We Going to Talk About Unsafe for Us to This?
11:56 • 2min
Is There a Problem With Memory Safety in the Real World?
14:05 • 3min
Seatless Plus
17:20 • 2min
C++ - You Can Smell the Fear Around Here?
19:19 • 5min
I'll Tell Your Mother You've Been Writing C++
23:50 • 4min
Can Making This Message Connect and Having It Change?
27:33 • 2min
Are You Saying There Needs to Be a Total Cost of Ownership Analysis?
29:59 • 5min
The Tierney of Metrics
35:15 • 1min
The Tyranny of Metrics Looks Great
36:43 • 3min
Is There a Principle Based Approach to Memory Safety?
39:32 • 6min
Memory Unsafe Languages - Why Is This So Controversial?
45:09 • 2min
Is That Really True? I'm Just Admiring the Number.
47:09 • 2min
How to Write a Memory Safe Language?
48:52 • 3min
Is Rust Hard to Learn?
51:29 • 2min
Is It Easier to Learn Rust When You Don't Know Other Languages First?
53:53 • 3min
Is There a Duplicate Link List?
56:56 • 3min
Is There an NTSB Equivalent?
59:28 • 3min
Is Failure to Use Memory Safe Programming Techniques an Unfair Business Practice?
01:02:13 • 3min
What's the Last Straw?
01:05:25 • 3min
The Iron Ring of Unsafety
01:08:06 • 5min
The FCC Compliance Experiment
01:13:12 • 2min
Rustation Challenge
01:14:43 • 3min
Yael Grauer joined Bryan, Adam, Steve Klabnik, and the Oxide Friends to talk about her recent Consumer Reports article on memory safety and memory safe languages. How do we inform the general public? How do we persuade practitioners and companies? Thanks for joining us, Yael!
In addition to Bryan Cantrill and Adam Leventhal, we were joined by special guest Yael Grauer, and Steve Klabnik.
Some of the topics we hit on, in the order that we hit them (experiment in turning the show live-chat into notes):
- Nahum: https://www.backblaze.com/blog/the-3-2-1-backup-strategy/ if anyone wants to read up on the 3-2-1 Backup strategy. 👅
- Cyborus: can we get a link to the talk?
- Nahum: https://www.youtube.com/watch?v=Q9s2NxILBK8
- Nahum: https://digital-lab-wp.consumerreports.org/wp-content/uploads/2023/01/Memory-Safety-Convening-Report-.pdf via https://digital-lab-wp.consumerreports.org/2023/01/23/new-report-future-of-memory-safety/
- Nahum: https://en.wikipedia.org/wiki/Pegasus_(spyware)
- Cyborus: "can we talk" => "hey. you. have a panic attack. anyways i got a cool sandwich"
- AaronW: "of course we should have seatbelts" 😄
- MattCampbell: but then you've got the C die-hards who say that Rust itself is too complex
- AaronW: https://twitter.com/markrussinovich/status/1571995117233504257?s=46
- DanCrossNYC: People used to say the same thing about PL/I and recently the COBOL people have been saying the same thing. Nothing new under the sun.
- statuscalamitous: https://blog.yossarian.net/2023/02/11/The-unsafe-language-doom-principle
- DanCrossNYC: People who still want to treat C as a high-level assembler are saying the same stuff the PL/I people were saying when I was young.
- Eric Likness - carpetbomberz.com: In support of Yael, Ralph Nader wasn't/isn't an automotive engineer and he could still argue for lowering safety risks to car buyers. It's advocacy.
- cdaringe: As an ocaml user, i was hoping revery would take off https://github.com/revery-ui/revery
- statuscalamitous: https://press.princeton.edu/books/hardcover/9780691174952/the-tyranny-of-metrics
- Saethlin: Wake up babe, new 0xide reading assignment dropped
- AaronW: Labelled like a can of pringles -- "20% more malloc() free()!"
- Nahum: Relevant to rules based accounting: https://www.schneier.com/blog/archives/2023/02/hacking-the-tax-code.html
- drew: Rigorous definitions of “unsafe code” just wont cut it ig
- ig: 40% less direct pointer arithmetic than the leading brand of operating systems
- a172: How does principle based accounting even work? Like, how do you define if something violates the principle or not, without just turning it back into rules based?
- Eden: Checkboxes are meaningful for operational checklists. Aviation and medicine use them pretty heavily. Not so meaningful for systemic work like developing a new aircraft or a new surgery.
- Eden: So I guess a rules-based approach works for lines of code, but breaks down for project-level decisions such as which language to use.
- Saethlin: The S in IoT is for security
- benstoltz: ifixit repairability score for HW should have an analog for SW/FW.
- DanCrossNYC: That's precisely what the pl/i folks acted like 25 years ago.
- sam801: c++ will live on thru carbon, cppfront, and val.
- DanCrossNYC: Prediction: carbon is doa.
- Saethlin: I'll believe it once anyone uses those
- ig: I think the other part is there's some really important pieces of software that everyone uses daily which use memory unsafe languages. Our web browsers, and our operating systems.
- AaronW: I live in a condo and I still unplug expensive electronics during a thunderstorm. Maybe it's because I had many electronics fried when I was young, and my first language was C++.
- Eric Likness - carpetbomberz.com: Same with answering a landline during a thunderstorm.
- DanCrossNYC: Had to stop training during thunderstorms in the Marines.
- Eden: My day job is security. 😉 I rail against compliance checklists on a regular basis because a lot of auditors insist on the checkbox rather than proper security consideration. For example, PCI-DSS requires password rotation, which everyone has known for decades leads to users picking worse passwords.
- alilleybrinker: https://www.usenix.org/system/files/sec22summer_alexopoulos.pdf
- statuscalamitous: https://security.googleblog.com/2022/12/memory-safe-languages-in-android-13.html
- a172: Google and Mozilla are making pretty good strides in migrating their browser to Rust. Still a ton of work to go, but entire systems have been moved to Rust.
- JamesBrock: "Lindy" https://en.wikipedia.org/wiki/Lindy_effect
- statuscalamitous: https://security.googleblog.com/2021/04/rust-in-android-platform.html
- DanCrossNYC: Another issue with C/C++ in particular is that UB causes latent bugs to surface years later.
- alilleybrinker: In the paper linked above, the average lifetime looks to have been about 3.5 years.
- Saethlin: I learned Rust faster than C++
- alilleybrinker: Related, you might be interested in EPSS: https://www.first.org/epss/
- DanCrossNYC: Rust requires a bit of humility. For veteran C programmers, that can be a gut punch.
- srockets: “Compiler says no” is something that Haskell was proud of, but Rust is the first language I’ve seen that managed to get popular despite of it
- alilleybrinker: Humility also requires a lot of Rust https://github.com/oxidecomputer/humility
- Eden: I do like the checklist item that every change must be...