Better HN
topnewbestaskshowjobs
Log inSign up

geogriffin

119 karma · joined May 11, 2014 (12y ago) · 52 submissions

Submissions

comment 5y ago · link · parent

FWIW, you can write the conditional compilation example like so:

  fn read_keys(#[cfg(feature = "splitapple")]
               port: nrf52840_hal::pac::P1,
               #[cfg(feature = "keytron")]
               port: nrf52833_hal::pac::P0) -> Packet {}
I suppose the compiler could try to suggest that as a fix.

comment 5y ago · link · parent

Answering my own question.. A cryptographer friend offered an answer to this question: The network operator may be the same as or colluding with the target resolver, defeating the anonymization of the proxy.

Once we say we need encryption on the first hop, then I can see the logic in using a stateless protocol instead of TLS for the second hop, to avoid TLS-in-TLS and all the round trips associated with that.

Side note: It'd be cool if these new protocols used the more generic Noise Protocol Framework [1] instead of a custom, more specialized protocol they just came up with like HPKE [2].

[1] http://noiseprotocol.org/noise.html [2] https://www.ietf.org/id/draft-irtf-cfrg-hpke-06.txt

comment 5y ago · link · parent

Why encrypt the first hop? Why isn't this just plain DoH with a simple CONNECT forward proxy to 1.1.1.1, like Signal's Giphy proxy [1]?

[1] https://signal.org/blog/signal-and-giphy-update/

comment 6y ago · link · parent

The Plundervolt [1] paper is one study in what exactly goes haywire when a processor is undervolted. They found that the computation errors induced are quite consistent and reproducible. MUL and DIV are vulnerable, and AES-NI happened to be particularly badly broken in the face of undervolting.

[1] https://plundervolt.com/

comment 6y ago · link · parent

I think it's just more clear that they are listing pronouns, especially if someone isn't familiar with the practice or in verbal speech. Also note that some people use two sets of pronouns, with equal weight, and may list them such as "she/they".

comment 6y ago · link · parent

