• 0 Posts
  • 49 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle
  • The article doesn’t clearly explain how all of these fit together, but here’s what I think they mean happens:

    • Attacker tries to connect on a user account that should not accept a password, ie the user’s hash is “*”.
    • This should be outright rejected (“*” means no password login), but because of the point you highlighted, it just grabs a random salt and tries to calculate the password hash anyway.
    • The password is too long so it gets automatically rejected… with the magic value “*”.
    • User hash is “*” and the “calculated” hash is also “*”, so login accepted.

    Without the “fix” of using another user’s salt, the process would fail immediately for a password-less account. Note that the other user’s salt never plays a role in the calculation because the password is too long and the hash function doesn’t bother calculating it. But it’s the reason execution continues and allows the rest of the bad behaviors to accept the login.

    In hindsight, the mistakes are pretty silly. They shouldn’t actually care if the hash matched the user’s hash if they are one the codepath that is only performing the hash to waste time. Long passwords should be rejected earlier as invalid user inputs instead of reaching the hash functions. These decisions are basically saying “I’m going to do something stupid, but it shouldn’t affect anything because the other parts of the code are surely not doing something stupid at the same time”. It’s obvious why this design philosophy didn’t scale.


  • The article is full of dishonest nonsense. It compares file sizes without comparing features. Well, actually it’s blatantly lying by saying that the setups have the “same functionality” when they clearly do not. For example, systemd-homed supports encrypted home directories which is potentially a useful feature for shared PCs, but the non-systemd setup uses nothing for managing /home, so it takes 0 bytes. NetworkManager has a size of “N/A” apparently. It looks like there should be notes or citations but they’re missing. They’re archived here if you’re interested, but it’s just a bunch of upstream URLs; this doesn’t show us what the author is comparing.

    The other related point is also nonsense:

    We can evaluate the “systemd isn’t monolithic” claim based on how it’s packaged and distributed.

    Well, no. We can evaluate how distros package systemd, not what systemd is or isn’t. The author uses Arch Linux to show that a systemd-based setup requires 36MB. But as the article itself states, arch linux puts every single binary into a single package. Not mentioned in the article is how Arch Linux also bundles other stuff most people don’t need in the packages, like header files, programming manual pages, completions for various shells, default configurations not part of systemd etc. Is the non-systemd setup done in the same way or is the author manually installing 6 executables and calling it “equivalent”? We can’t know because one the one side we have a real (worst-case) example of Arch Linux packaging systemd, and on the other side we have “to get the same functionality without systemd, a distribution could use”.

    None of this illustrates any waste of space on the entire Debian Stable mirror if you’re worried about that. In fact the bundling of systemd component into a small number of packages saves space for Debian (though it potentially wastes space for your PC).


  • Given equal scaling speed

    This is already not the case for computers. And you’re trying to argue that we might one day be able to run the bigger models on consumer hardware, but I said it’s too expensive to train them. And you know that the cost isn’t just the RAM right?

    Sure, my saying they will “always” be tied to concentrated capital is slightly hyperbolic. You never know. But it takes a whole lot of optimism to hope that LLMs will be decoupled from the billionaire class, hence why most analyses of the problems LLMs cause discuss them in this context.


  • This is mostly true, but you’re glossing over the fact that AI will always be tied to concentrated capital due to the cost of training state of the art models. I understand why you argue that these flaws are not inherent to the technology, but in a practical sense, they might as well be considered inherent. It’s unlikely that the market will open up any time soon so that you can get your LLM from someone who isn’t a fascist billionaire tech bro.


  • There’s no reason to be rude and insulting. It doesn’t make the other person look lazy; it just makes you look bad, especially when you end up being wrong because you didn’t do any research either. The article is garbage. It’s obviously written by someone who wants to talk about why they don’t like bcachefs, which would be fine, but they make it look like that’s why Linus wanted to remove bcachefs, which is a blatant lie.

    Despite this, it has become clear that BcacheFS is rather unstable, with frequent and extensive patches being submitted to the point where [Linus Torvalds] in August of last year pushed back against it, as well as expressing regret for merging BcacheFS into mainline Linux.

    But if we click on the article’s own source in the quote we see the message (emphasis mine):

    Yeah, no, enough is enough. The last pull was already big.

    This is too big, it touches non-bcachefs stuff, and it’s not even remotely some kind of regression.

    At some point “fix something” just turns into development, and this is that point.

    Nobody sane uses bcachefs and expects it to be stable, so every single user is an experimental site.

    The bcachefs patches have become these kinds of "lots of development during the release cycles rather than before it", to the point where I’m starting to regret merging bcachefs.

    If bcachefs can’t work sanely within the normal upstream kernel release schedule, maybe it shouldn’t be in the normal upstream kernel.

    This is getting beyond ridiculous.

    Stability has absolutely nothing to do with it. On the contrary, bcachefs is explicitly expected to be unstable. The entire thing is about the developer, Kent Overstreet, refusing to follow the linux development schedule and pushing features during a period where strictly bug fixes are allowed. This point is reiterated in the rest of the thread if anyone is having doubts about whether it is stated clearly enough in the above message alone.






  • <package>.install scripts which don’t have to be explicitly mentioned in the PKGBUILD if it shares the same name as the package.

    Can you show a reproducible example of this? I couldn’t get a <package>.install included in a test package I made without explicitly adding it as install=<package>.install.

    Most people claim they read the PKGBUILD (which I don’t believe tbh)

    If you don’t trust people to read PKGBUILD’s I’m curious which form of software installation (outside of official repositories) you find safe.





  • So the SSD is hiding extra, inaccessible, cells. How does blkdiscard help? Either the blocks are accessible, or they aren’t. How are you getting a the hidden cells with blkdiscard?

    The idea is that blkdiscard will tell the SSD’s own controller to zero out everything. The controller can actually access all blocks regardless of what it exposes to your OS. But will it do it? Who knows?

    I feel that, unless you know the SDD supports secure trim, or you always use -z, dd is safer, since blkdiscard can give you a false sense of security, and TRIM adds no assurances about wiping those hidden cells.

    After reading all of this I would just do both… Each method fails in different ways so their sum might be better than either in isolation.

    But the actual solution is to always encrypt all of your storage. Then you don’t have to worry about this mess.


  • I don’t see how attempting to over-write would help. The additional blocks are not addressable on the OS side. dd will exit because it reached the end of the visible device space but blocks will remain untouched internally.

    The Arch wiki says blkdiscard -z is equivalent to running dd if=/dev/zero.

    Where does it say that? Here it seems to support the opposite. The linked paper says that two passes worked “in most cases”, but the results are unreliable. On one drive they found 1GB of data to have survived 20 passes.




  • You don’t have to trust Drew, though. Vaxry is pretty clear on his stance on the subject.

    if I run a discord server around cultivating tomatoes, I should not exclude people based on their political beliefs, unless they use my discord server to spread those views.

    which means even if they are literally adolf hitler, I shouldn’t care, as long as they don’t post about gassing people on my server

    that is inclusivity

    Source: https://blog.vaxry.net/articles/2023-inclusiveActivists

    Note how this article is not where he first stated the above. This article is where he doubles down on the above statement in the face of criticism. In the rest of the article he presents nazism as an opinion people might have that you disagree with. He argues that his silent acceptance of nazis is the morally correct stance while inclusive communities are toxic actually.

    This means that it’s not just Drew or the FDO who are arguing that Vaxry’s complete lack of political stance is creating safe spaces for fascists. It’s Vaxry himself that explicitly states this is happening and that it’s intentional on his part.


  • C is pretty much the standard for FFI, you can use C libraries with Rust and Redox even has their own C standard library implementation.

    Right, but I’m talking specifically about a kernel which supports building parts of it in C. Rust as a language supports this but you also have to set up all your processes (building, testing, doc generation) to work with a mixed code base. To be clear, I don’t image that this part is that hard. When I called this a “more ambitious” approach, I was mostly referring to the effort of maintaining forks of linux drivers and API compatibility.

    Linux does not have a stable kernel API as far as I know, only userspace API & ABI compatibility is guaranteed.

    Ugh, I forgot about that. I wonder how much effort it would be to keep up with the linux API changes. I guess it depends on how many linux drivers you would use, since you don’t need 100% API compatibility. You only need whatever is used by the drivers you care about.