Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 4y ago · link · parent

> C++ does not add runtime overhead to validate that programs are well-formed.

You have succinctly described the problem.

comment 4y ago · link · parent

>if you arbitrarily decide that "safe" means "memory safe" specifically and no other kind of "safe".

This is how Rust has always defined it. Linus is specifically saying that "Rust people" don't understand what "safe" is but... they do, he doesn't. He could say "Rust defines it as X, the kernel needs Y" but he doesn't say that, he implies that Rust people just don't understand the word "safe" or that they think Rust is safer than it is, which is simply not true. As I said, quite ironic given history.

> I wouldn't blame their discussion partners for not knowing what the developer means when they talk about some code being "safe".

I mean, I would definitely blame them if they're also going to go on an insulting rant about their definition being wrong.

> without people getting too hot under the collar about their personal hang-ups

Impossible, in my opinion, until a ton of people retire.

comment 4y ago · link · parent

How is this context? Also how is it "wise" to get the definition of "safe" wrong while acting like a pedant?

comment 4y ago · link · parent

Rust's "safety" is memory safety. It's relatively well defined for a technical term: https://en.wikipedia.org/wiki/Memory_safety

edit:

> Yeah I was just trying to provide a clear definition, I didn't think you were implying it was BS.

(would have replied but I'm rate limited on HN - thanks dang!)

comment 4y ago · link · parent

> Even "safe" rust code in user space will do things like panic when things go wrong (overflows, allocation failures, etc). If you don't realize that that is NOT some kind of true safely, I don't know what to say.

When people say "safe" there's a pretty precise meaning and it's not this.

Yes, anyone who believes rust is 100% "safe" (by any definition) is wrong. That's not something you learn in Kindergarten though, it's actually about understanding that Rice's Theorem is a generalization of the Halting Problem.

> o this is something that I really need the Rust people to understand. That whole reality of "safe" not being some absolute thing

The irony of Linus lecturing anyone on safety lol anyway "the Rust people" know this already, when they say "safe" they mean "memory safe" - https://en.wikipedia.org/wiki/Memory_safety

Anyway, dumb shit like this is why I've always been quietly dreading Rust in the kernel.

a) The kernel will never be safe software because the mainline developers don't want it to be or even know what safe means

b) It just invites more posts like this and puts Rust closer to one of the most annoying software communities

> Or, you know, if you can't deal with the rules that the kernel requires, then just don't do kernel programming.

Agreed on this point. I was very interested in kernel dev earlier in my career until I actually started to engage with it.

comment 4y ago · link · parent

> I'm not disputing that people are supporting their families

Literally just the very post before by you:

> What I am saying is that there are people out there legitimately doing jobs because the only other option is their family going hungry. Silicon Valley software engineers are not in that category.

This is incoherent.

Whatever point you're trying to make is not coming across and doesn't seem important. The initial point I made was that "is anyone excited to work for Google?" is a hilariously naive point of view both in terms of the obvious fact that they often are, and also in terms of a basic ethical framework. I gave examples. Nitpicking them isn't important because there are a million other examples.

comment 4y ago · link · parent

"Unopinionated" is not about leadership at all, it's generally about providing a library versus a framework, and the "less opinionated" it is the more "library-like" the code is.

The vast majority of open source software is effectively maintained by people who don't give a shit about users/contributors, obviously, as they're unmaintained github projects.

It's fine for the majority of projects because no one uses them. What's weird is that anyone uses emacs when it's led by a fairly incompetent developer and a radically incompetent leader.

comment 4y ago · link · parent

Yes, this is just how CSAM detection works.

comment 4y ago · link · parent

Of course. Many people are not supporting a starving family, many people can take other jobs. I'm only trying to demonstrate there is a grey area.

> But if we're talking about journalists' ability to protect the information and identity of their confidential sources (again, a bar that you set), of all the options available, Gmail is not a pretty good one.

I disagree. Gmail is an incredibly secure mail service and is a fine way to perform some communications - in particular, while something like Signal may be ideal, Gmail can have a much better UX around initial contact.

Even if it weren't, it really doesn't matter, journalists do use it and they are targeted. But again, journalists are just an example, there are hundreds of millions of people using gmail - protecting them is something one could very easily consider to be ethical.

comment 4y ago · link · parent

OK so you do want a business model, it's just a terrible one.

comment 4y ago · link · parent

> Yeah again, that's a carefully controlled research setup.

The POC runs in visitors browsers lol it's a public demo that runs in your browser, not in a "carefully controlled research setup".

> that very probably don't contain anything of value

Lots of things are valuable other than passwords. Even just leaking addresses can be useful for further exploitation. The main issue is it's a violation of a security boundary.

