]>
git.ipfire.org Git - thirdparty/grub.git/log
Eric Snowberg [Fri, 12 Feb 2016 22:16:03 +0000 (23:16 +0100)]
OBP available region contains grub. Start at grub_phys_end.
This prevents a problem where grub was being overwritten since
grub_phys_start does not start at a zero offset within the memory
map.
Andreas Freimuth [Fri, 12 Feb 2016 18:19:11 +0000 (19:19 +0100)]
Add Thinkpad T410s button cmos address.
Vladimir Serbinenko [Fri, 12 Feb 2016 16:51:52 +0000 (17:51 +0100)]
TODO: Remove obsolete link
Toomas Soome [Fri, 12 Feb 2016 15:31:23 +0000 (16:31 +0100)]
lz4: Fix pointer overflow
Vladimir Serbinenko [Fri, 12 Feb 2016 15:08:04 +0000 (16:08 +0100)]
grub-shell: Update 32-bit OVMF binary name.
Daniel Kiper [Fri, 12 Feb 2016 14:58:22 +0000 (15:58 +0100)]
relocator: Fix integer underflow.
Vladimir Serbinenko [Fri, 12 Feb 2016 14:46:05 +0000 (15:46 +0100)]
Change -v to -V for version of shell utils.
Vladimir Serbinenko [Fri, 12 Feb 2016 14:42:26 +0000 (15:42 +0100)]
xnu: Add new kernel path to autoconfig.
Vladimir Serbinenko [Fri, 12 Feb 2016 11:43:02 +0000 (12:43 +0100)]
arm64: Use cpu timer for timekeeping.
Vladimir Serbinenko [Fri, 12 Feb 2016 11:42:04 +0000 (12:42 +0100)]
powerpc: Trim header in tests.
Vladimir Serbinenko [Fri, 12 Feb 2016 11:41:28 +0000 (12:41 +0100)]
default_payload: Include syslinuxcfg, all filesystems and xnu.
Vladimir Serbinenko [Fri, 12 Feb 2016 11:40:10 +0000 (12:40 +0100)]
xnu: Supply random seed.
Now we're able to load kernels up to El Capitan.
Vladimir Serbinenko [Fri, 12 Feb 2016 11:39:38 +0000 (12:39 +0100)]
Add RNG module.
Vladimir Serbinenko [Fri, 12 Feb 2016 11:34:54 +0000 (12:34 +0100)]
yylex: use grub_fatal for exit.
lexer calls yylex_fatal on fatal internal errors. yylex_fatal itself is
declared as noreturn and calls exit. Returning from noreturn function has
unpredictable consequences.
Vladimir Serbinenko [Fri, 12 Feb 2016 11:33:41 +0000 (12:33 +0100)]
printf: Fix and test %% behaviour in presence of subsequenbt args.
Vladimir Serbinenko [Fri, 12 Feb 2016 10:40:51 +0000 (11:40 +0100)]
Split pmtimer wait and tsc measurement from pmtimer tsc calibration.
Vladimir Serbinenko [Fri, 12 Feb 2016 10:38:51 +0000 (11:38 +0100)]
Make grub_cpu_is_tsc_supported generally available.
Vladimir Serbinenko [Fri, 12 Feb 2016 10:35:48 +0000 (11:35 +0100)]
Make grub_acpi_find_fadt accessible generically
Vladimir Serbinenko [Fri, 12 Feb 2016 08:11:06 +0000 (09:11 +0100)]
Make unaligned types public.
This simplifies code which has to handle those types.
Vladimir Serbinenko [Fri, 12 Feb 2016 08:10:08 +0000 (09:10 +0100)]
Fix emu compilation error on arm.
Vladimir Serbinenko [Thu, 11 Feb 2016 11:30:45 +0000 (12:30 +0100)]
xnu: Include relocated EFI in heap size.
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.
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.
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
Vladimir Serbinenko [Fri, 22 Jan 2016 18:28:08 +0000 (19:28 +0100)]
Error out if mtools invocation fails.
Vladimir Serbinenko [Fri, 22 Jan 2016 18:09:37 +0000 (19:09 +0100)]
arm64: Add support for relocations needed for linaro gcc
Vladimir Serbinenko [Fri, 22 Jan 2016 13:10:30 +0000 (14:10 +0100)]
efiemu: Fix compilation failure
Vladimir Serbinenko [Fri, 22 Jan 2016 12:50:53 +0000 (13:50 +0100)]
Document cpuid -p
Robert Elliott [Fri, 22 Jan 2016 12:32:30 +0000 (13:32 +0100)]
efiemu: Handle persistent RAM and unknown possible future additions.
Vladimir Serbinenko [Fri, 22 Jan 2016 12:27:36 +0000 (13:27 +0100)]
Document expr1 expr2 syntax for test command
Michael Chang [Fri, 22 Jan 2016 10:05:32 +0000 (11:05 +0100)]
Restore terminal settings on grub-emu exit.
Vladimir Serbinenko [Fri, 22 Jan 2016 09:18:47 +0000 (10:18 +0100)]
xen_boot: Remove obsolete module type distinctions.
Vladimir Serbinenko [Fri, 8 Jan 2016 15:22:47 +0000 (16:22 +0100)]
arm: Ignore qemu clock bug
Vladimir Serbinenko [Fri, 8 Jan 2016 15:22:19 +0000 (16:22 +0100)]
i386-ieee1275: Increase maximum heap size to accomodate highres graphi tests
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.
Colin Watson [Sat, 16 Jan 2016 20:40:55 +0000 (20:40 +0000)]
loader/bsd: Fix signed/unsigned comparison
Colin Watson [Sat, 16 Jan 2016 20:37:15 +0000 (20:37 +0000)]
ahci, ehci: Fix typos
Andrei Borzenkov [Sat, 16 Jan 2016 18:47:28 +0000 (21:47 +0300)]
grub-probe: fix memory leak
Found by: Coverity scan.
CID: 73783
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
Andrei Borzenkov [Sat, 16 Jan 2016 17:59:50 +0000 (20:59 +0300)]
tcp: fix memory leaks
Found by: Coverity scan.
CID: 96639, 96647
Andrei Borzenkov [Sat, 16 Jan 2016 17:48:33 +0000 (20:48 +0300)]
net: fix memory leaks
Found by: Coverity scan.
CID: 96638, 96648
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
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
Andrei Borzenkov [Tue, 12 Jan 2016 19:50:30 +0000 (22:50 +0300)]
script: fix memory leak
Found by: Coverity scan.
CID: 96637
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
Andrei Borzenkov [Tue, 12 Jan 2016 18:43:43 +0000 (21:43 +0300)]
xnu: fix memory leak
Found by: Coverity scan.
CID: 96663
Andrei Borzenkov [Tue, 12 Jan 2016 18:41:48 +0000 (21:41 +0300)]
truecrypt: fix memory leak
Found by: Coverity scan.
CID: 156611
Andrei Borzenkov [Tue, 12 Jan 2016 18:33:34 +0000 (21:33 +0300)]
gfxmenu: fix memory leak
Found by: Coverity scan.
CID: 96657
Andrei Borzenkov [Tue, 12 Jan 2016 18:25:40 +0000 (21:25 +0300)]
efiemu: fix memory leak
Found by: Coverity scan.
CID: 156610
Andrei Borzenkov [Tue, 12 Jan 2016 18:16:34 +0000 (21:16 +0300)]
efidisk: fix memory leak
Found by: Coverity scan.
CID: 96644
Andrei Borzenkov [Tue, 12 Jan 2016 18:10:12 +0000 (21:10 +0300)]
verify: fix memory leak
Found by: Coverity scan.
CID: 96643
Andrei Borzenkov [Tue, 12 Jan 2016 17:53:26 +0000 (20:53 +0300)]
password_pbkdf2: fix memory leak
Found by: Coverity scan.
CID: 96656
Andrei Borzenkov [Tue, 12 Jan 2016 17:41:44 +0000 (20:41 +0300)]
parttool: fix memory leak
Found by: Coverity scan.
CID: 96652
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.
Andrei Borzenkov [Tue, 12 Jan 2016 17:26:30 +0000 (20:26 +0300)]
acpi: fix memory leak
Found by: Coverity scan.
CID: 96673
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>
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
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
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
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
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
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
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
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
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
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
Andrei Borzenkov [Sat, 9 Jan 2016 11:13:36 +0000 (14:13 +0300)]
grub-mklayout: check subscript bounds
Found by: Coverity scan.
CID: 73686
Andrei Borzenkov [Sat, 9 Jan 2016 10:49:37 +0000 (13:49 +0300)]
grub-probe: fix memory leak
Found by: Coverity scan.
CID: 73783
Andrei Borzenkov [Sat, 9 Jan 2016 10:43:04 +0000 (13:43 +0300)]
gfxmenu: fix memory leak
Found by: Coverity scan.
CID: 73766
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
Andrei Borzenkov [Sat, 9 Jan 2016 10:10:10 +0000 (13:10 +0300)]
setup: fix memory leak
Found by: Coverity scan.
CID: 73680, 73715
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
Andrei Borzenkov [Sat, 9 Jan 2016 07:59:51 +0000 (10:59 +0300)]
efiemu: change code to avoid Coverity false positive
CID: 73623
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
Andrei Borzenkov [Fri, 8 Jan 2016 08:16:56 +0000 (11:16 +0300)]
hfs: fix memory leak
Found by: Coverity scan.
CID: 156531
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
Vladimir Serbinenko [Fri, 8 Jan 2016 08:49:08 +0000 (09:49 +0100)]
Tests: Support arm-efi
Vladimir Serbinenko [Thu, 7 Jan 2016 20:10:05 +0000 (21:10 +0100)]
arm64/setjmp: Add missing move for arg1 == 0 case.
Vladimir Serbinenko [Thu, 7 Jan 2016 20:02:53 +0000 (21:02 +0100)]
grub-shell: Support arm64-efi
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.
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.
Vladimir Serbinenko [Thu, 7 Jan 2016 18:28:47 +0000 (19:28 +0100)]
Allow GRUB_QEMU_OPTS to override machine.
Vladimir Serbinenko [Thu, 7 Jan 2016 18:27:56 +0000 (19:27 +0100)]
arm64: Disable tests that need native drivers.
Vladimir Serbinenko [Thu, 7 Jan 2016 18:26:45 +0000 (19:26 +0100)]
Disable NetBSD bootcheck on EFI until it supports ACPI on EFI.
Vladimir Serbinenko [Thu, 7 Jan 2016 14:55:45 +0000 (15:55 +0100)]
grub-shell: Use new cbfstool syntax.
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.
Vladimir Serbinenko [Thu, 7 Jan 2016 14:54:06 +0000 (15:54 +0100)]
hddboot_test: reenable on OVMF
OVMF now supports booting from disks.
Vladimir Serbinenko [Thu, 7 Jan 2016 14:53:42 +0000 (15:53 +0100)]
iee1275/datetime: Fix off-by-1 error.
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.
Vladimir Serbinenko [Tue, 5 Jan 2016 15:36:21 +0000 (16:36 +0100)]
minixfs_test: Check if mkfs.minixfs supports -B option.
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.
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.
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.
Vladimir Serbinenko [Tue, 5 Jan 2016 10:54:39 +0000 (11:54 +0100)]
Update checksums
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>
Andrei Borzenkov [Sat, 2 Jan 2016 16:02:19 +0000 (19:02 +0300)]
acpihalt: fix GRUB_DSDT_TEST compilation
Andrei Borzenkov [Fri, 1 Jan 2016 08:13:54 +0000 (11:13 +0300)]
Add missing BUILD_EXEEXT
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
Andrey Borzenkov [Thu, 31 Dec 2015 20:00:25 +0000 (23:00 +0300)]
remove temporary .bin files (kernel and modules)
Andrey Borzenkov [Thu, 31 Dec 2015 19:23:12 +0000 (22:23 +0300)]
add dejavu built fonts to cleanfiles