- 05 Dec, 2014 1 commit
-
-
Andrei Borzenkov authored
This allows running tests that require extra files using netboot as well.
-
- 01 Dec, 2014 2 commits
-
-
Andrei Borzenkov authored
CID: 73645, 73782
-
Andrei Borzenkov authored
CID: 73635
-
- 30 Nov, 2014 1 commit
-
-
Andrei Borzenkov authored
say->msg is inline array in a structure and should not be freed. CID: 73610
-
- 28 Nov, 2014 8 commits
-
-
Andrei Borzenkov authored
CID: 73665
-
Andrei Borzenkov authored
-
Andrei Borzenkov authored
CID: 73813, 73710
-
Andrei Borzenkov authored
Fixes commit 0415dbe2.
-
Andrei Borzenkov authored
configure_ciphers: - several memory leaks where allocated ciphers were not freed. CID: 73813, 73710 - use after free. It is probably quite innocent as grub is single threaded, but could potentially be a problem with memory allocator debugger turned on. CID: 73730 luks_recover_key: - memory leak. CID: 73854
-
Andrei Borzenkov authored
Check that modinfo.sh could be read successfully; abort on error. Avoids potential out-of-bound array access. CID: 73819
-
Andrei Borzenkov authored
Magic size is 6 bytes and we copied 7 bytes in it. CID: 73587, 73888 Closes bug 43690
-
Michael Chang authored
Many routers have long router advertisment interval configured by default. The Neighbor Discovery protocol (RFC4861) has defined default MaxRtrAdvInterval value as 600 seconds and MinRtrAdvInterval as 0.33*MaxRtrAdvInterval. This makes net_ipv6_autoconf fails more often than not as currently it passively listens the RA message to perfom address autoconfiguration. This patch tries to send router solicitation to overcome the problem of long RA interval. v2: use cpu_to_be macro for network byte order conversion add missing error handling
-
- 20 Nov, 2014 2 commits
-
-
Andrei Borzenkov authored
-
Andrei Borzenkov authored
-
- 17 Nov, 2014 1 commit
-
-
Leif Lindholm authored
The EFI version of grub_machine_get_bootlocation crops the boot image name back to the last / in order to get a directory path. However, it does not check that *name is actually set before calling grub_strrchr to do this, and neither does grub_strrchr before dereferencing a NULL pointer. Parent function, grub_set_prefix_and_root, does check the pointer before using.
-
- 03 Nov, 2014 1 commit
-
-
Michael Chang authored
The structure size used in grub_netbuff_pull to get the pointer to option header is apparently wrong, which leads to subsequent range check failed and therefore not responding to any neighbor solicit message in my testing.
-
- 14 Oct, 2014 1 commit
-
-
Andrei Borzenkov authored
struct ... foo = { 0, } is valid initializer, but older GCC emits warning which is fatal error due to -Werror=missing-field-initializer. So simply use full initializer to avoid these errors. This was fixed probably in GCC 4.7. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
-
- 25 Sep, 2014 1 commit
-
-
Colin Watson authored
* configure.ac: Only remove include/grub/cpu and include/grub/machine in the --platform=none case, not all of include/grub.
-
- 23 Sep, 2014 1 commit
-
-
Colin Watson authored
This makes it possible to build generally-useful utilities such as grub-mount even if the rest of GRUB has not been ported to the target CPU. * configure.ac: Add "none" platform. Default to it for unsupported CPUs rather than stopping with a fatal error. Don't downgrade x86_64-none to i386. Define COND_real_platform Automake conditional if the platform is anything other than "none". Don't do any include directory linking for "none". * Makefile.am: Skip building grub-core and all bootcheck targets if !COND_real_platform. * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL is defined.
-
- 22 Sep, 2014 1 commit
-
-
Andrey Borzenkov authored
This tries to catch all cases where grub_cpu_to_XXX was used for constant expressions (including sizeof).
-
- 21 Sep, 2014 8 commits
-
-
Vladimir Serbinenko authored
This reverts commit 063f2a04.
-
Valentin Dornauer authored
The AML parser implements only a small subset of possible AML opcodes. On the Fujitsu Lifebook E744 this and another bug in the parser (incorrect handling of TermArg data types) would lead to the laptop not turning off (_S5 not found). * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser; in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs aren't always simply strings!); Add function to skip TermArgs * include/grub/acpi.h: Add new opcodes
-
Vladimir Serbinenko authored
case of password-protected prompt and no menu entries.
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
empty column rather than 0x0.
-
Vladimir Serbinenko authored
-
Michael Chang authored
-
Peter Jones authored
Currently, if "linux" fails, the "goto fail;" in grub_cmd_initrd sends us into grub_initrd_close() without grub_initrd_init() being called, and thus it never clears initrd_ctx->components. grub_initrd_close() then frees that address, which is stale data from the stack. If the stack happens to have a stale *address* there that matches a recent allocation, then you'll get a double free later. So initialize the memory up front. Signed-off-by:
Peter Jones <pjones@redhat.com>
-
- 19 Sep, 2014 1 commit
-
-
Colin Watson authored
-
- 15 Sep, 2014 1 commit
-
-
Khem Raj authored
* grub-core/kern/emu/hostfs.c: squahes below warning warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" Signed-off-by:
Khem Raj <raj.khem@gmail.com> Upstream-Status: Submitted
-
- 08 Sep, 2014 1 commit
-
-
Michael Chang authored
We encountered a weird random kernel initrd unpacking error on btrfs and finally found it was caused by incorrect address reference in range check for type GRUB_BTRFS_EXTENT_REGULAR and the entire result is unpredictable. This is a quick fix to make the address reference to the grub_btrfs_extent_data structure correctly, not the pointer variable to it. Any suggestions to this patch is welcome.
-
- 07 Sep, 2014 2 commits
-
-
Colin Watson authored
* configure.ac: Remove -m64 from checks for -mcmodel=large and -mno-red-zone. These are always either unnecessary (x86_64-emu) or already in TARGET_CFLAGS at this point, and they produce incorrect results when building for x32. * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast pointers to Elf64_Xword via grub_addr_t, in order to work on x32. * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P, GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
-
Colin Watson authored
-
- 25 Aug, 2014 1 commit
-
-
Colin Watson authored
Initialise pend to pacify GCC.
-
- 14 Aug, 2014 1 commit
-
-
Andrey Borzenkov authored
-
- 13 Aug, 2014 1 commit
-
-
Vladimir Serbinenko authored
scancode setup failed.
-
- 10 Aug, 2014 4 commits
-
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
safety to avoid triggerring VirtualBox bug.
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
Fixes hang on virtualbox.
-