HNHacker News
TopNewBestAskShowJobs

dezgeg

2,900 karma · joined August 7, 2013

[ my public key: https://keybase.io/dezgeg; my proof: https://keybase.io/dezgeg/sigs/T97m4HN4fIeKVsJzfbIsXEgnHunf6ut9z2hZbtMU3BM ]
submissionscomments
dezgeg··on Starlink User Terminal Modchip
Are the Rx/tx protocols really that symmetrical that an UT can receive and decode transmission from another UT? Since for cellular networks that is definitely not the case.
dezgeg··on So today musl discovered a longstanding bug in Linux's ELF loader
Reporting bugs to the kernel bugzilla has high chance of being pointless. Most developers never use it. Needs to be posted to the mailing list (hardest part is locating the correct list).
dezgeg··on Why you can’t trust CPUID
I wonder if one could bind-mount some other proc file (say /proc/$EVIL_PID/cmdline) over cpuinfo to fake content. Would meet root and be visible in mount output though.
dezgeg··on Pcmcia Pico W Card
> The bigger deal for me would be this old laptop and card speaking WEP rather than WPA3.

As I understood, this is exactly helping with not having to use WEP. The Pico is simulating a NE2000 ethernet card, so any old pre-WPA Windows98 drivers are not used at all, but with the Pico doing ethernet-to-wifi conversion and WPA2 encryption.

dezgeg··on Finding the “second bug” in glibc’s condition variable
Using GNU Guix (the distribution) should be a logical and simple test-bed to see how exactly glibc/gcc pre-release would affect downstream packages.
dezgeg··on Crazy Thin ‘Deep Insert’ ATM Skimmers
Hm, where is it possible to enter the PIN that early? Everywhere I have seen the reader will only ask PIN once the full amount to be charged is known.
dezgeg··on Mtime comparison considered harmful (2018)
It would be neat if filesystems like btrfs or ZFS could expose their internal checksum of the file data to userspace, to quickly see if two files are having identical content (eg. think of rsync). (Assuming the hashes computed internally the filesystem are actually purely based on the file data, and not for example metadata like block pointers. But, dedup-capable filesystems should surely have such checksum internally...).
dezgeg··on Mtime comparison considered harmful (2018)
I suppose it's perfectly allowed for MacOS to simulate Unix hard link semantics (ie. names are just pointers to inodes, with each name being equal) even though the underlying filesystem doesn't have the name+inode split. It seems indeed this is the case on HFS+: https://developer.apple.com/library/archive/technotes/tn/tn1...
dezgeg··on Ushering out strlcpy()
It would not be a small change if you wanted to actually make them usable for the standard library - ie. add a second 'struct bytes'-variant of EVERY function that currently accepts a NUL-terminated string.

No, just calling a conversion function before (that would need heap allocation) would never be accepted by C programmers (for the overhead).

Then there is inertia - how many really would want to port their application to a different string type? Not to mention, all the libraries you're using would also have to been converted.

dezgeg··on Asahi Linux: July 2022 Release and Progress Report
The majority of a GPU driver doesn't live in the kernel, but in userspace (part of the Mesa library).
dezgeg··on PostScript Cartridge Plus for HP LaserJet III
I remember writing a Markov chain random text generator. I wonder what real world uses there would be for the rand command...
dezgeg··on The Linux kernel can spawn processes on its own
In those cases you mentioned the kernel has spawned a process loaded from normal ELF executable from filesystem, just like you could do with exec(). But in this bpfilter_umh case the executable is not coming from the filesystem but instead is embedded in the kernel itself. That seems to be quite new invention.
dezgeg··on CJSON – Ultralightweight JSON parser in ANSI C
CMake: The Good Parts (with apologies to PHP: The Good Parts https://twitter.com/tomnomnom/status/195304317601849344)

1. It's widely available (even on Windows). 2. It's not as bad as autotools.

dezgeg··on Pwnkit: Local Privilege Escalation in polkit's pkexec (CVE-2021-4034)
One trick to temporarily 'modify' read-only filesystems is to bind-mount something over it:

  sudo mount --bind /bin/false /usr/bin/pkexec
This will be gone over reboot, however.
dezgeg··on 3 lines of code shouldn't take all day
At least you are lucky enough to be able try changes yourself. I am in the "fun" situation where team of 50+ SW engineers don't have single piece of test equipment needed for operating the hardware, and everything has to be manually tested by some QA engineer, taking 1-2 hours minimum...
dezgeg··on Yamaha DX7 chip reverse-engineering, part 4: how algorithms are implemented
How much time does reverse engineering this kind of chip take?
dezgeg··on In C, how do you know if the dynamic allocation succeeded?
Hmm, I don't think that one would help with OOM killer termination either.
dezgeg··on size_t-to-int vulnerability in Linux’s filesystem layer
"Fortunately" there will be bigger problems than Rust on 128-bit machines - lots of UAPI structures in the Linux kernel have pointer size hardcoded to 64 bits.
dezgeg··on size_t-to-int vulnerability in Linux’s filesystem layer
It doesn't. They are in the end just typedefs to the basic types like int, long, etc.
dezgeg··on M1racles: An Apple M1 covert channel vulnerability
Couldn't there be another register that controls whether access to the problematic register in EL0 is allowed, though?
dezgeg··on Debug Programs by Modifying Them
In gdb you can put commands to be executed on a breakpoint; you can put necessary prints + continue statement there.
dezgeg··on The sound of the dialup, pictured (2012)
She is, but in the graphic it is written that the number being dialed is in the Pennsylvania.
dezgeg··on Linux Memory Management FAQ
Yes, VIRTUAL memory. Most operating systems (Windows, Linux) leave 2 or 3 GB for the user process and reserve the of the address space for themselves.

That way userspace-to-kernel switch does not require changing active page table (and also avoids switcharoo each time kernel needs to access userspace memory).

dezgeg··on 8 Bits Are Enough for a Version Number
If your target audience is C, packing 3 values into one might even be the easiest to reason about, you get a single value that you can compare with the usual < and > etc. operators.
dezgeg··on Fix Your Timestep
Yes, 3d era GTAs all have physics tied to the frame rate. The default setting on PC is to lock the frame rate to 30 or 25 fps (depends on which game) and you get problems if you disable that. This video shows some examples: https://www.youtube.com/watch?v=l0LwTzxhgyM
dezgeg··on But no, 80-column terminals in 2020 isn't “reasonable” any more
> unless the coding style also requires you to replace all (leading) sequences of N spaces with with a <TAB>, which is, IMO, quite brain-dead

It is brain-dead, but that is exactly what is required in many styles.

dezgeg··on But no, 80-column terminals in 2020 isn't “reasonable” any more
In practice you get problems, because of the line length rule.

I.e. if your editor is configured with four-space tabs and a line with one leading tab shows up in your editor having 79 characters, it will show up as 83 characters for others assuming the normal 8-space tabs thus breaking the line length rule.

Not to mention that coding style may require that function calls broken to 2 lines must have the arguments aligned at the opening parenthesis.

For example, breaking up foobarbaz(1, 2); into two lines would require having the second line start with <TAB><SPACE><SPACE>2); which would no longer look correct with 4-space tabs.

dezgeg··on Ask HN: When do you expect life will get back to “normal”?
Few weeks ago there were local reports of increased sales of teleconf gear (like webcams) thus companies and probably individuals have invested money in remote working gear. So I am hopeful that companies/people will want to get their money's worth of that equipment and keep using it.
dezgeg··on Ask HN: Was the Y2K crisis real?
BCD (Binary-coded decimal) comes to mind; which can store values 0-99 in one byte and with native support in older CPUs.
dezgeg··on Intel is changing the future of power supplies with its ATX12VO spec
Holding chips in reset is not the only thing that matters. Complex chips may have power-sequencing restrictions; for example 1.8V power rail might need to be up before 3.3V, otherwise the chip gets damaged.
← PreviousPage 10 of 14Next →