Re: Rust kernel policy

Danilo Krummrich
2025-02-21T12:16:27Z

On Thu, Feb 20, 2025 at 04:39:58PM -0800, Linus Torvalds wrote:
> Honestly, what you have been doing is basically saying "as a DMA
> maintainer I control what the DMA code is used for".
>
> And that is not how *any* of this works.
>
> What's next? Saying that particular drivers can't do DMA, because you
> don't like that device, and as a DMA maintainer you control who can
> use the DMA code?

[...]

> So let me be very clear: if you as a maintainer feel that you control
> who or what can use your code, YOU ARE WRONG.

When I added you to the original thread [1], it was exactly to get some
clarification on this specific point.

In my perception, a lot (if not all) of the subsequent discussions evolved
around different aspects, while this specific one is not even limited to Rust in
the kernel.

Hence, I'm happy to see this clarified from your side; it was still a remaining
concern from my side, regardless of whether the PR in question will make it or
not.

However, I also want to clarify that I think that maintainers *do* have a veto
when it comes to how the API they maintain is used in the kernel. For instance,
when an API is abused for things it has not been designed for, which may hurt
the kernel as a whole.

But as mentioned previously, I do not think that this veto can be justified with
personal preference, etc.

- Danilo

[1] https://lore.kernel.org/lkml/Z5qeoqRZKjiR1YAD@pollux/