Re: [PATCHv3] gpio: virtio: remove one kcalloc
From: Linus Walleij
Date: Mon Mar 16 2026 - 10:12:03 EST
On Fri, Mar 13, 2026 at 7:30 AM Rosen Penev <rosenp@xxxxxxxxx> wrote:
> > I wonder if it is worth it anymore. Why combining allocations is better when we
> > are ending up using more memory ?
> No idea. That's what maintainers suggested for some unknown reason.
This YouTube seminar by Kees Cook and Gustavo Silva explains
exactly why we want this:
https://www.youtube.com/watch?v=V2kzptQG5_A
As mentioned briefly in my reply to Viresh, it brings some of the same
features that Rust has to the kernel C dialect.
This is done to avoid what we call undefined behaviour.
Yours,
Linus Walleij