frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: How to handle kernel struct changes (e.g. iov_iter) in eBPF?

3•morolis•3h ago
I used the kernel vmlinux header file(6.10 version) from pwru to compile, but my actual kernel version was 6.6. the iov field name in iov_iter become an internal anonymous structure __iov file on kernel changing(6.10->6.6), so the led to that if I extracted and compiled according to the field name of version 6.10, I could not run in my current system, and vice versa. I would like to ask what is a more formal or official solution to deal with this change in kernel structure? My current solution is to directly customize two different versions of iov anonymous structures to judge whether two ways to obtain iov are compatible through bpf_core_field_exists.

Comments

morolis•2h ago
I define structt iov_iter___old and struct iov_iter___new, and then use bpf_core_field_exists(((struct iov_iter___new )0)->__iov) to judge whether to use struct iov_iter___new iter = (void )&msg->msg_iter or struct iov_iter___old iter = (void *)&msg->msg_iter
morolis•2h ago
I should add that I am in the kprobe tcp_sendmsg function and need to get the contents of the iov field in msg_iter.

Claude Guillemot, co-founder of Ubisoft, dies in plane crash

https://www.cbsnews.com/news/claude-guillemot-dies-age-69-ubisoft-assassins-creed/
1•iugtmkbdfil834•1m ago•0 comments

Floppy Disk Piracy: How Software Was Shared Before the Internet

https://comuniq.xyz/post?t=1280
1•01-_-•1m ago•0 comments

I improved my old project "ScoreCast" after 3 years

https://github.com/Costasgk/ScoreCast
1•costas_8•2m ago•1 comments

Dialog

https://dialog.org/
1•paulpauper•3m ago•0 comments

Are You in the Weights?

https://intheweights.com/p/peterboettke
1•paulpauper•3m ago•0 comments

Refik Anadol's Dataland, the first AI art museum

https://www.theartnewspaper.com/2026/06/18/refik-anadol-dataland-opens-los-angeles
1•paulpauper•4m ago•0 comments

AIPropel, AI-powered proposal generation for freelancers and agencies

https://www.aipropel.app/
1•omardakelbab1•5m ago•0 comments

Tangled: Knot-Stored Cob Proposal

https://leaflet.pub/p/did:plc:xasnlahkri4ewmbuzly2rlc5/3mmex6biynk2g
1•jeremyjh•5m ago•0 comments

That which is unique, breaks

https://map.simonsarris.com/p/that-which-is-unique-breaks
1•mmphosis•5m ago•0 comments

Shard your locks: benchmarking 6 Go cache designs

https://strebkov.dev/posts/shard-your-locks/
1•kluyg•6m ago•0 comments

You probably don't need event-driven architecture

https://openacme.org/blog/you-dont-need-event-driven
1•theanonymousone•6m ago•0 comments

I Stopped Trusting SSH Key Files

https://igorstechnoclub.com/why-i-stopped-trusting-ssh-key-files/
1•Tomte•10m ago•0 comments

How to Attract Bats to Your Backyard

https://www.batcon.org/bat-house-tips-tricks/
1•andsoitis•10m ago•0 comments

We built an internal data analytics agent

https://github.blog/ai-and-ml/github-copilot/how-we-built-an-internal-data-analytics-agent/
1•Brajeshwar•19m ago•0 comments

UHF X11: X11 Built for VisionOS and Apple Vision Pro

https://www.lispm.net/apps/uhf-x11/
2•zdw•19m ago•0 comments

Bun has an open PR adding shared-memory threads to JavaScriptCore

https://github.com/oven-sh/WebKit/pull/249
3•gr4vityWall•21m ago•0 comments

Lena Walks

https://www.nomadicmatt.com/
2•docscannerss•21m ago•0 comments

SMPTE Makes Its Standards Freely Accessible

https://www.smpte.org/blog/smpte-makes-its-standards-freely-accessible-openingstandards-library-t...
10•zdw•22m ago•1 comments

Before SpaceX IPO, investors in China acquired stakes

https://www.propublica.org/article/spacex-elon-musk-ipo-foreign-investors-china
1•joozio•22m ago•0 comments

Ember, a native iOS Hacker News reader I built around accessibility

https://github.com/DatanoiseTV/ember-hackernews
5•sylwester•23m ago•1 comments

Hoog: Europe Is Losing [video]

https://www.youtube.com/watch?v=C84Lnyv0gTs
1•Klaster_1•23m ago•0 comments

How I Work

https://www3.nccu.edu.tw/~jthuang/krugman.html
1•jruohonen•24m ago•0 comments

Kagi Small Web

https://github.com/kagisearch/smallweb
1•dgellow•24m ago•1 comments

A Single Cobalt Shock Could Trigger Global EV Battery Supply Chaos

https://www.sciencedaily.com/releases/2026/06/260619101402.htm
2•karakoram•28m ago•0 comments

The frontier is open-source today

https://www.southbridge.ai/blog/offmute-v2-glm-vs-opus
3•hrishi•31m ago•1 comments

Hand-powered LLM (YouTube) [video]

https://www.youtube.com/watch?v=HSapdLYpmWY
2•mcchen51•31m ago•0 comments

Every DFU Button Is a Failure

https://umi.engineering/blogs/engineering/every-dfu-button-is-a-failure
2•liamkinne•34m ago•0 comments

Palmier-pro: macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
3•nateb2022•35m ago•0 comments

Venice proposes hiking entry fee to €50

https://www.euronews.com/travel/2026/06/19/would-you-pay-50-to-visit-venice-new-mayor-is-pushing-...
2•Markoff•37m ago•0 comments

Show HN: Lil Apps

https://lilapp.us/
2•marcuskaz•40m ago•0 comments