]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
9 years agoFix emu compilation error on arm.
Vladimir Serbinenko [Fri, 12 Feb 2016 08:10:08 +0000 (09:10 +0100)] 
Fix emu compilation error on arm.

9 years agoxnu: Include relocated EFI in heap size.
Vladimir Serbinenko [Thu, 11 Feb 2016 11:30:45 +0000 (12:30 +0100)] 
xnu: Include relocated EFI in heap size.

9 years agoxnu: supply ramsize to the kernel.
Vladimir Serbinenko [Thu, 11 Feb 2016 10:58:28 +0000 (11:58 +0100)] 
xnu: supply ramsize to the kernel.

Without this info recent kernels crash as they allocate no heap.

9 years agosupport modules without symbol table
Andrei Borzenkov [Wed, 3 Feb 2016 17:34:55 +0000 (20:34 +0300)] 
support modules without symbol table

all_video module does not have any code or data and exists solely for
.moddeps section to pull in dependencies. This makes all symbols unneeded.

While in current binutils (last released version as of this commit is 2.26)
``strip --strip-unneeded'' unintentionally adds section symbols for each
existing section, this behavior was considered a bug and changed in commit
14f2c699ddca1e2f706342dffc59a6c7e23e844c to completely strip symbol table
in this case.

Older binutils (verified with 2.17) and some other toolchains (at least
elftoolchain r3223M), both used in FreeBSD, remove symbol table in all_video
as well.

Relax run-time check and do not return error for modules without symbol table.
Add additional checks to module verifier to make sure such modules

a) have non-empty .moddeps section. Without either externally visible symbols
or .moddeps modules are completely useless and should not be built.

b) do not have any relocations.

Closes: 46986
v2: add run-time check for empty symbol table if relocations are present as
    suggested by Vladimir.

9 years ago10_linux: avoid multi-device root= kernel argument
Andrei Borzenkov [Mon, 1 Feb 2016 17:13:48 +0000 (20:13 +0300)] 
10_linux: avoid multi-device root= kernel argument

If root filesystem is multidev btrfs, do not attempt to pass all devices as
kernel root= argument. This results in splitting command line in GRUB due to
embedded newline and even if we managed to quote it, kernel does not know how
to interpret it anyway. Multidev btrfs requires user space device scanning,
so passing single device would not work too.

This still respects user settings GRUB_DISABLE_LINUX_UUID. Not sure what we
should do in this case.

Closes: 45709
9 years agoError out if mtools invocation fails.
Vladimir Serbinenko [Fri, 22 Jan 2016 18:28:08 +0000 (19:28 +0100)] 
Error out if mtools invocation fails.

9 years agoarm64: Add support for relocations needed for linaro gcc
Vladimir Serbinenko [Fri, 22 Jan 2016 18:09:37 +0000 (19:09 +0100)] 
arm64: Add support for relocations needed for linaro gcc

9 years agoefiemu: Fix compilation failure
Vladimir Serbinenko [Fri, 22 Jan 2016 13:10:30 +0000 (14:10 +0100)] 
efiemu: Fix compilation failure

9 years agoDocument cpuid -p
Vladimir Serbinenko [Fri, 22 Jan 2016 12:50:53 +0000 (13:50 +0100)] 
Document cpuid -p

9 years agoefiemu: Handle persistent RAM and unknown possible future additions.
Robert Elliott [Fri, 22 Jan 2016 12:32:30 +0000 (13:32 +0100)] 
efiemu: Handle persistent RAM and unknown possible future additions.

9 years agoDocument expr1 expr2 syntax for test command
Vladimir Serbinenko [Fri, 22 Jan 2016 12:27:36 +0000 (13:27 +0100)] 
Document expr1 expr2 syntax for test command

9 years agoRestore terminal settings on grub-emu exit.
Michael Chang [Fri, 22 Jan 2016 10:05:32 +0000 (11:05 +0100)] 
Restore terminal settings on grub-emu exit.

9 years agoxen_boot: Remove obsolete module type distinctions.
Vladimir Serbinenko [Fri, 22 Jan 2016 09:18:47 +0000 (10:18 +0100)] 
xen_boot: Remove obsolete module type distinctions.

