]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
9 years agoAdd wbinvd around bios call. phcoder/c3
Vladimir Serbinenko [Sun, 10 Jan 2016 12:48:26 +0000 (13:48 +0100)] 
Add wbinvd around bios call.

Via C3 has problems with cache coherency when transitioning between the modes,
so flush it around bios calls.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

OVMF now supports booting from disks.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Reported by: Thomas Schmitt

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

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

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

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

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

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

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

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

Closes: 45163
9 years agowindows: correct LBA in generated EFI HDD media paths
Andrei Borzenkov [Sat, 19 Dec 2015 08:32:26 +0000 (11:32 +0300)] 
windows: correct LBA in generated EFI HDD media paths

GRUB keeps partition offset and size in units of 512B sectors. Media paths
are defined in terms of LBA which are presumed to match HDD sector size.

This is probably cosmetic (EFI requires that partition is searched by GUID)
and still incorrect if GPT was created using different logical block size.
But current code is obviously wrong and new has better chances to be correct.

9 years agolsefimmap: support persistent memory and other UEFI 2.5 features
Robert Elliott [Thu, 17 Dec 2015 16:53:32 +0000 (10:53 -0600)] 
lsefimmap: support persistent memory and other UEFI 2.5 features

This should accompany
76ce1de740 Translate UEFI persistent memory type

1. Add a string for the EfiPersistentMemory type 14 that was
added in UEFI 2.5.

2. Decode the memory attributes that were added in UEFI 2.5:
* NV (non-volatile)
* MORE_RELIABLE (higher reliable, e.g., mirrored memory in a system
  with partial memory mirroring)
* RO (read-only)

3. Use proper IEC binary units (KiB, MiB, etc.) for power-of-two
values rather than misusing SI power-of-ten units (KB, MB, etc.)

4. The lsmmap command only decodes memory ranges sizes up to GiB scale
units.  Persistent memory ranges will reach into the TiB scale.
Since 64-bit size field supports TiB, PiB, and EiB, decode all of
them for completeness.

5. In the lsefimmap command, rewrite the print statements to
* avoid rounding
* avoid a big nested if/else tree.

For example: In the sixth entry below, the value of 309MB implies
316416KB but is really reporting 316436KB.

Widen the size column to 6 digits to accommodate typical cases.
The worst case value would require 14 digits; if that happens,
let the columns get out of sync.

Old format:
Type      Physical start  - end             #Pages     Size Attributes
conv-mem  0000000000000000-0000000000092fff 00000093  588KB UC WC WT WB
reserved  0000000000093000-0000000000093fff 00000001    4KB UC WC WT WB
conv-mem  0000000000094000-000000000009ffff 0000000c   48KB UC WC WT WB
conv-mem  0000000000100000-000000000fffffff 0000ff00  255MB UC WC WT WB
BS-code   0000000010000000-0000000010048fff 00000049  292KB UC WC WT WB
conv-mem  0000000010049000-000000002354dfff 00013505  309MB UC WC WT WB
ldr-data  000000002354e000-000000003ecfffff 0001b7b2  439MB UC WC WT WB
BS-data   000000003ed00000-000000003ed7ffff 00000080  512KB UC WC WT WB
conv-mem  000000003ed80000-000000006af5ffff 0002c1e0  705MB UC WC WT WB
reserved  000000006af60000-000000006b55ffff 00000600    6MB UC WC WT WB
BS-data   000000006b560000-000000006b560fff 00000001    4KB UC WC WT WB
RT-data   000000006b561000-000000006b5e1fff 00000081  516KB RT UC WC WT WB
BS-data   000000006b5e2000-000000006ecfafff 00003719   55MB UC WC WT WB
BS-code   000000006ecfb000-000000006ecfbfff 00000001    4KB UC WC WT WB
conv-mem  000000006ecfc000-00000000711fafff 000024ff   36MB UC WC WT WB
BS-data   00000000711fb000-000000007128dfff 00000093  588KB UC WC WT WB
Unk 0d    0000000880000000-0000000e7fffffff 00600000   24GB UC WC WT WB NV
reserved  0000001680000000-0000001c7fffffff 00600000   24GB UC WC WT WB NV

New format:
Type      Physical start  - end             #Pages        Size Attributes
conv-mem  0000000000000000-0000000000092fff 00000093    588KiB UC WC WT WB
reserved  0000000000093000-0000000000093fff 00000001      4KiB UC WC WT WB
conv-mem  0000000000094000-000000000009ffff 0000000c     48KiB UC WC WT WB
conv-mem  0000000000100000-000000000fffffff 0000ff00    255MiB UC WC WT WB
BS-code   0000000010000000-0000000010048fff 00000049    292KiB UC WC WT WB
conv-mem  0000000010049000-000000002354dfff 00013505 316436KiB UC WC WT WB
ldr-data  000000002354e000-000000003ecfffff 0001b7b2 450248KiB UC WC WT WB
BS-data   000000003ed00000-000000003ed7ffff 00000080    512KiB UC WC WT WB
conv-mem  000000003ed80000-000000006af5ffff 0002c1e0 722816KiB UC WC WT WB
reserved  000000006af60000-000000006b55ffff 00000600      6MiB UC WC WT WB
BS-data   000000006b560000-000000006b560fff 00000001      4KiB UC WC WT WB
RT-data   000000006b561000-000000006b5e1fff 00000081    516KiB RT UC WC WT WB
BS-data   000000006b5e2000-000000006ecfafff 00003719  56420KiB UC WC WT WB
BS-code   000000006ecfb000-000000006ecfbfff 00000001      4KiB UC WC WT WB
conv-mem  000000006ecfc000-0000000071222fff 00002527  38044KiB UC WC WT WB
BS-data   0000000071223000-00000000712ddfff 000000bb    748KiB UC WC WT WB
persist   0000000880000000-0000000e7fffffff 00600000     24GiB UC WC WT WB NV
reserved  0000001680000000-0000001c7fffffff 00600000     24GiB UC WC WT WB NV

9 years agokernel: print and reset grub_errno after each embedded config line
Andrei Borzenkov [Wed, 16 Dec 2015 18:20:30 +0000 (21:20 +0300)] 
kernel: print and reset grub_errno after each embedded config line

Otherwise it causes subsequent file open to fail, because grub_file_open
misinterprets set grub_errno for grub_file_get_device_name failure.

Closes: 46540
9 years agoErase backspaced character in grub_username_get
Andrei Borzenkov [Wed, 16 Dec 2015 16:20:10 +0000 (19:20 +0300)] 
Erase backspaced character in grub_username_get

It probably does not work across linefeed, but hopefully user names are not
that long (and nobody is using terminal that small).

9 years agoFix security issue when reading username and password
Hector Marco-Gisbert [Wed, 16 Dec 2015 04:57:18 +0000 (07:57 +0300)] 
Fix security issue when reading username and password

This patch fixes two integer underflows at:
  * grub-core/lib/crypto.c
  * grub-core/normal/auth.c

CVE-2015-8370

Signed-off-by: Hector Marco-Gisbert <hecmargi@upv.es>
Signed-off-by: Ismael Ripoll-Ripoll <iripoll@disca.upv.es>
Also-By: Andrey Borzenkov <arvidjaar@gmail.com>
9 years agoNEWS: more additions
Andrei Borzenkov [Tue, 15 Dec 2015 07:41:01 +0000 (10:41 +0300)] 
NEWS: more additions

Also-By: Robert Elliott <elliott@hpe.com>
9 years agoTranslate UEFI persistent memory type
Robert Elliott [Thu, 3 Dec 2015 17:38:36 +0000 (11:38 -0600)] 
Translate UEFI persistent memory type

Define
* GRUB_EFI_PERSISTENT_MEMORY (UEFI memory map type 14) per UEFI 2.5
* GRUB_MEMORY_PERSISTENT (E820 type 7) per ACPI 3.0
* GRUB_MEMORY_PERSISTENT_LEGACY (E820 unofficial type 12) per ACPI 3.0

and translate GRUB_EFI_PERSISTENT_MEMORY to GRUB_MEMORY_PERSISTENT in
grub_efi_mmap_iterate().

Includes
* adding the E820 names to lsmmap
* handling the E820 types in make_efi_memtype()

Suggested-by: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
Suggested-by: Andrei Borzenkov <arvidjaar@gmail.com>
9 years agoDocument bootlocation discovery limitations and xen platform limitations
Vladimir Serbinenko [Mon, 14 Dec 2015 15:21:24 +0000 (16:21 +0100)] 
Document bootlocation discovery limitations and xen platform limitations

9 years agotcp: ack when we get an OOO/lost packet
Josef Bacik [Wed, 12 Aug 2015 15:16:22 +0000 (08:16 -0700)] 
tcp: ack when we get an OOO/lost packet

While adding tcp window scaling support I was finding that I'd get some packet
loss or reordering when transferring from large distances and grub would just
timeout.  This is because we weren't ack'ing when we got our OOO packet, so the
sender didn't know it needed to retransmit anything, so eventually it would fill
the window and stop transmitting, and we'd time out.  Fix this by ACK'ing when
we don't find our next sequence numbered packet.  With this fix I no longer time
out.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
9 years agoi386: fix TSC calibration using PIT
Michael Chang [Tue, 1 Dec 2015 15:49:38 +0000 (18:49 +0300)] 
i386: fix TSC calibration using PIT

Condition was accidentally reversed, so PIT calibration always failed
when PIT was present and always succeeded when PIT was missing, but in
the latter case resulted in absurdly fast clock.

Reported and tested by Vitaly Kuznetsov <vkuznets@redhat.com>

9 years agoDo not include generated gnulib headers in tarball
Andrei Borzenkov [Sat, 28 Nov 2015 18:11:34 +0000 (21:11 +0300)] 
Do not include generated gnulib headers in tarball

gnulib files are already handled by recursive make distdir invocation.
Including all generated headers (after make completed) causes build
failure if target system is different (different compile version etc).

9 years agoReplace numbers with grub_memory_type_t enums
Andrei Borzenkov [Fri, 27 Nov 2015 16:52:16 +0000 (19:52 +0300)] 
Replace numbers with grub_memory_type_t enums

9 years agoconfigure: fix macports flex version detection
Andrei Borzenkov [Fri, 27 Nov 2015 16:42:23 +0000 (19:42 +0300)] 
configure: fix macports flex version detection

Macports add extra information after version itself:

$flex --version
flex 2.5.35 Apple(flex-31)

We require at least felx 2.5.35 so do not need to care about prehistoric
"flex version n.n.n"; just use second field always.

Reported by Peter Cheung <mcheung63@hotmail.com>

9 years agotsc: Use alternative delay sources whenever appropriate.
Vladimir Serbinenko [Fri, 13 Nov 2015 15:14:53 +0000 (16:14 +0100)] 
tsc: Use alternative delay sources whenever appropriate.

PIT isn't available on some of new hardware including Hyper-V. So
use pmtimer for calibration. Moreover pmtimer calibration is faster, so
use it on coreboor where booting time is important.

Based on patch by Michael Chang.

9 years agoefi: really mark memory of unknown type as reserved
Andrei Borzenkov [Thu, 26 Nov 2015 16:50:42 +0000 (19:50 +0300)] 
efi: really mark memory of unknown type as reserved

9be4c45dbe3c877d1f4856e99ee15133c6cd2261 added switch case between
fall through cases, causing all memory regions of unknown type to be
marked as available.

Move default case into its own block and add explicit FALLTHROUGH
annotation.

Reported by Elliott, Robert (Persistent Memory) <elliott@hpe.com>

9 years agonet: reset nb->data per dns record lookup loop
Josef Bacik [Tue, 24 Nov 2015 17:41:35 +0000 (12:41 -0500)] 
net: reset nb->data per dns record lookup loop

We were resetting nb->data every time we tried a new server, but we need to do
it every time we try for a different record, otherwise we don't end up falling
back to the A record properly.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
9 years agounix: do not close stdin in grub_passwd_get
Andrei Borzenkov [Wed, 18 Nov 2015 19:23:58 +0000 (22:23 +0300)] 
unix: do not close stdin in grub_passwd_get

This makes it impossible to read from stdin without controlling tty:

10:/mnt # echo -e passwd\\npasswd | setsid ./grub-mkpasswd-pbkdf2
Enter password:
Reenter password: ./grub-mkpasswd-pbkdf2: error: failure to read password.
10:/mnt

9 years agolsefisystab: add missing comma after 7994077
Andrei Borzenkov [Tue, 17 Nov 2015 03:27:17 +0000 (06:27 +0300)] 
lsefisystab: add missing comma after 7994077

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.