On Tue, Aug 09, 2022 at 05:56:24PM +0300, Michael Bestas wrote: > From: Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx> > > commit e112b032a72c78f15d0c803c5dc6be444c2e6c66 upstream. > > Currently in arm64, FDT is mapped to RO before it's passed to > early_init_dt_scan(). However, there might be some codes > (eg. commit "fdt: add support for rng-seed") that need to modify FDT > during init. Map FDT to RO after early fixups are done. > > Cc: stable@xxxxxxxxxxxxxxx # 4.9+ > Signed-off-by: Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx> > Reviewed-by: Stephen Boyd <swboyd@xxxxxxxxxxxx> > Reviewed-by: Mike Rapoport <rppt@xxxxxxxxxxxxx> > Signed-off-by: Will Deacon <will@xxxxxxxxxx> > [mkbestas: fixed trivial conflicts for 4.9 backport] > Signed-off-by: Michael Bestas <mkbestas@xxxxxxxxx> > --- > arch/arm64/include/asm/mmu.h | 2 +- > arch/arm64/kernel/kaslr.c | 5 +---- > arch/arm64/kernel/setup.c | 9 ++++++++- > arch/arm64/mm/mmu.c | 15 +-------------- > 4 files changed, 11 insertions(+), 20 deletions(-) What about 4.14.y and newer? thanks, greg k-h