9 years agoarm: Ignore qemu clock bug
Vladimir Serbinenko [Fri, 8 Jan 2016 15:22:47 +0000 (16:22 +0100)] 
arm: Ignore qemu clock bug

9 years agoi386-ieee1275: Increase maximum heap size to accomodate highres graphi tests
Vladimir Serbinenko [Fri, 8 Jan 2016 15:22:19 +0000 (16:22 +0100)] 
i386-ieee1275: Increase maximum heap size to accomodate highres graphi tests

9 years agoRemove pragmas related to -Wunreachable-code
Colin Watson [Wed, 20 Jan 2016 15:56:55 +0000 (15:56 +0000)] 
Remove pragmas related to -Wunreachable-code

-Wunreachable-code has been a no-op since GCC 4.5; GRUB hasn't been
compiled with it since 2012; and GCC 6 produces "error:
'-Wunreachable-code' is not an option that controls warnings" for these.

Fixes Debian bug #812047.

9 years agoloader/bsd: Fix signed/unsigned comparison
Colin Watson [Sat, 16 Jan 2016 20:40:55 +0000 (20:40 +0000)] 
loader/bsd: Fix signed/unsigned comparison

9 years agoahci, ehci: Fix typos
Colin Watson [Sat, 16 Jan 2016 20:37:15 +0000 (20:37 +0000)] 
ahci, ehci: Fix typos

9 years agogrub-probe: fix memory leak
Andrei Borzenkov [Sat, 16 Jan 2016 18:47:28 +0000 (21:47 +0300)] 
grub-probe: fix memory leak

Found by: Coverity scan.
CID: 73783

9 years agotftp: fix memory leaks in open
Andrei Borzenkov [Sat, 16 Jan 2016 18:27:57 +0000 (21:27 +0300)] 
tftp: fix memory leaks in open

If protocol open fails, file is immediately freed, so data was leaked.

Found by: Coverity scan.
CID: 96659

9 years agotcp: fix memory leaks
Andrei Borzenkov [Sat, 16 Jan 2016 17:59:50 +0000 (20:59 +0300)] 
tcp: fix memory leaks

Found by: Coverity scan.
CID: 96639, 96647

9 years agonet: fix memory leaks
Andrei Borzenkov [Sat, 16 Jan 2016 17:48:33 +0000 (20:48 +0300)] 
net: fix memory leaks

Found by: Coverity scan.
CID: 96638, 96648

9 years agolegacycfg: fix memory leaks and add NULL check
Andrei Borzenkov [Sat, 16 Jan 2016 17:34:02 +0000 (20:34 +0300)] 
legacycfg: fix memory leaks and add NULL check

Memory leaks found by Coverity scan.
CID: 96642, 96645

9 years agoloader: Unintended sign extension
Andrei Borzenkov [Wed, 13 Jan 2016 17:15:07 +0000 (20:15 +0300)] 
loader: Unintended sign extension

CID: 96707, 96699, 96693, 96691, 96711, 96709, 96708, 96703, 96702,
96700, 96698, 96696, 96695, 96692, 96710, 96705

9 years agoscript: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 19:50:30 +0000 (22:50 +0300)] 
script: fix memory leak

Found by: Coverity scan.
CID: 96637

9 years agonormal: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 19:36:53 +0000 (22:36 +0300)] 
normal: fix memory leak

Found by: Coverity scan.
CID: 96641, 96670, 96667

9 years agoxnu: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 18:43:43 +0000 (21:43 +0300)] 
xnu: fix memory leak

Found by: Coverity scan.
CID: 96663

9 years agotruecrypt: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 18:41:48 +0000 (21:41 +0300)] 
truecrypt: fix memory leak

Found by: Coverity scan.
CID: 156611

9 years agogfxmenu: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 18:33:34 +0000 (21:33 +0300)] 
gfxmenu: fix memory leak

Found by: Coverity scan.
CID: 96657

9 years agoefiemu: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 18:25:40 +0000 (21:25 +0300)] 
efiemu: fix memory leak

Found by: Coverity scan.
CID: 156610

9 years agoefidisk: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 18:16:34 +0000 (21:16 +0300)] 
efidisk: fix memory leak

