Message ID | 20170127140101.GD31613@codeblueprint.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Matt Fleming <matt@codeblueprint.co.uk> wrote: > - grub_memcpy (params, &lh, 2 * 512); > + grub_memcpy (params, (grub_uint8_t *)&lh[512], 512); It would appear this change is wrong and params needs to be changed to params + 512 or something similar. David -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c index 010bf98..fe5771e 100644 --- a/grub-core/loader/i386/efi/linux.c +++ b/grub-core/loader/i386/efi/linux.c @@ -269,7 +269,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)), loaded=1; lh.code32_start = (grub_uint32_t)(grub_uint64_t) kernel_mem; - grub_memcpy (params, &lh, 2 * 512); + grub_memcpy (params, (grub_uint8_t *)&lh[512], 512); params->type_of_loader = 0x21;