> The first guy I responded to was making an assertion that running without spectre/etc mitigations means you should turn off javascript.

They said "I hope you <do that>". Presumably because it would also mitigate the issue.

comment 4y ago · link · parent

> Really? What circumstances lead from someone going from Googler to unemployable?

I didn't say unemployable. But maybe other jobs aren't paying as well or you don't have time to shop around.

> Uh... because it's the best option available?

It's a pretty good oen

comment 4y ago · link · parent

Not trying to be an asshole but can you just provide a source and try to make a clear point? Otherwise this conversation is like pulling teeth.

comment 4y ago · link · parent

> I suspect that if you work at Google you have plenty of other career options before reaching the point where your family has to starve.

Not always.

> And to the journalists out there who are hypothetically using gmail to communicate with confidential sources: please stop.

Uh, no.

comment 4y ago · link · parent

No, I don't know what you are referring to.

comment 4y ago · link · parent

The thing I like most about Brave is actually the crypto stuff, and I hate almost all crypto. This is actually a good use case for it - you have a distributed system (users browsing) across untrusted hosts (users).

People like to shit on advertising, but much of the internet exists today because of advertising. Do you think Youtube could exist at that scale without ads? I don't think so, personally. At least, not without another way to monetize.

Brave is the only player providing an alternative monetization strategy. Crypto or not, to me, that is by far the most interesting thing a browser has done in a long, long time.

comment 4y ago · link · parent

> I just find it really hard to believe that anyone would be sincerely excited to work at a place like Google.

> but it just seems like an unethical move

Whether you can empathize with it or not you must realize that of course people are sincerely excited to work at Google?

As for the ethics, at Google security you may be in a position to have some of the largest impact on the most people's personal security. You can say "oh but Google sells ads based on that data" - OK, and you might have a serious problem with that, but the person who's making sure that malicious 3rd parties can't read the GMail accounts of journalists probably doesn't see that as a deal breaker.

A lot of people also don't have the luxury to make these choices based on a purely ethical basis. If you're sending money back to your family back home is it a straightforward ethical question of "well Google sells ads, so my family has to starve" ?

comment 4y ago · link · parent

No one is forcing you to use TLS. Do whatever the fuck you want, it's your site?

comment 4y ago · link · parent

Fuck, HTTPS was already popular by the time I went to college. That explains everything.

comment 4y ago · link · parent

They already have that with ISPs, right? I don't see this as worse. If anything ISPs are more scummy.

comment 4y ago · link · parent

Yes I hate analogies.

comment 4y ago · link · parent

> Suppose I'm a typical desktop user, how is important information going to be stolen if I have mitigations turned off and JavaScript enabled?

https://github.com/google/security-research-pocs/tree/master...

I don't imagine I'm going to explain it better than the many others who have already done so.

> What state does my browser have to be in, and what actions do I have to take (or not take) for the attack to succeed?

Your browser would have to be pretty old/ outdated since they've been updated to mitigate these attacks. Otherwise it's just necessary that you visit the attacker controlled website.

> What likelihood is it that someone has deployed an attack that meets those requirements?

That's not a simple question. Threat landscapes change based on a lot of factors. As I said earlier, we won't see these attacks because people have already patched and attackers have other methods.

> So we agree it's OK to leave mitigations off and browse the web?

You can do whatever you want, idk what you're trying to ask here. What is "OK" ? You will be vulnerable but unlikely to be attacked for the reasons mentioned. If you are "OK" with that that's up to you.

comment 4y ago · link · parent

Oh ok. So, no, the stars don't have to align at all. The attack is straightforward, the POCs show that.

The reason we don't see these attacks is because everyone patched the major issues immediately. Further, attackers don't need to really go for these sorts of attacks, there are more reliable, well-worn methods for attacking browsers.

comment 4y ago · link · parent

Which attack are you referring to? There have already been POCs for many speculative execution attacks.

comment 4y ago · link · parent

Not quite. A meteor is an object with no drive or desire. Attackers are adversarial and thoughtful. You can't liken a random event to a purposeful act like this.

It's more like saying "refusing to leave your house because you're worried you might get mugged", which might actually be very reasonable if you live in a bad neighborhood, you're a common target of crime, etc. It may not be reasonable for many others.

But analogies are pretty rough in general.

comment 4y ago · link · parent

If you're the admin of the system you can just load up your own kernel, or kernel modules, etc.

comment 4y ago · link · parent

It would be nice to have a more trustworthy stack at every ring, I think.

comment 4y ago · link · parent

Actually I changed my mind

comment 4y ago · link · parent

Nice, I definitely think Firefox is doing it the right way.

comment 4y ago · link · parent

Is it the question? No one's really asking it and it's obviously purely speculative.
1
242526
164