]> git.proxmox.com Git - grub2.git/log
grub2.git
8 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.

8 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>
8 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>
8 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.

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

8 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.

8 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>
8 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

9 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.

9 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).

9 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.

9 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.

9 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.

9 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.

9 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 "..".

9 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.

9 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'

9 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.

9 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

9 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.

9 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.

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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>
9 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.

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

9 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.

9 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).

9 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.

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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.

9 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
9 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

9 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
9 years agoNEWS: mention libgcc removal
Andrei Borzenkov [Tue, 16 Jun 2015 16:49:32 +0000 (19:49 +0300)]
NEWS: mention libgcc removal

9 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

9 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>
9 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.

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

9 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>
9 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>
9 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

9 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.

9 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>
9 years agodisk/ahci.c: Add port number to port debug messages
Paul Menzel [Wed, 27 May 2015 20:48:57 +0000 (22:48 +0200)]
disk/ahci.c: Add port number to port debug messages

Currently, some messages cannot be mapped to the port they belong to as
the port number is missing from the output. So add `port: n` to the
debug messages.

9 years agoClarify use of superusers variable and menu entry access
Andrei Borzenkov [Sat, 30 May 2015 16:36:41 +0000 (19:36 +0300)]
Clarify use of superusers variable and menu entry access

superusers controls both CLI and editing. Also explicitly mention that
empty superusers disables them.

"Access to menuentry" is a bit vague - change to "execute menuentry"
to make it obvious, what access is granted.

9 years agoCorrect spelling of *scheduled*
Paul Menzel [Sun, 24 May 2015 21:27:46 +0000 (23:27 +0200)]
Correct spelling of *scheduled*

Run the command below

$ git grep -l schedulded | xargs sed -i 's/schedulded/scheduled/g'

and revert the change in `ChangeLog-2015`.

Including "miscellaneous" spelling fix noted by richardvoigt@gmail.com

9 years agozfs extensible_dataset and large_blocks feature support
Toomas Soome [Thu, 16 Apr 2015 05:24:38 +0000 (08:24 +0300)]
zfs extensible_dataset and large_blocks feature support

large blocks basically use extensible dataset feature, or to be exact,
setting recordsize above 128k will trigger large_block feature to be
enabled and storing such blocks is using feature extensible dataset. so
the extensible dataset is prerequisite.

Changes implement read support extensible dataset… instead of fixed DMU
types they dont specify type, making it possible to use fat zap objects
from bonus area.

9 years agomultiboot1: never place modules in low memory.
Vladimir Serbinenko [Wed, 27 May 2015 06:37:55 +0000 (08:37 +0200)]
multiboot1: never place modules in low memory.

While in theory permitted by the spec, modules rarely fit in low memory
anyway and not every kernel is able to handle modules in low memory anyway.
At least VMWare is known not to be able to handle modules at arbitrary
locations.

9 years agodisk/ahci: Use defines `GRUB_ATA_STATUS_BUSY` and `GRUB_ATA_STATUS_DRQ`
Paul Menzel [Sun, 24 May 2015 09:11:25 +0000 (11:11 +0200)]
disk/ahci: Use defines `GRUB_ATA_STATUS_BUSY` and `GRUB_ATA_STATUS_DRQ`

Instead of hard coding `0x88` use the macros defined in `disk/ata.h`.

9 years agocb_timestamps.c: Add new time stamp descriptions
Paul Menzel [Fri, 15 May 2015 15:35:00 +0000 (17:35 +0200)]
cb_timestamps.c: Add new time stamp descriptions

Add the descriptions of the “core”, that means no vendorcode or payload,
coreboot time stamps added up to coreboot commit a7d92441 (timestamps:
You can never have enough of them!) [1].

Running `coreboot_boottime` in the GRUB command line interface now shows
descriptions for all time stamps again on the ASRock E350M1.

[1] http://review.coreboot.org/9608

9 years agobootp: ignore gateway_ip (relay) field.
Andrei Borzenkov [Sun, 17 May 2015 19:38:30 +0000 (22:38 +0300)]
bootp: ignore gateway_ip (relay) field.

From RFC1542:

   The 'giaddr' field is rather poorly named.  It exists to facilitate
   the transfer of BOOTREQUEST messages from a client, through BOOTP
   relay agents, to servers on different networks than the client.
   Similarly, it facilitates the delivery of BOOTREPLY messages from the
   servers, through BOOTP relay agents, back to the client.  In no case
   does it represent a general IP router to be used by the client.  A
   BOOTP client MUST set the 'giaddr' field to zero (0.0.0.0) in all
   BOOTREQUEST messages it generates.

   A BOOTP client MUST NOT interpret the 'giaddr' field of a BOOTREPLY
   message to be the IP address of an IP router.  A BOOTP client SHOULD
   completely ignore the contents of the 'giaddr' field in BOOTREPLY
   messages.

Leave code ifdef'd out for the time being in case we see regression.

Suggested by: Rink Springer <rink@rink.nu>
Closes: 43396
9 years agohostdisk: fix crash with NULL device.map
Andrei Borzenkov [Sun, 17 May 2015 11:16:36 +0000 (14:16 +0300)]
hostdisk: fix crash with NULL device.map

grub-macbless calls grub_util_biosdisk_init with NULL device.map.

9 years agozfs: fix integer truncation in zap_lookup
Andrei Borzenkov [Thu, 14 May 2015 04:50:33 +0000 (07:50 +0300)]
zfs: fix integer truncation in zap_lookup

Size after shift could exceed 16 bits; use grub_unit32_t for result.

Reported and tested by: Kostya Berger <bergerkos@yahoo.co.uk>
Closes: 44448
9 years agoremove extra newlines in grub_util_* strings
Andrei Borzenkov [Wed, 13 May 2015 06:47:17 +0000 (09:47 +0300)]
remove extra newlines in grub_util_* strings

grub_util_{info,warn,error} already add trailing newlines, so remove
them from format strings. Also trailing full stops are already added.

9 years agoxfs: Convert inode numbers to cpu endianity immediately after reading
Jan Kara [Mon, 14 Jul 2014 15:21:30 +0000 (17:21 +0200)]
xfs: Convert inode numbers to cpu endianity immediately after reading

Currently XFS driver converted inode numbers to native endianity only
when using them to compute inode position. Although this works, it is
somewhat confusing. So convert inode numbers when reading them from disk
structures as every other field.

Signed-off-by: Jan Kara <jack@suse.cz>
9 years agoxfs: Fix termination loop for directory iteration
Jan Kara [Mon, 14 Jul 2014 15:21:29 +0000 (17:21 +0200)]
xfs: Fix termination loop for directory iteration

Directory iteration used wrong position (sizeof wrong structure) for
termination of iteration inside a directory block. Luckily the position
ended up being wrong by just 1 byte and directory entries are larger so
things worked out fine in practice. But fix the problem anyway.

Signed-off-by: Jan Kara <jack@suse.cz>
9 years agoacpi: do not skip BIOS scan if EBDA length is zero
Andrei Borzenkov [Fri, 8 May 2015 03:15:16 +0000 (06:15 +0300)]
acpi: do not skip BIOS scan if EBDA length is zero

EBDA layout is not standardized so we cannot assume first two bytes
are length. Neither is it required by ACPI standard. HP 8710W is known
to contain zeroes here.

Closes: 45002
9 years agoAdd asm-tests to tarball
Andrei Borzenkov [Thu, 7 May 2015 19:13:34 +0000 (22:13 +0300)]
Add asm-tests to tarball