]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
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

10 years agousb: fix use after free
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)] 
usb: fix use after free

Found by: Coverity scan.
CID: 96704

10 years agoxnu: fix use after free
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)] 
xnu: fix use after free

Found by: Coverity scan.
CID: 96706

10 years agodisk/scsi: fix use after free
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)] 
disk/scsi: fix use after free

Found by: Coverity scan.
CID: 96713

10 years agoefi/chainloader: fix use after free
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:17 +0000 (23:38 +0300)] 
efi/chainloader: fix use after free

Found by: Coverity scan.
CID: 96714

10 years agosearch: fix use after free
Andrei Borzenkov [Sat, 20 Jun 2015 20:38:17 +0000 (23:38 +0300)] 
search: fix use after free

Found by: Coverity scan.
CID: 96715

10 years agoNEWS: emu libusb support removed
Andrei Borzenkov [Sat, 20 Jun 2015 06:23:43 +0000 (09:23 +0300)] 
NEWS: emu libusb support removed

10 years agogrub-probe: fix memory leak in probe (ofpath)
Andrei Borzenkov [Fri, 19 Jun 2015 17:47:44 +0000 (20:47 +0300)] 
grub-probe: fix memory leak in probe (ofpath)

Found by: Coverity scan.
CID: 73772

10 years agogrub-probe: restructure code to make static analysis easier
Andrei Borzenkov [Fri, 19 Jun 2015 17:47:43 +0000 (20:47 +0300)] 
grub-probe: restructure code to make static analysis easier

Current code in probe() could not be verified to not contain memory leaks.
Restructure code and ensure grub_device_close is always called at the end of
loop.

Calms down Coverity scan.
CID: 73739

10 years agozfs: fix memory leak
Andrei Borzenkov [Fri, 19 Jun 2015 17:47:43 +0000 (20:47 +0300)] 
zfs: fix memory leak

Found by: Coverity scan.
CID: 73647

10 years agoxfs: silence Coverity overflow warning
Andrei Borzenkov [Fri, 19 Jun 2015 15:38:25 +0000 (18:38 +0300)] 
xfs: silence Coverity overflow warning

inode size cannot really overflow integer, but Coverity does not know it.
CID: 96602

10 years agozfs: memory leak
Andrei Borzenkov [Fri, 19 Jun 2015 15:38:25 +0000 (18:38 +0300)] 
zfs: memory leak

Found by Coverity scan.
CID: 96603

10 years agounix/getroot: memory leak
Andrei Borzenkov [Fri, 19 Jun 2015 15:38:25 +0000 (18:38 +0300)] 
unix/getroot: memory leak

Found by Coverity scan.
CID: 96605

10 years agounix/relpath: memory leak
Andrei Borzenkov [Fri, 19 Jun 2015 15:38:25 +0000 (18:38 +0300)] 
unix/relpath: memory leak

Found by Coverity scan.
CID: 96606

10 years agosyslinux_parse: assorted issues found by Coverity
Andrei Borzenkov [Fri, 19 Jun 2015 15:38:25 +0000 (18:38 +0300)] 
syslinux_parse: assorted issues found by Coverity

1. Remove unneeded NULL check
CID: 96607

2. Do not allocate storage for initrd, copy it directly from input
buffer. Avoids memory leak in failure path.
CID: 96604

3. Unchecked error return from print()
CID: 96601, 73595

10 years agosyslinux_parse: make print_escaped actually stop before `to'
Andrei Borzenkov [Fri, 19 Jun 2015 14:35:17 +0000 (17:35 +0300)] 
syslinux_parse: make print_escaped actually stop before `to'

The only current user is mboot.c32 which unfortunately is not covered
by regression tests.

10 years agofat: fix handling of "." and ".." directory entries
Andrei Borzenkov [Thu, 18 Jun 2015 17:09:47 +0000 (20:09 +0300)] 
fat: fix handling of "." and ".." directory entries

Emulate dot and dotdot in root directory. For other directories do not
add separator between name and extension for these two special entries.

Closes: 45335
10 years agotests: regression tests for "." and ".." directory entries
Andrei Borzenkov [Thu, 18 Jun 2015 17:09:47 +0000 (20:09 +0300)] 
tests: regression tests for "." and ".." directory entries

