]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: sed-opal: handle empty atoms when parsing response
authorGreg Joyce <gjoyce@linux.ibm.com>
Fri, 16 Feb 2024 21:04:17 +0000 (15:04 -0600)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:12 +0000 (18:19 -0400)
commit031b6233fe7ef75c6f21f7cefb56e89a677712f0
treed5366e567bd66fcfcc064feea7f81c9856dd95f9
parent3a28164d9b0d4874afe8ceb679db61177a7ca7d0
block: sed-opal: handle empty atoms when parsing response

[ Upstream commit 5429c8de56f6b2bd8f537df3a1e04e67b9c04282 ]

The SED Opal response parsing function response_parse() does not
handle the case of an empty atom in the response. This causes
the entry count to be too high and the response fails to be
parsed. Recognizing, but ignoring, empty atoms allows response
handling to succeed.

Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
Link: https://lore.kernel.org/r/20240216210417.3526064-2-gjoyce@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/opal_proto.h
block/sed-opal.c