diff options
author | Mariusz Tkaczyk <[email protected]> | 2023-09-14 17:24:16 +0200 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-09-14 10:13:11 -0700 |
commit | c8870379a21fbd9ad14ca36204ccfbe9d25def43 (patch) | |
tree | d13cc8db2f264eed7f17c530d7c388255d313a6d /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | df203da47f4428bc286fc99318936416253a321c (diff) |
md: Put the right device in md_seq_next
If there are multiple arrays in system and one mddevice is marked
with MD_DELETED and md_seq_next() is called in the middle of removal
then it _get()s proper device but it may _put() deleted one. As a result,
active counter may never be zeroed for mddevice and it cannot
be removed.
Put the device which has been _get with previous md_seq_next() call.
Cc: [email protected]
Fixes: 12a6caf27324 ("md: only delete entries from all_mddevs when the disk is freed")
Reported-by: AceLan Kao <[email protected]>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217798
Cc: Yu Kuai <[email protected]>
Signed-off-by: Mariusz Tkaczyk <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions