diff options
| author | Christophe Leroy <[email protected]> | 2019-08-19 06:40:25 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2019-08-20 21:22:21 +1000 |
| commit | 415480dce2ef03bb8335deebd2f402f475443ce0 (patch) | |
| tree | 4f9ed3a21b0408c1e0b5dc0098946cb541a91a2d /tools | |
| parent | 6bb25170d7a44ef0ed9677814600f0785e7421d1 (diff) | |
powerpc/603: Fix handling of the DIRTY flag
If a page is already mapped RW without the DIRTY flag, the DIRTY
flag is never set and a TLB store miss exception is taken forever.
This is easily reproduced with the following app:
void main(void)
{
volatile char *ptr = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
*ptr = *ptr;
}
When DIRTY flag is not set, bail out of TLB miss handler and take
a minor page fault which will set the DIRTY flag.
Fixes: f8b58c64eaef ("powerpc/603: let's handle PAGE_DIRTY directly")
Cc: [email protected] # v5.1+
Reported-by: Doug Crawford <[email protected]>
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/80432f71194d7ee75b2f5043ecf1501cf1cca1f3.1566196646.git.christophe.leroy@c-s.fr
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions