Re: [Bug report] kernel BUG at include/linux/scatterlist.h

Herbert Xu
2024-11-29T08:03:23Z

On Fri, Nov 29, 2024 at 08:54:35AM +0100, Lukas Wunner wrote:
>
> I'm proposing an optimized approach which auto-detects whether
> duplicating into the linear map is actually necessary:
>
> https://lore.kernel.org/r/3de5d373c86dcaa5abc36f501c1398c4fbf05f2f.1732865109.git.lukas@wunner.de/

No this is not going to work. Linux runs on many platforms,
there is no portable way of doing DMA over arbitrary kernel
memory.

Only memory specifically allocated for DMA is safe to use in
an SG list.

Since you're refusing to fix this I'll take care of it.

Cheers,