Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 8y ago · link · parent

this still seems off to me.

I get that the victim process' branch prediction can be messed with. But if my victim process is:

   password = "password"
   secret = "magic BTC wallet secret key"
   while True:
       password_attempt = input()
       if constant_time_compare(password, password_attempt):
           print(secret)
And my input is something like:

   result = ""
   while sys.stdin.peek() not in ['\n', EOF]:
      result += sys.stdin.get()
Then at no point is the victim program really exposing any pointer logic, so not even the victim process will be accessing the `secret` during execution, let alone the hostile process.

The examples given all include arrays provided by the hostile program, and some indexing into the arrays. I definitely see this being an issue in syscalls, but if that's the scope of this, I wouldn't call Spectre a "hardware bug" any more than other timing attacks would be hardware bugs.

comment 8y ago · link · parent

Market capitalism is a tool that lets you pay the person living in the countryside less.

But we are the ones who decide whether paying the countryside person less is "fair". The moral weight of our actions are mostly independent of what a free market gives.

The market is a tool, not the objective.

comment 8y ago · link · parent

This is mitigatable if the attacker process can't send a memory address to the victim process, right? Even if you can poke at the memory for cache prediciton misses, if you can't control what the victim process accesses, it seems harder to exploit.

We're all talking about how Spectre is this magic "get access to any memory from any process". But it looks to me like it's a new class of attack, that still requires specific entry points for the software you're trying to attack.

I'd like to be proven wrong on this, but it _feels_ like this is more of a software thing like other timing bugs. In theory you can write software that isn't vulnerable

EDIT: my reading of the "JS Spectre implementation" is "JIT code runs in the process of the browser + you can write JS code to read the process's own memory". I can imagine messiness with extensions (1Password in particular).

comment 8y ago · link · parent

Reading over this.... it sounds like ultimately the exploit in Linux still only works thanks to being able to run stuff in the kernel context through eBPF?

The first section states that even with the branch prediction you still need to be in the same memory context to be able to read other process's memory through this. But eBPF lets you run JIT'd code in the kernel context.

I guess this JITing is also the issue with the web browsers, where you end up getting access to the entire browser process memory.

But ultimately the dangerous code is still code that got a "privilege upgrade"? the packet filter code for eBPF, and the JIT'd JS in the browser exploit?

So if our software _never_ brought user's code into the kernel space, then we would be a bit safer here? For example if eBPF worked in... kernel space, but a different kernel space from the main stuff? And Site Isolation in Chrome?

comment 8y ago · link · parent

would be interesting to look at public companies where server costs going up 20% would kill their profit margins.

comment 8y ago · link · parent

I've found that this doesn't have to be the case.

Continuous deployment is a good example where this doesn't hold. You roll out things more quickly... and you experience less issues!

When issues happen, the cause is easier to isolate. After all, you only had one day's worth of changes (and not one year's worth). The previous state is more knowable. Testing is more concentrated.

Apple's new OS releases are the opposite of this. They release 30 different major changes at once, they all collide, and we end up just assuming that .0 releases will be broken.

In an alternate universe, Apple just releases updates to parts of software when it's ready. They don't pin Safari to the OS (because there's not much of a technical reason to). They could pinpoint _when_ "Month 13" started showing up everywhere beyond "when everyone downloaded that 7 gig update".

It takes some effort and tooling, but if you're expecting to make changes, a lot of times making the changes piecemeal will mean that post-release stability will increase in many cases.

comment 8y ago · link · parent

So these people are good enough to work in our jobs , with skills that are, by definition, hard to find in the US.

It sounds like these people should be fast tracked for citizenship, given that they would be filling a gap in the country's skillsets.

If we invite them to move to the country, it seems fair to not kick them out for no good reason.

comment 8y ago · link · parent

A bit pedantic but that XKCD doesn't apply if your standard is an overlay to another standard, for the most part.

USB2 didn't fragment the "USB standards " space, because USB1 devices work on it.

comment 8y ago · link · parent

I really wish that someone would do the right thing and fix H-1B by attaching the visa to the person, not the job/employer.

That would help fix sooo many of the objections to this program. But perhaps most importantly it would mean people on this visa would not be indentured servants , with the possibility of visa revocation hanging over them.

comment 8y ago · link · parent

I just read the RaiBlocks white paper and it seems really interesting!

The one thing I didn't see in the paper is how you can make sure that other users have logs of your account. Bitcoin gives transaction fees as a way to pay for your stuff to be in the data, but how would I make sure mine is tracked?

comment 8y ago · link · parent

Serious question: what about PayPal?

comment 8y ago · link · parent

why do people save money?

Big purchases, sure. But also as a safety net. As a retirement fund. To help send their kids to college.

The bit extreme extension to this is that if society had strong enough safety nets for everyone, nobody would need savings at all.

comment 8y ago · link · parent

Double taxation doesn't mean anything in this context.

We tax transactions, not specific euros. Income tax when an employer pays their employee. Inheritance tax once the money goes from the deceased to the heirs.

These are separate things! And no different than, say, VAT on that iPhone. Sure it's between family members , but in the vast majority of cases all parties are independent adults.

The land you inherit is not "justly yours". It was the previous owner's thing. You are getting it but it is not your divine right, except that you won the birth lottery by being born into this family.

Of course a lot of families also have smaller domains, and it makes since to have some lower limit... But let's not forget people affected by inheritance tax are overwhelmingly very rich. Most of the population ends up with nothing.

comment 8y ago · link · parent

Sure, some damage might have been done. But this feels pretty orthogonal, more of a problem of newspaper interests or simply the difficulty of cutting down text into smaller pieces.

We all should be making sure we're hearing stuff properly. I don't think many of these things are _really_ about misunderstanding, but it has happened.

Inversely, just because the speaker says "I meant X, but I didn't mean for it to offend" doesn't completely absolve the person. The words have meanings, and if you want to share you ideas, it's important to do it properly (just like you should know how to drive before going out there with your car).

comment 8y ago · link · parent

> Speech is the one thing that can equalize rich and poor, and has the ability to evaporate decades of work and reputation.

I feel like this is a bit of a passive way of saying this.

If someone says something, _they said it_. It evaporates their reputation because _they did something_.

And when saying things, it's to communicate the idea to others. I don't really think that speech exists in a vacuum. If you know saying something to somebody could offend them, you're kinda signing up to the criticism.

It feels like a lot of the essay is trying to say "we should listen to other people with controversial opinions." We were doing this in another domain for a while, with sexism.

A lot of us have just nodded and grimaced when our coworkers would make "those comments". When we'd see the berating of female colleagues. Even the words already had such an obvious effect.

I'm not saying "ban bad speech", but I do think as society we should be reinforcing the fact that words _are_ important, especially in this political climate. And that people are responsible for what they say. And... you can always apologize and change! And the world will be better for it.

comment 8y ago · link · parent

Same boat. Also got rid of Twitter app.

Now just to block HN most hours of the day...

comment 8y ago · link · parent

>I think that a pretty big chunk of Trump's votes came from people who would otherwise not have voted for him...but did so because they sensed, correctly, that their thoughts, ideas and voices were being marginalized (and demonized) by progressives.

I read that as "we wouldn't vote for Trump, but did anyways because of how progressives see us". Maybe I misread this.

comment 8y ago · link · parent

Well I suppose both are possible, and it's on a case by case basis.

If I put on my website terms of service "please don't try to go everywhere" , and then you do... seems like you did _something_.

I don't really get what sort of stuff is enforceable, though.

comment 8y ago · link · parent

The real life equivalent of this is "if I leave my door unlocked, should someone be allowed to walk in anyways?"

I would definitely want some intent provisions in, but saying something is accessible therefore free game seems too wide.

comment 8y ago · link · parent

I don't mean to be trite, but are you saying this person voted for Trump to "own the libs"?

Doing something out of spite like that is a pretty miserable experience...

comment 8y ago · link · parent

Many universities ban weapons research on ethical grounds.

Researchers are responsible for what they work on just like implementers are (though the nuances are different).

comment 8y ago · link · parent

It's not about it conflicting with beliefs, it's about the article not being from a worthwhile source.

It's downvoted for the same reason puff pieces on some random startup are. It's basically advertising.

(I do not know whether this site in particular actually is a propaganda outfit, but that's how the logic goes if it were)

comment 8y ago · link · parent

It's still their product? I don't see how price has anything to do with legitimacy of license agreements

comment 8y ago · link · parent

It'd be fine if this were actually a territorial system.

Dropbox develops its software in the US, markets from the US, does basically everything in the US. Yet for some reason service payments goes to Dropbox Ireland.

It's not representative of reality, and neither is Apple profits not going back to the US headquarters. The work was done in the US, the profit is going to be handed back to the shareholders. The R&D is in the US. The only thing Apple Japan (for example) is doing is reselling Apple US stuff. There's no real reason for the local subsidiary to book the entire profit.

There's a reason people find this problematic. It's because it's a tax game not representative of what's happening in the real world.

comment 8y ago · link · parent

Seems to me like Patreon partnering with someone like Paypal would be the best bet in the long run.

Have deposits, and transaction fee-less transfers, since everything would happen within Paypal/some bank.

comment 8y ago · link · parent

The pedantic response:

- if 1 BTC were $100 trillion, then it's clearly passed the fundamentals of "being a unit of exchange between commercial entities", since it would be way more than what any form of exchange would ever require.

The truth behind the pedantic answer:

- if it's a store of value, then the "fundamental" value is the amount of fiat that's gone into the system so far. If all the exchanges have roughly $100 in USD deposits, the base value of their bitcoin deposits will be at least $100, roughly.

- If it's as a means of transactions, then the fundamentals are linked to how much transaction volume is going on. For example the flow of USD into BTC and vice-versa. BTC <-> BTC exchanges in that universe probably help to define things as well, as it would be used as an alternative to USD.

The dollars don't come from nowhere, so there's at least some base numbers you can think about. Thinking of it as "USD going into the ecosystem" and "USD going out" is a good proxy for now I think. Obviously very fluid, though.

comment 8y ago · link · parent

For sure the "we've implemented this in Chrome already" aspect is a huge aspect in the standards process.

I do think it's important to say that this isn't a sure-fire deal. We had stuff like NaCl (native code in the browser) that basically died off, and other options as well.

Inversely, SPDY is not what the standard is, and Google instead pulled stuff it learned into HTTP/2. This seems like a positive aspect to me.

It's important to be wary of things that Google won't bring up, but overall I feel like we're getting a lot of benefit from having an implementer "beta test" stuff in this way.

comment 8y ago · link · parent

If you advertise on a video, you are giving the creator of the video money.

There is no stronger endorsement.

comment 8y ago · link · parent

I think the idea is that the best libraries for a language rely on the good parts of the language, so using those libraries will help you discover those.

For example, you have jQuery, which will expose you to DOM interactions, callback-style programming and even promises.

1
118119120
225