Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
krilovsky
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
krilovsky
2y ago
> You are hilariously hostile here, I don't get it. I apologise if it came out hostile. That was not my intention. I was in a bit of hurry when I made the edit, and I just trying to expand my comment in response to your edit, and ex
2.
▲
by
krilovsky
2y ago
> Again, you miss the point. 95%+ of Linux systems are single disk. That's the expected case. I specifically added ENOSPC as an example that's relevant on single disk systems as well. Regardless, I thought we were talking about
3.
▲
by
krilovsky
2y ago
> Yes it does. Your point about signal handlers is why I'm right If it's not a single disk system, not necessarily. To give you a concrete example: a process that writes logs to a disk dedicated for log collection can simply ig
4.
▲
by
krilovsky
2y ago
> Generally the assumption is that userspace will treat -EIO as fatal A single bad disk doesn't make the situation fatal (unless that's the only disk in your system, in which case you're not even guaranteed to have your si
5.
▲
by
krilovsky
2y ago
You're assuming here that mmap is only used for writing, where TFA is actually describing a read-only scenario, in which case EIO is synchronous as the read can't be completed. As for the triviality of writing a SIGBUS handler cor
6.
▲
by
krilovsky
2y ago
Yes, on POSIX systems you'd get a SIGBUS if the I/O fails or if there's no available physical memory to back the mapping.
7.
▲
by
krilovsky
3y ago
No argument there, though I'm not sure why you feel that the delivery date is the relevant metric in the context of the Milk-V Mars which has only been announced and isn't even available for preorder yet.
8.
▲
by
krilovsky
3y ago
This is definitely not the first RISC-V SBC at this size (the Sipeed Nezha SBC[0] launched over two years ago based on the Allwinner D1, and the ARIES FIVEBerry[1] launched almost a month ago based on the Renesas RZ/Five). It's no
9.
▲
Redis is replacing RocksDB with Speedb in RoF
(twitter.com)
6 points
by
krilovsky
5y ago
|
0 comments
10.
▲
by
krilovsky
5y ago
Note: while it is based on MariaDB, it replaces InnoDB (the MariaDB/MySQL storage engine) with MyRocks (which is based on RocksDB), and as a consequence it is missing some features (such as foreign keys[1]) that prevent it from being u
11.
▲
by
krilovsky
6y ago
Well it shouldn't be used for toy projects either with all of that hackery that it pulls (even if you don't use atomics, violating alignment requirements alone means that your code can never make use of vector instructions). The n
12.
▲
by
krilovsky
6y ago
From a cursory look, this is one of the most unsafe pieces of code I have seen, with complete disregard to memory alignment requirements and the lifetime of temporary objects passed as arguments to functions. Definitely don't use this
13.
▲
by
krilovsky
6y ago
See my reply in the sibling comment thread. Basically, the second attack is not possible without the first succeeding.
14.
▲
by
krilovsky
6y ago
> 3.4 Attack 2: Breaking Authenticity > With the first attack, the FPGA can be used to decrypt arbitrary blocks. Hence, it can also be seen as a decryption oracle. Thus,we can also use this oracle to encrypt a bitstream, as shown by R
15.
▲
by
krilovsky
6y ago
While I understand that without the proper context (knowing a bit about bitstream protection in the Xilinx 7-Series FPGAs) my comment may seem a bit obscure, I did read the paper. As the sibling comment mentions, the attack requires program
16.
▲
by
krilovsky
6y ago
I don't know what the best prctices are now, but it used to be best practice to blow the CFG_AES_Only eFUSE when using bitstream protection, which prevents the loading of a bitstream which isn't authenticated, and thus foils this
17.
▲
by
krilovsky
7y ago
Unfortunately I don't know of any project in the area of open source basebands. There was OsmocomBB for GSM, which used the TI Calypso chipset, but I'm not aware of any such efforts for 3G/4G.
18.
▲
by
krilovsky
7y ago
Huh? I didn't say that wasn't a cool project. On the contrary, I think this is a great project even if it was all closed source. Maybe I should have clarified that I just meant to highlight the fact it's almost impossible to
19.
▲
by
krilovsky
7y ago
It's very cool indeed, even if it was all closed source :)
20.
▲
by
krilovsky
7y ago
Except it's not "just" a 3G baseband chip. That chip[0] runs a closed source software that even contains a Lua interpreter. That's a proprietary binary blob that I don't know what it does, so this is not something t
21.
▲
by
krilovsky
7y ago
Calling this open source is a bit of a stretch. At the heart of this phone there is a huge proprietary dependency (the Adafruit FONA module).
22.
▲
by
krilovsky
7y ago
No, it should be easy to get the entry point since it's defined in the ELF file header. The author simply tried to look for the `_start` symbol, which failed because the binary doesn't contain any symbol information (also the entr
23.
▲
Cvec2: A Generic, Type-Safe, Resizable Array Library in ANSI C
(github.com)
4 points
by
krilovsky
7y ago
|
0 comments
24.
▲
by
krilovsky
7y ago
I'm not the author. I'm just fascinated with size optimisations and I thought that it was an interesting achievement. But yes, the simplest optimisation is to not write code that you don't need to. I've had my fair share
25.
▲
LeanChess: The smallest chess-playing program at 328 bytes
(leanchess.github.io)
4 points
by
krilovsky
7y ago
|
5 comments