Better HN
topnewbestaskshowjobs
Log inSign up

TD-Linux

4,829 karma · joined Jan 31, 2014 (12y ago) · 1,177 submissions

Submissions

comment 9y ago · link · parent

It does. Here's example output from me_cleaner.py, which removes non-essential modules and allows you to reflash with modified firmware:

  rbe          (Huffman     , 0x007cc0 - 0x00a380): NOT removed, essential
  kernel       (Huffman     , 0x00a380 - 0x019f40): NOT removed, essential
  syslib       (Huffman     , 0x019f40 - 0x02cf40): NOT removed, essential
  bup          (Huffman     , 0x02cf40 - 0x055d40): NOT removed, essential
  pm           (Huffman     , 0x055d40 - 0x059740): removed
  vfs          (Huffman     , 0x059740 - 0x066880): removed
  evtdisp      (Huffman     , 0x066880 - 0x069300): removed
  loadmgr      (Huffman     , 0x069300 - 0x06dec0): removed
  busdrv       (Huffman     , 0x06dec0 - 0x071700): removed
  gpio         (Huffman     , 0x071700 - 0x0738c0): removed
  prtc         (Huffman     , 0x0738c0 - 0x074c00): removed
  policy       (Huffman     , 0x074c00 - 0x07fa40): removed
  crypto       (Huffman     , 0x07fa40 - 0x09a680): removed
  heci         (LZMA/uncomp., 0x09a680 - 0x09e580): removed
  storage      (Huffman     , 0x09e580 - 0x0a4b00): removed
  pmdrv        (Huffman     , 0x0a4b00 - 0x0a6700): removed
  maestro      (Huffman     , 0x0a6700 - 0x0ab600): removed
  fpf          (Huffman     , 0x0ab600 - 0x0add40): removed
  hci          (LZMA/uncomp., 0x0add40 - 0x0ae600): removed
  fwupdate     (LZMA/uncomp., 0x0ae600 - 0x0b3140): removed
  ptt          (LZMA/uncomp., 0x0b3140 - 0x0c82c0): removed
  touch_fw     (LZMA/uncomp., 0x0c82c0 - 0x133000): removed
Unfortunately we know little about these modules other than their name and size.

comment 9y ago · link · parent

I have had pretty good luck running me_cleaner on various computers - the main difficulty is the hardware access to the SPI flash, but once you have that it's not too difficult, and low risk because you can always flash a backup of the original back on.

It is a bit unfortunate that all we can do is disable some modules or set the HAP bit without knowing exactly what has been neutralized, but it's certainly far better than the extremely limited control Intel provides the user over the ME.

It will be interesting to see if Intel tries to make this more difficult with future iterations (it will certainly be even more suspicious if they do).

comment 9y ago · link · parent

Every Thinkpad I've run me_cleaner on so far has had the full suite of ME modules loaded.

214.

Bulletproofs: Efficient Range Proofs for Confidential Transactions [pdf](eprint.iacr.org ↗)

3 points · by TD-Linux · 9y ago · discuss

comment 9y ago · link · parent

Does it? To use the IOMMU for VFIO, I had to explicitly enable it via a kernel parameter.

comment 9y ago · link · parent

The Bitfinex hack was due to getting enough parties of the multiparty signature to sign it (e.g. by stealing 2 out of 3 keys, or taking advantage of insufficiently secure automatic signing systems), not an issue with the contract itself.

comment 9y ago · link · parent

This is effectively the announcement of discontinuation of software, and anything relating to that is usually signed. For example, Bitcoin Core release notes are signed when sent out via email, the binaries are reproducibly built and signed many times, and most git commits are signed by their author (and all merge commits are): https://github.com/bitcoin/bitcoin/commits/master

comment 9y ago · link · parent

Jeff Garzik was the only author of btc1, the primary 2x implementation. For it to survive for any length of time, someone needs to step up and take over code maintainership.

comment 9y ago · link · parent

One of the Ethereum founders (Gavin Wood) lost the proceeds from their recent ICO to this bug. So, very good friends?

comment 9y ago · link · parent

>If they used a library instead of a contract, this wouldn't have been possible.

It's actually the opposite, using a library allowed this to break all the wallets using it. However, an Ethereum "library" isn't what you'd expect a software "library" to be - it's an executable contract that just is never supposed to be executed directly. But oops, nothing prevented that from happening.

The concept of everyone using a common, well-audited contract makes sense though. Virtually all Bitcoin multisignature transactions use the same script construction and it has never been hacked, despite being much older.

comment 9y ago · link · parent

You can use Janus for this - it's a server daemon that you can blast plain RTP to, and it will relay it to all connected WebRTC clients.

comment 9y ago · link · parent

Probably the worst outcome is easier 51% attacks: https://en.bitcoin.it/wiki/Majority_attack

Note that from this perspective, a mining pool is effectively a single miner - so a Serbian miner might not actually help, depending which pool it's attached to.

comment 9y ago · link · parent

If a proof of work solution is economically valuable to solve, the hashrate will just increase to the point where it's just marginally profitable again.

comment 9y ago · link · parent

No one has yet created a Proof of Stake system that offers the same guarantees that Proof of Work offers. In fact, there are arguments that it's not possible [1]

You can implement any feature you want in Bitcoin, but for a feature like this (hard fork), you need to convince all users to upgrade. I think it's really unlikely you could sell a switch that drastic in Bitcoin land, especially considering the current unknowns.

[1] https://download.wpsoftware.net/bitcoin/pos.pdf

comment 9y ago · link · parent

One suggested way to use it is to basically make a "jet" for every existing Bitcoin Script [1]. Then you compose a script make exclusively of these jets and it's no worse than Bitcoin Script. Of course, I think that there's probably better solutions than that.

[1] https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2017...

comment 9y ago · link · parent

I don't know if ASN.1 is turing complete, but I don't think Simplicity can handle arbitrary depth recursion, either. Luckily, to parse a BER coded certificate, you only need a fixed depth.

Of course, if you are actually parsing BER in a smart contract, you should really reconsider what life choices brought you to this point :) But it might be useful for a non-blockchain related crypto library.

227.

Simplicity: A New Language for Blockchains [pdf](blockstream.com ↗)

300 points · by TD-Linux · 9y ago · 95 comments

comment 9y ago · link · parent

Oh, this requires server modifications too? I had thought it was only client-side.

If that's the case then it makes it especially useless for the smart contract oracle use case. If you're going to have to change the server anyway, you may as well make it offer very tiny signed messages instead. You could even use secp256k1 and make it directly compatible with Bitcoin.

comment 9y ago · link · parent

On the wheel, it's unsprung mass. That extra mass hurts the ability to the wheel & suspension to quickly respond to bumps, and causes energy to be lost into the suspension and tire.

It's even a problem on trains - early electric trains had connecting rods between the motors and wheels just like steam trains. Later ones have the motors in the bogeys, but the motors are sprung and can swivel on the same axis as the drive gear.

comment 9y ago · link · parent

It also requires the motors to be larger because motor size mostly corresponds with torque output, not power output, and there is no gear reduction.

However, it also avoids a lot of weight due to the lack of gearbox and axles, and efficiency losses in the gears. It can make sense especially in applications that require lower power output - for example virtually all solar cars use hub motors for efficiency.

comment 9y ago · link · parent

So, this basically has two parts as far as I can tell:

1. "signing" the contents of a TLS session (proving that they happened)

2. putting this on the blockchain

I can kind of see the utility of (1), but why (2)?

comment 9y ago · link · parent

In fact, in Firefox it works without creating the extension.

comment 9y ago · link · parent

In the case with audio, it might be the opposite - even with a modern audio codec like Opus, an Apple CPU can decode an entire song into RAM in a fraction of a second. At that point, the CPU has to wake up anyway to download another song from Spotify or read one from disk.

comment 9y ago · link · parent

Indeed, several good examples of these DSPs are the Qualcomm Hexagon and the VideoCore IV, the latter of which has a 64x64 register bank, and is largely reverse engineered so you can actually figure out how it works [1]. They are really good for highly serial per-block operations, such as video encoding and decoding. They would also work OK for stuff like large convolutions, which is what I kind of imagine the IPUs are for, but not really significantly better than a GPU (the low serial latency is wasted).

I did find the original source to the Ars article [2] and it says that each IPU core has 512 ALUs. This seems more like a extremely wide GPU than the VPU. It also seems to be programmable in Halide [3], which presents a more "SIMT"-like interface, just like a GPU shader. It probably lacks the super fast bilinear texture mapping units that a GPU has, but otherwise seems very similar. It'd be interesting to know if the texture/pixel cache is handled automatically, or manually with a large register file like the VPU.

The article also features this quote, which also seems to back Google being unsatisfied with only high level access to the GPU:

>A key ingredient to the IPU’s efficiency is the tight coupling of hardware and software—our software controls many more details of the hardware than in a typical processor.

It would be really awesome if they opened this chip up to third party developers. Unfortunately the press release only mentions availability in the Camera API so far, relegating it to the same opaque blob status as all the other dedicated image processors :(

[1] https://github.com/hermanhermitage/videocoreiv/wiki/VideoCor...

[2] https://blog.google/products/pixel/pixel-visual-core-image-p...

[3] http://halide-lang.org/

comment 9y ago · link · parent

I'm a little bit confused too - all the operations they describe are usually quite fast on a GPU.

I wonder if it's not so much about being better at image processing, but having control and direct access to the hardware. For the Adreno, you have to go through Qualcomm's drivers and are subject to their limitations (there is freedreno which works great, but I don't think Qualcomm allows it on handsets). You're also stuck with the sizes of GPU that are available on Snapdragon SoCs - if you want a larger one, too bad.

comment 9y ago · link · parent

The fan's frame is plenty strong to hold it up. The only issue I see is that a baffle or case would better direct the air, allowing a lower speed fan. However, the amount of air movement required here is exceedingly small already, as can be seen by their fanless heatsink already meeting the 85C requirement.

comment 9y ago · link · parent

STUN allows all sorts of hole-punching for cases where both peers are behind NATs. For cases where the hole-punching doesn't work (a user behind two NATs might be one case), you can use TURN which is a dumb UDP or TCP relay.

comment 9y ago · link · parent

That's probably a bad idea - miners target profits. There was a lot of oscillation in hashrate when BCH split - and it had a lot less support. It briefly exceeded Bitcoin's hashrate. http://fork.lol/pow/hashrate

comment 9y ago · link · parent

You could do this with Bitcoin too. You would just send Bitcoin to an address, with an OP_RETURN with the coordinates and a hash of the pixel values you put there. Only the first one would "win". The Ethereum contract does have the feature that you effectively get your money back if you're not first - a transaction that tries to take already-taken pixels is invalid. You could implement this today on Bitcoin with HTLCs and zk-SNARKs, but there might be a simpler solution that I'm not immediately thinking of.

comment 9y ago · link · parent

Arduino sketches don't have a "project file" to list which .c files to compile, so instead you just include all the code into one compilation unit. This works fine as most projects don't take long to compile anyway.
1
789
40