diff options
author | David Howells <dhowells@redhat.com> | 2012-10-20 02:19:29 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-20 02:30:40 +0200 |
commit | caabe240574aec05b2f5667414ce80f9075c2ba1 (patch) | |
tree | d92bf96b009bd0b0caec44c21348812b06805909 /arch/arm/mach-omap2/clock44xx_data.c | |
parent | MODSIGN: Cleanup .gitignore (diff) | |
download | linux-caabe240574aec05b2f5667414ce80f9075c2ba1.tar.xz linux-caabe240574aec05b2f5667414ce80f9075c2ba1.zip |
MODSIGN: Move the magic string to the end of a module and eliminate the search
Emit the magic string that indicates a module has a signature after the
signature data instead of before it. This allows module_sig_check() to
be made simpler and faster by the elimination of the search for the
magic string. Instead we just need to do a single memcmp().
This works because at the end of the signature data there is the
fixed-length signature information block. This block then falls
immediately prior to the magic number.
From the contents of the information block, it is trivial to calculate
the size of the signature data and thus the size of the actual module
data.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/mach-omap2/clock44xx_data.c')
0 files changed, 0 insertions, 0 deletions