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)
Dec 20 2023, 2:17 AM
Unknown Object (File)
Nov 29 2023, 3:38 AM
Unknown Object (File)
Nov 1 2023, 10:30 PM
Unknown Object (File)
Sep 30 2023, 10:26 PM
Unknown Object (File)
Sep 26 2023, 12:49 PM
Unknown Object (File)
Sep 18 2023, 2:45 AM
Unknown Object (File)
Aug 23 2023, 3:55 PM
Unknown Object (File)
Jun 4 2023, 6:31 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