[File] [PATCH] ARM/ARM64 Kernel magic patterns

Jonathan Duncan jonathanduncan at gmail.com
Fri Apr 24 16:47:43 UTC 2020


Hello,

Included are three patches:

1) Resolves a minor issue with how the current magic file patterns for ARM
kernels detects big endian zImages.

2) Adds a new pattern for ARM64 kernel images.

3) The third adds a pattern for ARM uncompressed Images. Although these are
rarer they are still valid kernel build artefacts.
Note: In the third patch there is no defined header or magic value for
uncompressed ARM kernel Images, so the pattern is
matching against a characteristic opcode pattern that has been present for
many years. I'm not sure what the policy for such
"fuzzy" patterns is. The current pattern matches 40 bits found in a 320 bit
window at the start of the file. I'm not sure if this is
precise enough. If this is not acceptable please disregard this third patch.


Thanks,
Jonathan Duncan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20200424/5b994c8b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Refine-ARM-uncompressed-Kernel-pattern-endianness.patch
Type: application/octet-stream
Size: 1948 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20200424/5b994c8b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-pattern-to-identify-ARM64-AARCH64-kernel-image.patch
Type: application/octet-stream
Size: 1266 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20200424/5b994c8b/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Refine-ARM-uncompressed-Kernel-pattern-endianness.patch
Type: application/octet-stream
Size: 1948 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20200424/5b994c8b/attachment-0002.obj>


More information about the File mailing list