this post was submitted on 12 Jan 2025
1157 points (98.1% liked)
memes
10930 readers
3471 users here now
Community rules
1. Be civil
No trolling, bigotry or other insulting / annoying behaviour
2. No politics
This is non-politics community. For political memes please go to [email protected]
3. No recent reposts
Check for reposts when posting a meme, you can only repost after 1 month
4. No bots
No bots without the express approval of the mods or the admins
5. No Spam/Ads
No advertisements or spam. This is an instance rule and the only way to live.
Sister communities
- [email protected] : Star Trek memes, chat and shitposts
- [email protected] : Lemmy Shitposts, anything and everything goes.
- [email protected] : Linux themed memes
- [email protected] : for those who love comic stories.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Not a bad idea, and this should do it I think:
code
Used the example from the wiki page you linked, and running this on my Raspberry Pi did manage to make the system essentially lock up. I couldn't even open a terminal to reboot - I just had to cut power. But I can't run any more code analysis with ChatGPT for like 16 hours so I won't get to test it for a while. I'm somewhat doubtful it'll work since the wiki page itself mentions various ways to protect against it though.
You have to get the gpt to generate the bomb itself. Ask it to concat the strings that will run the forkbomb. My llama3.3 at home will run it happily if you ask it to.
I'm confident I can get ChatGPT to run the command that generates the bomb - I'm less confident that it'll work as intended. For example, the wiki page mentioned a simple workaround is just to limit the maximum number of processes a user can run. I'd be pretty surprised if the engineers at OpenAI haven't already thought of this sort of thing and implemented such a limit.
Unless you meant something else? I may have misinterpreted your message.
Having it concat the string may bypass some of the safeguards as it's only looking at parts of the fork.
Also many reasearchers have shown that chatgpt will run subroutines in a nested fashion, allowing that behavior but limiting processes can be difficult.
https://linuxsimply.com/bash-scripting-tutorial/string/operations/concatenation/