HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
What Spectre Means for Lanugage Implementers - Ben Titzer - PLISS 2019

PLISS · Youtube · 44 HN points · 0 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention PLISS's video "What Spectre Means for Lanugage Implementers - Ben Titzer - PLISS 2019".
Youtube Summary
Ben Titzer of Google's V8 team talks about the realities of the Spectre family of vulnerabilities and how they apply to language implementers.

Slides: https://pliss2019.github.io/ben_titzer_spectre_slides.pdf
Part of PLISS 2019: https://pliss2019.github.io/
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Jul 22, 2019 · 42 points, 17 comments · submitted by cmeiklejohn
gpderetta
Only tangentially related: what does Spectre means for single address space OSs (Midori, Singularity)?
titzer
It's game over for them, until hardware offers mechanisms to close these side channels.
hak8or
That's a very weird typo for language. Usually we can tell what word was meant if some letters are missing from what I understand, but for some reason this one was surprisingly bad.
asveikau
I felt there was enough context to parse correctly because:

- Spectre is a well known vulnerability in speculative execution

- I know that speculative execution bugs had compiler workarounds involving how you do your jumps (retpoline etc.)

- "language implementer" is a common synonym or overlapping term with "compiler author"

cmeiklejohn
oh, very clever
cmeiklejohn
wait, we're making a joke about "lanugage" being a result of out-of-order execution, right?
cmeiklejohn
I think they mean "Language"
pure-awesome
I literally didn't realise there was a mistake until I read your comment. It's just two adjacent letters that have been swapped.

I certainly understand how someone might read 'lanugage' and be thrown off by it, but I don't think it's as objectively terrible, or even weird, a typo as you're making it out to be.

stcredzero
"LANugage" would be a perfectly cromulent name for a LAN network optimization and metrics tool.
pure-awesome
People would misspell it all the time, though.
Kaiyou
If you look at it in isolation, it's really bad. In the context of a sentence, though, I didn't notice it. OP must be a slow reader.
brigandish
> Usually we can tell what word was meant

It's called typoglycaemia. I actually wrote a library[0] the other day that will jumble up text in typoglycaemic fashion, mainly because I was bored but also because I want to try it out when having arguments <cough> sorry, healthy debate on social media <cough, cough> as (apparently[1]) it changes the mode of thinking the reader uses:

> In a final study, Gervais and Norenzayan used an even more subtle way of activating analytic thinking: by having participants fill out a survey measuring their religious beliefs that was printed in either clear font or font that was difficult to read. Prior research has shown that difficult-to-read font promotes analytic thinking by forcing participants to slow down and think more carefully about the meaning of what they are reading. The researchers found that participants who filled out a survey that was printed in unclear font expressed less belief as compared to those who filled out the same survey in the clear font.

[0] Typoglycaemic https://github.com/yb66/typoglycaemic

[1] How Critical Thinkers Lose Their Faith in God, Daisy Grewal, May 1, 2012, Scientific American https://www.scientificamerican.com/article/how-critical-thin...

Edit: one day I'll remember which bits of markdown work on HN. That day is not today.

bakery2k
> Conclusion:

> * Programming language implementations cannot establish confidentiality on today's hardware

> * Don't run untrusted code in the same process with secrets it could steal

I understand that because of this, browsers are moving towards running untrusted JavaScript code in separate processes, so that confidentiality is provided by process boundaries.

Does anyone know whether other applications that embed scripting languages and run untrusted code (e.g. games that embed Lua[JIT]) are also moving towards a multi-process architecture?

nsajko
Regarding Chromium, Site isolation has been enabled by default since last year in Chrome 67.

https://www.chromium.org/developers/design-documents/site-is...

https://www.chromium.org/Home/chromium-security/ssca

https://security.googleblog.com/2018/07/mitigating-spectre-w...

https://www.chromium.org/Home/chromium-security/site-isolati...

saagarjha
Doesn't Spectre work across process boundaries?
None
None
nsajko
I think you mean Meltdown.

https://en.wikipedia.org/wiki/Meltdown_(security_vulnerabili...

saagarjha
No. Meltdown allows for reading kernel memory, subverting traditional memory isolation techniques. Spectre abuses speculative execution to perform side-channel attacks to leak information in general, including across process boundaries.
zzzcpan
> I understand that because of this, browsers are moving towards running untrusted JavaScript code in separate processes, so that confidentiality is provided by process boundaries.

Google was moving on that feature before Spectre. Confidentiality is a rather strong word here. Web pages literally include random 3rd party code to run within the same process and that isolation on top of process boundaries doesn't address that, it's only addressing some hypothetical threat of a tab or a child frame stealing data and I'm not sure whether they even isolate child frames (EDIT: they try). A tab stealing data is too remote of a possibility if at all practical and 3rd party child frames are usually created by 3rd party javascript already running within process boundaries, so no confidentiality there. It's possible that some 3rd parties may want to sandbox the code they let other 3rd parties run in your browser, but that does nothing to guarantee any confidentiality.

It's not that bad for newly designed languages or for languages willing to break compatibility. There are multiple approaches that can be used to protect from Spectre within the same process, plenty of ideas floating around.

Jun 13, 2019 · 2 points, 0 comments · submitted by matt_d
HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.