Vladimir 'phcoder' Serbinenko
4e10213de6
Revert "zfsinfo: Correct a check for error allocating memory"
...
Original commit is wrong because grub_file_get_device_name() may return NULL
if we use implicit $root. Additionally, the grub_errno is guaranteed to be
GRUB_ERR_NONE at the beginning of a command. So, everything should work as
expected and Coverity report, CID 73668, WRT to this code should be treated
as false positive.
This reverts commit 7aab03418 (zfsinfo: Correct a check for error allocating memory).
Fixes: 7aab03418 (zfsinfo: Correct a check for error allocating memory)
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2023-10-12 19:28:33 +02:00
Vladimir 'phcoder' Serbinenko
968928240a
lib/i386/relocator64: Fix 64-bit FreeBSD boot on BIOS
...
The commit 80948f532d (lib/i386/relocator64: Build fixes for i386) has
broken 64-bit FreeBSD boot on BIOS. This patch fixes the issue.
Fixes: 80948f532d (lib/i386/relocator64: Build fixes for i386)
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2023-10-03 12:46:37 +02:00
Vladimir Serbinenko
7ce5b49110
ZFS: Check bonustype in addition to dnode type
...
Some dnodes are shared with properties zap. This is used
e.g. for quotas. Then dnode type is 0xc4 and GRUB stumbles on
this. Check bonus type and if it's ok then ignore dnode type mismatch
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2023-09-18 02:44:35 +02:00
Vladimir Serbinenko
444089eec6
ZFS: Don't iterate over null objsets
...
Reading them is harmless but useless as they are empty by definition
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2023-09-18 02:44:02 +02:00
Vladimir Serbinenko
96446ce14e
ZFS: Fix invalid memcmp
...
We ended up comparing over unset values as we had dnode_phys on one side
and dnode on another
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2023-09-18 02:43:32 +02:00
Vladimir Serbinenko
42a831d746
ZFS: support inode type embed into its ID
...
This is a speedup used in some ZFS version. This trips GRUB and makes it
unable to access directories. Just skip it for now and revisit
if we ever need this speedup.
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2023-09-18 02:42:21 +02:00
Vladimir Serbinenko
505d92f5e7
mbr: Document new limitations on MBR gap support
...
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2020-12-12 01:19:03 +01:00
Vladimir Serbinenko
8f6843ce60
configure: Add -fno-ident when available
...
MinGW for i386-pc without this option generates a .rdata$zzz symbol that is
page-aligned and hence lzma_decompress no longer fits in its allocated space.
Additionally, MinGW with -fno-ident also saves a bit of space in modules. In
case of other compilers we already strip the relevant sections, so, this
option has no effect.
More info can be found at https://github.com/msys2/MINGW-packages/issues/21
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2019-07-11 21:06:49 +02:00
Vladimir 'phcoder' Serbinenko
5610734770
hostfs: #undef open and close.
...
Unlike in case of disks in this case it's just a single place, so it's easier
to just #undef
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2019-06-07 15:36:28 +02:00
Vladimir Serbinenko
94d9926a66
Release 2.04~rc1
2019-04-09 10:04:54 +10:00
Vladimir Serbinenko
ad4bfeec5c
Change fs functions to add fs_ prefix
...
This avoid conflict with gnulib
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
2019-04-09 10:03:29 +10:00
Vladimir Serbinenko
f91e4d1633
Propagate GNU_PRINTF from gnulib vfprintf
...
gnulib now replaces vfprintf and hence its format becomes GNU_PRINTF format
This also fixes matching definitions to always use GNU format
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
2019-03-26 15:08:00 +01:00
Vladimir Serbinenko
16910a8cb9
efi/tpm.c: Add missing casts
...
Without those casts we get a warning about implicit conversion of pointer
to integer.
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
2019-03-26 15:05:44 +01:00
Vladimir Serbinenko
18fd1007e3
POTFILES: Don't include gnulib in grub.pot
...
They're translated as a separate project, so we
don't want to submit them again.
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com >
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
2019-03-26 15:04:17 +01:00
Vladimir Serbinenko
98c3a1a76b
efi/tpm.h: Fix hash_log_extend_event definition.
...
I didn't check the spec but pointer to address doesn't make much sense
and doesn't match the code.
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
2019-03-25 15:16:26 +01:00
Vladimir Serbinenko
384091967d
Rename grub_disk members
...
Otherwise it horribly clashes with gnulib when it's
replacing open/write/read/close
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
2019-03-25 15:14:52 +01:00
Vladimir Serbinenko
3562536fd5
grub-mkimagexx: Fix RISCV error message
...
Outputting a raw pointer doesn't match the format and is
also useless. Output offset instead.
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
2019-03-25 15:11:09 +01:00
Vladimir Serbinenko
d900dfa985
kern/emu/misc.c: Don't include config-util.h when running as GRUB_BUILD
...
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
2019-03-25 15:10:15 +01:00
Vladimir Serbinenko
4ff051880f
Support R_PPC_PLTREL24
...
It's emitted by clang 7. It's the same as R_PPC_REL24.
Signed-off-by: Vladimir Serbinenko <phcoder@google.com >
2019-03-25 15:08:49 +01:00
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