[PATCH] rust: security: use `pin_init::zeroed()` for LSM context initialization
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Sun Jan 25 19:27:26 UTC 2026
On Sat, Nov 29, 2025 at 2:57 PM Atharv Dubey <atharvd440 at gmail.com> wrote:
>
> Replace the previous `unsafe { core::mem::zeroed() }` initialization of
> `bindings::lsm_context` with `pin_init::zeroed()`.
>
> Link: https://github.com/Rust-for-Linux/linux/issues/1189
> Signed-off-by: Atharv Dubey <atharvd440 at gmail.com>
These were also sent by Benno, and in the issue he mentions
"re-sending", which usually means just adding your Signed-off-by below
his:
https://lore.kernel.org/all/20250814093046.2071971-1-lossin@kernel.org/
Otherwise, if he is OK without authorship, this should most likely have:
Suggested-by: Benno Lossin <lossin at kernel.org>
Cheers,
Miguel
More information about the Linux-security-module-archive
mailing list