News for hackers. Stuff that matters.
Re:Nvidia Security Team: “What if we just stopped using C?” by bitL on Monday November 07, 2022 @10:51AM (#33507388)
I despise this security-first attitude. It just leads to so much mental fatigue everywhere and any step is a potential minefield. It's ruining programming.
Re:Nvidia Security Team: “What if we just stopped using C?” by ironmagma on Monday November 07, 2022 @10:54AM (#33507440)
> any step is a potential minefield

That's the exact problem with C. It's the tool, not the attitude, which is a problem.

Re:Nvidia Security Team: “What if we just stopped using C?” by flohofwoe on Monday November 07, 2022 @11:07AM (#33507647)
Securely containing untrusted user code so that it can't do any harm is ultimately the responsibility of the OS, or whatever sandbox the code is running in.

Language-level memory safety is useful for eliminating an important class of bugs, but if those bugs can be exploited to escape the sandbox, then that's the problem of the sandbox, not of the buggy program running in that sandbox. So please, by all means, write the sandbox itself in a memory safe language like Rust, but requiring the same for all code running inside the sandbox is nothing more than an admission of failure.

Re:Nvidia Security Team: “What if we just stopped using C?” by timbit42 on Monday November 07, 2022 @11:19AM (#33507831)
What if the sandbox, kernel, device drivers are written in C? Sounds like a good case against C for these uses.
Re:Nvidia Security Team: “What if we just stopped using C?” by flohofwoe on Monday November 07, 2022 @11:24AM (#33507916)
Yes, I fully agree! But such subtleties are usually overlooked by the 'C users are criminals' crowd ;)
Re:Nvidia Security Team: “What if we just stopped using C?” by ilyt on Monday November 07, 2022 @11:20AM (#33507846)
That's pretty limited way to look at it. You don't need to escape the sandbox to do harm.

You can have your app in perfect sandbox where nothing can escape then have a memory safety bug inside allowing user to get to the stuff of another user (because your sandboxed app talking with sandboxed database still have one set of credentials to do everything)

There is of course https://xkcd.com/1200/ for that.

And no "move that separation to DB" also isn't a solution.

Re:Nvidia Security Team: “What if we just stopped using C?” by flohofwoe on Monday November 07, 2022 @11:29AM (#33507991)
I agree, same with popular multiplayer games for instance which could be exploited by memory safety bugs in the network protocol implementation. But these are cases where just implementing a couple of critical modules either with a memory-safe language, or using code generation (or both) to reduce the amount of 'manual bugs' go a long way. AFAIK exploits almost always happen in places where data comes into the system, so those are the places to focus on.
Re:Nvidia Security Team: “What if we just stopped using C?” by Gigachad on Monday November 07, 2022 @06:54PM (#33514248)
Imagine any other engineering field complaining about safety being a mental drain.