summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2026-04-23 20:40:29 +0300
committerMike Rapoport (Microsoft) <rppt@kernel.org>2026-06-01 02:31:38 +0300
commitd8e47bd066d7e626f9f45d416182d585b7e18b9b (patch)
tree560ac3439259f883ebc638d5c90b1d4953364fe2 /scripts
parentd2850ff2f8c5acda4c1097aa53c006a75b091f2c (diff)
downloadlinux-d8e47bd066d7e626f9f45d416182d585b7e18b9b.tar.xz
liveupdate: Reference count incoming FLB data
Increment the incoming FLB refcount in liveupdate_flb_get_incoming() so that the FLB structure cannot be freed while the caller is actively using it. Add an additional liveupdate_flb_put_incoming() function so the caller can explicitly indicate when it is done using the FLB data. During a Live Update, a subsystem might need to hold onto the incoming File-Lifecycle-Bound (FLB) data for an extended period, such as during device enumeration. Incrementing the reference count guarantees that the data remains valid and accessible until the subsystem releases it, preventing future use-after-free bugs. Fixes: cab056f2aae7 ("liveupdate: luo_flb: introduce File-Lifecycle-Bound global state") Signed-off-by: David Matlack <dmatlack@google.com> Reviewed-by: Samiullah Khawaja <skhawaja@google.com> Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com> Link: https://lore.kernel.org/r/20260423174032.3140399-3-dmatlack@google.com Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com> Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions