Skip to content
Commit 0dd69de3 authored by James Bottomley's avatar James Bottomley Committed by Zefan Li
Browse files

ses: fix additional element traversal bug

commit 5e103356

 upstream.

KASAN found that our additional element processing scripts drop off
the end of the VPD page into unallocated space.  The reason is that
not every element has additional information but our traversal
routines think they do, leading to them expecting far more additional
information than is present.  Fix this by adding a gate to the
traversal routine so that it only processes elements that are expected
to have additional information (list is in SES-2 section 6.1.13.1:
Additional Element Status diagnostic page overview)

Reported-by: default avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Tested-by: default avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent 1405c2b7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment