On 5/5/25 07:12, Alexey Kardashevskiy wrote: > Allocate a 88 byte request structure on stack and skip needless > kzalloc/kfree. Could you maybe take a closer look at _all_ of these rather than poking at them one at a time? snp_guest_request_ioctl, for example, looks to be ~32 bytes. Why fix 'struct snp_guest_req' and leave an even worse offender? Or, maybe just be done with it and convert them all over to __free(). Yeah, some of them don't need to be kmalloc(), but kmalloc()s are cheap and consistency is nice, like in the attached patch. It also wouldn't be awful to mix stack and kmalloc() allocations, especially when the freeing semantics are the same for stack and __free()-annotated allocations. But it would be really nice to completely eliminate the goto mess.