Quotes of the week
If the price of Linux using an insecure C runtime is to slow down system calls with immense PTI-alike runtime costs, then wouldn't it be the right technical decision to write the kernel in a language runtime that doesn't allow stack overflows and such?
I.e. if having Linux in C ends up being slower than having it in Java, then what's the performance argument in favor of using C to begin with?
Posted May 2, 2019 11:55 UTC (Thu)
by roc (subscriber, #30627)
[Link] (5 responses)
There's an opportunity for non-C kernels, or verified-C kernels, and/or microkernels, to disrupt Linux here.
Then again, maybe C-insecurity mitigations will be baked into increasingly bloated and complicated CPU cores so you'll be paying for them whether you use C or not.
Posted May 3, 2019 6:39 UTC (Fri)
by mjthayer (guest, #39183)
[Link] (4 responses)
Posted May 3, 2019 6:41 UTC (Fri)
by mjthayer (guest, #39183)
[Link] (1 responses)
Posted May 3, 2019 23:23 UTC (Fri)
by roc (subscriber, #30627)
[Link]
Posted May 3, 2019 23:30 UTC (Fri)
by roc (subscriber, #30627)
[Link] (1 responses)
It's possible that creating your own language that's a bit like Rust but looks more like C unlocks some incrementality benefits for Linux (while having some pretty major costss). It's hard to tell without doing experiments.
Posted May 6, 2019 23:09 UTC (Mon)
by logang (subscriber, #127618)
[Link]
I think it would be a great idea to do more annotated static analysis if people can come up with good cases where it will work.
Also, I feel like it would be of a significant value to add much of the same functionality that sparse is doing now to GCC and maybe eventually the C spec so that it's more widely available and developers can get the appropriate errors without needing to run a seperate tool, or wait for a build bot.
[1] https://elixir.bootlin.com/linux/latest/source/include/li...
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week