Page MenuHomeFreeBSD

[ppc64] prevent infinite loop on icache sync
ClosedPublic

Authored by luporl on Feb 11 2019, 6:13 PM.
Tags
None
Referenced Files
F175858123: D19149.id53839.diff
Tue, Oct 13, 10:58 PM
Unknown Object (File)
Mon, Oct 12, 4:41 AM
Unknown Object (File)
Sun, Oct 11, 4:09 AM
Unknown Object (File)
Sat, Oct 10, 8:02 AM
Unknown Object (File)
Mon, Sep 28, 5:54 PM
Unknown Object (File)
Fri, Sep 25, 9:10 AM
Unknown Object (File)
Fri, Sep 25, 9:09 AM
Unknown Object (File)
Fri, Sep 25, 8:15 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 Passed
Unit
No Test Coverage
Build Status
Buildable 22441
Build 21596: arc lint + arc unit