News for hackers. Stuff that matters.

IAmLiterallyAB

Re:.gitignore Everything by Default on Saturday September 05, 2026 @12:39PM (#49578213)
Use the -u flag instead of -a. Doesn't add new files, just existing ones.
Re:Memory Safe Inline Assembly on Sunday June 21, 2026 @11:31PM (#48625331)
Oops, you're right. I was thinking of those as nearly interchangeable but they're actually pretty different.

I might give it a try when I have a chance, I'll let you know if anything comes of it.

Re:Memory Safe Inline Assembly on Sunday June 21, 2026 @11:23PM (#48625290)
I wonder if an adversarial user could bypass the checks and achieve memory corruption / code execution. Maybe not a practical attack in most situations but a fun exercise.

> This includes things like asm volatile("" : : : "memory"), which is an old-school way of saying atomic_signal_fence(memory_order_seq_cst).

Not quite. AIUI, the first is just a barrier for the compiler, while the second is also a CPU memory barrier. Godbolt seems to confirm that.

https://godbolt.org/z/a844zKej8

Re:GNU IFUNC is the real culprit behind CVE-2024-3094 on Friday May 08, 2026 @12:38AM (#48058619)
Yes but at best their "solution" is equally secure, not any better.
That's a privacy violation, not relevant.
Re:The Three Pillars of JavaScript Bloat on Sunday March 22, 2026 @01:42AM (#47474801)
For the old version support. Why not do some compile time #ifdef SUPPORT_ES3? That way library writers can support it and if the user doesn't need it they can disable it at compile time and all the legacy code will be removed
It doesn't bypass it exactly, it's still accessing it via virtual memory and the page tables. It's just that the kernel maintains one big linear memory map of RAM that's writable.
Re:Programmable Cryptography on Monday March 02, 2026 @10:32PM (#47227652)
Citation needed. We don't even know if indistinguishability obfuscation is possible.
Re:Ghidra by NSA on Monday February 16, 2026 @10:53AM (#47036578)
And everyone uses Ghidra exclusively where I work. I'd say we're a serious operation
Amusing because gmail doesn't even follow spec. I had to workaround gmail quirks when I worked at an email company.

Better than outlook though. What a nightmare.

Re:Reports of Telnet's Death Have Been Greatly Exaggerated on Thursday February 12, 2026 @10:01AM (#46989688)
Half the time when people say they're using telnet (including in this thread) they're really just using the client as a TCP client, not doing anything with the Telnet protocol.

No one is stopping you from using the telnet client. And really you should just use netcat

Re:Secure erase for Samsung PM951 NVMe drive (2024) on Wednesday February 04, 2026 @11:49PM (#46895800)
That doesn't work on any* NAND flash device, be it a flash drive, NVME, SATA, whatever.

The block device you see is an abstraction provided by the SSD controller. In reality, the flash capacity is larger. Pages are swapped out for wear leveling. If a block goes bad, it'll be taken out of commission, and your data may hide in there.

All of this happens on the SSD controller. The kernel doesn't know. You have no way to directly erase or modify specific blocks.

*Okay, there are raw NAND flash chips without controllers, but that is not you're working with when you have a SSD or flash drive. If you do have a raw flash chip, you can more directly control flash contents.

Re:Secure erase for Samsung PM951 NVMe drive (2024) on Wednesday February 04, 2026 @11:35PM (#46895726)
To maximize device performance when wiping a drive to use for something else, I use nvme format with --ses=1.

Which in theory should free all of the blocks on the flash.

Really hard to find good documentation on this stuff. Doesn't help that 95% of internet articles just say "overwrite with zeroes" which is useless advice

Re:Secure erase for Samsung PM951 NVMe drive (2024) on Wednesday February 04, 2026 @11:26PM (#46895670)
As far as I know, there is NO way to securely erase a USB flash drive (barring some undocumented vendor specific commands that may exist).
Re:Show HN: TUI for managing XDG default applications on Monday January 26, 2026 @12:33AM (#46762187)
They explicitly check if the referrer is hackernews and do that.
Re:Gpg.fail on Saturday December 27, 2025 @03:14PM (#46404842)
Another hackernews hater checking the http referrer I'd guess
Re:If You're Going to Vibe Code, Why Not Do It in C? on Tuesday December 09, 2025 @09:44PM (#46213426)
Opus?
Re:Tiny Core Linux: a 23 MB Linux distro with graphical desktop on Saturday December 06, 2025 @05:42PM (#46177254)
Switch to an ILP32 ABI and you get a lot of that space back
Re:DXGI debugging: Microsoft put me on a list on Sunday September 21, 2025 @05:15PM (#45326714)
I don't know if it was filename exactly, but a similar story:

> Jon Ross, who wrote the original version of SimCity for Windows 3.x, told me that he accidentally left a bug in SimCity where he read memory that he had just freed. Yep. It worked fine on Windows 3.x, because the memory never went anywhere. Here’s the amazing part: On beta versions of Windows 95, SimCity wasn’t working in testing. Microsoft tracked down the bug and added specific code to Windows 95 that looks for SimCity. If it finds SimCity running, it runs the memory allocator in a special mode that doesn’t free memory right away. That’s the kind of obsession with backward compatibility that made people willing to upgrade to Windows 95.

https://www.joelonsoftware.com/2000/05/24/strategy-letter-ii...

Re:Kernel: Introduce Multikernel Architecture Support on Friday September 19, 2025 @07:25PM (#45308000)
What's preventing a compromised kernel on one core from hijacking the other cores? This doesn't seem like much of a security boundary
Re:Safe C++ proposal is not being continued on Saturday September 13, 2025 @06:07PM (#45235715)
My limited understanding is. There is no safe subset (That's what was just discontinued, profiles are the alternative.)

And C++ code simply doesn't have the necessary info to make safety decisions. Sean explains it better than I can https://www.circle-lang.org/draft-profiles.html

Maybe, but the first one was so incredible, why not play it first?
Re:Optimizing our way through Metroid on Sunday August 24, 2025 @11:24AM (#45004923)
It did remind me of that. Tom7 is a treasure
Re:Uv format: Code Formatting Comes to uv (experimentally) on Thursday August 21, 2025 @05:13PM (#44978172)
ty is already in the same repo as ruff, so integrating seems likely
Yeah this is the third programming language named Bolt that I'm aware of
Re:Generic Containers in C: Vec on Saturday July 26, 2025 @02:42PM (#44696142)
> we don't want vtables

Then don't use virtual functions. Then there will be no vtables.

You might have known that already, but in general I'm surprised how many engineers think that all C++ classes have vtables. No, most in fact do not. C++ classes generally have the same memory layout as a C struct as long as you don't use virtual functions.

Re:Death by a Thousand Slops on Monday July 14, 2025 @08:10AM (#44559203)
Minimum reputation to submit might help
Re:The JTAG in your Qualcomm/Snapdragon device's USB port on Tuesday July 01, 2025 @07:23PM (#44438849)
Been wanting to play with the citadel interface. Last time I looked at it there was 0 public information, but that was years ago. And if there still isn't, then it'll be a good excuse to RE

Also, the titan chip has been around since the Pixel 3 I believe, so "newer" might be a strong word :)

Older »