13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 4y ago · link · parent
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
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
> : 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
They're (the execs) utter failures.
comment 4y ago · link · parent
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
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
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
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
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
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
Obviously C and C++ are dumpster fires for these sorts of bugs, but this seems like a reasonable approach.