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)
Sat, Sep 27, 7:56 PM
Unknown Object (File)
Mon, Sep 22, 9:58 PM
Unknown Object (File)
Fri, Sep 19, 1:14 PM
Unknown Object (File)
Fri, Sep 19, 11:56 AM
Unknown Object (File)
Sep 5 2025, 10:16 PM
Unknown Object (File)
Sep 3 2025, 2:47 AM
Unknown Object (File)
Aug 9 2025, 10:45 AM
Unknown Object (File)
Jul 7 2025, 11:25 PM

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