10 years agoefinet: enable hardware filters when opening interface
Andrei Borzenkov [Tue, 16 Jun 2015 16:52:45 +0000 (19:52 +0300)] 
efinet: enable hardware filters when opening interface

Exclusive open on SNP will close all existing protocol instances which
may disable all receive filters on interface. Reinstall them after we
opened protocol exclusively.

Also follow UEFI specification recommendation and stop interfaces when
closing them:

Unexpected system errors, reboots and hangs can occur if an OS is loaded
and the network devices are not Shutdown() and Stopped().

Also by: Mark Salter <msalter@redhat.com>
Closes: 45204
10 years agoNEWS: mention libgcc removal
Andrei Borzenkov [Tue, 16 Jun 2015 16:49:32 +0000 (19:49 +0300)] 
NEWS: mention libgcc removal

10 years agoAdd flag for powerpc ieee1275 to avoid unneeded optimizations
Paulo Flabiano Smorigo [Mon, 15 Jun 2015 12:10:19 +0000 (09:10 -0300)] 
Add flag for powerpc ieee1275 to avoid unneeded optimizations

10 years agoFix exit to EFI firmware
Mark Salter [Fri, 15 Aug 2014 16:22:43 +0000 (12:22 -0400)] 
Fix exit to EFI firmware

The current code for EFI grub_exit() calls grub_efi_fini() before
returning to firmware. In the case of ARM, this leaves a timer
event running which could lead to a firmware crash. This patch
changes this so that grub_machine_fini() is called with a NORETURN
flag. This allows machine-specific shutdown to happen as well
as the shutdown done by grub_efi_fini().

Signed-off-by: Mark Salter <msalter@redhat.com>
10 years agodisk/ahci.c: Use defines `GRUB_AHCI_HBA_PORT_CMD_SPIN_UP` and `GRUB_AHCI_HBA_PORT_CMD...
Paul Menzel [Thu, 28 May 2015 17:14:19 +0000 (19:14 +0200)] 
disk/ahci.c: Use defines `GRUB_AHCI_HBA_PORT_CMD_SPIN_UP` and `GRUB_AHCI_HBA_PORT_CMD_POWER_ON`

Instead of hard coding `2` and `4` use the macros defined already at the
top of the file. As a consequence, wrap the now too long line.

10 years agoNEWS: XFS v5 support
Andrei Borzenkov [Fri, 12 Jun 2015 06:40:00 +0000 (09:40 +0300)] 
NEWS: XFS v5 support

10 years agoxfs: V5 filesystem format support
Jan Kara [Mon, 1 Jun 2015 12:28:46 +0000 (14:28 +0200)] 
xfs: V5 filesystem format support

Add support for new XFS on disk format. We have to handle optional
filetype fields in directory entries, additional CRC, LSN, UUID entries
in some structures, etc.

Signed-off-by: Jan Kara <jack@suse.cz>
10 years agoxfs: Add helpers for inode size
Jan Kara [Mon, 1 Jun 2015 12:28:45 +0000 (14:28 +0200)] 
xfs: Add helpers for inode size

Add helpers to return size of XFS inode on disk and when loaded in
memory.

Signed-off-by: Jan Kara <jack@suse.cz>
10 years agomultiboot_header_tag_module_align fix to confirm multiboot specification
Toomas Soome [Thu, 4 Jun 2015 16:41:54 +0000 (19:41 +0300)] 
multiboot_header_tag_module_align fix to confirm multiboot specification

10 years agoconfigure.ac: clean up arm64 soft-float handling
Leif Lindholm [Tue, 2 Jun 2015 14:41:09 +0000 (15:41 +0100)] 
configure.ac: clean up arm64 soft-float handling

Fix compilation with gcc 5.1 (avoid internal compiler error), by
replacing explicit -march +nofp+nosimd options with -mgeneral-regs-only.

This also enables the removal of some further conditional build flag
setting.

10 years agoarm64/setjmp: Add missing license macro
dann frazier [Thu, 21 May 2015 16:28:48 +0000 (10:28 -0600)] 
arm64/setjmp: Add missing license macro

Including the setjmp module in an arm64-efi image will cause it to
immediately exit with an "incompatible license" error.

The source file includes a GPLv3+ boilerplate, so fix this by declaring a
GPLv3+ license using the GRUB_MOD_LICENSE macro.

Signed-off-by: dann frazier <dann.frazier@canonical.com>