Subject: Re: BUG: crash in __tlb_remove_page_size with STRICT_KERNEL_RWX on BOOK3S_32

From: Segher Boessenkool <[email-masked]>
Date: Fri, 26 Apr 2019 12:07:00 -0500

On Fri, Apr 26, 2019 at 05:38:50PM +0300, Serge Belyshev wrote:
> ---[ Instruction Block Address Translation ]---
> 0: 0xc0000000-0xc07fffff 0x00000000 Kernel EXEC coherent 
> 1: 0xc0800000-0xc087ffff 0x00800000 Kernel EXEC coherent 
> 2:         -
> 3:         -
> 4:         -
> 5:         -
> 6:         -
> 7:         -
> 
> ---[ Data Block Address Translation ]---
> 0: 0xc0000000-0xc07fffff 0x00000000 Kernel RO coherent 
> 1: 0xc0800000-0xc0bfffff 0x00800000 Kernel RO coherent 
> 2: 0xc0c00000-0xc13fffff 0x00c00000 Kernel RW coherent 
> 3: 0xc1400000-0xc23fffff 0x01400000 Kernel RW coherent 
> 4: 0xc2400000-0xc43fffff 0x02400000 Kernel RW coherent 
> 5: 0xc4400000-0xc83fffff 0x04400000 Kernel RW coherent 
> 6: 0xc8400000-0xd03fffff 0x08400000 Kernel RW coherent 
> 7: 0xd0400000-0xe03fffff 0x10400000 Kernel RW coherent 

The starting address of a BAT block is always aligned to the block size.
All of DBAT2..DBAT7 are wrong?

Segher