- 10 Jan, 2016 1 commit
-
-
Vladimir Serbinenko authored
Via C3 has problems with cache coherency when transitioning between the modes, so flush it around bios calls.
-
- 08 Jan, 2016 4 commits
-
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
-
Mark Salter authored
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.
-
- 07 Jan, 2016 1 commit
-
-
Vladimir Serbinenko authored
-
- 06 Jan, 2016 3 commits
-
-
Vladimir Serbinenko authored
Use it to add custom files, so that tests which need them work.
-
Vladimir Serbinenko authored
So that we can use it in grub-emu as well as utils.
-
Vladimir Serbinenko authored
This disables progress indicator for tests. This in turn fixes test flakiness as they ended up timing-dependent.
-
- 05 Jan, 2016 1 commit
-
-
Vladimir Serbinenko authored
-
- 03 Jan, 2016 1 commit
-
-
Andrei Borzenkov authored
Fixes ACPI halt on ASUSTeK P8B75-V, Bios: American Megatrends v: 0414 date: 04/24/2012 Reported-By:
Goh Lip <g.lip@gmx.com>
-
- 02 Jan, 2016 1 commit
-
-
Andrei Borzenkov authored
-
- 01 Jan, 2016 2 commits
-
-
Andrei Borzenkov authored
-
Andrey Borzenkov authored
-
- 31 Dec, 2015 6 commits
-
-
Vladimir Serbinenko authored
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.
-
Vladimir Serbinenko authored
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.
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
This fixes the use of not fully relocatable (they assume that variables are under 4G limit in virtual memory) references.
-
- 30 Dec, 2015 2 commits
-
-
Vladimir Serbinenko authored
-
Andrei Borzenkov authored
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>
-
- 29 Dec, 2015 1 commit
-
-
Vladimir Serbinenko authored
-
- 27 Dec, 2015 1 commit
-
-
Andrei Borzenkov authored
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
-
- 19 Dec, 2015 1 commit
-
-
Andrei Borzenkov authored
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.
-
- 17 Dec, 2015 1 commit
-
-
Robert Elliott authored
This should accompany 76ce1de7 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
-
- 16 Dec, 2015 3 commits
-
-
Andrei Borzenkov authored
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
-
Andrei Borzenkov authored
It probably does not work across linefeed, but hopefully user names are not that long (and nobody is using terminal that small).
-
Hector Marco-Gisbert authored
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>
-
- 15 Dec, 2015 1 commit
-
-
Robert Elliott authored
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>
-
- 07 Dec, 2015 1 commit
-
-
Josef Bacik authored
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>
-
- 01 Dec, 2015 1 commit
-
-
Michael Chang authored
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>
-
- 27 Nov, 2015 2 commits
-
-
Andrei Borzenkov authored
-
Vladimir Serbinenko authored
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.
-
- 26 Nov, 2015 1 commit
-
-
Andrei Borzenkov authored
9be4c45d 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>
-
- 24 Nov, 2015 1 commit
-
-
Josef Bacik authored
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>
-
- 19 Nov, 2015 1 commit
-
-
Andrei Borzenkov authored
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
-
- 17 Nov, 2015 1 commit
-
-
Andrei Borzenkov authored
-
- 14 Nov, 2015 2 commits
-
-
Pavel Bludov authored
-
Konstantin Vlasov authored
They used screen width, not height.
-