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

Christos Zoulas christos at zoulas.com
Thu Apr 30 00:36:51 UTC 2020


Committed, thanks!

christos

> On Apr 24, 2020, at 12:47 PM, Jonathan Duncan <jonathanduncan at gmail.com> wrote:
> 
> 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
> 
> 
> 
> 
> <0001-Refine-ARM-uncompressed-Kernel-pattern-endianness.patch><0001-Add-a-pattern-to-identify-ARM64-AARCH64-kernel-image.patch><0001-Refine-ARM-uncompressed-Kernel-pattern-endianness.patch>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
> <sanitizer.log>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20200429/9f148b41/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20200429/9f148b41/attachment.asc>


More information about the File mailing list