Risks
Risks
Posted Sep 30, 2025 10:30 UTC (Tue) by patrakov (subscriber, #97174)Parent article: Bcachefs removed from the mainline kernel
Here I see the risk of the mainline kernel reverting the changes in other subsystems, because they might no longer have an in-tree user. Am I paranoid? What's the Bcachefs project's position on this risk if it is material - are they going to adapt, or go back to telling the user to compile their tree, as opposed to compiling just their module against an existing kernel?
Posted Sep 30, 2025 16:45 UTC (Tue)
by georgh-cat (guest, #158897)
[Link]
Posted Oct 1, 2025 1:07 UTC (Wed)
by neilbrown (subscriber, #359)
[Link] (1 responses)
Posted Oct 2, 2025 12:34 UTC (Thu)
by aakef (subscriber, #38030)
[Link]
Posted Oct 1, 2025 10:08 UTC (Wed)
by tux3 (subscriber, #101245)
[Link] (2 responses)
ZFS's compatibility layer used to call kallsyms_lookup_name (years before that was unexported).
And sometimes it's not an option. Systemtap wouldn't be viable if it could only lookup exported symbols, so they hack around it with the kernel text base and relocations:
Hard to predict whether bcachefs will be given the "ZFS treatment", but I imagine there's three paths in response.
Posted Oct 1, 2025 21:47 UTC (Wed)
by gioele (subscriber, #61675)
[Link] (1 responses)
In case anybody is wondering where this text comes from (I could not find any references to this passage via Google Search or DuckDuckGo), it is from `[systemtap]/staprun/staprun.c` (<https://sourceware.org/git/?p=systemtap.git;a=blob;f=stap...>). The PR mentioned in the comment can be seen at <https://sourceware.org/git/?p=systemtap.git;a=commit;h=1e...>.
Posted Oct 3, 2025 10:11 UTC (Fri)
by ferringb (subscriber, #20752)
[Link]
Risks
Risks
I wonder how long until someone decides to remove that because there are no users.
Risks
Risks
They managed to remove all uses of it, although my slightly caricaturistic view of ZFS is that of a monolith that transcends all layer boundaries and is more than happy to implement their own deeply integrated features (ARC, etc) instead of importing an existing interface. That's not how I see bcachefs, although it does have plenty of integrated features.
> We do this under protest. The kernel ought expose this data to
> modules such as ourselves, but instead the upstream community
> continually shrinks its module-facing interfaces, including this
> stuff, even when users exist.
> PR26074: as of kernel 5.7+ / commit 0bd476e6c671 and under further
> protest, we must also send the address of kallsyms_lookup_name and
> kallsyms_for_each_symbol.
Try to workaround the missing symbol, go back in tree, or fight a cat-and-mouse game to keep DKMS.
systemtap kallsyms_lookup_name
>> We do this under protest. The kernel ought expose this data to
>> modules such as ourselves, but instead the upstream community
>> continually shrinks its module-facing interfaces, including this
>> stuff, even when users exist.
>> PR26074: as of kernel 5.7+ / commit 0bd476e6c671 and under further
>> protest, we must also send the address of kallsyms_lookup_name and
>> kallsyms_for_each_symbol.
systemtap kallsyms_lookup_name
