Vladimir Serbinenko
41121742df
windows/platform.c: Fix compilation errors
2019-03-07 14:19:27 +01:00
Vladimir Serbinenko
3d612924c3
verifiers: Add the documentation
...
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com >
Reviewed-by: Ross Philipson <ross.philipson@oracle.com >
2018-11-09 13:25:31 +01:00
Vladimir Serbinenko
4d4a8c96e3
verifiers: Add possibility to verify kernel and modules command lines
...
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com >
Reviewed-by: Ross Philipson <ross.philipson@oracle.com >
2018-11-09 13:25:31 +01:00
Vladimir Serbinenko
75a919e334
verifiers: Framework core
...
Verifiers framework provides core file verification functionality which
can be used by various security mechanisms, e.g., UEFI secure boot, TPM,
PGP signature verification, etc.
The patch contains PGP code changes and probably they should be extracted
to separate patch for the sake of clarity.
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com >
Reviewed-by: Ross Philipson <ross.philipson@oracle.com >
2018-11-09 13:25:31 +01:00
Vladimir Serbinenko
ca0a4f689a
verifiers: File type for fine-grained signature-verification controlling
...
Let's provide file type info to the I/O layer. This way verifiers
framework and its users will be able to differentiate files and verify
only required ones.
This is preparatory patch.
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com >
Reviewed-by: Ross Philipson <ross.philipson@oracle.com >
2018-11-09 13:25:31 +01:00
Vladimir Serbinenko
78d2b81bd1
Fix compilation for x86_64-efi.
2017-09-07 13:55:22 +02:00
Vladimir Serbinenko
1b18d6b0d3
Add a file missing in multiboot2 commit.
2017-09-05 23:13:55 +02:00
Vladimir Serbinenko
061258a05e
Regenerate checksum.h with newer unifont.
...
Old link is broken. New unifont is
http://ftp.de.debian.org/debian/pool/main/u/unifont/xfonts-unifont_9.0.06-2_all.deb
2017-08-30 17:12:04 +02:00
Vladimir Serbinenko
32099228e6
printf_unit_test: Disable Wformat-truncation on GCC >= 7
...
We intentionally pass NULL as argument to format, hence disable the warning.
2017-08-30 16:59:25 +02:00
Vladimir Serbinenko
ec763ed00a
qemu, coreboot, multiboot: Change linking address to 0x9000.
...
It's common for distros to use a defective ld which links at 0x9000. Instead
of fighting it, just move link target to 0x9000.
2017-08-30 16:29:59 +02:00
Vladimir Serbinenko
c42acc23ff
xfs: Don't attempt to iterate over empty directory.
...
Reported by: Tuomas Tynkkynen
2017-08-30 15:56:19 +02:00
Vladimir Serbinenko
3d86efda00
arc: Do not create spurious variable grub_arc_memory_type_t.
2017-08-30 15:18:24 +02:00
Vladimir Serbinenko
6ccb2d54bc
enforcing fixup
2017-08-14 16:27:10 +02:00
Vladimir Serbinenko
4bfd26623f
multiboot fixup
2017-08-14 16:24:05 +02:00
Vladimir Serbinenko
6cc79ec10c
linux fixup
2017-08-14 16:23:52 +02:00
Vladimir Serbinenko
c36c2a8640
yylex: Explicilty cast fprintf to void.
...
It's needed to avoid warning on recent GCC.
2017-08-14 14:11:43 +02:00
Vladimir Serbinenko
3732816bc0
genmoddep: Check that no modules provide the same symbol.
...
The semantics of 2 modules providing the same symbol are undefined. So
ensure that it doesn't happen.
2017-08-14 14:10:48 +02:00
Vladimir Serbinenko
26e5aea941
Fix symbols appearing in several modules in linux*.
...
If same symbol is provided by 2 modules its semantics are undefined.
Avoid this by depending rather than double-including files.
2017-08-14 14:09:30 +02:00
Vladimir Serbinenko
21e4a6fa03
multiboot: disentangle multiboot and multiboot2.
...
Previously we had multiboot and multiboot2 declaring the same symbols.
This can potentially lead to aliasing and strange behaviours when e.g.
module instead of module2 is used with multiboot2.
Bug: #51137
2017-08-14 14:08:54 +02:00
Vladimir Serbinenko
6662372053
hdparm: Depend on hexdump rather than having a second copy of hexdump.
2017-08-14 12:48:58 +02:00
Vladimir Serbinenko
7108c0c86e
grub.texi: Fix typo
...
Reported by: Ori Avtalion <saltyhorse>
2017-08-14 11:36:50 +02:00
Vladimir Serbinenko
4bc909bf89
Remove grub_efi_allocate_pages.
...
grub_efi_allocate_pages Essentially does 2 unrelated things:
* Allocate at fixed address.
* Allocate at any address.
To switch between 2 different functions it uses address == 0 as magic
value which is wrong as 0 is a perfectly valid fixed adress to allocate at.
2017-08-07 18:33:29 +02:00
Vladimir Serbinenko
e66dc5d71e
Fail if xorriso failed.
...
If xorriso failed most likely we didn't generate a meaningful image.
2017-08-07 18:08:39 +02:00
Vladimir Serbinenko
9e962fd3c4
mkrescue: Check xorriso presence before doing anything else.
...
mkrescue can't do anything useful without xorriso, so abort early if it's
not available.
2017-08-07 18:05:17 +02:00
Vladimir Serbinenko
68d54b55f4
fdt: silence clang warning.
2017-07-10 01:34:22 +00:00
Vladimir Serbinenko
cb8b7e4e36
arm-efi: Fix compilation
2017-07-09 21:49:55 +00:00
Vladimir Serbinenko
284afab081
ehci: Fix compilation on i386
2017-07-09 21:31:19 +02:00
Vladimir Serbinenko
c4b8bec5fe
at_keyboard: Fix falco chromebook case.
...
EC is slow, so we need few delays for it to toggle the bits correctly.
Command to enable clock and keyboard were not sent.
2017-05-09 14:27:52 +02:00
Vladimir Serbinenko
c6eaa982d1
Missing parts of previous commit
2017-05-09 09:02:15 +02:00
Vladimir Serbinenko
5c3fd1b135
arm_coreboot: Add Chromebook keyboard driver.
2017-05-09 08:47:34 +02:00
Vladimir Serbinenko
b0b1b81a11
rk3288_spi: Add SPI driver
2017-05-09 08:44:23 +02:00
Vladimir Serbinenko
c4313c812d
fdtbus: Add ability to send/receive messages on parent busses.
2017-05-09 08:43:20 +02:00
Vladimir Serbinenko
4f8471532d
Fix bug on FDT nodes with compatible property
2017-05-09 08:43:09 +02:00
Vladimir Serbinenko
d11ced1e1f
arm_coreboot: Support EHCI.
2017-05-08 22:15:05 +02:00
Vladimir Serbinenko
058df7b5a9
ehci: Split core code from PCI part.
...
On ARM often EHCI is present without PCI and just declared in device
tree. So splitcore from PCI part.
2017-05-08 22:10:26 +02:00
Vladimir Serbinenko
265292f2b0
arm_coreboot: Support DMA.
...
This is needed to support USB and some other busses.
2017-05-08 22:06:04 +02:00
Vladimir Serbinenko
656c3b0d7f
arm_coreboot: Support loading linux images.
2017-05-08 22:00:06 +02:00
Vladimir Serbinenko
3edabad8fe
arm_coreboot: Support grub-mkstandalone.
2017-05-08 21:59:48 +02:00
Vladimir Serbinenko
848bed9d92
arm_coreboot: Support keyboard for vexpress.
2017-05-08 21:42:37 +02:00
Vladimir Serbinenko
216950a4ee
at_keyboard: Split protocol from controller code.
...
On vexpress controller is different but protocol is the same, so reuse the
code.
2017-05-08 21:41:22 +02:00
Vladimir Serbinenko
ac6b41b89f
arm-coreboot: Export FDT routines.
...
We need to use them from modules as well.
2017-05-08 21:29:48 +02:00
Vladimir Serbinenko
5a865b3786
arm-coreboot: Support for vexpress timer.
2017-05-08 21:26:36 +02:00
Vladimir Serbinenko
fcbb723d4b
Add support for device-tree-based drivers.
2017-05-08 21:19:59 +02:00
Vladimir Serbinenko
24e37a8852
arm-coreboot: Start new port.
2017-05-08 20:53:28 +02:00
Vladimir Serbinenko
9808c3ef95
Rename uboot/datetime to dummy/datetime.
...
It's just a stub and is not UBoot-specific.
2017-05-08 19:40:14 +02:00
Vladimir Serbinenko
1daa716c70
Rename uboot/halt.c to dummy/halt.c.
...
It's not U-Boot specific and it's a stub.
2017-05-08 19:33:56 +02:00
Vladimir Serbinenko
461bfab7b7
coreboot: Split parts that are platform-independent.
...
We currently assume that coreboot is always i386, it's no longer the case,
so split i386-coreboot parts from generic coreboot code.
2017-05-08 19:10:24 +02:00
Vladimir Serbinenko
d08c968514
Refactor arm-uboot code to make it genereic.
...
arm-coreboot startup code can be very similar to arm-uboot but current code has
U-Boot specific references. So split U-Boot part from generic part.
2017-05-08 17:47:57 +02:00
Vladimir Serbinenko
a35ac85430
mkimage: Pass layout to mkimage_generate_elfXX rather than some fields.
...
This allows easier extension of this function without having too long of
arguments list.
2017-05-08 17:32:15 +02:00
Vladimir Serbinenko
dc6e1b5af8
strtoull: Fix behaviour on chars between '9' and 'a'.
...
Reported by: Aaron Miller <aaronmiller@fb.com >
2017-05-03 12:59:58 +02:00
Vladimir Serbinenko
ede6c96893
Add strtoull test.
2017-05-03 12:58:15 +02:00
Vladimir Serbinenko
a827807a13
Fix shebang for termux.
...
Termux doesn't have a /bin/sh. So we needto use $SHELL.
Keep /bin/sh as much as possible.
2017-05-03 12:49:31 +02:00
Vladimir Serbinenko
1073ddb120
Add termux path to dict.
2017-05-03 12:48:00 +02:00
Vladimir Serbinenko
4341f82af0
po: Use @SHELL@ rather than /bin/sh.
...
/bin/sh might not exist.
2017-05-03 12:46:48 +02:00
Vladimir Serbinenko
c2ea443446
Use $(SHELL) rather than /bin/sh.
...
/bin/sh doesn't exist under termux.
2017-05-03 12:46:38 +02:00
Vladimir Serbinenko
608bec5112
Support lseek64.
...
Android doesn't have 64-bit off_t, so use off64_t instead.
2017-05-03 12:24:43 +02:00
Vladimir Serbinenko
6dec3a26b3
Don't retrieve fstime when it's not useful.
2017-05-03 12:23:15 +02:00
Vladimir Serbinenko
b43b8cacc8
support busybox date.
...
Busybox date doesn't understand weekdays in -d input,
so strip them beforehand.
2017-05-03 12:22:05 +02:00
Vladimir Serbinenko
37865c2c4a
fs-tester: make sh-compatible
2017-05-03 12:19:44 +02:00
Vladimir Serbinenko
5a0c548ba3
Remove bashisms from tests.
...
Those tests don't actually need bash. Just use common shebang.
2017-05-03 12:10:36 +02:00
Vladimir Serbinenko
b0bad6fd94
Bump version to 2.03
2017-05-03 11:55:52 +02:00
Vladimir Serbinenko
e54c99aaff
Increase version to 2.02.
2017-04-25 16:23:16 +02:00
Vladimir Serbinenko
d454509bb8
Fix remaining cases of gcc 7 fallthrough warning.
...
They are all intended, so just add the relevant comment.
2017-04-12 01:42:38 +00:00
Vladimir Serbinenko
8014b7b337
Increment version to GRUB 2.02~rc2.
2017-03-15 09:20:29 +01:00
Vladimir Serbinenko
fcea891e17
Use core2duo for bootcheck test on 64-bit EFI.
...
Obviously pentium2 can't run efi64.
2017-03-15 09:20:14 +01:00
phcoder
bcf3c55531
xen: Fix wrong register in relocator.
...
This fixes chainloading of some GRUB variants.
2017-03-05 10:07:36 +01:00
Vladimir Serbinenko
fb93c75bdd
video_fb: Fix blue collor if using unoptimized blitter.
...
when unmapping the color what matters is the mode of source, not target.
2017-02-27 01:58:50 +00:00
Vladimir Serbinenko
641bb15fa4
legacy_initrd: Strip any additional arguments to initrd.
2017-02-27 00:43:54 +00:00
Vladimir Serbinenko
512bb31cbc
Whitelist sparc64-ieee1275 as having no video modules.
...
ieee1275_fb is not built on sparc64 due to virtual address issues.
2017-02-22 09:55:51 +01:00
Vladimir Serbinenko
529818738f
xen: Fix parsing of XZ kernel.
...
In case of xz, the uncompressed size is appended to xz data which confuses
our xz decompressor. Trim it.
2017-02-07 13:25:38 +01:00
Vladimir Serbinenko
8a96fc4093
xen: Fix handling of GRUB chainloading.
...
In case of GRUB we put remapper after domain pages and not at 0x0.
In this case we use max_addr to put remapper. Unfortunately we increment
max_addr as well in this case resulting in virt mapping mapping page
at old max_addr and trying to boot using new max_addr.
Closes 46014.
2017-02-07 00:42:43 +01:00
Vladimir Serbinenko
f3df8f961f
linguas: Don't skip ko.po.
...
Translation project doesn't require copyright disclaimers. They're independant
from us. They're responsible for their copyright story.
2017-02-04 00:06:57 +01:00
Vladimir Serbinenko
ec4aca088a
Fix truncated checksum.h.
2017-02-03 20:17:48 +01:00
Vladimir Serbinenko
fcb1528d93
Regenerate checksums.h
...
Screenshots contain version, so we need new checksums.
2017-02-03 13:44:56 +01:00
Vladimir Serbinenko
c36c0e05f1
Release 2.02-rc1.
2017-02-03 13:01:34 +01:00
Vladimir Serbinenko
c96cfac167
Fix mingw compilation.
2017-02-03 13:01:34 +01:00
Vladimir Serbinenko
5412028d19
Avoid causing kernel oops in nilfs2 test.
...
1024-byte and 2048-byte blocks don't really work with some kernels, skip
them as we don't want any oops'es.
2017-02-03 00:34:07 +01:00
Vladimir Serbinenko
c65d35b08b
btrfs: Shorten label by one character.
...
mkfs.btrfs imposes a slightly lower limit than would be possible in btrfs.
2017-02-03 00:30:29 +01:00
Vladimir Serbinenko
a5bd52990e
grub-fs-tester: Fix mkudffs invocation.
...
With current invocation order of arguments is wrong and path is hardcoded.
2017-02-02 23:32:38 +01:00
Vladimir Serbinenko
1d4e3db907
grub-fs-tester: Fix fat test.
...
mkfs.vfat ignores -S when invoked on a disk, including loopback device,
so do an mkfs on underlying image.
2017-02-02 23:19:00 +01:00
Vladimir Serbinenko
1402cdd96a
i386-ieee1275: Add missing bootcheck target.
2017-02-02 21:41:33 +01:00
Vladimir Serbinenko
31932a267c
bootcheck-linux-i386: Use -cpu pentium2.
...
Most modern kernels are compiled for i686, so use -cpu pentium2
to avoid spurious failures.
2017-02-02 21:41:18 +01:00
Vladimir Serbinenko
393cc59195
Use -fPIC with arm64 with clang.
...
Currently it doesn't work either way but with -fPIC it should work once
clang bug is fixed.
2017-02-02 01:24:11 +01:00
Vladimir Serbinenko
dac87d6032
INSTALL: Fix mention of thumb-clang.
2017-02-02 01:11:52 +01:00
Vladimir Serbinenko
42e24b6006
Fix thumb compilation with clang.
...
According to EABI only STT_FUNC has convention of lowest bit indicating
execution mode. R_THM_{JUMP,CALL}* relocations are assumed to be pointing
to thumb mode unless they use STT_FUNC.
2017-02-02 00:59:49 +01:00
Vladimir Serbinenko
08438d783f
Add missing strtoull_test.c
...
It was forgotten in my local directory.
2017-02-01 21:50:17 +01:00
Vladimir Serbinenko
34fe0b5901
arm64: Add support for GOT and PCREL32 relocations.
2017-02-01 21:46:19 +01:00
Vladimir Serbinenko
377c121170
mkimage: Fix memory leak.
2017-02-01 21:21:17 +01:00
Vladimir Serbinenko
43b444e593
arm/arm64: Fix improper use of start address.
...
It was used instead of loading address of current section or of entire buffer.
2017-02-01 20:12:07 +01:00
Vladimir Serbinenko
ea20dd2b22
ia64: Fix iterator for relocation entries.
...
Don't assume relocation entry size and use sh_entsize properly.
2017-02-01 20:10:26 +01:00
Vladimir Serbinenko
3d173955f0
arm: Fix trampoline generation.
...
We used the wrong pointer in this case. It worked only by accident.
2017-02-01 15:58:36 +01:00
Vladimir Serbinenko
68c6cec061
Fix bootcheck-related files compilation.
...
We need -static as otherwise linker will set interpreter field and ld.so
is not available on our initrd's.
Strip all sections we don't need on binary tests.
2017-02-01 15:57:08 +01:00
Vladimir Serbinenko
0704e83a1b
Regenerate checksum.h.
...
Screenshots checked.
Using unifont from http://ftp.us.debian.org/debian/pool/main/u/unifont/xfonts-unifont_7.0.06-1_all.deb .
2017-01-31 22:36:11 +01:00
Vladimir Serbinenko
f14c77f501
grub-mkfont: Remove leftover debug statement.
2017-01-31 22:32:21 +01:00
Vladimir Serbinenko
0fd9fa565b
charset: Trim away RLM and LRM.
...
They are not visible but would otherwise end up as [LRM] or [RLM] squares
with some fonts.
2017-01-31 19:29:31 +01:00
Vladimir Serbinenko
6f5aa28bc2
gfxterm: Fix clearing of cursor.
...
If ascent is bigger than height - 2, then we draw over character box but then
to clear cursor we only draw over character box. So trim ascent if necessarry.
2017-01-31 18:49:37 +01:00
Vladimir Serbinenko
a134ef1ab9
ia64: Add support for R_IA64_GPREL64I.
...
Recent GCC generates those relocations, so we need to support them.
2017-01-31 12:39:01 +01:00
Vladimir Serbinenko
255b9e0bea
grub-module-verifier: Add mips to all_video whitelist.
...
On MIPS video is compiled-in. So all_video is empty. Whitelist it.
2017-01-30 19:52:58 +01:00
Vladimir Serbinenko
b53f595b3e
Fix -nopie/-nopie check.
...
We don't use lgcc_s but missing lgcc_s or another library cause test to fail.
So use -nostdlib.
We need to use -Werror to avoid warning-generated case to be accepted.
Clang uses -nopie rather than -no-pie. Check both and use whichever one works.
Additionally android clang passes -pie to the linker even though it doesn't
define __PIE__. So if compilation without no-pie logic fails add -nopie/-no-pie
even if __PIE__ is not defined.
2017-01-30 19:38:55 +01:00
Vladimir Serbinenko
6371e9c104
grub-module-verifier: Ignore all_video emptiness on xen.
...
It's intentional that it's empty when no video modules
are available.
2017-01-30 00:13:41 +00:00