Re: [PATCH v3 23/28] ARM: mmu: Make sure that address is 1M aligned in arm_create_pte()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 17, 2018 at 01:58:32PM -0700, Andrey Smirnov wrote:
> If address passed arm_create_pte() is not 1M (PGDIR_SIZE) aligned,
> page table that is created will end up having unexpected mapping
> offset, breaking "1:1 mapping" assumption and leading to bugs that are
> not immediately obvious in their nature.
> 
> To prevent this and because all of the callers already do said
> alignement in-place, move the alignment code to be a part of
  alignment

> are_create_pte().
  arm_create_pte()


It is so easy to spot spelling errors made by others,
so why is it that one so often fails to find spelling
errors made by one self :-(

	Sam

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux