]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
9 years agoAdd some UUIDs found in the hardware
Pavel Bludov [Wed, 11 Nov 2015 07:21:52 +0000 (15:21 +0800)] 
Add some UUIDs found in the hardware

9 years agogfxterm: fix calculation of terminal-top and terminal-height
Konstantin Vlasov [Fri, 13 Nov 2015 18:54:19 +0000 (21:54 +0300)] 
gfxterm: fix calculation of terminal-top and terminal-height

They used screen width, not height.

9 years agoofdisk: add sas disks to the device list
Paulo Flabiano Smorigo [Sun, 8 Nov 2015 23:52:22 +0000 (21:52 -0200)] 
ofdisk: add sas disks to the device list

9 years agomultiboot: Don't rely on particular ordering of options.
Vladimir Serbinenko [Thu, 12 Nov 2015 10:54:38 +0000 (11:54 +0100)] 
multiboot: Don't rely on particular ordering of options.

9 years agomultiboot_mbi: Fix handling of --quirk-bad-kludge.
Vladimir Serbinenko [Thu, 12 Nov 2015 10:54:13 +0000 (11:54 +0100)] 
multiboot_mbi: Fix handling of --quirk-bad-kludge.

9 years agoxen_boot: Remove useless file_name_index variable.
Fu Wei [Thu, 12 Nov 2015 10:33:55 +0000 (11:33 +0100)] 
xen_boot: Remove useless file_name_index variable.

9 years agoDocument ARM64 xen commands
Fu Wei [Thu, 12 Nov 2015 10:32:01 +0000 (11:32 +0100)] 
Document ARM64 xen commands

9 years agoasm-tests/i386-pc: Check that near jumps are 2 bytes.
Vladimir Serbinenko [Wed, 11 Nov 2015 17:58:57 +0000 (18:58 +0100)] 
asm-tests/i386-pc: Check that near jumps are 2 bytes.

We already check that jump over 300 bytes gap is 3 bytes in code16-mode.
Some clang versions generate 3-byte opcode for short jumps which makes
boot.img blow over 512-byte limit. Enforce -no-integrated-as in such cases

9 years agoofdisk: add a comment about vscsi method
Paulo Flabiano Smorigo [Tue, 10 Nov 2015 23:20:20 +0000 (21:20 -0200)] 
ofdisk: add a comment about vscsi method

9 years agofdt.mod: Move license tag to the right file.
Vladimir Serbinenko [Mon, 9 Nov 2015 15:15:30 +0000 (16:15 +0100)] 
fdt.mod: Move license tag to the right file.

9 years agofdt.mod: Add missing license tag.
Fu Wei [Mon, 9 Nov 2015 14:27:59 +0000 (15:27 +0100)] 
fdt.mod: Add missing license tag.

9 years agokern/elf: Ignore cast-align warnings
Vladimir Serbinenko [Mon, 9 Nov 2015 10:39:30 +0000 (11:39 +0100)] 
kern/elf: Ignore cast-align warnings

9 years agocbfs: Fix corner case and compilation with recdent gcc
Vladimir Serbinenko [Mon, 9 Nov 2015 02:24:04 +0000 (03:24 +0100)] 
cbfs: Fix corner case and compilation with recdent gcc

Accept the header to touch the jump address at 0xfffffff0.

Fix compilation for 64-bit EFI with recent GCC.

9 years agofstester: Enforce LC_ALL=C
Vladimir Serbinenko [Sun, 8 Nov 2015 21:39:36 +0000 (22:39 +0100)] 
fstester: Enforce LC_ALL=C

9 years agoAdapt build-system to use imported xen headers.
Vladimir Serbinenko [Sun, 8 Nov 2015 20:24:18 +0000 (21:24 +0100)] 
Adapt build-system to use imported xen headers.

9 years agoImport xen headers directly into GRUB
Vladimir Serbinenko [Sun, 8 Nov 2015 20:23:52 +0000 (21:23 +0100)] 
Import xen headers directly into GRUB

9 years agocbfs: Check for ptr range sanity.
Vladimir Serbinenko [Sun, 8 Nov 2015 19:34:30 +0000 (20:34 +0100)] 
cbfs: Check for ptr range sanity.

Triaged by Andrei and enhanced with suggestions by Aaron Durbin
Also-By: Andrei Borzenkov <arvidjaar@gmail.com>
9 years agoRemove reliance C.UTF-8
Vladimir Serbinenko [Sun, 8 Nov 2015 19:23:15 +0000 (20:23 +0100)] 
Remove reliance C.UTF-8

9 years agogenmoddep.awk: Add a test that we have no circular dependencies
Vladimir Serbinenko [Sun, 8 Nov 2015 19:00:27 +0000 (20:00 +0100)] 
genmoddep.awk: Add a test that we have no circular dependencies

9 years agoMakefile.core.def: Break circular dependency on arm64.
Vladimir Serbinenko [Sun, 8 Nov 2015 17:47:53 +0000 (18:47 +0100)] 
Makefile.core.def: Break circular dependency on arm64.

9 years agoautogen: Use cp instead of ln -s.
Vladimir Serbinenko [Sun, 8 Nov 2015 17:45:57 +0000 (18:45 +0100)] 
autogen: Use cp instead of ln -s.

libgcrypt-grub shouldn't be modified directly anyway. With this patch
tarball without contrib can be unpacked on FAT and stay usable for
out-of-tree compile on full POSIX FS (compile on FAT not tested).

9 years agopartmap_test: check that parted is available
Andrei Borzenkov [Sat, 7 Nov 2015 20:42:35 +0000 (23:42 +0300)] 
partmap_test: check that parted is available

Skip test if parted is unavailable instead of returning false failure.

9 years agocryptodisk: teach grub_cryptodisk_insert() about partitions (bug #45889)
grub-devel@iam.tj [Sat, 7 Nov 2015 15:52:59 +0000 (18:52 +0300)] 
cryptodisk: teach grub_cryptodisk_insert() about partitions (bug #45889)

It is not possible to configure encrypted containers on multiple partitions of
the same disk; after the first one all subsequent fail with

disk/cryptodisk.c:978: already mounted as crypto0

Store partition offset in cryptomount descriptor to distinguish between them.

9 years agodoc: document config_directory and config_file variables
Andrey Borzenkov [Sat, 7 Nov 2015 14:03:38 +0000 (17:03 +0300)] 
doc: document config_directory and config_file variables

9 years agounix/getroot: remove unused MAJOR definition
Andrei Borzenkov [Sat, 7 Nov 2015 14:02:21 +0000 (17:02 +0300)] 
unix/getroot: remove unused MAJOR definition

We use major() everywhere, these definitions just add to confusion.

9 years agoAdd comments to code for commit d313218
Andrei Borzenkov [Sat, 7 Nov 2015 10:01:23 +0000 (13:01 +0300)] 
Add comments to code for commit d313218

9 years agodevmapper/getroot: use makedev instead of direct shift
Andrei Borzenkov [Sat, 7 Nov 2015 06:46:46 +0000 (09:46 +0300)] 
devmapper/getroot: use makedev instead of direct shift

Fixes device detection with large number of devices.

Reported by Tim Wallberg <twalberg@comcast.net>

9 years agomkimage: zero fill alignment space
Andrei Borzenkov [Fri, 6 Nov 2015 18:33:28 +0000 (21:33 +0300)] 
mkimage: zero fill alignment space

This did not cause real problem but is good for reproducible builds. I hit
it with recent bootinfoscript that displays embedded config; I was puzzled
by random garbage at the end.

Prezero memory buffer used to assemble core.img. This makes individual
memset redundant. Also ensure buffer is filled with zeroes in several other
places.

Also remove redundant zeroing code where we fill in the whole memory block
anyway.

9 years agoconfigure.ac: Explicitly add -mno-sse3 on x86.
Vladimir Serbinenko [Fri, 6 Nov 2015 03:32:34 +0000 (04:32 +0100)] 
configure.ac: Explicitly add -mno-sse3 on x86.

9 years agoREADME: Remove dead link to the wiki
Vladimir Serbinenko [Fri, 6 Nov 2015 03:31:23 +0000 (04:31 +0100)] 
README: Remove dead link to the wiki

9 years agoNEWS: mention powerpc64le support
Andrei Borzenkov [Thu, 29 Oct 2015 18:29:12 +0000 (21:29 +0300)] 
NEWS: mention powerpc64le support

9 years agotcp: Fix uninited mac address when accepting connection.
Ignat Korchagin [Thu, 29 Oct 2015 15:30:28 +0000 (16:30 +0100)] 
tcp: Fix uninited mac address when accepting connection.

9 years agoarm64: Add support for xen boot protocol.
Fu Wei [Thu, 29 Oct 2015 14:24:20 +0000 (15:24 +0100)] 
arm64: Add support for xen boot protocol.

9 years agoarm64: Move FDT functions to separate module
Vladimir Serbinenko [Thu, 29 Oct 2015 12:31:30 +0000 (13:31 +0100)] 
arm64: Move FDT functions to separate module

9 years agoefi: fix warnings with recent GCC
Andrei Borzenkov [Tue, 27 Oct 2015 20:30:54 +0000 (23:30 +0300)] 
efi: fix warnings with recent GCC

../../grub-core/term/efi/console.c:128:32: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
   if (key.unicode_char >= 0x20 && key.unicode_char <= 0x7f

9 years agoofdisk: Fix devpath freeing logic.
Eric Snowberg [Mon, 26 Oct 2015 22:03:06 +0000 (23:03 +0100)] 
ofdisk: Fix devpath freeing logic.

9 years agoImplement cross-endian ELF load for powerpc
Paulo Flabiano Smorigo [Mon, 26 Oct 2015 21:07:26 +0000 (22:07 +0100)] 
Implement cross-endian ELF load for powerpc

9 years agoUse EFI_SIMPLE_TEXT_INPUT_EX to support key combinations.
Peter Jones [Sun, 25 Oct 2015 15:36:28 +0000 (16:36 +0100)] 
Use EFI_SIMPLE_TEXT_INPUT_EX to support key combinations.

9 years agoconfigure: find options to force endian on MIPS
Andrei Borzenkov [Tue, 13 Oct 2015 22:42:14 +0000 (00:42 +0200)] 
configure: find options to force endian on MIPS

9 years agoconfigure: force o32 ABI on MIPS
Andrei Borzenkov [Tue, 13 Oct 2015 22:39:15 +0000 (00:39 +0200)] 
configure: force o32 ABI on MIPS

GRUB code expects O32 or N32. N32 is less tested than O32, so we prefer to
compile with O32. Some systems (e.g. GNU Guix) default to using newer
n64 or n32 ABI. Try to find suitable options to force o32.

For GCC this is simply -mabi=32. While clang supports this option as well,
o32 ABI is valid for MIPS target and n32/64 ABI are valid for MIPS64 target
only, so use "-target mips/mipsel -mabi=32".

Reported-By: Mark H Weaver <mhw@netris.org>
Also-By: Mark H Weaver <mhw@netris.org>
9 years agonet: avoid closing NULL socket in DNS lookup
Andrei Borzenkov [Mon, 12 Oct 2015 20:16:23 +0000 (23:16 +0300)] 
net: avoid closing NULL socket in DNS lookup

Refactor code so that we do not store NULL pointers in array
of in-flight DNS servers.

Reported-By: Josef Bacik <jbacik@fb.com>
9 years agoinstall: --compress argument is not optional
Andrei Borzenkov [Sun, 11 Oct 2015 18:17:37 +0000 (21:17 +0300)] 
install: --compress argument is not optional

Fixes crash if argument is not specified. Also use `|' to separate choices
in list of compression methods to align it with --core-compress.

9 years agomips: Make setjmp code N32-compliant.
Vladimir Serbinenko [Sun, 11 Oct 2015 11:15:50 +0000 (13:15 +0200)] 
mips: Make setjmp code N32-compliant.

9 years agomips: Make the assembly-code N32-compatible.
Vladimir Serbinenko [Sat, 10 Oct 2015 08:34:55 +0000 (10:34 +0200)] 
mips: Make the assembly-code N32-compatible.

There are no $t4 or $t5 in N32 but there are $a4 and $a5.

9 years agoprogress: avoid NULL dereference for net files
Andrei Borzenkov [Sat, 10 Oct 2015 08:44:14 +0000 (11:44 +0300)] 
progress: avoid NULL dereference for net files

From original patch by dann frazier <dann.frazier@canonical.com>:

  grub_net_fs_open() saves off a copy of the file structure it gets passed and
  uses it to create a bufio structure. It then overwrites the passed in file
  structure with this new bufio structure. Since file->name doesn't get set
  until we return back to grub_file_open(), it means that only the bufio
  structure gets a valid file->name. The "real" file's name is left
  uninitialized. This leads to a crash when the progress module hook is called
  on it.

grub_net_fs_open() already saved copy of file name as ->net->name, so change
progress module to use it.

Also, grub_file_open may leave file->name as NULL if grub_strdup fails. Check
for it.

Also-By: dann frazier <dann.frazier@canonical.com>
9 years agofile: ignore host disk in blocklist check
Andrei Borzenkov [Sat, 10 Oct 2015 07:02:20 +0000 (10:02 +0300)] 
file: ignore host disk in blocklist check

It cannot work anyway because host disk cannot be read. This fixes hostfs access
on native Windows build where filenames start with '\' or do not have initial
separator at all (d:\foo).

Issue was observed when running grub-fstest on Windows. On UNIX image name is
canonicalized to always start with `/' so this was not noticed.

This has side effect of allowing relative path names on host, but this already
was the case with `ls' command, so it just extends it to all commands.

Reported-By: Arch Stack <archstacker@gmail.com>
Also-By: Arch Stack <archstacker@gmail.com>
9 years agomips/dl: Handle addend in RELA entries.
Vladimir Serbinenko [Fri, 9 Oct 2015 21:32:06 +0000 (23:32 +0200)] 
mips/dl: Handle addend in RELA entries.

9 years agogfxmenu/model: Delete empty file.
Vladimir Serbinenko [Fri, 9 Oct 2015 21:30:53 +0000 (23:30 +0200)] 
gfxmenu/model: Delete empty file.

9 years agoufs: Fix parameters to grub_memset.
Alexander Bluhm [Fri, 9 Oct 2015 11:35:40 +0000 (13:35 +0200)] 
ufs: Fix parameters to grub_memset.

len = 0 made simply no sense. Fix parameters to be in line with read.

9 years agoofnet: Do not set SUFFIX for sun4v network devices
Stanislav Kholmanskikh [Mon, 7 Sep 2015 11:13:11 +0000 (14:13 +0300)] 
ofnet: Do not set SUFFIX for sun4v network devices

sun4v vnet devices do not implement the support of duplex and speed
instance attributes. An attempt to open such a device with
the attributes will fail:

ok select net:speed=auto,duplex=auto
Unknown key 'speed'
Unknown key 'duplex'
Manual Configuration: Host IP, boot server and filename must be specified
WARNING: /virtual-devices@100/channel-devices@200/network@0: Can't open OBP standard TFTP package

Can't open device
ok

Therefore, let's not set SUFFIX for such devices.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
9 years agosparc64 - use correct drive name within grub_util_sparc_setup
Eric Snowberg [Tue, 6 Oct 2015 17:21:43 +0000 (13:21 -0400)] 
sparc64 - use correct drive name within grub_util_sparc_setup

Incorrect drive name was being passed into grub_util_sparc_setup,
causing the grub-install to fail.

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
9 years agocryptodisk: strip parenthesis from backing device name
Andrei Borzenkov [Sun, 13 Sep 2015 17:12:31 +0000 (20:12 +0300)] 
cryptodisk: strip parenthesis from backing device name

Otherwise subsequent disk open fails.

Reported-By: Klemens Nanni <contact@autoboot.org>
9 years agodisk/ldm, partmap/msdos.c: fix spelling error
Felix Zielcke [Sat, 22 Aug 2015 19:22:41 +0000 (21:22 +0200)] 
disk/ldm, partmap/msdos.c: fix spelling error

9 years agonet: do not try to load protocol module via itself
Andrei Borzenkov [Thu, 13 Aug 2015 17:20:39 +0000 (20:20 +0300)] 
net: do not try to load protocol module via itself

Otherwise we get infinite recursion.

Closes: 45729
9 years agoefinet: handle get_status() on buggy firmware properly
Josef Bacik [Thu, 6 Aug 2015 17:49:46 +0000 (10:49 -0700)] 
efinet: handle get_status() on buggy firmware properly

The EFI spec indicates that get_status() should return the address of the buffer
we passed into transmit to indicate the the buffer was transmitted.  However we
have boxes where the firmware returns some arbitrary address instead, which
makes grub think that we've not sent anything.  So since we have the SNP stuff
opened in exclusive mode just assume any non-NULL txbuf means that our transmit
occurred properly.  This makes grub able to do its networking stuff properly on
our broken firmware.  Thanks,

cc: Peter Jones <pjones@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
9 years agolinguas.sh: fix error when removing non-existing autogenerated files
Andrei Borzenkov [Sun, 9 Aug 2015 13:28:12 +0000 (16:28 +0300)] 
linguas.sh: fix error when removing non-existing autogenerated files

10 years agoahci: Ensure that bus mastering is set.
Vladimir Serbinenko [Mon, 27 Jul 2015 23:51:14 +0000 (01:51 +0200)] 
ahci: Ensure that bus mastering is set.

Fixes ahci_test failing on several platforms.

10 years agoarchelp: Never pass NULL as mtime.
Vladimir Serbinenko [Mon, 27 Jul 2015 11:19:02 +0000 (13:19 +0200)] 
archelp: Never pass NULL as mtime.

Moves complexity from fs code (NULL check) to common code (passing non-NULL).

10 years agoHFS: Convert to fshelp.
Vladimir Serbinenko [Mon, 27 Jul 2015 10:50:22 +0000 (12:50 +0200)] 
HFS: Convert to fshelp.

HFS doesn't handle "." and ".." properly. Convert it to fshelp to reuse the
logic.

10 years agoFAT: Convert to fshelp.
Vladimir Serbinenko [Mon, 27 Jul 2015 10:49:26 +0000 (12:49 +0200)] 
FAT: Convert to fshelp.

exFAT doesn't handle "." and ".." correctly, convert it to fshelp to
reuse the same logic.

10 years agoBFS: Convert to fshelp.
Vladimir Serbinenko [Mon, 27 Jul 2015 10:48:38 +0000 (12:48 +0200)] 
BFS: Convert to fshelp.

BFS doesn't handle ".." correctly, so convert it to fshelp to reuse the logic.

10 years agofshelp: Add handling of "." and ".." and grub_fshelp_find_file_lookup.
Vladimir Serbinenko [Mon, 27 Jul 2015 10:45:35 +0000 (12:45 +0200)] 
fshelp: Add handling of "." and ".." and grub_fshelp_find_file_lookup.

Recent tests have discovered that many of our filesystems have flawed
handling of "." and "..". Rather than attempting to fix it in filesystems
themselves, make the common code fshelp aware of "." and ".." and handle
them in this layer. Add grub_fshelp_find_file_lookup for easy conversion
of BFS, HFS and exFAT which have the same problem and don't use fshelp.

10 years agoSwitch procfs to use archelp.
Vladimir Serbinenko [Mon, 27 Jul 2015 10:44:19 +0000 (12:44 +0200)] 
Switch procfs to use archelp.

This fixes handling of "." and "..".

10 years agogrub-install: Use a+ in fopen rather than r+.
Vladimir Serbinenko [Mon, 27 Jul 2015 10:42:47 +0000 (12:42 +0200)] 
grub-install: Use a+ in fopen rather than r+.

r+ does not create a file if none exists.

10 years agoAdd transform_data as a variant of data with substitutions.
Vladimir Serbinenko [Mon, 27 Jul 2015 10:39:41 +0000 (12:39 +0200)] 
Add transform_data as a variant of data with substitutions.

This fixrs name mismatch for grub.chrp with
transform_program_name='s,grub,grub2,g'

10 years agoefi: fix GetVariable return status check in 81ca24a
Ignat Korchagin [Fri, 24 Jul 2015 17:46:02 +0000 (20:46 +0300)] 
efi: fix GetVariable return status check in 81ca24a

GetVariable should return EFI_BUFFER_TOO_SMALL if given buffer of size
zero; commit incorrectly checked for EFI_SUCCESS.

10 years agozfs_test: Skip dotdot in volume root test.
Vladimir Serbinenko [Thu, 23 Jul 2015 23:17:04 +0000 (01:17 +0200)] 
zfs_test: Skip dotdot in volume root test.

Given special semantics of ZFS it's far from clear what the expected
result is. Just skip it for now

10 years agoxfs_test: Test both crc and non-crc filesystems.
Vladimir Serbinenko [Thu, 23 Jul 2015 23:16:30 +0000 (01:16 +0200)] 
xfs_test: Test both crc and non-crc filesystems.

10 years agoxfs: Fix handling of symlink with crc-enabled filesystem.
Vladimir Serbinenko [Thu, 23 Jul 2015 23:15:32 +0000 (01:15 +0200)] 
xfs: Fix handling of symlink with crc-enabled filesystem.

10 years agoreiserfs: Fix handling of first entry in the directory.
Vladimir Serbinenko [Thu, 23 Jul 2015 23:13:27 +0000 (01:13 +0200)] 
reiserfs: Fix handling of first entry in the directory.

Fixes garbage being added to "." filename.

10 years agoefi: fix memory leak in variable handling
Ignat Korchagin [Thu, 23 Jul 2015 18:13:09 +0000 (21:13 +0300)] 
efi: fix memory leak in variable handling

10 years agoexclude.pot: Add missing blacklisted strings.
Vladimir Serbinenko [Thu, 23 Jul 2015 17:04:55 +0000 (19:04 +0200)] 
exclude.pot: Add missing blacklisted strings.

10 years agoarchelp: Fix handling of dot and dotdot at the end of the name.
Vladimir Serbinenko [Thu, 23 Jul 2015 17:01:00 +0000 (19:01 +0200)] 
archelp: Fix handling of dot and dotdot at the end of the name.

Fixes cpio_test and tar_test.

10 years agoarm-emu: Add __aeabi_memcpy* and __aeabi_memclr* symbols.
Vladimir Serbinenko [Thu, 23 Jul 2015 00:15:46 +0000 (02:15 +0200)] 
arm-emu: Add __aeabi_memcpy* and __aeabi_memclr* symbols.

Fixes compilation with clang.

10 years agofwstart: Fix loading of address of read_spd_fail.
Vladimir Serbinenko [Wed, 22 Jul 2015 19:42:41 +0000 (21:42 +0200)] 
fwstart: Fix loading of address of read_spd_fail.

10 years agofwstart: Add missing argument to p2align.
Vladimir Serbinenko [Wed, 22 Jul 2015 19:41:58 +0000 (21:41 +0200)] 
fwstart: Add missing argument to p2align.

Resulting binary is unchanged as it happens we were already aligned
by chance.

10 years agofwstart: Replace blt with bltz.
Vladimir Serbinenko [Wed, 22 Jul 2015 19:40:55 +0000 (21:40 +0200)] 
fwstart: Replace blt with bltz.

blt A, $zero, B and bltz A, B are equivalent but clang recognizes only
later, so use it.

Resulting binary is unchanged.

10 years agoRemove mips_attributes.
Vladimir Serbinenko [Wed, 22 Jul 2015 18:47:56 +0000 (20:47 +0200)] 
Remove mips_attributes.

mips_attributes was introduced to work around clang problems with
-msoft-float. Those problems are now fixed and moreover .gnu_attributes
itself is unportable and creates problem with clang.

Revert "mips: Fix soft-float handling."

This partially reverts commit 6a4ecd276ed39f66be0ad6ff0f8ff67598098605.

10 years agoARM: provide __aeabi_memclr* and __aeabi_memcpy* symbols
Vladimir Serbinenko [Wed, 22 Jul 2015 18:40:13 +0000 (20:40 +0200)] 
ARM: provide __aeabi_memclr* and __aeabi_memcpy* symbols

Fixes compilation with recent clang.

10 years agodiskfilter: Make name a const char to fix compilation error.
Vladimir Serbinenko [Wed, 22 Jul 2015 18:39:14 +0000 (20:39 +0200)] 
diskfilter: Make name a const char to fix compilation error.

10 years agodmraid_nvidia: Set a name to usable value to avoid null dereference.
Vladimir Serbinenko [Tue, 21 Jul 2015 23:57:40 +0000 (01:57 +0200)] 
dmraid_nvidia: Set a name to usable value to avoid null dereference.

Reported by: Andrei Borzenkov

10 years agoconfigure.ac: Handle powerpc64le compiler
Vladimir Serbinenko [Tue, 21 Jul 2015 23:54:59 +0000 (01:54 +0200)] 
configure.ac: Handle powerpc64le compiler

Also-by: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
10 years agoloader/linux: Make trailer initrd entry aligned again.
Bernhard Übelacker [Mon, 20 Jul 2015 12:06:45 +0000 (14:06 +0200)] 
loader/linux: Make trailer initrd entry aligned again.

Regression from commit:
  loader/linux: do not pad initrd with zeroes at the end
  a8c473288d3f0a5e17a903a5121dea1a695dda3b

Wimboot fails since the change above because it expects the "trailer"
initrd element on an aligned address.
This issue shows only when newc_name is used and the last initrd
entry has a not aligned size.

10 years agoXFS: Fix wrong alignment treatment.
Vladimir Serbinenko [Thu, 16 Jul 2015 10:46:02 +0000 (12:46 +0200)] 
XFS: Fix wrong alignment treatment.

10 years agogrub_ext2_read_block: Fix return type on error.
Vladimir Serbinenko [Thu, 16 Jul 2015 08:59:33 +0000 (10:59 +0200)] 
grub_ext2_read_block: Fix return type on error.

10 years agouse TARGET_LDFLAGS in grub_PROG_OBJCOPY_ABSOLUTE
Andrei Borzenkov [Sun, 5 Jul 2015 05:21:38 +0000 (08:21 +0300)] 
use TARGET_LDFLAGS in grub_PROG_OBJCOPY_ABSOLUTE

That's what Makefile will use and it is required if unusual flags
must be passed to linker (e.g. to build ppc32 code on ppc64le with clang).

10 years agoFix missing byte order conversion in get_btrfs_fs_prefix function
Michael Chang [Mon, 22 Jun 2015 08:45:27 +0000 (16:45 +0800)] 
Fix missing byte order conversion in get_btrfs_fs_prefix function

Since btrfs on-disk format uses little-endian, the searched item types
(ROOT_REF, INODE_REF) need converting the byte order in order to
function properly on big-endian systems.

10 years agochainloader: fix resoource leak
Andrei Borzenkov [Fri, 26 Jun 2015 06:25:30 +0000 (09:25 +0300)] 
chainloader: fix resoource leak

Found by: Coverity scan.
CID: 96651

10 years agoloader/bsd: fix memory leak
Andrei Borzenkov [Fri, 26 Jun 2015 06:25:30 +0000 (09:25 +0300)] 
loader/bsd: fix memory leak

Found by: Coverity scan.
CID: 96662, 96665

10 years agoloader/bsd: free memory leaks
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:19 +0000 (23:38 +0300)] 
loader/bsd: free memory leaks

Found by: Coverity scan.
CID: 96671, 96658, 96653

10 years agosearch_wrap: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:19 +0000 (23:38 +0300)] 
search_wrap: fix memory leak

Found by: Coverity scan.
CID: 96675

10 years agopassword_pbkdf2: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:19 +0000 (23:38 +0300)] 
password_pbkdf2: fix memory leak

Found by: Coverity scan.
CID: 96676

10 years agonormal: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:19 +0000 (23:38 +0300)] 
normal: fix memory leak

Found by: Coverity scan.
CID: 96677

10 years agoefi/serial: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:19 +0000 (23:38 +0300)] 
efi/serial: fix memory leak

Found by: Coverity scan.
CID: 96678

10 years agoohci: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:19 +0000 (23:38 +0300)] 
ohci: fix memory leak

Found by: Coverity scan.
CID: 96679

10 years agoloader/bsd: free memory leaks
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)] 
loader/bsd: free memory leaks

Found by: Coverity scan.
CID: 96682

10 years agomultiboot: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)] 
multiboot: fix memory leak

Found by: Coverity scan.
CID: 96684

10 years agonormal: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)] 
normal: fix memory leak

Found by: Coverity scan.
CID: 96685

10 years agoloader/bsd: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)] 
loader/bsd: fix memory leak

Found by: Coverity scan.
CID: 96686

10 years agoreed_solomon: fix memory leak
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)] 
reed_solomon: fix memory leak

Found by: Coverity scan.
CID: 96688