]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
liveupdate: propagate file deserialization failures
authorLeo Timmins <leotimmins1974@gmail.com>
Wed, 25 Mar 2026 04:46:07 +0000 (12:46 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 Apr 2026 18:13:42 +0000 (11:13 -0700)
commit307e0c5859b0aecc34180468b1aa76684adcf539
tree8a0d2e053b442069d7be8f4d2a4cf0eb361789f9
parentf58df566524ebcdfa394329c64f47e3c9257516e
liveupdate: propagate file deserialization failures

luo_session_deserialize() ignored the return value from
luo_file_deserialize().  As a result, a session could be left partially
restored even though the /dev/liveupdate open path treats deserialization
failures as fatal.

Propagate the error so a failed file deserialization aborts session
deserialization instead of silently continuing.

Link: https://lkml.kernel.org/r/20260325044608.8407-1-leotimmins1974@gmail.com
Link: https://lkml.kernel.org/r/20260325044608.8407-2-leotimmins1974@gmail.com
Fixes: 16cec0d26521 ("liveupdate: luo_session: add ioctls for file preservation")
Signed-off-by: Leo Timmins <leotimmins1974@gmail.com>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/liveupdate/luo_session.c