Found by: Coverity scan.
CID: 96644

9 years agoverify: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 18:10:12 +0000 (21:10 +0300)] 
verify: fix memory leak

Found by: Coverity scan.
CID: 96643

9 years agopassword_pbkdf2: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 17:53:26 +0000 (20:53 +0300)] 
password_pbkdf2: fix memory leak

Found by: Coverity scan.
CID: 96656

9 years agoparttool: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 17:41:44 +0000 (20:41 +0300)] 
parttool: fix memory leak

Found by: Coverity scan.
CID: 96652

9 years agonativedisk: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 17:37:43 +0000 (20:37 +0300)] 
nativedisk: fix memory leak

Based on Coverity scan.
CID: 96660

Extended to also cover other error return places.

9 years agoacpi: fix memory leak
Andrei Borzenkov [Tue, 12 Jan 2016 17:26:30 +0000 (20:26 +0300)] 
acpi: fix memory leak

Found by: Coverity scan.
CID: 96673

9 years agogrub-install: include ehci in list of native modules
Andrei Borzenkov [Sun, 10 Jan 2016 13:08:06 +0000 (16:08 +0300)] 
grub-install: include ehci in list of native modules

This matches behavior of "nativedisk" command.

Reported and tested by Smith Henry <sh37092@gmail.com>

9 years agogrub-mkimage: remove redundant NULL check
Andrei Borzenkov [Sun, 10 Jan 2016 08:51:34 +0000 (11:51 +0300)] 
grub-mkimage: remove redundant NULL check

Found by: Coverity scan.
CID: 73737

9 years agonet: remove dead and redundant code
Andrei Borzenkov [Sun, 10 Jan 2016 08:33:13 +0000 (11:33 +0300)] 
net: remove dead and redundant code

server cannot be NULL at this point (we return error earlier if it is).
Also structure is zalloc'ed, so no need to explicitly initialize
members to 0.

Found by: Coverity scan.
CID: 73837

9 years agohostdisk: fix device detection
Andrei Borzenkov [Sun, 10 Jan 2016 07:41:04 +0000 (10:41 +0300)] 
hostdisk: fix device detection

Condition was apparently reversed so GRUB assumed all devices were
files. This later made it skip BLKFLSBUF ioctl on Linux which caused
various page cache coherency issues. Observed were

- failure to validate blocklist install (read content did not match
  just written)

- failure to detect Linux MD on disk after online hot addition
  (GRUB got stale superblock)

Closes: 46691
9 years agosetup: fix NULL pointer dereference
Andrei Borzenkov [Sat, 9 Jan 2016 18:25:22 +0000 (21:25 +0300)] 
setup: fix NULL pointer dereference

Check return value of grub_guess_root_devices

Found by: Coverity scan.
CID: 73638, 73751

9 years agomkimage: fix unintended sign extension
Andrei Borzenkov [Sat, 9 Jan 2016 18:05:44 +0000 (21:05 +0300)] 
mkimage: fix unintended sign extension

Found by: Coverity scan.
CID: 73691, 73717

9 years agoutil/getroot: delete dead code
Andrei Borzenkov [Sat, 9 Jan 2016 17:54:54 +0000 (20:54 +0300)] 
util/getroot: delete dead code

is_part cannot be non-zero at this point.

Found by: Coveruty scan.
CID: 73838

9 years agoloader/multiboot: fix unintended sign extension
Andrei Borzenkov [Sat, 9 Jan 2016 16:58:51 +0000 (19:58 +0300)] 
loader/multiboot: fix unintended sign extension

Found by: Coveruty scan.
CID: 73700, 73763

9 years agokern/elf: fix unintended sign extension
Andrei Borzenkov [Sat, 9 Jan 2016 16:41:26 +0000 (19:41 +0300)] 
kern/elf: fix unintended sign extension

Found by: Coverity scan.
CID: 73729, 73735, 73758, 73760

9 years agoxfs: fix possible inode corruption in directory scan
Andrei Borzenkov [Sat, 9 Jan 2016 15:55:55 +0000 (18:55 +0300)] 
xfs: fix possible inode corruption in directory scan

