Page MenuHomeFreeBSD

[ppc64] prevent infinite loop on icache sync
ClosedPublic

Authored by luporl on Feb 11 2019, 6:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 10, 6:45 AM
Unknown Object (File)
Thu, Apr 9, 5:59 PM
Unknown Object (File)
Thu, Apr 9, 7:35 AM
Unknown Object (File)
Sun, Apr 5, 4:27 AM
Unknown Object (File)
Tue, Mar 24, 5:36 PM
Unknown Object (File)
Tue, Mar 24, 1:12 PM
Unknown Object (File)
Sun, Mar 22, 12:29 AM
Unknown Object (File)
Fri, Mar 20, 6:44 AM

Details

Summary

At moea64_sync_icache(), when the 'va' argument has page size
alignment, round_page() will return the same value as 'va'.
This would cause 'len' to be 0 and thus an infinite loop.

With this change, 'lim' will always point to the next page boundary.

This issue occurred especially during debugging sessions, when a breakpoint
was placed on an exact page-aligned offset, for instance.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable