From: Luc Van Oostenryck <hidden> Date: 2017-06-28 14:58:05
In the flattened device tree format, all integer properties are
in big-endian order.
Here the property "kaslr-seed" is read from the fdt and then
correctly converted to native order (via fdt64_to_cpu()) but the
pointer used for this is not annotated as being for big-endian.
Fix this by declaring the pointer as __be64 instead of u64.
Signed-off-by: Luc Van Oostenryck <redacted>
---
arch/arm64/kernel/kaslr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Will Deacon <hidden> Date: 2017-06-29 09:59:30
On Wed, Jun 28, 2017 at 04:58:05PM +0200, Luc Van Oostenryck wrote:
quoted hunk
In the flattened device tree format, all integer properties are
in big-endian order.
Here the property "kaslr-seed" is read from the fdt and then
correctly converted to native order (via fdt64_to_cpu()) but the
pointer used for this is not annotated as being for big-endian.
Fix this by declaring the pointer as __be64 instead of u64.
Signed-off-by: Luc Van Oostenryck <redacted>
---
arch/arm64/kernel/kaslr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Luc Van Oostenryck <hidden> Date: 2017-06-29 14:35:29
In the flattened device tree format, all integer properties are
in big-endian order.
Here the property "kaslr-seed" is read from the fdt and then
correctly converted to native order (via fdt64_to_cpu()) but the
pointer used for this is not annotated as being for big-endian.
Fix this by declaring the pointer as fdt64_t instead of u64
(fdt64_t being itself typedefed to __be64).
Signed-off-by: Luc Van Oostenryck <redacted>
---
Change since v1:
- use 'fdt64_t' instead of a plain '__be64'.
arch/arm64/kernel/kaslr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)