aboutsummaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator.rs
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2024-07-08 22:07:21 +0200
committerGreg Kroah-Hartman <[email protected]>2024-07-10 09:35:09 +0200
commita23b018c3bf646274f02edd46bf448c20c826d94 (patch)
tree21624acc0d86941a19ca26eb057a4ba4739fd10d /rust/kernel/alloc/allocator.rs
parent2c61b8c51d21d1b10c2881aa9c9918ff49f6fb7d (diff)
firmware_loader: fix soundness issue in `request_internal`
`request_internal` must be called with one of the following function pointers: request_firmware(), firmware_request_nowarn(), firmware_request_platform() or request_firmware_direct(). The previous `FwFunc` alias did not guarantee this, which is unsound. In order to fix this up, implement `FwFunc` as new type with a corresponding type invariant. Reported-by: Gary Guo <[email protected]> Closes: https://lore.kernel.org/lkml/20240620143611.7995e0bb@eugeo/ Signed-off-by: Danilo Krummrich <[email protected]> Reviewed-by: Christian Schrefl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/kernel/alloc/allocator.rs')
0 files changed, 0 insertions, 0 deletions