grub_xfs_iterate_dir did not restore first character after inline
name when match was found. Dependning on XFS format this character
could be inode number and we could return to the same node later in
find_file if processing cycled symlinks.

CID: 86724

9 years agorescue_parser: restructure code to avoid Coverity false positive
Andrei Borzenkov [Sat, 9 Jan 2016 15:15:27 +0000 (18:15 +0300)] 
rescue_parser: restructure code to avoid Coverity false positive

If line contains single word, line and argv[0] are aliases, so
no NULL dereference is possible, but Coverity does not know it.
Change code to avoid ambiguity and also remove redundant call to
grub_strchr.

CID: 86725

9 years agogrub-mklayout: check subscript bounds
Andrei Borzenkov [Sat, 9 Jan 2016 11:13:36 +0000 (14:13 +0300)] 
grub-mklayout: check subscript bounds

Found by: Coverity scan.
CID: 73686

9 years agogrub-probe: fix memory leak
Andrei Borzenkov [Sat, 9 Jan 2016 10:49:37 +0000 (13:49 +0300)] 
grub-probe: fix memory leak

Found by: Coverity scan.
CID: 73783

9 years agogfxmenu: fix memory leak
Andrei Borzenkov [Sat, 9 Jan 2016 10:43:04 +0000 (13:43 +0300)] 
gfxmenu: fix memory leak

Found by: Coverity scan.
CID: 73766

9 years agoutil/setup: fix grub_util_path_list leak
Andrei Borzenkov [Sat, 9 Jan 2016 10:28:42 +0000 (13:28 +0300)] 
util/setup: fix grub_util_path_list leak

Add helper grub_util_free_path_list and use it where appropriate.

Found by: Coverity scan.
CID: 73727

9 years agosetup: fix memory leak
Andrei Borzenkov [Sat, 9 Jan 2016 10:10:10 +0000 (13:10 +0300)] 
setup: fix memory leak

Found by: Coverity scan.
CID: 73680, 73715

9 years agoefiemu: check return value of grub_efiemu_write_value
Andrei Borzenkov [Sat, 9 Jan 2016 08:05:33 +0000 (11:05 +0300)] 
efiemu: check return value of grub_efiemu_write_value

Found by: Coverity scan.
CID: 73590

9 years agoefiemu: change code to avoid Coverity false positive
Andrei Borzenkov [Sat, 9 Jan 2016 07:59:51 +0000 (10:59 +0300)] 
efiemu: change code to avoid Coverity false positive

CID: 73623

9 years agoefiemu: fix unintended sign extension
Andrei Borzenkov [Sat, 9 Jan 2016 07:53:31 +0000 (10:53 +0300)] 
efiemu: fix unintended sign extension

Found by: Coverity scan.
CID: 73883, 73637

9 years agohfs: fix memory leak
Andrei Borzenkov [Fri, 8 Jan 2016 08:16:56 +0000 (11:16 +0300)] 
hfs: fix memory leak

Found by: Coverity scan.
CID: 156531

9 years agogrub-module-verifier: fix unintended sign extension
Andrei Borzenkov [Fri, 8 Jan 2016 08:05:16 +0000 (11:05 +0300)] 
grub-module-verifier: fix unintended sign extension

Found by: Coverity scan.
CID: 156533, 156532

9 years agoTests: Support arm-efi
Vladimir Serbinenko [Fri, 8 Jan 2016 08:49:08 +0000 (09:49 +0100)] 
Tests: Support arm-efi

9 years agoarm64/setjmp: Add missing move for arg1 == 0 case.
Vladimir Serbinenko [Thu, 7 Jan 2016 20:10:05 +0000 (21:10 +0100)] 
arm64/setjmp: Add missing move for arg1 == 0 case.

9 years agogrub-shell: Support arm64-efi
Vladimir Serbinenko [Thu, 7 Jan 2016 20:02:53 +0000 (21:02 +0100)] 
grub-shell: Support arm64-efi

9 years agoarm-efi: Reduce timer event frequency by 10
Mark Salter [Thu, 7 Jan 2016 19:53:41 +0000 (20:53 +0100)] 
arm-efi: Reduce timer event frequency by 10

