Fix scudo fault address processing.
The code doesn't properly check if data is not read properly, so make it fail if reads fail. Also, change the algorithm so that first try and read the faulting page then 16 pages before and 16 pages after. Rather than trying to read every one of these pages, stop as soon as one is unreadable. This means that the total memory passed to the scudo error function is all valid data, rather than potentially being some uninitialized memory. Added new unit tests to cover scudo address processing. Bug: 233720136 Test: All unit tests pass. Test: atest CtsIncidentHostTestCases Change-Id: I18a97bdee9a0c44075c1c31ccd1b546d10895be9
Loading
Please register or sign in to comment