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:Pavel Tikhomirov <ptikhomirov@virtuozzo.com> Tested-by:
Pavel Tikhomirov <ptikhomirov@virtuozzo.com> Signed-off-by:
James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by:
Zefan Li <lizefan@huawei.com>
parent
1405c2b7
Please register or sign in to comment