well.. there is CONFIG_PREEMPT and the even broader CONFIG_PREEMPT_RT in linux [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

comment 6y ago · link · parent

> After our investigation, we immediately made a number of changes to this endpoint so that it could no longer return specific account names in response to queries.

Does anyone know what this actually means? If the contact discovery API doesn't return a username, what does it do? If the answer is that it returns a user ID now instead of username, then presumably that can then be freely queried for the corresponding username..

comment 6y ago · link · parent

Phone numbers are useful for exactly the reasons you find them frustrating: stability -- as you said, everyone and everything you associate with can and will store and contact you via your phone number indefinitely -- and portability -- everyone accepts and understands phone numbers, modulo international dialing.

Sure, something could and maybe should replace phone numbers, as the system is definitely messy wrt international dialing and countries changing numbering plans.. But the thing that replaces phone numbers in their usefulness will bring the same frustrations you express.

Email has mostly the same characteristics, especially for non-computer-people. My parents were paying $10/mo for dialup up to ten years after switching to DSL and Gmail, just to keep their old email address. I bring that up not to point out the extortion -- email could theoretically have had address providers decoupled from hosting provider through DNS, if it had been made user-friendly -- but to point out the value in the stable identifier. I know this is an anecdote, but the story of AOL email is similar, that 2.5 million people [1] were still paying $20/mo for their dialup and bundled email when "some of whom" (sorry there's no better information on this) had since switched to a different ISP, but kept paying AOL to keep the email.

> I even had to send them a government issued photo ID recently so I could keep the number.

Governments will always want to link users to their stable identifiers. It's in their policing interest, for better or worse. Switching away from phone numbers will just shift the problem.

[1] https://consumerist.com/2013/08/08/believe-it-or-not-2-58-mi...

comment 6y ago · link · parent

> ... do not make it explicitly clear that the final solution sends a hash-prefixed password

I'm not sure if you're actually talking about something else, but the paper says: "Post-canonicalization, the server calculates a computationally expensive hash of both the canonical username and credential password... This 2-byte prefix—while leaking some bits of password material—provides the client with k-anonymity over the universe of all username and password pairs."

IOW, the 3-byte hash prefix sent is of the username and password concatenated. (Note that Google seems to have added another byte to the prefix versus the paper).

comment 7y ago · link · parent

> 2. It is regularly carried on - not really, there's only one .org domain so one can't regularly sell it.

You're right. I misread #2 as the inverse so misunderstood what UBI was.

> 3. It is not substantially related to furthering the exempt purpose of the organization - that one would be the toughest to prove...

Kinda a moot point given #2, but the IRS elaborates (emphasis mine), "... only when the conduct of the business activities has causal relationship to achieving exempt purposes (_other than through the production of income_)"

comment 7y ago · link · parent

Well, reading the IRS guidelines on what qualifies as UBI, it seems like it might fall under that category, but I'm also not an expert, which is why I'm asking for a more qualified opinion. However, assuming it's UBI, it's pretty clear to me that having a large percentage of their income this year being UBI would be a red flag to the IRS.

comment 7y ago · link · parent

I agree. Becoming and staying a non-profit is harder than you'd think. The IRS's rules are vague and subjective. This is specifically what I'm talking about: "If unrelated business income comprises a 'substantial' portion of an exempt organization's income, loss of tax-exempt status may result" [1].

[1] https://www.hurwitassociates.com/taxation-of-unrelated-busin...

comment 7y ago · link · parent

Does anyone have a clue if they'll manage to keep their 501(c)(3) status with $1.1 billion in profit for 2019? My understanding is that profits like this unrelated to their normal business activies are taxable, and may also cause the IRS to reconsider their non-profit status and/or levy penalties [1].

[1] https://www.irs.gov/charities-non-profits/unrelated-business...

comment 7y ago · link · parent

I see your point. Especially since cost-based KDFs rely on the predicted characteristics of future hardware.

comment 7y ago · link · parent

I think if my password is worth 17.5 trillion CPU seconds then I'm a very lucky person...

comment 7y ago · link · parent

Exactly, 1000 guesses per second is probably a reasonable target to tune your KDF's difficulty to, depending on of course the application and the amount of resources you're willing to dedicate to running the KDF on every login..

comment 7y ago · link · parent

If passphrases are easier to remember, then it may be possible for a human to be able to recall many such passphrases at the same time. If these passphrases are used for services with any sort of auth rate-limiting, and they aren't reused between services, then the difficulty of reversing their hashes isn't really a problem.

comment 7y ago · link · parent

Am I missing something, or is the reason most of the queries observed have low TTL because, well, they have a low TTL? IOW, the higher TTL responses would be cached downstream and so you'd see them less often. If that is the case, the distribution shown is not all that surprising.

comment 7y ago · link · parent

Doesn't something like jemalloc basically give you this, but without pauses? Thread-local freelists for quick recycling of small allocations without synchronization.. funnily enough, jemalloc even uses some garbage collection mechanisms internally.

comment 7y ago · link · parent

True, and it seems as though to avoid this kind of litigation Ticketmaster simply had to disclose more information about the purpose and intent of the fees in the fine print. I also remember them changing the name "processing fee" to "convenience charge" maybe 10 years ago as result of (maybe this) lawsuit, but I can't find anything about that now.

comment 7y ago · link · parent

> nothing says it has to be specifically earmarked for anything

Lawsuits in the US about deceptive fees like [1] come to mind.

[1] https://blog.ticketmaster.com/schlesinger-v-ticketmaster/

comment 7y ago · link · parent

I have ran into a couple places I needed GATs while writing abstractions, without realizing beforehand it'd lead to needing GATs. This is especially true with lifetimes, which I'm not used to thinking about as part of an abstraction.. I think it will naturally open up doors for everyone without anyone necessarily realizing it apriori.

comment 7y ago · link · parent

Looks like pretty good code, but interesting that they only have a few dependencies and decided to implement a lot of stuff, like kernel polling, themselves rather than using the mio crate. I wonder why.

They also implemented the noise handshake in a non-generic way tightly coupled to wireguard protocol, again written themselves instead of using an external dependency, which I think is also the approach other wireguard implementations have taken.. which is fine, but harder to independently verify. There's a lot of code there.

comment 8y ago · link · parent

My thought specifically was that "core networking code" is code that handles untrusted, unsolicited data potentially from the entire world, written in C, with special performance requirements that gives programmers a license to eliminate redundant bounds checks wherever possible..

comment 8y ago · link · parent

Pretty sure it was introduced here: https://github.com/apple/darwin-xnu/commit/c10988c130af09087...

In this commit a bunch of code was copy-pasted from BSD into ip_icmp.c in icmp_error() to quote IP packet data in icmp error responses. Unfortunately they forgot to copy a line from the BSD source which would prevent the overflow:

  icmplen = min(icmplen, M_TRAILINGSPACE(m) - sizeof(struct ip) - ICMP_MINLEN);
m is allocated with a fixed-length buffer (mbuf), which means without that line above we can overrun it:

  m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
Copy-paste programming in core networking code...

comment 8y ago · link · parent

Let's be precise; that Intel is enforcing enclave Launch Control is orthogonal to the SGX mechanism itself. Launch Control is a bane to end-users, like you said, and a pain to enclave creators (I had to talk to some random business development employee at Intel..) Intel has even specified a system for users to use their own Launch Control (or disable it) but that is not implemented in any actual chips.

comment 8y ago · link · parent

Agreed.

> Only the CPU (silicon or microcode) can assist you in the flushing of L1 when you exit enclave mode.

This seems correct, upon double-checking. The interrupt process within SGX is called Asynchronous Enclave Exit (AEX) and does not give the enclave an opportunity to run any code upon interrupt, though it is possible to run code upon every enclave entry (via code placed at the Asynchronous Entry Pointer). I'm not sure that would help with any speculation-based exploits, however.

comment 8y ago · link · parent

It looks like Intel is pushing these security-related patches pretty hard on vendors, as this latest patch was available in late May on one IBM board Softlayer uses, and early June on another Supermicro board they use.

comment 8y ago · link · parent

BIOS updates are required for most SGX-related microcode updates, as the microcode has to be up-to-date before enabling the SGX feature via a MSR (which is usually done by the BIOS). This is so you can't start an enclave with old microcode, exploit it, upgrade microcode, and still pass remote attestation.

Also, the more major spectre-related microcode updates have to be applied very early (in the BIOS) probably for technical reasons. For this latest microcode update, for example, Intel didn't even include it in their downloadable microcode package as you linked to. On my v6 Xeons, I was able to get to revision 0x84 with the latest OS microcode package, but 0x8e with a BIOS upgrade.

comment 8y ago · link · parent

SGX Remote Attestation was built specifically to deal with events like this. Intel starts to reject attesting to vulnerable microcode revisions after some period following disclosure. In this case, they even postponed disclosure until patched microcode revisions were available and those revisions already required for successful attesation.

If said SGX application wasn't built around this model then it's probably not a valid use case of SGX..

12