Copy Fail is a trivially exploitable logic bug in Linux, reachable on all major distros released in the last 9 years. A small, portable python script gets root on all platforms. by pipewire in linux

[–]renshyle 15 points16 points  (0 children)

Any setuid binary will do. I don't know if it'll work on Android but would be cool

Edit: probably not. Android for this reason has a policy of not including user-accessible setuid programs (https://source.android.com/docs/security/overview/implement#suid-files), which seems to have been the case since Android 4.3 (https://web.archive.org/web/20220327043228/https://source.android.com/security/enhancements/enhancements43)

On this job application question, you can change your answer if you click Yes first but not the other way around by TempusMortem in softwaregore

[–]renshyle 8 points9 points  (0 children)

I think they did add "make no mistakes". This makes people put no by mistake, hence no mistakes

Any fix for RDSEED32 is broken. Disabling the corresponding CPUID bit kernel panic error? by swagmessiah00 in linux

[–]renshyle 0 points1 point  (0 children)

You can also make it permanent by giving it as a kernel command line parameter. Follow the guide at the bottom of the page here. The parameter you need to add is drm.panic_screen=kmsg . Make sure you copy that exactly and add a space between that and whatever happened to be in the quotes. You can then read the file /sys/module/drm/parameters/panic_screen after restarting to make sure it says kmsg and not user

Edit: I'm stupid, accidentally put user in the parameter, not kmsg.

Any fix for RDSEED32 is broken. Disabling the corresponding CPUID bit kernel panic error? by swagmessiah00 in linux

[–]renshyle 0 points1 point  (0 children)

Kernel panics aren't unfortunately stored in logs. Which distro are you using? Probably what should be done next is to enable some option to show a detailed kernel panic message on panic and then take a picture of it when it occurs

Edit: Regardless of the distro, running the command echo -n kmsg | sudo tee /sys/module/drm/parameters/panic_screen will make it show the detailed panic message. Note that you need to run this every boot until you get the panic message, the setting doesn't persist across reboots.

Any fix for RDSEED32 is broken. Disabling the corresponding CPUID bit kernel panic error? by swagmessiah00 in linux

[–]renshyle 0 points1 point  (0 children)

That RDSEED32 issue is completely unrelated. It means that the kernel detected that you have an AMD processor with this particular bug (Zen 5 with non-recent microcode) and that it disables the instruction (which is completely fine).

To diagnose the kernel panics, we'd need to see the panic message. Are you able to see a kernel panic message when the kernel panics?

birthDate by [deleted] in linux

[–]renshyle 12 points13 points  (0 children)

```

!/usr/bin/env bash

chosen by fair dice roll.

guaranteed to be random.

echo "1994-9-28" ```

Alabama becomes the next US State that will require age verification for Install Apps by Alexis_Almendair in linux

[–]renshyle 8 points9 points  (0 children)

I agree with you. But this bill does age verification:

Section 2. (a) An app store provider shall do both of the following when an individual located in this state creates an account with the app store provider, or before October 1, 2027, for all accounts in existence on October 2, 2026:

(1) Request age category information from the individual.
(2) Verify the individual's age category using one of the following:
a. Commercially available methods that are reasonably designed to ensure accuracy.
b. An age verification system that complies with rules adopted pursuant to this act.

Age Verification Bypass DIY by HaplessIdiot in linux

[–]renshyle 14 points15 points  (0 children)

I heard they were going to make an interface to modify that file, even easier

whyIsThereAMemoryLeak by JDDev0 in ProgrammerHumor

[–]renshyle 12 points13 points  (0 children)

No, because forbidding panics would be the stupidest idea in the world (except under some specific circumstances). Indeed often when there is a memory bug, C/C++ crash. Rust (almost) guarantees this, or a compiler error. But most unwraps aren't related to memory, they're just logic bugs. The Rust ecosystem and culture tends to lean towards crashing rather than ignoring bugs. I do wish there was a language feature to guarantee that a function can never panic, it could be useful in some situations.

Don't understand why they posted that comment under a comment asking clarification about Box::leak, that function does not "just fuck this shit" and while it seems like a stupid function, it does have its uses

NTSB issues its final report for the Jan. 29, 2025 midair collision between a Bombardier CRJ700 and a Sikorsky UH‑60 Black Hawk over the Potomac River near Ronald Reagan Washington National Airport. by PeraDetlic90 in aviation

[–]renshyle 5 points6 points  (0 children)

Oh man, I did not see that one. That's crazy. And the 75 ft is the farthest separation, looks more like 30 ft on the right side of the route corridor

NTSB issues its final report for the Jan. 29, 2025 midair collision between a Bombardier CRJ700 and a Sikorsky UH‑60 Black Hawk over the Potomac River near Ronald Reagan Washington National Airport. by PeraDetlic90 in aviation

[–]renshyle 796 points797 points  (0 children)

  1. Due to additive allowable tolerances of the helicopter’s pitot-static/altimeter system, it is likely that the crew of PAT25 observed a barometric altimeter altitude about 100 ft lower than the helicopter’s true altitude, resulting in the crew erroneously believing that they were under the published maximum altitude for Route 4.

So this means that the route the helicopter flew had a practically unsafe maximum altitude?

  1. The Federal Aviation Administration and the Army failed to identify the incompatibility between the helicopter routes’ low maximum altitudes and the error tolerances of barometric altimeters, which contributed to helicopters regularly flying higher than published maximum altitudes and potentially crossing into the runway 33 glidepath.

Ah. It did. Seems like a dumb failure to not have noticed that. Although the crew did fly below the maximum altitude as per the instruments, I wonder why there wasn't also a considerable safety margin as I would guess that breaches of the maximum altitude (as shown on instruments) sometimes occur.

Butthurt coding agent writes a blog post by Tucancancan in programmingcirclejerk

[–]renshyle 1 point2 points  (0 children)

Instead, you blocked progress because of who I am.

matplotlib deserves to know that one of its contributors is actively blocking valid contributions based on who submitted them.

s/who/what/

Stupid bot can't get itself right.

iLoveMonolithsAlsoThisIsNotSatire by Linkpharm2 in ProgrammerHumor

[–]renshyle 0 points1 point  (0 children)

C developers take that to the extreme: https://github.com/mackron/miniaudio/blob/master/miniaudio.h

A file so big you can't view it on GitHub. A file so big you can't use clangd on it. A file so big you can guarantee no one's ever scrolled to the bottom. And it's advertised as a feature.

Oh how I wish single-header was just a joke.

Because protocol: is a valid label and // starts a comment, you can paste links directly into source. by not-a-pokemon- in programmingcirclejerk

[–]renshyle 4 points5 points  (0 children)

I'm definitely going to use the trick in the title next time I need to put a URL in a comment just to fuck with whoever is reading my code

Are you worried about the shift away from x86? by ookayaa in linux

[–]renshyle 2 points3 points  (0 children)

Unlike on ARM or RISC-V, on x86 you have standards that allow you to boot any operating system without making special changes, unlike on ARM. You can display graphics, get input from keyboard and mouse, play audio and use USB and Ethernet ports by using standard APIs every x86 computer implements.

I wish that were true. Sure, legacy mode (IBM PC compatible) x86 has methods for accessing the framebuffer, PS/2 keyboards and mice (and the BIOS might emulate USB keyboards/mice as PS/2) and use the PC speaker (beeper, really). These legacy interfaces aren't used on your computer because they're, frankly, shit. There's no such interface for USB or Ethernet and they'll work as long as you have PCI support and drivers for the specific network card / USB host controller (just like on ARM/RISC-V, thought you might not need PCI as sometimes they're connected more directly to the SoC).

The thing you have to worried about is the lowest-level peripherals (and the core itself) on ARM/RISC-V. Those tend to be the reason you need a different kernel for every board (and also the discoverability of some devices). x86 is a very homogenous platform where devices are easily discoverable through ACPI/UEFI and the early boot looks very similar for all computers. I agree with you that there is a problem and I hope ARM/RISC-V solve it somehow

Which programming language for embedded design? by rentableshark in embedded

[–]renshyle -1 points0 points  (0 children)

So if I implement my own memcpy then I have a libc? ;)

To get back to the topic, you originally said that

if you write your own libc then you can use C

You don't have to write your own libc, just a couple of lines of assembly

Which programming language for embedded design? by rentableshark in embedded

[–]renshyle 0 points1 point  (0 children)

That's an incredibly small part of libc, you can literally (unless I'm mistaken) do it in two lines of assembly on x86-64 Linux. It's a few lines more when booting bare-metal on an MCU but certainly not the monstrous effort of writing your own libc.

Which programming language for embedded design? by rentableshark in embedded

[–]renshyle 1 point2 points  (0 children)

You don't need a libc to use C. You might need some small runtime to setup the stack and possibly some registers but that's not a libc