frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Calling a function in C without naming it

https://wiro.world/posts/calling-c-func-without-naming-it/
18•birdculture•6h ago

Comments

Kevin_Flynn•5h ago
Because we know our code is compiled with ASan, we chose to leak the offset between printf, a function that is always allowed, and mmap, a function that gives us arbitrary assembly code execution. We can thus bypass the school's checks and call any syscall, in our case execve to get shell access.

We did not investigate further and simply reported this possible issue to the school.

I see no trivial way of patching this.

The flaw seems to be in the submission system.

The submission system could build/relink your code to a trampoline library with the body of each function to be banned replaced with error reporting and abort. In your example, it would trap:

  char *code =
    notmmap.fn(NULL, 4096, PROT_READ | PROT_WRITE | PROT_EXEC,
               MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
and prevent you from using the PROT_EXEC flag during the execution phase of submission validation.

According to AI, on linux: "... a seccomp-BPF filter applied to each process before it starts running the program. It can inspect the prot argument to mmap and return EPERM when PROT_EXEC is set."

Additionally, on linux: "systemd offers MemoryDenyWriteExecute=yes for services. That is less restrictive than banning every executable mapping: it targets writable+executable mappings and related ways of making memory executable. "

( IF ... i read the article correctly )

ps. Submit the proposed solutions to your department head or other authority figure who may throw you some sort of bone such that your status in life improves.

And then afterwards remind yourself that you are in school. We are all, always, in school. V

hyperhello•4h ago
I don’t know how your school system works, but are you sure they put you in the right educational level?
rurban•1h ago
Inline asm is disallowed? That would be much easier
PeterWhittaker•31m ago
Sounds like the school needs to wrap things in a seccomp denylist. Potentially non-trivial, but potentially interesting.

Whistle: Speech to Text in 16.9 MB

https://cactuscompute.com/blog/whistle
282•gmays•3h ago•73 comments

The value of not getting to the point (2015)

https://ken.arneson.name/2015/11/the-value-of-not-getting-to-the-point/
40•NaOH•1h ago•10 comments

Theranos.World

https://www.theranos.world/
37•kbyatnal•2h ago•12 comments

Show HN: Making a flexible "neon" t-shirt with LED filaments

http://scottbezek.blogspot.com/2026/10/making-flexible-neon-t-shirt-with-leds.html
29•scottbez1•3h ago•6 comments

Show HN: K10s – A Clickable Kubernetes TUI (Go, Bubble Tea)

https://github.com/p10node/k10s
48•pierreneter•1h ago•30 comments

Why isn't the industry freaking out about DeepSeek 4.1 Flash?

https://www.dgt.is/blog/2026-10-07-deepseek-freek-out/
78•jonotime•20h ago•61 comments

Step 5 Preview, a 1M-context MoE from StepFun, shows up on OpenRouter

https://openrouter.ai/stepfun/step-5-preview
56•AnneWodell•4h ago•20 comments

A Terminal Protocol for Program Status (OSC 7501)

https://mitchellh.com/writing/program-status-osc7501
23•mfiguiere•1d ago•3 comments

Man discovers his parents' coffee machine used 1TB of data in 10 days

https://www.dexerto.com/entertainment/man-discovers-his-parents-coffee-machine-used-1tb-of-data-i...
130•ck2•1d ago•63 comments

OpenAI annualised revenues $20B less than previously signalled

https://www.cnbc.com/2026/10/08/open-ai-revenue-nvidia-oracle-coreweave.html
262•mfiguiere•3h ago•160 comments

ETH-68: Ethernet Audio Interface for Linux

https://naturalsystems.io/eth68
23•chabad360•1d ago•4 comments

A 5.3M-year-old deep-sea whale necropolis in the Diamantina Zone

https://www.nature.com/articles/s41586-026-10546-z
29•bryanrasmussen•1d ago•0 comments

Beauty in DVD Menus

https://vale.rocks/posts/dvd-menus
206•speckx•7h ago•131 comments

I hired an illustrator to draw my house. Now it's my Home Assistant dashboard

https://antonfrolov.substack.com/p/i-hired-an-illustrator-to-draw-my
117•soheilpro•1d ago•6 comments

“Math 2.0” will need to value mathematical progress more holistically

https://mathstodon.xyz/@tao/117395269325940185
576•ent101•15h ago•598 comments

DuckDB Ducklake

https://github.com/duckdb/ducklake
62•saikatsg•1d ago•5 comments

Trump administration is suspending Microsoft from a green card program

https://apnews.com/article/h1b-visa-program-vance-microsoft-e7b3a407f822702b269ee277d21343ea
697•alephnerd•5h ago•1188 comments

OLED burn-in test: 30-month update

https://www.techspot.com/article/3178-oled-burn-in-test/
44•baal80spam•9h ago•22 comments

Archaeologists Are Reconstructing the 'Invisible' Technologies of the Stone Age

https://www.smithsonianmag.com/science-nature/archaeologists-are-reconstructing-the-invisible-tec...
76•Hooke•23h ago•39 comments

I gave Opus 5.5 one prompt and six hours to visualize Invisible Cities

https://quesma.com/blog/invisible-cities-one-shot/
307•stared•8h ago•158 comments

License update: AI derivation prohibited on all my art, lore, stories, comics

https://www.davidrevoy.com/article1178/license-update-ai-derivation-prohibited-on-all-my-art-lore...
25•frizlab•41m ago•11 comments

The dawn of the age of the exoskeleton

https://theconversation.com/the-dawn-of-the-age-of-the-exoskeleton-281804
18•speckx•1d ago•3 comments

Show HN: I Put an AI Agent on a Nokia 110

https://github.com/anupray95/AI-Agent-on-a-NOKIA
19•anupray•6h ago•5 comments

Show HN: Rgpu – a PyTorch device whose tensors live on a remote GPU

https://github.com/ymcrcat/rgpu
12•boxstream•1d ago•1 comments

New CRAM method offers giant boost to compressed memory reads

https://www.tomshardware.com/software/linux/new-linux-tech-compresses-memory-in-ram-as-ram-for-45...
37•danny00•7h ago•16 comments

Tell HN: I've been paying for a rural Tanzanian's education for 10 years

599•lukehandcool•5h ago•166 comments

Vitalik Buterin backs crypto ‘bunker mode’ amid rapid AI math advances

https://cointelegraph.com/news/justin-drake-urges-crypto-bunker-mode-as-ai-could-break-wallet-sec...
31•firstcomm•1h ago•11 comments

Orkut.com

https://orkut.com/
98•andreynering•6h ago•71 comments

Vanillin provides a sweet solution for chronic wound healing

https://news.flinders.edu.au/blog/2026/10/06/vanillin-provides-a-sweet-solution-for-chronic-wound...
15•geox•8h ago•1 comments

The Slow Formation of Durable Software

https://newsletter.dancohen.org/archive/the-slow-formation-of-durable-software/
222•benbreen•2d ago•98 comments