Better HN
topnewbestaskshowjobs
Log inSign up

lcvw

526 karma · joined May 30, 2021 (5y ago) · 56 submissions

liamcvw.com
Submissions

1.

Security After Remote Attestation(liamcvw.com ↗)

2 points · by lcvw · 4mo ago · discuss

comment 4mo ago · link · parent

I definitely want to do a post on confidential computing as well. Super cool stuff.

comment 4mo ago · link · parent

I think consumer devices should have opt-outs for sure. But personally I am much more comfortable with myself and my family having fully locked down apple phones then anything else on the market right now, precisely because of how difficult it is to get persistent malware into that ecosystem.

comment 4mo ago · link · parent

I mean, all tech can be used in different ways. My experience has been much more on the preventing root kits side, rather then vendor lock in.

Yes, there can be exploits, but hardware exploits over a restricted interface (TPM2) are significantly rarer then normal software vulns. Everything is about risk mitigation, there is no perfect security.

5.

Remote Attestation(liamcvw.com ↗)

110 points · by lcvw · 4mo ago · 109 comments

comment 1y ago · link · parent

I don’t think that is at all accurate.

https://en.m.wikipedia.org/wiki/British_genocide

comment 1y ago · link · parent

I’ve carved out a niche of very low level systems programming and optimization. I think it’ll be awhile before LLMs can do what I do. I also moved to to staff so I think a lot of what I do now will still exist with junior/mid level devs being reduce by AI.

But I am focusing on maximizing my total comp so I can retire in 10-15 years if I need to. I think most devs are underestimating where this is eventually going to go.

comment 1y ago · link · parent

I see safety issues all the time, even from mid level and seniorish devs who are not 100% familiar with cpp. I think it really depends on your codebase. Things like parsers tend to explode when you first put them in a fuzzer.

comment 1y ago · link · parent

I feel like he is missing the boat here. C++ is on a path to dying as a language because of a lack of safety features, and he’s talking about zero cost abstractions. Exceptions cause massive compiler issues and are hardly zero cost anyway, I don’t know how he can compare them at all to std::expected. Also anyone who has worked in an exception heavy codebase can attest to the fact that they do not lead to simpler code.

I have worked with C++ almost every day for a decade now, and I’ll be sad to see it go. This is not what the thought leaders should be focusing on at all. If you’re unhappy with std:: expected just don’t use it? Why can’t we focus on fixing the thousands of security vulnerabilities that cause real harm and money and endless developer time to try to work around.

comment 2y ago · link · parent

How could it be? The radiation wavelength is far too high to cause any sort of chemistry. I know there are those that will still believe it does though.

comment 2y ago · link · parent

No because when the electricity is used it creates heat.

comment 2y ago · link · parent

My understanding is that the theory behind nuclear winter is that all of the nuked cities will ignite, and the massive firestorms will eject ash into the upper atmosphere where it will persist for years. Aka you still need to blow up some cities to cause the winter.

Also nuclear winter is somewhat controversial, I don’t know what the latest model results are.

comment 2y ago · link · parent

Doesn’t perf also support reverse callgraphs? I seem to remember doing this pretty easily with that.

comment 2y ago · link · parent

That seems highly illegal. I’m not sure I believe that.

comment 2y ago · link · parent

Isn’t excel subscription only now?

comment 2y ago · link · parent

Is there a way to get your house (currently with hydronic gas heat) retrofitted for heat pumps that doesn’t result in either a ton of demo or ugly lines all over the exterior? I tried to switch over last year only to find the savings were not that great in my climate, and that it would have an unacceptable aesthetic cost.

comment 2y ago · link · parent

There is a legal loophole campaigns use where if a text message was sent by a human it’s not considered spam. So of course a program exists that dispatches the message you want to send to a call center and they dial the thousands of numbers you want by hand.

comment 3y ago · link · parent

I don’t know about the past, but you can absolutely dereference userspace memory in ebpf.

comment 3y ago · link · parent

As someone who uses bpf for security monitoring every day, every one of those problems is a has a workaround. And the only real competitor is writing a kernel module which has serious safety issues.

comment 3y ago · link · parent

One of the stated benefits is that the compiler optimizer can optimize the regex state machine that gets created, resulting in significantly faster match times at runtime. There are some benchmarks if you look up her cppcon talk about the library iirc.

Edit: here is her talk, at 39 minutes she shares the benchmarks. https://m.youtube.com/watch?v=QM3W36COnE4

comment 3y ago · link · parent

You can write ebpf programs in rust. Bpftrace generates programs from an awk like language, you can make the program however you want. Solana does it with rust, I don’t know what it gains you though given the verifier protecting you from most of the pitfalls of C.

comment 3y ago · link · parent

I feel that this proposal defeats the entire purpose of ebpf. The point is to have a bytecode language that can do simple processing in the kernel. This code is frequently generated adhoc, such as with bpftrace. I don’t like all the limitations that currently exist in bpf, but just replacing it with rust and signature verification basically turns this into kernel modules all over again.

comment 3y ago · link · parent

It’s worth noting the verifier doesn’t verify C code, it verifies the compiled ebpf bytecode. You can generate that bytecode from rust (the solana cryptocurrency does this) but you still need to verify the actual instructions since someone can just write whatever they want by hand.

comment 3y ago · link · parent

1. Using eBPF requires root

2. The verifier checks memory bounds access, guarantees termination in a certain number of instructions, and restricts function calls to a limited number of helper functions provided by the kernel.

3. BPF code runs on a vm, think like the jvm. It’s impossible to express a lot of nasty stuff given the restrictive bytecode language.

There have been bugs in the verifier, but overall it works very well, the biggest issue being that it drastically limits the complexity of your program.

comment 3y ago · link · parent

It requires root to use, if someone has root they’ve already owned your system anyway.

comment 3y ago · link · parent

Agreed. Russia and China have alienated every one of their neighbors by invading them, trying to take them over economically, and other bs. The US is the global hegemon mainly because of fear of Russia/China, which is not going to go away short of regime change imo.

comment 3y ago · link · parent

You need the mirrors to focus the light. X-rays have been tried and they had problems, such as requiring the use of gold to block the x-rays in the mask.

comment 3y ago · link · parent

Those numbers are just for marketing. There is no feature on the chip that is actually 5 nm, 4 nm, or whatever.

comment 4y ago · link · parent

How is it that you need the screenshot? Doesn’t the app/backend keep records of matches?

comment 4y ago · link · parent

High school has sports and activities though. I know many families that use the sports team as if it were a day care. If they do sports the kids usually get out somewhere between 4:30 and 5:30. Where I live now, a lot of the high schoolers are in school 7:30-5:30. It’s pretty ridiculous, since they also have homework. Many high schools seem to be in the process of transforming themselves into juvenile prisons designed to keep teenagers away from the rest of society.
12