Timer event to keep grub msec counter was running at 1000HZ. This was too
fast for UEFI timer driver and resulted in a 10x slowdown in grub time
versus wallclock. Reduce the timer event frequency and increase tick
increment accordingly to keep better time.

9 years agox86_64-efi: Automatically add -bios OVMF.fd to qemu in tests.
Vladimir Serbinenko [Thu, 7 Jan 2016 18:29:53 +0000 (19:29 +0100)] 
x86_64-efi: Automatically add -bios OVMF.fd to qemu in tests.

9 years agoAllow GRUB_QEMU_OPTS to override machine.
Vladimir Serbinenko [Thu, 7 Jan 2016 18:28:47 +0000 (19:28 +0100)] 
Allow GRUB_QEMU_OPTS to override machine.

9 years agoarm64: Disable tests that need native drivers.
Vladimir Serbinenko [Thu, 7 Jan 2016 18:27:56 +0000 (19:27 +0100)] 
arm64: Disable tests that need native drivers.

9 years agoDisable NetBSD bootcheck on EFI until it supports ACPI on EFI.
Vladimir Serbinenko [Thu, 7 Jan 2016 18:26:45 +0000 (19:26 +0100)] 
Disable NetBSD bootcheck on EFI until it supports ACPI on EFI.

9 years agogrub-shell: Use new cbfstool syntax.
Vladimir Serbinenko [Thu, 7 Jan 2016 14:55:45 +0000 (15:55 +0100)] 
grub-shell: Use new cbfstool syntax.

9 years agogrub-shell: On i386-ieee1275 don't try to switch to console.
Vladimir Serbinenko [Thu, 7 Jan 2016 14:54:42 +0000 (15:54 +0100)] 
grub-shell: On i386-ieee1275 don't try to switch to console.

console goes to serial as well, so this doesn't stop garbage from going
to serial. But it creates garbage itself.

9 years agohddboot_test: reenable on OVMF
Vladimir Serbinenko [Thu, 7 Jan 2016 14:54:06 +0000 (15:54 +0100)] 
hddboot_test: reenable on OVMF

OVMF now supports booting from disks.

9 years agoiee1275/datetime: Fix off-by-1 error.
Vladimir Serbinenko [Thu, 7 Jan 2016 14:53:42 +0000 (15:53 +0100)] 
iee1275/datetime: Fix off-by-1 error.

9 years agoAdjust bootcheck tests for multiboot/coreboot/qemu to match real support.
Vladimir Serbinenko [Thu, 7 Jan 2016 14:51:03 +0000 (15:51 +0100)] 
Adjust bootcheck tests for multiboot/coreboot/qemu to match real support.

coreboot has ACPI while 2 others don't. *BSD need ACPI and have trouble
without it. Don't even attempt to boot *BSD on multiboot or qemu targets.

On coreboot boot all *BSD except 32-bit NetBSD which apparently does some
early BIOS calls.

9 years agominixfs_test: Check if mkfs.minixfs supports -B option.
Vladimir Serbinenko [Tue, 5 Jan 2016 15:36:21 +0000 (16:36 +0100)] 
minixfs_test: Check if mkfs.minixfs supports -B option.

9 years agoAdd memdisk support to grub-emu.
Vladimir Serbinenko [Tue, 5 Jan 2016 11:59:44 +0000 (12:59 +0100)] 
Add memdisk support to grub-emu.

Use it to add custom files, so that tests which need them work.

9 years agoMove file loading functions to grub-emu.
Vladimir Serbinenko [Tue, 5 Jan 2016 11:49:12 +0000 (12:49 +0100)] 
Move file loading functions to grub-emu.

So that we can use it in grub-emu as well as utils.

9 years agoDisable progress indicator in grub-shell.
Vladimir Serbinenko [Tue, 5 Jan 2016 11:47:30 +0000 (12:47 +0100)] 
Disable progress indicator in grub-shell.

This disables progress indicator for tests. This in turn fixes test
flakiness as they ended up timing-dependent.

9 years agoUpdate checksums
Vladimir Serbinenko [Tue, 5 Jan 2016 10:54:39 +0000 (11:54 +0100)] 
Update checksums

