News for hackers. Stuff that matters.
Re:macOS 14.4 causes JVM crashes by destring on Sunday March 17, 2024 @07:20AM (#39733635)
As Linus famously said: Shut. Up. Don’t break userspace and then blame the user.

https://lkml.org/lkml/2012/12/23/75

Re:macOS 14.4 causes JVM crashes by stephenr on Sunday March 17, 2024 @08:03AM (#39733869)
I feel like preventing illegal writes to protected memory is less "breaking user space" and more "protecting all space".

This is like arguing to allow the guy who can't drive and just pin-balls his way down the freeway bouncing of other cars, because to prevent him from driving would be to take away his personal freedoms.

Re:macOS 14.4 causes JVM crashes by jvmboi on Sunday March 17, 2024 @08:50AM (#39734141)
There was no conceivable version of a road system where that behavior would ever be okay. However, it's not only conceivable but, apparently standard practice in systems programming, to "Try and Fail" instead of "Only Proceed if allowed".

So, if we want a tortured metaphor what JVM is doing is like trying to pass a turnstile to see if the pass is still valid so that on the happy path it saves the extra check. Now Apple decided that instead of just showing a red X and letting you buy a new pass, in the future you get shot in the back of the head if you try with an invalid pass.

Re:macOS 14.4 causes JVM crashes by stephenr on Sunday March 17, 2024 @01:05PM (#39735943)
> There was no conceivable version of a road system where that behavior would ever be okay.

That doesn't mean it doesn't happen.

Are you suggesting that the approach taken here was at one point a documented acceptable approach, according to Apple?

Re:macOS 14.4 causes JVM crashes by kaba0 on Monday March 18, 2024 @07:02AM (#39742424)
According to UNIX, which MacOS is certified of being.
Re:macOS 14.4 causes JVM crashes by snotrockets on Monday March 18, 2024 @04:59PM (#39749942)
Can't find it in SuSv3 (but that's thing, like all UNIX manuals, is a monstrosity): https://pubs.opengroup.org/onlinepubs/9299959899/toc.pdf
Re:macOS 14.4 causes JVM crashes by extraduder_ire on Sunday March 17, 2024 @09:43AM (#39734434)
Linux did break adobe flash when it used memmove like memcopy after fixing a kernel bug. Can't think of any other examples though.
Re:macOS 14.4 causes JVM crashes by saurik on Sunday March 17, 2024 @11:23AM (#39735055)
Well, everyone breaks Adobe Flash... that's the whispered exception at the end of the rule: "don't break userspace and then blame the user (unless that user is Adobe Flash... F--- Adobe Flash)" ;P.
Re:macOS 14.4 causes JVM crashes by vbezhenar on Monday March 18, 2024 @03:41AM (#39741286)
AFAIR it was glibc change and Linux kernel had nothing to do with it.
Re:macOS 14.4 causes JVM crashes by thayne on Monday March 25, 2024 @12:51PM (#39818563)
memmove and memcpy don't use a syscall, that would be very inefficient. How would a kernel fix change the behavior?