]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super-ddf: Prevent crash when handling DDF metadata
authorlilinzhe <llz@antiy.cn>
Mon, 16 Dec 2024 04:00:02 +0000 (12:00 +0800)
committerMariusz Tkaczyk <mtkaczyk@kernel.org>
Mon, 3 Feb 2025 10:19:00 +0000 (11:19 +0100)
commit9e8b3b1492cff63dafb759382c74a479460f49e6
tree04feb3cc48bbc14cda77f37390e34a7c8872208d
parent1fc0f290caeb0720aa6c97177ab429953f5bf10f
super-ddf: Prevent crash when handling DDF metadata

A dummy function is defined because availability of ss->update_super is
not always verified.

This fix addresses a crash reported when assembling a RAID array using
mdadm with DDF metadata. For more details, see the discussion at:
https://lore.kernel.org/all/
CALHdMH30LuxR4tz9jP2ykDaDJtZ3P7L3LrZ+9e4Fq=Q6NwSM=Q@mail.gmail.com/

The discussion centers on an issue with mdadm where attempting to
assemble a RAID array caused a null pointer dereference. The problem
was traced to a missing update_super() function in super-ddf.c, which
led to a crash in Assemble.c.

Signed-off-by: lilinzhe <llz@antiy.cn>
super-ddf.c