9 years agoacpihalt: add GRUB_ACPI_OPCODE_CREATE_DWORD_FIELD (0x8a)
Andrei Borzenkov [Sat, 2 Jan 2016 18:33:18 +0000 (21:33 +0300)] 
acpihalt: add GRUB_ACPI_OPCODE_CREATE_DWORD_FIELD (0x8a)

Fixes ACPI halt on ASUSTeK P8B75-V,
Bios: American Megatrends v: 0414 date: 04/24/2012

Reported-By: Goh Lip <g.lip@gmx.com>
9 years agoacpihalt: fix GRUB_DSDT_TEST compilation
Andrei Borzenkov [Sat, 2 Jan 2016 16:02:19 +0000 (19:02 +0300)] 
acpihalt: fix GRUB_DSDT_TEST compilation

9 years agoAdd missing BUILD_EXEEXT
Andrei Borzenkov [Fri, 1 Jan 2016 08:13:54 +0000 (11:13 +0300)] 
Add missing BUILD_EXEEXT

9 years agoconfigure.ac: Reorder efiemu check to after link format check.
Vladimir Serbinenko [Thu, 31 Dec 2015 21:34:26 +0000 (22:34 +0100)] 
configure.ac: Reorder efiemu check to after link format check.

efiemu is supposed to be disabled when compiling through exe format.
Unfortunately format was determined only after efiemu check. Reorder to fix the
problem

9 years agoremove temporary .bin files (kernel and modules)
Andrey Borzenkov [Thu, 31 Dec 2015 20:00:25 +0000 (23:00 +0300)] 
remove temporary .bin files (kernel and modules)

9 years agoadd dejavu built fonts to cleanfiles
Andrey Borzenkov [Thu, 31 Dec 2015 19:23:12 +0000 (22:23 +0300)] 
add dejavu built fonts to cleanfiles

9 years agoAdd grub-module-verifier files to EXTRA_DIST
Andrei Borzenkov [Thu, 31 Dec 2015 18:35:11 +0000 (21:35 +0300)] 
Add grub-module-verifier files to EXTRA_DIST

9 years agoconfigure: Add -fno-unwind-tables if supported.
Vladimir Serbinenko [Thu, 31 Dec 2015 18:20:03 +0000 (19:20 +0100)] 
configure: Add -fno-unwind-tables if supported.

Unwind tables are useless for us bt consume space if present. Ensure that they
are not.

9 years agomodule-verifier: allow limited-range relocations on sparc64.
Vladimir Serbinenko [Thu, 31 Dec 2015 17:30:39 +0000 (18:30 +0100)] 
module-verifier: allow limited-range relocations on sparc64.

clang as incomplete mcmodel=large support. As we don't currently need full
mcmodel=large support for sparc64, relax those checks.

9 years agoDisable build-time module check on emu.
Vladimir Serbinenko [Thu, 31 Dec 2015 17:20:11 +0000 (18:20 +0100)] 
Disable build-time module check on emu.

On emu some checks can be laxer like check for relocation range. Additionally
module loading in emu is rarely used. So skip this check rather than making
it laxer for all platforms. In ideal we may want to have slightly different
check for emu but for now this is good enough.

9 years agoconfigure: Fix grub_cv_cc_fno_unwind_tables check.
Vladimir Serbinenko [Thu, 31 Dec 2015 17:19:15 +0000 (18:19 +0100)] 
configure: Fix grub_cv_cc_fno_unwind_tables check.

Check tries -fno-dwarf2-cfi-asm but adds -fno-asynchronous-unwind-tables
to TARGET_CFLAGS. Fix this.

9 years agoAdd -mno-stack-arg-probe on mingw.
Vladimir Serbinenko [Thu, 31 Dec 2015 17:15:49 +0000 (18:15 +0100)] 
Add -mno-stack-arg-probe on mingw.

This argument disables generation of calls to __chkstk_ms. Those calls are
useless on GRUB as function is dummy. Yet they increase module size and
use limited-range relocations which may not work under some memory layouts.
We currently don't use such layouts on concerned platforms but lt's correct
this.

9 years agoStrip .ARM.exidx
Vladimir Serbinenko [Thu, 31 Dec 2015 17:13:59 +0000 (18:13 +0100)] 
Strip .ARM.exidx

This section is generated by clang and is useful only for debugging.
It contains exotic relocations, so strip them to avoid them interferring
with module loading.

9 years agomodule-verifier: Check range-limited relative relocations.
Vladimir Serbinenko [Thu, 31 Dec 2015 14:29:28 +0000 (15:29 +0100)] 
module-verifier: Check range-limited relative relocations.

Check that they point to the same module, so will end up in the same
chunk of memory.

9 years agoxen/relocator: Use local symbol to ensure that code is relocation-free.
Vladimir Serbinenko [Thu, 31 Dec 2015 13:54:56 +0000 (14:54 +0100)] 
xen/relocator: Use local symbol to ensure that code is relocation-free.

9 years agobacktrace: Fix register call syntax
Vladimir Serbinenko [Thu, 31 Dec 2015 13:54:48 +0000 (14:54 +0100)] 
backtrace: Fix register call syntax

9 years agoVerify modules on build-time rather than failing in runtime.
Vladimir Serbinenko [Thu, 31 Dec 2015 12:09:15 +0000 (13:09 +0100)] 
Verify modules on build-time rather than failing in runtime.

9 years agosparc64: Fix assembly to let compiler to fill in memory references.
Vladimir Serbinenko [Thu, 31 Dec 2015 12:07:16 +0000 (13:07 +0100)] 
sparc64: Fix assembly to let compiler to fill in memory references.

This fixes the use of not fully relocatable (they assume that variables are
under 4G limit in virtual memory) references.

9 years ago30_os-prober: derive --class from os-prober generated label
Andrey Borzenkov [Wed, 30 Dec 2015 19:30:16 +0000 (22:30 +0300)] 
30_os-prober: derive --class from os-prober generated label

Currently only Windows gets distinguished icons, everything else is displayed
using the same generic one. Add additional --class based on os-prober returned
label, which usually is expected to match primary distribution name.

Also use it for Windows as well - chainloader prober may actually return
different strings (Windows, MS-DOS, Windows9xME).

9 years agobacktrace: Remove assembly assumption that grub_backtrace_pointer is under 4G
Vladimir Serbinenko [Wed, 30 Dec 2015 17:19:44 +0000 (18:19 +0100)] 
backtrace: Remove assembly assumption that grub_backtrace_pointer is under 4G

9 years agomenu: fix line count calculation for long lines
Andrei Borzenkov [Wed, 30 Dec 2015 03:20:51 +0000 (06:20 +0300)] 
menu: fix line count calculation for long lines

It gave one extra screen line if length was exactly equal to screen
width.

Reported by Michael Chang.
Also-By: Michael Chang <mchang@suse.com>
9 years agogrub-mkrescue: Delete temporary file
Vladimir Serbinenko [Tue, 29 Dec 2015 16:48:34 +0000 (17:48 +0100)] 
grub-mkrescue: Delete temporary file

Reported by: Thomas Schmitt

9 years agogrub-mount: Fix oath parsing.
Vladimir Serbinenko [Tue, 29 Dec 2015 16:43:05 +0000 (17:43 +0100)] 
grub-mount: Fix oath parsing.

Brackets detection was copied from somewhere else and makes no sense in case
of grub-mount and prevents user from accessing and files with ) in them.

9 years agoexfat: Fix stream extension flag parsing.
Vladimir Serbinenko [Tue, 29 Dec 2015 16:42:25 +0000 (17:42 +0100)] 
exfat: Fix stream extension flag parsing.

9 years agodevmapper: check for valid device abstraction in get_grub_dev
Andrei Borzenkov [Sat, 26 Dec 2015 18:45:22 +0000 (21:45 +0300)] 
devmapper: check for valid device abstraction in get_grub_dev

This was lost when code was refactored. Patch restores previous behavior.

It is still not clear whether this is the right one. Due to the way we
detect DM abstraction, partitions on DM are skipped, we fall through to
generic detection which ends up in assuming parent device is BIOS disk.

It is useful to install GRUB on VM disk from the host. But it also means
that GRUB will mistakenly allow install on real system as well.

For now let's fix regression; future behavior needs to be discussed.

Closes: 45163