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

I think there's two important things to note here.

1. Bandaids are critical. We can't just fix the billion lines of C code out there by replacing it - we need strategies that wholesale destroy bug classes. CHERI does that. If you concretely removed temporal unsafety from all of an operating system's userland, just by recompiling, you'd have done the world a great service.

2. CHERI is very strong. It's not like some mitigation techniques, which rely on increasingly niche thread models (ASLR makes less and less sense as the world pushes towards "send code, not data" - to be fair, pax/grsec explicitly noted this 20 years ago, so it's hardly the fault of ASLR). CHERI totally wrecks spatial memory unsafety. That's fucking huge. The death of buffer overflows. Combined with other techniques like PAC, the memory unsafety threat becomes seriously less critical, or at least that's my position on it - would love to hear someone point out why I'm overly optimistic on this.

In theory you could remove all bounds checking from code and leave it up to the hardware to enforce.

It also is just sane. Like, I think containers are "sane" - they finally split the OS into disparate pieces. I think that NX is sane - why should memory be RWX by default? "A pointer for an allocation can dereference memory anywhere in the address space" is not sane, so hardware enforcing sanity is good.

Where we can enforce sanity, we should. CHERI does that imo.

Also, idk, even in memory safe languages it's not like bounds just go away. You get compile time assurances that either the bounds are gone and that's safe, or they're not gone and that's safe.

comment 4y ago · link · parent

> I regret to inform you that x86_64 (which is probably a “major architecture”) is segmented and has three address spaces.

Can you say more? I assumed the post was referring to segmentation registers, which are not an x86_64 thing.

comment 4y ago · link · parent

Very well written and approachable. I think everything noted makes perfect sense, really.

Semi-related, CHERI is so cool. I find it extremely promising and I truly hope that it sees widespread adoption. I really think if CHERI, or approaches similar, gain widespread adoption we will see a new era of security, similar to if not more significant than when Chrome hit the scene for desktops.

comment 4y ago · link · parent

Sure there is. I code while watching videos all the time.

comment 4y ago · link · parent

Video is nice for multitasking. I can't read and do anything else at the same time. I can listen to a video, glance at it, and do other things too.

comment 4y ago · link · parent

The problem with learning about things with a ~multi-decade delay (via FOIA etc) is that everything sounds so long ago, in a different time.

But there's not a ton of reason to believe that things have changed so fundamentally.

comment 4y ago · link · parent

I found the rap extremely entertaining

comment 4y ago · link · parent

I'm very happy to see fuzzing added to Go, and I don't write Go at all (or every plan to). Bringing concepts like this to the masses is a win for everybody.

comment 4y ago · link · parent

The hyperbolic use of "literally" to mean "figuratively" goes back hundreds of years.

> : in effect : VIRTUALLY —used in an exaggerated way to emphasize a statement or description that is not literally true or possible will literally turn the world upside down to combat cruelty or injustice — Norman Cousins

https://www.merriam-webster.com/dictionary/literally

They justify this in a few places, including

> The "in effect; virtually" meaning of literally is not a new sense. It has been in regular use since the 18th century and may be found in the writings of Mark Twain, Charlotte Brontë, James Joyce, and many others.

edit: HN was loading really weird for me, I didn't see the sibling comment make this point already!

comment 4y ago · link · parent

What propaganda? I'm sure there's bias in reporting, no question. But bias, say in support of Ukraine, is very different from saying that there's no conflict at all.

comment 4y ago · link · parent

My "hate" is for the executives, not Mozilla. Firing a ton of engineers "because covid" from promising projects while taking huge, ever increasing bonuses as the browser's market share falls, is inexcusable. I'd criticize any executive for the same thing.

They're (the execs) utter failures.

comment 4y ago · link · parent

I'm fine with this move but Mozilla has sunk well below an acceptable bar. The company sucks and has failed us all. The CEO is a joke and should have never been in the position.

comment 4y ago · link · parent

My understanding is that results from Yandex were spreading propaganda from Russia, backing up the false narrative that they hadn't done anything, or that everyone in Ukraine is a nazi, etc.

Would love to hear more if anyone has information, I'm possibly misremembering.

Also, private companies are an important part of a nation's economy. Restricting them surely impacts that nation, so the idea seems sound?

comment 4y ago · link · parent

I'm laughing because your points are so bad, to be clear, not at the crimes.

comment 4y ago · link · parent

You're not really saying much. I also don't want someone to steal legos, that isn't a controversial statement.

comment 4y ago · link · parent

> This doesn't explain vandalism, joyriding, or kleptomania.

These are pretty minor crimes lol I'll be really happy if we get to a point where we have to worry about these things.

> But have you considered that some people realize theft is an easier alternative to being gainfully employed?

I mean, yes, I've considered it. I dismissed it because it's sort of idiotic. Is it better than working a job with no healthcare, benefits, a minimum wage, and the chance to be fired at any time with no safety nets? Sure, yeah. We should fix that.

> why can't you recognize that crime is lucrative and a preferable alternative for these people?

We both agree that crime is preferable for some people. We just disagree about why.

> Their conscience doesn't bother them like it would for you and I.

Years of living in an abusive society, learning that crime is a survival mechanism, etc, will naturally do that to anyone.

comment 4y ago · link · parent

I don't read it that way at all. They're very clearly criticizing the idea that it would.

comment 4y ago · link · parent

Who out there advocates for "give them a house and them stop, that's it, nothing else" ? I've never seen that, ever.

comment 4y ago · link · parent

Completely agree. I'm not sure how people are so short sighted as to think prison is a "solution" - prison sentences are temporary.

Also, you used "begging the question" properly! I'm weirdly refreshed by that having just seen it misused in another comment.

comment 4y ago · link · parent

> Yes.

Until they're released. At which point they'll have an even harder time getting a job, they'll be even more alienated and broken, and they'll likely only be able to associate with other criminals. Sounds like a recipe for increasing crime.

> Consequences are a deterrent.

Not really. If your options are "die" or "face potential consequences" you choose the latter every time.

I really doubt that "I don't want to go to prison" is why most people don't commit crime. They don't commit crime because... crime sucks, it's not fun, and it's not really necessary for most people. The people who do crime aren't like "haha they won't prosecute me, sweet, finally I can go commit crimes". They're desperate.

This seems so obvious.

> This is intangible.

Kind of a cop out. The reality is that people who go to prison have an extremely high rate of ending up back in prison, often for even worse crimes.

comment 4y ago · link · parent

Sure, at some point. A guy who's just flipping stolen goods going to prison though is just totally stupid. You'll accomplish the opposite of your goals - you will increase crime with that sort of policy. And it'll cost you more.

edit: To elaborate, the "at some point" is like... where a person has to be removed from society because they're an imminent danger to themselves or others.

comment 4y ago · link · parent

Sending someone to jail is a surefire way to turn them into a more serious threat when they're released. You could just give the money you'd spend incarcerating them directly to the person or via food stamps, access to education, etc.

comment 4y ago · link · parent

He'd been homeless on and off since he was 14. The vast majority of his life he was not being given a free place to stay. Do you think if, at 14, had he not ever experienced homelessness, that he might be a more productive member of society?

Yes, for some people it's too late for "just" a free place to live to solve their problems. But I think it will absolutely make a difference for people on the brink, families, and future generations.

No one is going to solve homelessness in a generation. The damage it does to people is so significant. But we should work to assure that people like Andre never exist to begin with.

You say that delis should hire them. Do you expect delis to hire homeless people? Who can't shower? Who have no address? A home is a critical step to getting hired. It doesn't mean you'll suddenly get a job and be productive, but without it you're absolutely fucked.

Yes, we should give everyone housing. We should also pay them to go to school, give them free health care, etc, so that they have the opportunity to actually move forward.

comment 4y ago · link · parent

Amazon and AWS function pretty independently. It would be really odd to see Amazon raises impact AWS prices.

comment 4y ago · link · parent

That sounds like a horrible idea, if so. Storage is sticky. You can migrate compute easily, it's databases that keep people in your cloud.

comment 4y ago · link · parent

I actually got excited, thinking that this would be another drop to egress in order to compete with Cloudflare and AWS. AWS just significantly improved pricing on egress to compete with Cloudflare, so it seemed like an obvious next step for other clouds to do so.

Instead, huge price increases? That's... confusing. I honestly wonder if Google wants to kill off Cloud, given how much money they lose on it every year.

comment 4y ago · link · parent

IDK I think it's kind of cool. I don't see this as being much hackier than any other compiler pass that looks for a pattern and inserts or removes code. Is it any hackier than totally randomizing memory placements?

Obviously C and C++ are dumpster fires for these sorts of bugs, but this seems like a reasonable approach.

comment 4y ago · link · parent

> This promises to significantly widen fortification coverage to include cases where the compiler can see the non-constant expression for object size.

Any stats on the coverage increase?

comment 4y ago · link · parent

There doesn't have to be a point. It just seemed really odd, so I pointed out that it was odd. I also refrained from commenting on the language as I had understood it.
1
545556
164