1 2016-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5 grub_arch_sync_dma_caches: Accept volatile address
7 2016-02-27 Leif Lindholm <leif.lindholm@linaro.org>
9 efidisk: Respect block_io_protocol buffer alignment
10 Returned from the OpenProtocol operation, the grub_efi_block_io_media
11 structure contains the io_align field, specifying the minimum alignment
12 required for buffers used in any data transfers with the device.
14 Make grub_efidisk_readwrite() allocate a temporary buffer, aligned to
15 this boundary, if the buffer passed to it does not already meet the
18 Also sanity check the io_align field in grub_efidisk_open() for
19 power-of-two-ness and bail if invalid.
21 2016-02-27 Vladimir Serbinenko <phcoder@gmail.com>
23 usbtrans: Fix memory coherence and use-after-free.
25 ehci: Fix memory coherence
26 This is a no-op on x86 but necessarry on ARM and may be necessarry on MIPS.
28 arm-uboot: Make self-relocatable to allow loading at any address
30 Allow _start == 0 with relocatable images
32 2016-02-27 Vladimir Serbinenko <phcoder@gmail.com>
34 Provide __bss_start and _end symbols in grub-mkimage.
35 For this ensure that all bss sections are merged.
37 We need this to correctly prelink non-PE relocatable images.
39 2016-02-27 Vladimir Serbinenko <phcoder@gmail.com>
41 Encapsulate image layout into a separate structure.
42 Currently we pass around a lot of pointer. Instead put all relevant data
45 mkimagexx: Split PE and generic part for relocations.
46 As a preparation for U-Boot relocations, split emitting PE-relocations
47 from parsing source ELF-relocations.
49 mkimage.c: Split into separate files.
50 util/grub-mkimagexx.c is included in a special way into mkimage.c.
51 Interoperation between defines makes this very tricky. Instead
52 just have a clean interface and compile util/grub-mkimage*.c separately
55 bsd: Ensure that kernel is loaded before loading module.
56 kernel_type may be set to the type of failed kernel. This patching-up is
57 easier than to reflow kernel loading routines.
59 cat: Don't switch terminal mode when there is nothing to highlight.
60 This just pollutes serial console.
62 Use console rather than serial_efi0 on arm64-efi in tests
64 2016-02-27 Andrei Borzenkov <arvidjaar@gmail.com>
66 efidisk: fix misplaced parenthesis in b00e4c2
68 2016-02-26 Andrei Borzenkov <arvidjaar@gmail.com>
70 efidisk: prevent errors from diskfilter scan of removable drives
71 Map EFI_NO_MEDIA to GRUB_ERR_OUT_OF_RANGE that is ignored by diskfilter. This
72 actually matches pretty close (we obviously attempt to read outside of media)
73 and avoids adding more error codes.
75 This affects only internally initiated scans. If read/write from removable is
76 explicitly requested, we still return an error and text explanation is more
77 clear for user than generic error.
79 Reported and tested by Andreas Loew <Andreas.Loew@gmx.net>
81 2016-02-26 Vladimir Serbinenko <phcoder@gmail.com>
85 Makefile: Don't delete default_payload.elf if it doesn't exist.
87 2016-02-25 Josef Bacik <jbacik@fb.com>
90 ipv6 routing in grub2 is broken, we cannot talk to anything outside our local
91 network or anything that doesn't route in our global namespace. This patch
92 fixes this by doing a couple of things
94 1) Read the router information off of the router advertisement. If we have a
95 router lifetime we need to take the source address and create a route from it.
97 2) Changes the routing stuff slightly to allow you to specify a gateway _and_ an
98 interface. Since the router advertisements come in on the link local address we
99 need to associate it with the global address on the card. So when we are
100 processing the router advertisement, either use the SLAAC interface we create
101 and add the route to that interface, or loop through the global addresses we
102 currently have on our interface and associate it with one of those addresses.
103 We need to have a special case here for the default route so that it gets used,
104 we do this by setting the masksize to 0 to mean it encompasses all networks.
105 The routing code will automatically select the best route so if there is a
106 closer match we will use that.
108 With this patch I can now talk to ipv6 addresses outside of my local network.
111 2016-02-24 Vladimir Serbinenko <phcoder@gmail.com>
113 ieee1275: fix signed comparison
115 2016-02-23 Andrei Borzenkov <arvidjaar@gmail.com>
117 search: actually skip floppy with --no-floppy
118 grub_device_iterate() ignores device when iterator returns 1, not 0.
120 Reported by Carlos E. R. <robin.listas@telefonica.net>
122 2016-02-23 Andrei Borzenkov <arvidjaar@gmail.com>
124 multiboot2: zero reserved field in memory map
125 Documentation says, bootloader should set reserved field to zero.
127 Reported by Wink Saville <wink@saville.com>
129 2016-02-22 Vladimir Serbinenko <phcoder@gmail.com>
132 Add dprintf's on common error paths and remove some entries which are too
135 usb_keyboard: Remove useless include
136 This prevents non-PCI machines from having USB.
139 This ensures that abort message is actually visible to the user.
141 2016-02-22 Eric Snowberg <eric.snowberg@oracle.com>
143 ieee1275: prevent buffer over-read
144 Prevent buffer over-read in grub_machine_mmap_iterate. This was
145 causing phys_base from being calculated properly. This then
146 caused the wrong value to be placed in ramdisk_image within
147 struct linux_hdrs. Which prevented the ramdisk from loading on
150 Newer SPARC systems contain more than 8 available memory entries.
152 For example on a T5-8 with 2TB of memory, the memory layout could
156 reg 00000000 30000000 0000003f b0000000
157 00000800 00000000 00000040 00000000
158 00001000 00000000 00000040 00000000
159 00001800 00000000 00000040 00000000
160 00002000 00000000 00000040 00000000
161 00002800 00000000 00000040 00000000
162 00003000 00000000 00000040 00000000
163 00003800 00000000 00000040 00000000
164 available 00003800 00000000 0000003f ffcae000
165 00003000 00000000 00000040 00000000
166 00002800 00000000 00000040 00000000
167 00002000 00000000 00000040 00000000
168 00001800 00000000 00000040 00000000
169 00001000 00000000 00000040 00000000
170 00000800 00000000 00000040 00000000
171 00000000 70000000 0000003f 70000000
172 00000000 6eef8000 00000000 00002000
173 00000000 30400000 00000000 3eaf6000
176 2016-02-22 Thomas Huth <thuth@redhat.com>
178 menu_entry: Disable cursor during update_screen()
179 When running grub in a VGA console of a KVM pseries guest on PowerPC,
180 you can see the cursor sweeping over the whole line when entering a
181 character in editor mode. This is visible because grub always refreshes
182 the whole line when entering a character in editor mode, and drawing
183 characters is quite a slow operation with the firmware used for the
184 powerpc pseries guests (SLOF).
185 To avoid this ugliness, the cursor should be disabled when refreshing
186 the screen contents during update_screen().
188 2016-02-17 Vladimir Serbinenko <phcoder@gmail.com>
190 default_payload.elf: Always rebuild and remove before build.
191 It's difficult to know all dependencies. Since it's manual and cheap
192 target anyway, simply always rebuild it.
194 default_payload.elf: Include password_pbkdf2.
195 Withoout this module we may end up in a system where no password is
198 default_payload.elf: Add modules from $(EXTRA_PAYLOAD_MODULES).
199 This allows coreboot building system to add extra modules depending
202 mm: Avoid integer overflow.
204 Remove -Wno-maybe-uninitialized as it may not be present.
206 Fix warnings when compiling with -O3
208 2016-02-14 Vladimir Serbinenko <phcoder@gmail.com>
210 Add wbinvd around bios call.
211 Via C3 has problems with cache coherency when transitioning between the modes,
212 so flush it around bios calls.
214 2016-02-12 Eric Snowberg <eric.snowberg@oracle.com>
216 OBP available region contains grub. Start at grub_phys_end.
217 This prevents a problem where grub was being overwritten since
218 grub_phys_start does not start at a zero offset within the memory
221 2016-02-12 Andreas Freimuth <andreas_freimuth@web.de>
223 Add Thinkpad T410s button cmos address.
225 2016-02-12 Vladimir Serbinenko <phcoder@gmail.com>
227 TODO: Remove obsolete link
229 2016-02-12 Toomas Soome <tsoome@me.com>
231 lz4: Fix pointer overflow
233 2016-02-12 Vladimir Serbinenko <phcoder@gmail.com>
235 grub-shell: Update 32-bit OVMF binary name.
237 2016-02-12 Daniel Kiper <daniel.kiper@oracle.com>
239 relocator: Fix integer underflow.
241 2016-02-12 Vladimir Serbinenko <phcoder@gmail.com>
243 Change -v to -V for version of shell utils.
245 xnu: Add new kernel path to autoconfig.
247 arm64: Use cpu timer for timekeeping.
249 powerpc: Trim header in tests.
251 default_payload: Include syslinuxcfg, all filesystems and xnu.
253 xnu: Supply random seed.
254 Now we're able to load kernels up to El Capitan.
258 yylex: use grub_fatal for exit.
259 lexer calls yylex_fatal on fatal internal errors. yylex_fatal itself is
260 declared as noreturn and calls exit. Returning from noreturn function has
261 unpredictable consequences.
263 printf: Fix and test %% behaviour in presence of subsequenbt args.
265 Split pmtimer wait and tsc measurement from pmtimer tsc calibration.
267 Make grub_cpu_is_tsc_supported generally available.
269 Make grub_acpi_find_fadt accessible generically
271 Make unaligned types public.
272 This simplifies code which has to handle those types.
274 Fix emu compilation error on arm.
276 2016-02-11 Vladimir Serbinenko <phcoder@gmail.com>
278 xnu: Include relocated EFI in heap size.
280 xnu: supply ramsize to the kernel.
281 Without this info recent kernels crash as they allocate no heap.
283 2016-02-03 Andrei Borzenkov <arvidjaar@gmail.com>
285 support modules without symbol table
286 all_video module does not have any code or data and exists solely for
287 .moddeps section to pull in dependencies. This makes all symbols unneeded.
289 While in current binutils (last released version as of this commit is 2.26)
290 ``strip --strip-unneeded'' unintentionally adds section symbols for each
291 existing section, this behavior was considered a bug and changed in commit
292 14f2c699ddca1e2f706342dffc59a6c7e23e844c to completely strip symbol table
295 Older binutils (verified with 2.17) and some other toolchains (at least
296 elftoolchain r3223M), both used in FreeBSD, remove symbol table in all_video
299 Relax run-time check and do not return error for modules without symbol table.
300 Add additional checks to module verifier to make sure such modules
302 a) have non-empty .moddeps section. Without either externally visible symbols
303 or .moddeps modules are completely useless and should not be built.
305 b) do not have any relocations.
309 v2: add run-time check for empty symbol table if relocations are present as
310 suggested by Vladimir.
312 2016-02-01 Andrei Borzenkov <arvidjaar@gmail.com>
314 10_linux: avoid multi-device root= kernel argument
315 If root filesystem is multidev btrfs, do not attempt to pass all devices as
316 kernel root= argument. This results in splitting command line in GRUB due to
317 embedded newline and even if we managed to quote it, kernel does not know how
318 to interpret it anyway. Multidev btrfs requires user space device scanning,
319 so passing single device would not work too.
321 This still respects user settings GRUB_DISABLE_LINUX_UUID. Not sure what we
322 should do in this case.
326 2016-01-22 Vladimir Serbinenko <phcoder@gmail.com>
328 Error out if mtools invocation fails.
330 arm64: Add support for relocations needed for linaro gcc
332 efiemu: Fix compilation failure
336 2016-01-22 Robert Elliott <elliott@hpe.com>
338 efiemu: Handle persistent RAM and unknown possible future additions.
340 2016-01-22 Vladimir Serbinenko <phcoder@gmail.com>
342 Document expr1 expr2 syntax for test command
344 2016-01-22 Michael Chang <mchang@suse.com>
346 Restore terminal settings on grub-emu exit.
348 2016-01-22 Vladimir Serbinenko <phcoder@gmail.com>
350 xen_boot: Remove obsolete module type distinctions.
352 arm: Ignore qemu clock bug
354 i386-ieee1275: Increase maximum heap size to accomodate highres graphi tests
356 2016-01-20 Colin Watson <cjwatson@ubuntu.com>
358 Remove pragmas related to -Wunreachable-code
359 -Wunreachable-code has been a no-op since GCC 4.5; GRUB hasn't been
360 compiled with it since 2012; and GCC 6 produces "error:
361 '-Wunreachable-code' is not an option that controls warnings" for these.
363 Fixes Debian bug #812047.
365 2016-01-16 Colin Watson <cjwatson@ubuntu.com>
367 loader/bsd: Fix signed/unsigned comparison
369 ahci, ehci: Fix typos
371 2016-01-16 Andrei Borzenkov <arvidjaar@gmail.com>
373 grub-probe: fix memory leak
374 Found by: Coverity scan.
377 2016-01-16 Andrei Borzenkov <arvidjaar@gmail.com>
379 tftp: fix memory leaks in open
380 If protocol open fails, file is immediately freed, so data was leaked.
382 Found by: Coverity scan.
385 2016-01-16 Andrei Borzenkov <arvidjaar@gmail.com>
387 tcp: fix memory leaks
388 Found by: Coverity scan.
391 net: fix memory leaks
392 Found by: Coverity scan.
395 legacycfg: fix memory leaks and add NULL check
396 Memory leaks found by Coverity scan.
399 2016-01-15 Andrei Borzenkov <arvidjaar@gmail.com>
401 loader: Unintended sign extension
402 CID: 96707, 96699, 96693, 96691, 96711, 96709, 96708, 96703, 96702,
403 96700, 96698, 96696, 96695, 96692, 96710, 96705
405 2016-01-12 Andrei Borzenkov <arvidjaar@gmail.com>
407 script: fix memory leak
408 Found by: Coverity scan.
411 normal: fix memory leak
412 Found by: Coverity scan.
413 CID: 96641, 96670, 96667
416 Found by: Coverity scan.
419 truecrypt: fix memory leak
420 Found by: Coverity scan.
423 gfxmenu: fix memory leak
424 Found by: Coverity scan.
427 efiemu: fix memory leak
428 Found by: Coverity scan.
431 efidisk: fix memory leak
432 Found by: Coverity scan.
435 verify: fix memory leak
436 Found by: Coverity scan.
439 password_pbkdf2: fix memory leak
440 Found by: Coverity scan.
443 parttool: fix memory leak
444 Found by: Coverity scan.
447 2016-01-12 Andrei Borzenkov <arvidjaar@gmail.com>
449 nativedisk: fix memory leak
450 Based on Coverity scan.
453 Extended to also cover other error return places.
455 2016-01-12 Andrei Borzenkov <arvidjaar@gmail.com>
457 acpi: fix memory leak
458 Found by: Coverity scan.
461 2016-01-10 Andrei Borzenkov <arvidjaar@gmail.com>
463 grub-install: include ehci in list of native modules
464 This matches behavior of "nativedisk" command.
466 Reported and tested by Smith Henry <sh37092@gmail.com>
468 2016-01-10 Andrei Borzenkov <arvidjaar@gmail.com>
470 grub-mkimage: remove redundant NULL check
471 Found by: Coverity scan.
474 2016-01-10 Andrei Borzenkov <arvidjaar@gmail.com>
476 net: remove dead and redundant code
477 server cannot be NULL at this point (we return error earlier if it is).
478 Also structure is zalloc'ed, so no need to explicitly initialize
481 Found by: Coverity scan.
484 2016-01-10 Andrei Borzenkov <arvidjaar@gmail.com>
486 hostdisk: fix device detection
487 Condition was apparently reversed so GRUB assumed all devices were
488 files. This later made it skip BLKFLSBUF ioctl on Linux which caused
489 various page cache coherency issues. Observed were
491 - failure to validate blocklist install (read content did not match
494 - failure to detect Linux MD on disk after online hot addition
495 (GRUB got stale superblock)
499 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
501 setup: fix NULL pointer dereference
502 Check return value of grub_guess_root_devices
504 Found by: Coverity scan.
507 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
509 mkimage: fix unintended sign extension
510 Found by: Coverity scan.
513 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
515 util/getroot: delete dead code
516 is_part cannot be non-zero at this point.
518 Found by: Coveruty scan.
521 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
523 loader/multiboot: fix unintended sign extension
524 Found by: Coveruty scan.
527 kern/elf: fix unintended sign extension
528 Found by: Coverity scan.
529 CID: 73729, 73735, 73758, 73760
531 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
533 xfs: fix possible inode corruption in directory scan
534 grub_xfs_iterate_dir did not restore first character after inline
535 name when match was found. Dependning on XFS format this character
536 could be inode number and we could return to the same node later in
537 find_file if processing cycled symlinks.
541 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
543 rescue_parser: restructure code to avoid Coverity false positive
544 If line contains single word, line and argv[0] are aliases, so
545 no NULL dereference is possible, but Coverity does not know it.
546 Change code to avoid ambiguity and also remove redundant call to
551 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
553 grub-mklayout: check subscript bounds
554 Found by: Coverity scan.
557 grub-probe: fix memory leak
558 Found by: Coverity scan.
561 gfxmenu: fix memory leak
562 Found by: Coverity scan.
565 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
567 util/setup: fix grub_util_path_list leak
568 Add helper grub_util_free_path_list and use it where appropriate.
570 Found by: Coverity scan.
573 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
575 setup: fix memory leak
576 Found by: Coverity scan.
579 efiemu: check return value of grub_efiemu_write_value
580 Found by: Coverity scan.
583 efiemu: change code to avoid Coverity false positive
586 efiemu: fix unintended sign extension
587 Found by: Coverity scan.
591 Found by: Coverity scan.
594 grub-module-verifier: fix unintended sign extension
595 Found by: Coverity scan.
598 2016-01-08 Vladimir Serbinenko <phcoder@gmail.com>
600 Tests: Support arm-efi
602 2016-01-07 Vladimir Serbinenko <phcoder@gmail.com>
604 arm64/setjmp: Add missing move for arg1 == 0 case.
606 grub-shell: Support arm64-efi
608 2016-01-07 Mark Salter <msalter@redhat.com>
610 arm-efi: Reduce timer event frequency by 10
611 Timer event to keep grub msec counter was running at 1000HZ. This was too
612 fast for UEFI timer driver and resulted in a 10x slowdown in grub time
613 versus wallclock. Reduce the timer event frequency and increase tick
614 increment accordingly to keep better time.
616 2016-01-07 Vladimir Serbinenko <phcoder@gmail.com>
618 x86_64-efi: Automatically add -bios OVMF.fd to qemu in tests.
620 Allow GRUB_QEMU_OPTS to override machine.
622 arm64: Disable tests that need native drivers.
624 Disable NetBSD bootcheck on EFI until it supports ACPI on EFI.
626 grub-shell: Use new cbfstool syntax.
628 grub-shell: On i386-ieee1275 don't try to switch to console.
629 console goes to serial as well, so this doesn't stop garbage from going
630 to serial. But it creates garbage itself.
632 hddboot_test: reenable on OVMF
633 OVMF now supports booting from disks.
635 iee1275/datetime: Fix off-by-1 error.
637 2016-01-07 Vladimir Serbinenko <phcoder@gmail.com>
639 Adjust bootcheck tests for multiboot/coreboot/qemu to match real support.
640 coreboot has ACPI while 2 others don't. *BSD need ACPI and have trouble
641 without it. Don't even attempt to boot *BSD on multiboot or qemu targets.
643 On coreboot boot all *BSD except 32-bit NetBSD which apparently does some
646 2016-01-05 Vladimir Serbinenko <phcoder@gmail.com>
648 minixfs_test: Check if mkfs.minixfs supports -B option.
650 Add memdisk support to grub-emu.
651 Use it to add custom files, so that tests which need them work.
653 Move file loading functions to grub-emu.
654 So that we can use it in grub-emu as well as utils.
656 Disable progress indicator in grub-shell.
657 This disables progress indicator for tests. This in turn fixes test
658 flakiness as they ended up timing-dependent.
662 2016-01-02 Andrei Borzenkov <arvidjaar@gmail.com>
664 acpihalt: add GRUB_ACPI_OPCODE_CREATE_DWORD_FIELD (0x8a)
665 Fixes ACPI halt on ASUSTeK P8B75-V,
666 Bios: American Megatrends v: 0414 date: 04/24/2012
668 Reported-By: Goh Lip <g.lip@gmx.com>
670 2016-01-02 Andrei Borzenkov <arvidjaar@gmail.com>
672 acpihalt: fix GRUB_DSDT_TEST compilation
674 2016-01-01 Andrei Borzenkov <arvidjaar@gmail.com>
676 Add missing BUILD_EXEEXT
678 2015-12-31 Vladimir Serbinenko <phcoder@gmail.com>
680 configure.ac: Reorder efiemu check to after link format check.
681 efiemu is supposed to be disabled when compiling through exe format.
682 Unfortunately format was determined only after efiemu check. Reorder to fix the
685 2015-12-31 Andrey Borzenkov <arvidjaar@gmail.com>
687 remove temporary .bin files (kernel and modules)
689 add dejavu built fonts to cleanfiles
691 2015-12-31 Andrei Borzenkov <arvidjaar@gmail.com>
693 Add grub-module-verifier files to EXTRA_DIST
695 2015-12-31 Vladimir Serbinenko <phcoder@gmail.com>
697 configure: Add -fno-unwind-tables if supported.
698 Unwind tables are useless for us bt consume space if present. Ensure that they
701 module-verifier: allow limited-range relocations on sparc64.
702 clang as incomplete mcmodel=large support. As we don't currently need full
703 mcmodel=large support for sparc64, relax those checks.
705 Disable build-time module check on emu.
706 On emu some checks can be laxer like check for relocation range. Additionally
707 module loading in emu is rarely used. So skip this check rather than making
708 it laxer for all platforms. In ideal we may want to have slightly different
709 check for emu but for now this is good enough.
711 configure: Fix grub_cv_cc_fno_unwind_tables check.
712 Check tries -fno-dwarf2-cfi-asm but adds -fno-asynchronous-unwind-tables
713 to TARGET_CFLAGS. Fix this.
715 Add -mno-stack-arg-probe on mingw.
716 This argument disables generation of calls to __chkstk_ms. Those calls are
717 useless on GRUB as function is dummy. Yet they increase module size and
718 use limited-range relocations which may not work under some memory layouts.
719 We currently don't use such layouts on concerned platforms but lt's correct
723 This section is generated by clang and is useful only for debugging.
724 It contains exotic relocations, so strip them to avoid them interferring
727 module-verifier: Check range-limited relative relocations.
728 Check that they point to the same module, so will end up in the same
731 xen/relocator: Use local symbol to ensure that code is relocation-free.
733 backtrace: Fix register call syntax
735 Verify modules on build-time rather than failing in runtime.
737 sparc64: Fix assembly to let compiler to fill in memory references.
738 This fixes the use of not fully relocatable (they assume that variables are
739 under 4G limit in virtual memory) references.
741 2015-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
743 30_os-prober: derive --class from os-prober generated label
744 Currently only Windows gets distinguished icons, everything else is displayed
745 using the same generic one. Add additional --class based on os-prober returned
746 label, which usually is expected to match primary distribution name.
748 Also use it for Windows as well - chainloader prober may actually return
749 different strings (Windows, MS-DOS, Windows9xME).
751 2015-12-30 Vladimir Serbinenko <phcoder@gmail.com>
753 backtrace: Remove assembly assumption that grub_backtrace_pointer is under 4G
755 2015-12-30 Andrei Borzenkov <arvidjaar@gmail.com>
757 menu: fix line count calculation for long lines
758 It gave one extra screen line if length was exactly equal to screen
761 Reported by Michael Chang.
762 Also-By: Michael Chang <mchang@suse.com>
764 2015-12-29 Vladimir Serbinenko <phcoder@gmail.com>
766 grub-mkrescue: Delete temporary file
767 Reported by: Thomas Schmitt
769 grub-mount: Fix oath parsing.
770 Brackets detection was copied from somewhere else and makes no sense in case
771 of grub-mount and prevents user from accessing and files with ) in them.
773 exfat: Fix stream extension flag parsing.
775 2015-12-26 Andrei Borzenkov <arvidjaar@gmail.com>
777 devmapper: check for valid device abstraction in get_grub_dev
778 This was lost when code was refactored. Patch restores previous behavior.
780 It is still not clear whether this is the right one. Due to the way we
781 detect DM abstraction, partitions on DM are skipped, we fall through to
782 generic detection which ends up in assuming parent device is BIOS disk.
784 It is useful to install GRUB on VM disk from the host. But it also means
785 that GRUB will mistakenly allow install on real system as well.
787 For now let's fix regression; future behavior needs to be discussed.
791 2015-12-19 Andrei Borzenkov <arvidjaar@gmail.com>
793 windows: correct LBA in generated EFI HDD media paths
794 GRUB keeps partition offset and size in units of 512B sectors. Media paths
795 are defined in terms of LBA which are presumed to match HDD sector size.
797 This is probably cosmetic (EFI requires that partition is searched by GUID)
798 and still incorrect if GPT was created using different logical block size.
799 But current code is obviously wrong and new has better chances to be correct.
801 2015-12-17 Robert Elliott <elliott@hpe.com>
803 lsefimmap: support persistent memory and other UEFI 2.5 features
804 This should accompany
805 76ce1de740 Translate UEFI persistent memory type
807 1. Add a string for the EfiPersistentMemory type 14 that was
810 2. Decode the memory attributes that were added in UEFI 2.5:
812 * MORE_RELIABLE (higher reliable, e.g., mirrored memory in a system
813 with partial memory mirroring)
816 3. Use proper IEC binary units (KiB, MiB, etc.) for power-of-two
817 values rather than misusing SI power-of-ten units (KB, MB, etc.)
819 4. The lsmmap command only decodes memory ranges sizes up to GiB scale
820 units. Persistent memory ranges will reach into the TiB scale.
821 Since 64-bit size field supports TiB, PiB, and EiB, decode all of
822 them for completeness.
824 5. In the lsefimmap command, rewrite the print statements to
826 * avoid a big nested if/else tree.
828 For example: In the sixth entry below, the value of 309MB implies
829 316416KB but is really reporting 316436KB.
831 Widen the size column to 6 digits to accommodate typical cases.
832 The worst case value would require 14 digits; if that happens,
833 let the columns get out of sync.
836 Type Physical start - end #Pages Size Attributes
837 conv-mem 0000000000000000-0000000000092fff 00000093 588KB UC WC WT WB
838 reserved 0000000000093000-0000000000093fff 00000001 4KB UC WC WT WB
839 conv-mem 0000000000094000-000000000009ffff 0000000c 48KB UC WC WT WB
840 conv-mem 0000000000100000-000000000fffffff 0000ff00 255MB UC WC WT WB
841 BS-code 0000000010000000-0000000010048fff 00000049 292KB UC WC WT WB
842 conv-mem 0000000010049000-000000002354dfff 00013505 309MB UC WC WT WB
843 ldr-data 000000002354e000-000000003ecfffff 0001b7b2 439MB UC WC WT WB
844 BS-data 000000003ed00000-000000003ed7ffff 00000080 512KB UC WC WT WB
845 conv-mem 000000003ed80000-000000006af5ffff 0002c1e0 705MB UC WC WT WB
846 reserved 000000006af60000-000000006b55ffff 00000600 6MB UC WC WT WB
847 BS-data 000000006b560000-000000006b560fff 00000001 4KB UC WC WT WB
848 RT-data 000000006b561000-000000006b5e1fff 00000081 516KB RT UC WC WT WB
849 BS-data 000000006b5e2000-000000006ecfafff 00003719 55MB UC WC WT WB
850 BS-code 000000006ecfb000-000000006ecfbfff 00000001 4KB UC WC WT WB
851 conv-mem 000000006ecfc000-00000000711fafff 000024ff 36MB UC WC WT WB
852 BS-data 00000000711fb000-000000007128dfff 00000093 588KB UC WC WT WB
853 Unk 0d 0000000880000000-0000000e7fffffff 00600000 24GB UC WC WT WB NV
854 reserved 0000001680000000-0000001c7fffffff 00600000 24GB UC WC WT WB NV
857 Type Physical start - end #Pages Size Attributes
858 conv-mem 0000000000000000-0000000000092fff 00000093 588KiB UC WC WT WB
859 reserved 0000000000093000-0000000000093fff 00000001 4KiB UC WC WT WB
860 conv-mem 0000000000094000-000000000009ffff 0000000c 48KiB UC WC WT WB
861 conv-mem 0000000000100000-000000000fffffff 0000ff00 255MiB UC WC WT WB
862 BS-code 0000000010000000-0000000010048fff 00000049 292KiB UC WC WT WB
863 conv-mem 0000000010049000-000000002354dfff 00013505 316436KiB UC WC WT WB
864 ldr-data 000000002354e000-000000003ecfffff 0001b7b2 450248KiB UC WC WT WB
865 BS-data 000000003ed00000-000000003ed7ffff 00000080 512KiB UC WC WT WB
866 conv-mem 000000003ed80000-000000006af5ffff 0002c1e0 722816KiB UC WC WT WB
867 reserved 000000006af60000-000000006b55ffff 00000600 6MiB UC WC WT WB
868 BS-data 000000006b560000-000000006b560fff 00000001 4KiB UC WC WT WB
869 RT-data 000000006b561000-000000006b5e1fff 00000081 516KiB RT UC WC WT WB
870 BS-data 000000006b5e2000-000000006ecfafff 00003719 56420KiB UC WC WT WB
871 BS-code 000000006ecfb000-000000006ecfbfff 00000001 4KiB UC WC WT WB
872 conv-mem 000000006ecfc000-0000000071222fff 00002527 38044KiB UC WC WT WB
873 BS-data 0000000071223000-00000000712ddfff 000000bb 748KiB UC WC WT WB
874 persist 0000000880000000-0000000e7fffffff 00600000 24GiB UC WC WT WB NV
875 reserved 0000001680000000-0000001c7fffffff 00600000 24GiB UC WC WT WB NV
877 2015-12-16 Andrei Borzenkov <arvidjaar@gmail.com>
879 kernel: print and reset grub_errno after each embedded config line
880 Otherwise it causes subsequent file open to fail, because grub_file_open
881 misinterprets set grub_errno for grub_file_get_device_name failure.
885 2015-12-16 Andrei Borzenkov <arvidjaar@gmail.com>
887 Erase backspaced character in grub_username_get
888 It probably does not work across linefeed, but hopefully user names are not
889 that long (and nobody is using terminal that small).
891 2015-12-16 Hector Marco-Gisbert <hecmargi@upv.es>
893 Fix security issue when reading username and password
894 This patch fixes two integer underflows at:
895 * grub-core/lib/crypto.c
896 * grub-core/normal/auth.c
900 Also-By: Andrey Borzenkov <arvidjaar@gmail.com>
902 2015-12-15 Andrei Borzenkov <arvidjaar@gmail.com>
905 Also-By: Robert Elliott <elliott@hpe.com>
907 2015-12-15 Robert Elliott <elliott@hpe.com>
909 Translate UEFI persistent memory type
911 * GRUB_EFI_PERSISTENT_MEMORY (UEFI memory map type 14) per UEFI 2.5
912 * GRUB_MEMORY_PERSISTENT (E820 type 7) per ACPI 3.0
913 * GRUB_MEMORY_PERSISTENT_LEGACY (E820 unofficial type 12) per ACPI 3.0
915 and translate GRUB_EFI_PERSISTENT_MEMORY to GRUB_MEMORY_PERSISTENT in
916 grub_efi_mmap_iterate().
919 * adding the E820 names to lsmmap
920 * handling the E820 types in make_efi_memtype()
922 Suggested-by: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
923 Suggested-by: Andrei Borzenkov <arvidjaar@gmail.com>
925 2015-12-14 Vladimir Serbinenko <phcoder@gmail.com>
927 Document bootlocation discovery limitations and xen platform limitations
929 2015-12-07 Josef Bacik <jbacik@fb.com>
931 tcp: ack when we get an OOO/lost packet
932 While adding tcp window scaling support I was finding that I'd get some packet
933 loss or reordering when transferring from large distances and grub would just
934 timeout. This is because we weren't ack'ing when we got our OOO packet, so the
935 sender didn't know it needed to retransmit anything, so eventually it would fill
936 the window and stop transmitting, and we'd time out. Fix this by ACK'ing when
937 we don't find our next sequence numbered packet. With this fix I no longer time
940 2015-12-01 Michael Chang <mchang@suse.com>
942 i386: fix TSC calibration using PIT
943 Condition was accidentally reversed, so PIT calibration always failed
944 when PIT was present and always succeeded when PIT was missing, but in
945 the latter case resulted in absurdly fast clock.
947 Reported and tested by Vitaly Kuznetsov <vkuznets@redhat.com>
949 2015-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
951 Do not include generated gnulib headers in tarball
952 gnulib files are already handled by recursive make distdir invocation.
953 Including all generated headers (after make completed) causes build
954 failure if target system is different (different compile version etc).
956 2015-11-27 Andrei Borzenkov <arvidjaar@gmail.com>
958 Replace numbers with grub_memory_type_t enums
960 2015-11-27 Andrei Borzenkov <arvidjaar@gmail.com>
962 configure: fix macports flex version detection
963 Macports add extra information after version itself:
966 flex 2.5.35 Apple(flex-31)
968 We require at least felx 2.5.35 so do not need to care about prehistoric
969 "flex version n.n.n"; just use second field always.
971 Reported by Peter Cheung <mcheung63@hotmail.com>
973 2015-11-27 Vladimir Serbinenko <phcoder@gmail.com>
975 tsc: Use alternative delay sources whenever appropriate.
976 PIT isn't available on some of new hardware including Hyper-V. So
977 use pmtimer for calibration. Moreover pmtimer calibration is faster, so
978 use it on coreboor where booting time is important.
980 Based on patch by Michael Chang.
982 2015-11-26 Andrei Borzenkov <arvidjaar@gmail.com>
984 efi: really mark memory of unknown type as reserved
985 9be4c45dbe3c877d1f4856e99ee15133c6cd2261 added switch case between
986 fall through cases, causing all memory regions of unknown type to be
989 Move default case into its own block and add explicit FALLTHROUGH
992 Reported by Elliott, Robert (Persistent Memory) <elliott@hpe.com>
994 2015-11-24 Josef Bacik <jbacik@fb.com>
996 net: reset nb->data per dns record lookup loop
997 We were resetting nb->data every time we tried a new server, but we need to do
998 it every time we try for a different record, otherwise we don't end up falling
999 back to the A record properly. Thanks,
1001 2015-11-18 Andrei Borzenkov <arvidjaar@gmail.com>
1003 unix: do not close stdin in grub_passwd_get
1004 This makes it impossible to read from stdin without controlling tty:
1006 10:/mnt # echo -e passwd\\npasswd | setsid ./grub-mkpasswd-pbkdf2
1008 Reenter password: ./grub-mkpasswd-pbkdf2: error: failure to read password.
1011 2015-11-17 Andrei Borzenkov <arvidjaar@gmail.com>
1013 lsefisystab: add missing comma after 7994077
1015 2015-11-14 Pavel Bludov <pbludov@gmail.com>
1017 Add some UUIDs found in the hardware
1019 2015-11-13 Konstantin Vlasov <kvlasov@odin.com>
1021 gfxterm: fix calculation of terminal-top and terminal-height
1022 They used screen width, not height.
1024 2015-11-12 Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1026 ofdisk: add sas disks to the device list
1028 2015-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1030 multiboot: Don't rely on particular ordering of options.
1032 multiboot_mbi: Fix handling of --quirk-bad-kludge.
1034 2015-11-12 Fu Wei <fu.wei@linaro.org>
1036 xen_boot: Remove useless file_name_index variable.
1038 Document ARM64 xen commands
1040 2015-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1042 asm-tests/i386-pc: Check that near jumps are 2 bytes.
1043 We already check that jump over 300 bytes gap is 3 bytes in code16-mode.
1044 Some clang versions generate 3-byte opcode for short jumps which makes
1045 boot.img blow over 512-byte limit. Enforce -no-integrated-as in such cases
1047 2015-11-11 Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1049 ofdisk: add a comment about vscsi method
1051 2015-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1053 fdt.mod: Move license tag to the right file.
1055 2015-11-09 Fu Wei <fu.wei@linaro.org>
1057 fdt.mod: Add missing license tag.
1059 2015-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1061 kern/elf: Ignore cast-align warnings
1063 2015-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1065 cbfs: Fix corner case and compilation with recdent gcc
1066 Accept the header to touch the jump address at 0xfffffff0.
1068 Fix compilation for 64-bit EFI with recent GCC.
1070 2015-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1072 fstester: Enforce LC_ALL=C
1074 Adapt build-system to use imported xen headers.
1076 Import xen headers directly into GRUB
1078 cbfs: Check for ptr range sanity.
1079 Triaged by Andrei and enhanced with suggestions by Aaron Durbin
1080 Also-By: Andrei Borzenkov <arvidjaar@gmail.com>
1082 Remove reliance C.UTF-8
1084 genmoddep.awk: Add a test that we have no circular dependencies
1086 Makefile.core.def: Break circular dependency on arm64.
1088 autogen: Use cp instead of ln -s.
1089 libgcrypt-grub shouldn't be modified directly anyway. With this patch
1090 tarball without contrib can be unpacked on FAT and stay usable for
1091 out-of-tree compile on full POSIX FS (compile on FAT not tested).
1093 2015-11-07 Andrei Borzenkov <arvidjaar@gmail.com>
1095 partmap_test: check that parted is available
1096 Skip test if parted is unavailable instead of returning false failure.
1098 2015-11-07 grub-devel@iam.tj <grub-devel@iam.tj>
1100 cryptodisk: teach grub_cryptodisk_insert() about partitions (bug #45889)
1101 It is not possible to configure encrypted containers on multiple partitions of
1102 the same disk; after the first one all subsequent fail with
1104 disk/cryptodisk.c:978: already mounted as crypto0
1106 Store partition offset in cryptomount descriptor to distinguish between them.
1108 2015-11-07 Andrey Borzenkov <arvidjaar@gmail.com>
1110 doc: document config_directory and config_file variables
1112 2015-11-07 Andrei Borzenkov <arvidjaar@gmail.com>
1114 unix/getroot: remove unused MAJOR definition
1115 We use major() everywhere, these definitions just add to confusion.
1117 Add comments to code for commit d313218
1119 2015-11-07 Andrei Borzenkov <arvidjaar@gmail.com>
1121 devmapper/getroot: use makedev instead of direct shift
1122 Fixes device detection with large number of devices.
1124 Reported by Tim Wallberg <twalberg@comcast.net>
1126 2015-11-06 Andrei Borzenkov <arvidjaar@gmail.com>
1128 mkimage: zero fill alignment space
1129 This did not cause real problem but is good for reproducible builds. I hit
1130 it with recent bootinfoscript that displays embedded config; I was puzzled
1131 by random garbage at the end.
1133 Prezero memory buffer used to assemble core.img. This makes individual
1134 memset redundant. Also ensure buffer is filled with zeroes in several other
1137 Also remove redundant zeroing code where we fill in the whole memory block
1140 2015-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1142 configure.ac: Explicitly add -mno-sse3 on x86.
1144 README: Remove dead link to the wiki
1146 2015-10-29 Andrei Borzenkov <arvidjaar@gmail.com>
1148 NEWS: mention powerpc64le support
1150 2015-10-29 Ignat Korchagin <ignat>
1152 tcp: Fix uninited mac address when accepting connection.
1154 2015-10-29 Fu Wei <fu.wei@linaro.org>
1156 arm64: Add support for xen boot protocol.
1158 2015-10-29 Vladimir Serbinenko <phcoder@gmail.com>
1160 arm64: Move FDT functions to separate module
1162 2015-10-27 Andrei Borzenkov <arvidjaar@gmail.com>
1164 efi: fix warnings with recent GCC
1165 ../../grub-core/term/efi/console.c:128:32: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
1166 if (key.unicode_char >= 0x20 && key.unicode_char <= 0x7f
1168 2015-10-26 Eric Snowberg <eric.snowberg@oracle.com>
1170 ofdisk: Fix devpath freeing logic.
1172 2015-10-26 Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1174 Implement cross-endian ELF load for powerpc
1176 2015-10-25 Peter Jones <pjones@redhat.com>
1178 Use EFI_SIMPLE_TEXT_INPUT_EX to support key combinations.
1180 2015-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
1182 configure: find options to force endian on MIPS
1184 2015-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
1186 configure: force o32 ABI on MIPS
1187 GRUB code expects O32 or N32. N32 is less tested than O32, so we prefer to
1188 compile with O32. Some systems (e.g. GNU Guix) default to using newer
1189 n64 or n32 ABI. Try to find suitable options to force o32.
1191 For GCC this is simply -mabi=32. While clang supports this option as well,
1192 o32 ABI is valid for MIPS target and n32/64 ABI are valid for MIPS64 target
1193 only, so use "-target mips/mipsel -mabi=32".
1195 Reported-By: Mark H Weaver <mhw@netris.org>
1196 Also-By: Mark H Weaver <mhw@netris.org>
1198 2015-10-12 Andrei Borzenkov <arvidjaar@gmail.com>
1200 net: avoid closing NULL socket in DNS lookup
1201 Refactor code so that we do not store NULL pointers in array
1202 of in-flight DNS servers.
1204 Reported-By: Josef Bacik <jbacik@fb.com>
1206 2015-10-11 Andrei Borzenkov <arvidjaar@gmail.com>
1208 install: --compress argument is not optional
1209 Fixes crash if argument is not specified. Also use `|' to separate choices
1210 in list of compression methods to align it with --core-compress.
1212 2015-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1214 mips: Make setjmp code N32-compliant.
1216 mips: Make the assembly-code N32-compatible.
1217 There are no $t4 or $t5 in N32 but there are $a4 and $a5.
1219 2015-10-10 Andrei Borzenkov <arvidjaar@gmail.com>
1221 progress: avoid NULL dereference for net files
1222 From original patch by dann frazier <dann.frazier@canonical.com>:
1224 grub_net_fs_open() saves off a copy of the file structure it gets passed and
1225 uses it to create a bufio structure. It then overwrites the passed in file
1226 structure with this new bufio structure. Since file->name doesn't get set
1227 until we return back to grub_file_open(), it means that only the bufio
1228 structure gets a valid file->name. The "real" file's name is left
1229 uninitialized. This leads to a crash when the progress module hook is called
1232 grub_net_fs_open() already saved copy of file name as ->net->name, so change
1233 progress module to use it.
1235 Also, grub_file_open may leave file->name as NULL if grub_strdup fails. Check
1238 Also-By: dann frazier <dann.frazier@canonical.com>
1240 2015-10-10 Andrei Borzenkov <arvidjaar@gmail.com>
1242 file: ignore host disk in blocklist check
1243 It cannot work anyway because host disk cannot be read. This fixes hostfs access
1244 on native Windows build where filenames start with '\' or do not have initial
1245 separator at all (d:\foo).
1247 Issue was observed when running grub-fstest on Windows. On UNIX image name is
1248 canonicalized to always start with `/' so this was not noticed.
1250 This has side effect of allowing relative path names on host, but this already
1251 was the case with `ls' command, so it just extends it to all commands.
1253 Reported-By: Arch Stack <archstacker@gmail.com>
1254 Also-By: Arch Stack <archstacker@gmail.com>
1256 2015-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1258 mips/dl: Handle addend in RELA entries.
1260 gfxmenu/model: Delete empty file.
1262 2015-10-09 Alexander Bluhm <bluhm@genua.de>
1264 ufs: Fix parameters to grub_memset.
1265 len = 0 made simply no sense. Fix parameters to be in line with read.
1267 2015-10-07 Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
1269 ofnet: Do not set SUFFIX for sun4v network devices
1270 sun4v vnet devices do not implement the support of duplex and speed
1271 instance attributes. An attempt to open such a device with
1272 the attributes will fail:
1274 ok select net:speed=auto,duplex=auto
1276 Unknown key 'duplex'
1277 Manual Configuration: Host IP, boot server and filename must be specified
1278 WARNING: /virtual-devices@100/channel-devices@200/network@0: Can't open OBP standard TFTP package
1283 Therefore, let's not set SUFFIX for such devices.
1285 2015-10-07 Eric Snowberg <eric.snowberg@oracle.com>
1287 sparc64 - use correct drive name within grub_util_sparc_setup
1288 Incorrect drive name was being passed into grub_util_sparc_setup,
1289 causing the grub-install to fail.
1291 2015-09-13 Andrei Borzenkov <arvidjaar@gmail.com>
1293 cryptodisk: strip parenthesis from backing device name
1294 Otherwise subsequent disk open fails.
1296 Reported-By: Klemens Nanni <contact@autoboot.org>
1298 2015-08-22 Felix Zielcke <fzielcke@z-51.de>
1300 disk/ldm, partmap/msdos.c: fix spelling error
1302 2015-08-13 Andrei Borzenkov <arvidjaar@gmail.com>
1304 net: do not try to load protocol module via itself
1305 Otherwise we get infinite recursion.
1309 2015-08-09 Josef Bacik <jbacik@fb.com>
1311 efinet: handle get_status() on buggy firmware properly
1312 The EFI spec indicates that get_status() should return the address of the buffer
1313 we passed into transmit to indicate the the buffer was transmitted. However we
1314 have boxes where the firmware returns some arbitrary address instead, which
1315 makes grub think that we've not sent anything. So since we have the SNP stuff
1316 opened in exclusive mode just assume any non-NULL txbuf means that our transmit
1317 occurred properly. This makes grub able to do its networking stuff properly on
1318 our broken firmware. Thanks,
1320 cc: Peter Jones <pjones@redhat.com>
1322 2015-08-09 Andrei Borzenkov <arvidjaar@gmail.com>
1324 linguas.sh: fix error when removing non-existing autogenerated files
1326 2015-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1328 ahci: Ensure that bus mastering is set.
1329 Fixes ahci_test failing on several platforms.
1331 2015-07-27 Vladimir Serbinenko <phcoder@gmail.com>
1333 archelp: Never pass NULL as mtime.
1334 Moves complexity from fs code (NULL check) to common code (passing non-NULL).
1336 HFS: Convert to fshelp.
1337 HFS doesn't handle "." and ".." properly. Convert it to fshelp to reuse the
1340 FAT: Convert to fshelp.
1341 exFAT doesn't handle "." and ".." correctly, convert it to fshelp to
1342 reuse the same logic.
1344 BFS: Convert to fshelp.
1345 BFS doesn't handle ".." correctly, so convert it to fshelp to reuse the logic.
1347 fshelp: Add handling of "." and ".." and grub_fshelp_find_file_lookup.
1348 Recent tests have discovered that many of our filesystems have flawed
1349 handling of "." and "..". Rather than attempting to fix it in filesystems
1350 themselves, make the common code fshelp aware of "." and ".." and handle
1351 them in this layer. Add grub_fshelp_find_file_lookup for easy conversion
1352 of BFS, HFS and exFAT which have the same problem and don't use fshelp.
1354 Switch procfs to use archelp.
1355 This fixes handling of "." and "..".
1357 grub-install: Use a+ in fopen rather than r+.
1358 r+ does not create a file if none exists.
1360 Add transform_data as a variant of data with substitutions.
1361 This fixrs name mismatch for grub.chrp with
1362 transform_program_name='s,grub,grub2,g'
1364 2015-07-24 Ignat Korchagin <ignat@cloudflare.com>
1366 efi: fix GetVariable return status check in 81ca24a
1367 GetVariable should return EFI_BUFFER_TOO_SMALL if given buffer of size
1368 zero; commit incorrectly checked for EFI_SUCCESS.
1370 2015-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1372 zfs_test: Skip dotdot in volume root test.
1373 Given special semantics of ZFS it's far from clear what the expected
1374 result is. Just skip it for now
1376 xfs_test: Test both crc and non-crc filesystems.
1378 xfs: Fix handling of symlink with crc-enabled filesystem.
1380 reiserfs: Fix handling of first entry in the directory.
1381 Fixes garbage being added to "." filename.
1383 2015-07-23 Ignat Korchagin <ignat@cloudflare.com>
1385 efi: fix memory leak in variable handling
1387 2015-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1389 exclude.pot: Add missing blacklisted strings.
1391 archelp: Fix handling of dot and dotdot at the end of the name.
1392 Fixes cpio_test and tar_test.
1394 arm-emu: Add __aeabi_memcpy* and __aeabi_memclr* symbols.
1395 Fixes compilation with clang.
1397 2015-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1399 fwstart: Fix loading of address of read_spd_fail.
1401 fwstart: Add missing argument to p2align.
1402 Resulting binary is unchanged as it happens we were already aligned
1405 2015-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1407 fwstart: Replace blt with bltz.
1408 blt A, $zero, B and bltz A, B are equivalent but clang recognizes only
1411 Resulting binary is unchanged.
1413 2015-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1415 Remove mips_attributes.
1416 mips_attributes was introduced to work around clang problems with
1417 -msoft-float. Those problems are now fixed and moreover .gnu_attributes
1418 itself is unportable and creates problem with clang.
1420 Revert "mips: Fix soft-float handling."
1422 This partially reverts commit 6a4ecd276ed39f66be0ad6ff0f8ff67598098605.
1424 2015-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1426 ARM: provide __aeabi_memclr* and __aeabi_memcpy* symbols
1427 Fixes compilation with recent clang.
1429 diskfilter: Make name a const char to fix compilation error.
1431 dmraid_nvidia: Set a name to usable value to avoid null dereference.
1432 Reported by: Andrei Borzenkov
1434 configure.ac: Handle powerpc64le compiler
1435 Also-by: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1437 2015-07-20 Bernhard Übelacker <bernhardu@vr-web.de>
1439 loader/linux: Make trailer initrd entry aligned again.
1440 Regression from commit:
1441 loader/linux: do not pad initrd with zeroes at the end
1442 a8c473288d3f0a5e17a903a5121dea1a695dda3b
1444 Wimboot fails since the change above because it expects the "trailer"
1445 initrd element on an aligned address.
1446 This issue shows only when newc_name is used and the last initrd
1447 entry has a not aligned size.
1449 2015-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1451 XFS: Fix wrong alignment treatment.
1453 grub_ext2_read_block: Fix return type on error.
1455 2015-07-05 Andrei Borzenkov <arvidjaar@gmail.com>
1457 use TARGET_LDFLAGS in grub_PROG_OBJCOPY_ABSOLUTE
1458 That's what Makefile will use and it is required if unusual flags
1459 must be passed to linker (e.g. to build ppc32 code on ppc64le with clang).
1461 2015-06-26 Michael Chang <mchang@suse.com>
1463 Fix missing byte order conversion in get_btrfs_fs_prefix function
1464 Since btrfs on-disk format uses little-endian, the searched item types
1465 (ROOT_REF, INODE_REF) need converting the byte order in order to
1466 function properly on big-endian systems.
1468 2015-06-26 Andrei Borzenkov <arvidjaar@gmail.com>
1470 chainloader: fix resoource leak
1471 Found by: Coverity scan.
1474 loader/bsd: fix memory leak
1475 Found by: Coverity scan.
1478 2015-06-20 Andrei Borzenkov <arvidjaar@gmail.com>
1480 loader/bsd: free memory leaks
1481 Found by: Coverity scan.
1482 CID: 96671, 96658, 96653
1484 search_wrap: fix memory leak
1485 Found by: Coverity scan.
1488 password_pbkdf2: fix memory leak
1489 Found by: Coverity scan.
1492 normal: fix memory leak
1493 Found by: Coverity scan.
1496 efi/serial: fix memory leak
1497 Found by: Coverity scan.
1500 ohci: fix memory leak
1501 Found by: Coverity scan.
1504 loader/bsd: free memory leaks
1505 Found by: Coverity scan.
1508 multiboot: fix memory leak
1509 Found by: Coverity scan.
1512 normal: fix memory leak
1513 Found by: Coverity scan.
1516 loader/bsd: fix memory leak
1517 Found by: Coverity scan.
1520 reed_solomon: fix memory leak
1521 Found by: Coverity scan.
1524 usb: fix use after free
1525 Found by: Coverity scan.
1528 xnu: fix use after free
1529 Found by: Coverity scan.
1532 disk/scsi: fix use after free
1533 Found by: Coverity scan.
1536 efi/chainloader: fix use after free
1537 Found by: Coverity scan.
1540 search: fix use after free
1541 Found by: Coverity scan.
1544 NEWS: emu libusb support removed
1546 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1548 grub-probe: fix memory leak in probe (ofpath)
1549 Found by: Coverity scan.
1552 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1554 grub-probe: restructure code to make static analysis easier
1555 Current code in probe() could not be verified to not contain memory leaks.
1556 Restructure code and ensure grub_device_close is always called at the end of
1559 Calms down Coverity scan.
1562 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1564 zfs: fix memory leak
1565 Found by: Coverity scan.
1568 xfs: silence Coverity overflow warning
1569 inode size cannot really overflow integer, but Coverity does not know it.
1573 Found by Coverity scan.
1576 unix/getroot: memory leak
1577 Found by Coverity scan.
1580 unix/relpath: memory leak
1581 Found by Coverity scan.
1584 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1586 syslinux_parse: assorted issues found by Coverity
1587 1. Remove unneeded NULL check
1590 2. Do not allocate storage for initrd, copy it directly from input
1591 buffer. Avoids memory leak in failure path.
1594 3. Unchecked error return from print()
1597 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1599 syslinux_parse: make print_escaped actually stop before `to'
1600 The only current user is mboot.c32 which unfortunately is not covered
1601 by regression tests.
1603 2015-06-18 Andrei Borzenkov <arvidjaar@gmail.com>
1605 fat: fix handling of "." and ".." directory entries
1606 Emulate dot and dotdot in root directory. For other directories do not
1607 add separator between name and extension for these two special entries.
1611 2015-06-18 Andrei Borzenkov <arvidjaar@gmail.com>
1613 tests: regression tests for "." and ".." directory entries
1615 2015-06-16 Andrei Borzenkov <arvidjaar@gmail.com>
1617 efinet: enable hardware filters when opening interface
1618 Exclusive open on SNP will close all existing protocol instances which
1619 may disable all receive filters on interface. Reinstall them after we
1620 opened protocol exclusively.
1622 Also follow UEFI specification recommendation and stop interfaces when
1625 Unexpected system errors, reboots and hangs can occur if an OS is loaded
1626 and the network devices are not Shutdown() and Stopped().
1628 Also by: Mark Salter <msalter@redhat.com>
1631 2015-06-16 Andrei Borzenkov <arvidjaar@gmail.com>
1633 NEWS: mention libgcc removal
1635 2015-06-15 Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1637 Add flag for powerpc ieee1275 to avoid unneeded optimizations
1639 2015-06-12 Mark Salter <msalter@redhat.com>
1641 Fix exit to EFI firmware
1642 The current code for EFI grub_exit() calls grub_efi_fini() before
1643 returning to firmware. In the case of ARM, this leaves a timer
1644 event running which could lead to a firmware crash. This patch
1645 changes this so that grub_machine_fini() is called with a NORETURN
1646 flag. This allows machine-specific shutdown to happen as well
1647 as the shutdown done by grub_efi_fini().
1649 2015-06-12 Paul Menzel <paulepanter@users.sourceforge.net>
1651 disk/ahci.c: Use defines `GRUB_AHCI_HBA_PORT_CMD_SPIN_UP` and `GRUB_AHCI_HBA_PORT_CMD_POWER_ON`
1652 Instead of hard coding `2` and `4` use the macros defined already at the
1653 top of the file. As a consequence, wrap the now too long line.
1655 2015-06-12 Andrei Borzenkov <arvidjaar@gmail.com>
1657 NEWS: XFS v5 support
1659 2015-06-12 Jan Kara <jack@suse.cz>
1661 xfs: V5 filesystem format support
1662 Add support for new XFS on disk format. We have to handle optional
1663 filetype fields in directory entries, additional CRC, LSN, UUID entries
1664 in some structures, etc.
1666 xfs: Add helpers for inode size
1667 Add helpers to return size of XFS inode on disk and when loaded in
1670 2015-06-04 Toomas Soome <tsoome@me.com>
1672 multiboot_header_tag_module_align fix to confirm multiboot specification
1674 2015-06-02 Leif Lindholm <leif.lindholm@linaro.org>
1676 configure.ac: clean up arm64 soft-float handling
1677 Fix compilation with gcc 5.1 (avoid internal compiler error), by
1678 replacing explicit -march +nofp+nosimd options with -mgeneral-regs-only.
1680 This also enables the removal of some further conditional build flag
1683 2015-06-01 dann frazier <dann.frazier@canonical.com>
1685 arm64/setjmp: Add missing license macro
1686 Including the setjmp module in an arm64-efi image will cause it to
1687 immediately exit with an "incompatible license" error.
1689 The source file includes a GPLv3+ boilerplate, so fix this by declaring a
1690 GPLv3+ license using the GRUB_MOD_LICENSE macro.
1692 2015-05-31 Paul Menzel <paulepanter@users.sourceforge.net>
1694 disk/ahci.c: Add port number to port debug messages
1695 Currently, some messages cannot be mapped to the port they belong to as
1696 the port number is missing from the output. So add `port: n` to the
1699 2015-05-30 Andrei Borzenkov <arvidjaar@gmail.com>
1701 Clarify use of superusers variable and menu entry access
1702 superusers controls both CLI and editing. Also explicitly mention that
1703 empty superusers disables them.
1705 "Access to menuentry" is a bit vague - change to "execute menuentry"
1706 to make it obvious, what access is granted.
1708 2015-05-30 Paul Menzel <paulepanter@users.sourceforge.net>
1710 Correct spelling of *scheduled*
1711 Run the command below
1713 $ git grep -l schedulded | xargs sed -i 's/schedulded/scheduled/g'
1715 and revert the change in `ChangeLog-2015`.
1717 Including "miscellaneous" spelling fix noted by richardvoigt@gmail.com
1719 2015-05-30 Toomas Soome <tsoome@me.com>
1721 zfs extensible_dataset and large_blocks feature support
1722 large blocks basically use extensible dataset feature, or to be exact,
1723 setting recordsize above 128k will trigger large_block feature to be
1724 enabled and storing such blocks is using feature extensible dataset. so
1725 the extensible dataset is prerequisite.
1727 Changes implement read support extensible dataset… instead of fixed DMU
1728 types they dont specify type, making it possible to use fat zap objects
1731 2015-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1733 multiboot1: never place modules in low memory.
1734 While in theory permitted by the spec, modules rarely fit in low memory
1735 anyway and not every kernel is able to handle modules in low memory anyway.
1736 At least VMWare is known not to be able to handle modules at arbitrary
1739 2015-05-24 Paul Menzel <paulepanter@users.sourceforge.net>
1741 disk/ahci: Use defines `GRUB_ATA_STATUS_BUSY` and `GRUB_ATA_STATUS_DRQ`
1742 Instead of hard coding `0x88` use the macros defined in `disk/ata.h`.
1744 2015-05-19 Paul Menzel <paulepanter@users.sourceforge.net>
1746 cb_timestamps.c: Add new time stamp descriptions
1747 Add the descriptions of the “core”, that means no vendorcode or payload,
1748 coreboot time stamps added up to coreboot commit a7d92441 (timestamps:
1749 You can never have enough of them!) [1].
1751 Running `coreboot_boottime` in the GRUB command line interface now shows
1752 descriptions for all time stamps again on the ASRock E350M1.
1754 [1] http://review.coreboot.org/9608
1756 2015-05-17 Andrei Borzenkov <arvidjaar@gmail.com>
1758 bootp: ignore gateway_ip (relay) field.
1761 The 'giaddr' field is rather poorly named. It exists to facilitate
1762 the transfer of BOOTREQUEST messages from a client, through BOOTP
1763 relay agents, to servers on different networks than the client.
1764 Similarly, it facilitates the delivery of BOOTREPLY messages from the
1765 servers, through BOOTP relay agents, back to the client. In no case
1766 does it represent a general IP router to be used by the client. A
1767 BOOTP client MUST set the 'giaddr' field to zero (0.0.0.0) in all
1768 BOOTREQUEST messages it generates.
1770 A BOOTP client MUST NOT interpret the 'giaddr' field of a BOOTREPLY
1771 message to be the IP address of an IP router. A BOOTP client SHOULD
1772 completely ignore the contents of the 'giaddr' field in BOOTREPLY
1775 Leave code ifdef'd out for the time being in case we see regression.
1777 Suggested by: Rink Springer <rink@rink.nu>
1780 2015-05-17 Andrei Borzenkov <arvidjaar@gmail.com>
1782 hostdisk: fix crash with NULL device.map
1783 grub-macbless calls grub_util_biosdisk_init with NULL device.map.
1785 2015-05-14 Andrei Borzenkov <arvidjaar@gmail.com>
1787 zfs: fix integer truncation in zap_lookup
1788 Size after shift could exceed 16 bits; use grub_unit32_t for result.
1790 Reported and tested by: Kostya Berger <bergerkos@yahoo.co.uk>
1793 2015-05-13 Andrei Borzenkov <arvidjaar@gmail.com>
1795 remove extra newlines in grub_util_* strings
1796 grub_util_{info,warn,error} already add trailing newlines, so remove
1797 them from format strings. Also trailing full stops are already added.
1799 2015-05-12 Jan Kara <jack@suse.cz>
1801 xfs: Convert inode numbers to cpu endianity immediately after reading
1802 Currently XFS driver converted inode numbers to native endianity only
1803 when using them to compute inode position. Although this works, it is
1804 somewhat confusing. So convert inode numbers when reading them from disk
1805 structures as every other field.
1807 2015-05-11 Jan Kara <jack@suse.cz>
1809 xfs: Fix termination loop for directory iteration
1810 Directory iteration used wrong position (sizeof wrong structure) for
1811 termination of iteration inside a directory block. Luckily the position
1812 ended up being wrong by just 1 byte and directory entries are larger so
1813 things worked out fine in practice. But fix the problem anyway.
1815 2015-05-08 Andrei Borzenkov <arvidjaar@gmail.com>
1817 acpi: do not skip BIOS scan if EBDA length is zero
1818 EBDA layout is not standardized so we cannot assume first two bytes
1819 are length. Neither is it required by ACPI standard. HP 8710W is known
1820 to contain zeroes here.
1824 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1826 Add asm-tests to tarball
1828 2015-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1830 util/grub-mkrescue: Fix compilation
1832 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1834 efinet: open Simple Network Protocol exclusively
1835 EDK2 network stack is based on Managed Network Protocol which is layered
1836 on top of Simple Management Protocol and does background polling. This
1837 polling races with grub for received (and probably trasmitted) packets
1838 which causes either serious slowdown or complete failure to load files.
1840 Open SNP device exclusively. This destroys all child MNP instances and
1841 stops background polling.
1843 Exclusive open cannot be done when enumerating cards, as it would destroy
1844 PXE information we need to autoconfigure interface; and it cannot be done
1845 during autoconfiguration as we need to do it for non-PXE boot as well. So
1846 move SNP open to card ->open method and add matching ->close to clean up.
1848 Based on patch from Mark Salter <msalter@redhat.com>
1850 Also-By: Mark Salter <msalter@redhat.com>
1853 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1855 efinet: skip virtual IPv4 and IPv6 devices when enumerating cards
1856 EDK2 PXE driver creates two child devices - IPv4 and IPv6 - with
1857 bound SNP instance. This means we get three cards for every physical
1858 adapter when enumerating. Not only is this confusing, this may result
1859 in grub ignoring packets that come in via the "wrong" card.
1861 Example of device hierarchy is
1863 Ctrl[91] PciRoot(0x0)/Pci(0x3,0x0)
1864 Ctrl[95] PciRoot(0x0)/Pci(0x3,0x0)/MAC(525400123456,0x1)
1865 Ctrl[B4] PciRoot(0x0)/Pci(0x3,0x0)/MAC(525400123456,0x1)/IPv4(0.0.0.0)
1866 Ctrl[BC] PciRoot(0x0)/Pci(0x3,0x0)/MAC(525400123456,0x1)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000)
1868 Skip PXE created virtual devices when enumerating cards. Make sure to
1869 find real card when applying initial autoconfiguration during PXE boot,
1870 this information is associated with one of child devices.
1872 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1874 efidisk: move device path helpers in core for efinet
1876 convert to, not from, CPU byte order in DNS receive function
1878 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1880 loader/linux: do not pad initrd with zeroes at the end
1881 Syslinux memdisk is using initrd image and needs to know uncompressed
1882 size in advance. For gzip uncompressed size is at the end of compressed
1883 stream. Grub padded each input file to 4 bytes at the end, which means
1884 syslinux got wrong size.
1886 Linux initramfs loader apparently does not care about trailing alignment.
1887 So change code to align beginning of each file instead which atomatically
1888 gives us the correct size for single file.
1890 Reported-By: David Shaw <dshaw@jabberwocky.com>
1892 2015-05-07 Daniel Kiper <daniel.kiper@oracle.com>
1894 i386/relocator: Remove unused extern grub_relocator64_rip_addr
1896 2015-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1898 grub-install-common: Increase buf size to 8192 as modinfo.sh is bigger.
1900 2015-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1902 grub-mkrescue: Recognize -output as an alias of --output.
1903 This helps us to be in line with xorriso -as mkisofs.
1905 Suggested by: Thomas Schmitt
1907 2015-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1909 linux.c: Ensure that initrd is page-aligned.
1911 Revert parts accidentally committed 2 commits ago.
1913 2015-05-07 Fu Wei <fu.wei@linaro.org>
1915 fdt.h: Add grub_fdt_set_reg64 macro
1917 arm64: Export useful functions from linux.c
1919 2015-05-04 Andrei Borzenkov <arvidjaar@gmail.com>
1921 Revert "efinet: memory leak on module removal"
1922 This reverts commits 47b2bee3ef0ea60fc3f5bfc37f3784e559385297
1923 and 8d3c4544ffdd0289a4b0bdeb0cdc6355f801a4b3. It is not safe
1924 to free allocated cards, dangling pointers main remain. Such
1925 cleanup requires more changes in net core.
1927 efinet: cannot free const char * pointer
1929 efinet: memory leak on module removal
1931 2015-05-03 Andrei Borzenkov <arvidjaar@gmail.com>
1933 zfs: add missing NULL check and fix incorrect buffer overwrite
1934 grub_memset should zero out padding after data end. It is not clear
1935 why it is needed at all - ZFS block is at least 512 bytes and power
1936 of two, so it is always multiple of 16 bytes. This grub_memset
1937 apparently never did anything.
1939 2015-05-03 Toomas Soome <tsoome@me.com>
1941 zfs: com.delphix:embedded_data feature support
1943 zfs: com.delphix:hole_birth feature support
1944 In the past birth was always zero for holes. This feature started
1945 to make use of birth for holes as well, so change code to test for
1946 valid DVA address instead.
1948 2015-04-29 Andrei Borzenkov <arvidjaar@gmail.com>
1950 grub-mkconfig: use $pkgdatadir in scripts
1951 Otherwise scripts will source wrong grub-mkconfig_lib.
1953 2015-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1955 Remove -V in grub-mkrescue.c
1956 It clashhes with -V which is alias to -volid.
1958 2015-04-13 Toomas Soome <tsoome@me.com>
1960 getroot: include sys/mkdev.h for makedev
1961 Solaris (like) systems need to include sys/mkdev.h for makedev() function.
1963 2015-04-13 Toomas Soome <tsoome@me.com>
1965 core/partmap: rename 'sun' to avoid clash with predefined symbol
1966 the symbol “sun” is defined macro in solaris derived systems, from
1969 and therefore can not be used as name.
1971 2015-04-12 Paul Menzel <paulepanter@users.sourceforge.net>
1973 docs/grub.texi: Fix spelling of cbfstool
1975 2015-04-06 Andrei Borzenkov <arvidjaar@gmail.com>
1977 core: avoid NULL derefrence in grub_divmod64s
1978 It can be called with NULL for third argument. grub_divmod32* for
1979 now are called only from within wrappers, so skip check.
1981 Reported-By: Michael Zimmermann <sigmaepsilon92@gmail.com>
1983 2015-03-28 Andrei Borzenkov <arvidjaar@gmail.com>
1985 do not emit cryptomount without crypto UUID
1987 2015-03-28 Sarah Newman <srn@prgmr.com>
1989 grub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer from the stack.
1991 2015-03-27 Andrei Borzenkov <arvidjaar@gmail.com>
1993 net: trivial grub_cpu_to_XX_compile_time cleanup
1995 2015-03-27 Lunar <lunar@torproject.org>
1997 syslinux: Support {vesa,}menu.c32.
1999 2015-03-27 Steve McIntyre <steve@einval.com>
2001 Recognize EFI platform even in case of mismatch between Linux and EFI.
2002 Some x86 systems might be capable of running a 64-bit Linux kernel but
2003 only use a 32-bit EFI (e.g. Intel Bay Trail systems). It's useful for
2004 grub-install to be able to recognise such systems, to set the default
2005 x86 platform correctly.
2007 To allow grub-install to know the size of the firmware rather than
2008 just the size of the kernel, there is now an extra EFI sysfs file to
2009 describe the underlying firmware. Read that if possible, otherwise
2010 fall back to the kernel type as before.
2012 2015-03-27 Michael Zimmermann <sigmaepsilon92@gmail.com>
2014 Add missing initializers to silence suprious warnings.
2016 2015-03-27 Leif Lindholm <leif.lindholm@linaro.org>
2019 Use the new thumb_get_instruction_word/thumb_set_instruction_word
2022 Style cleanup (missing spaces).
2024 Move Thumb MOVW/MOVT handlers into Thumb relocation section of file.
2026 2015-03-27 Martin Wilck <martin.wilck@ts.fujitsu.com>
2028 efinet: Check for immediate completition.
2029 This both speeds GRUB up and workarounds unexpected EFI behaviour.
2031 2015-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2033 Make Makefile.util.def independent of platform.
2035 2015-03-27 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2037 util/mkimage: Use stable timestamp when generating binaries.
2039 2015-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2041 modinfo.sh.in: Add missing config variables.
2043 Makefile.core.def: Remove obsolete LDADD_KERNEL
2045 arp, icmp: Fix handling in case of oversized or invalid packets.
2046 This restrict ARP handling to MAC and IP addresses but in practice we need
2047 only this case anyway and other cases are very rar if exist at all. It makes
2048 code much simpler and less error-prone.
2050 2015-03-23 Colin Watson <cjwatson@ubuntu.com>
2052 hostfs: Drop unnecessary feature test macros
2053 _BSD_SOURCE was added to allow the use of DT_DIR, but that was removed
2054 in e768b77068a0b030a07576852bd0f121c9a077eb. While adding
2055 _DEFAULT_SOURCE as well works around problems with current glibc,
2056 neither is in fact needed nowadays.
2058 2015-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2060 compiler-rt-emu: Add missing file.
2062 emunet: Fix init error checking.
2063 Otherwise emunet doesn't expose any cards.
2065 fddboot_test: Add -no-pad to xorriso.
2067 grub-mkrescue: pass all unrecognized options unchanged to xorriso.
2069 cacheinfo: Add missing license information.
2071 2015-03-19 Andrei Borzenkov <arvidjaar@gmail.com>
2073 grub-fs-tester: add LVM RAID1 support
2074 LVM miscalculates bitmap size with small extent, so start with 16K as
2075 for other RAID types.
2077 Until version 2.02.103 LVM counts metadata segments twice when checking
2078 available space, reduce segment count by one to account for this bug.
2080 2015-03-19 Andrei Borzenkov <arvidjaar@gmail.com>
2082 core: add LVM RAID1 support
2085 2015-03-16 Andrei Borzenkov <arvidjaar@gmail.com>
2087 grub-fs-tester: explicitly set segment type for LVM mirror
2088 LVM mirror defaults to RAID1 today and can be different on different
2089 systems as set in lvm.conf.
2091 2015-03-15 Andrei Borzenkov <arvidjaar@gmail.com>
2093 grub-fs-tester: better estimation of filesystem time for LVM/RAID
2094 Write activity with LVM/RAID can happen after filesystem is unmounted.
2095 In my testing modification time of loop files was 15 - 20 seconds
2096 after unmount. So use time as close to unmount as possible as
2099 2015-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2101 hfsplus: Fix potential access to uninited memory on invalid FS
2103 2015-03-06 Jon McCune <jonmccune@google.com>
2105 autogen.sh: Allow overriding the python to be used by setting $PYTHON.
2106 Some installations have several python versions installed. Allow user
2107 to choose which one to use by setting $PYTHON.
2109 2015-03-05 Andrei Borzenkov <arvidjaar@gmail.com>
2111 update gnulib/argp-help.c to fix garbage in grub-mknetdir --help output
2112 argp_help attempts to translate empty string, which results in printing
2113 meta information about translation, like in
2115 bor@opensuse:~/build/grub> grub2-mknetdir --help
2116 Использование: grub2-mknetdir [ПАРАМЕТР…]
2117 Project-Id-Version: grub 2.02-pre2
2118 Report-Msgid-Bugs-To: bug-grub@gnu.org
2121 Update gnulib/argp-help.c to the current version which fixes this
2122 (commit b9bfe78424b871f5b92e5ee9e7d21ef951a6801d).
2124 2015-03-05 Andrey Borzenkov <arvidjaar@gmail.com>
2126 update m4/extern-inline.m4 to upstream version to fix compilation on FreeBSD
2127 In file included from util/grub-mkimage.c:54:0:
2128 ./grub-core/gnulib/argp.h:627:49: error: '__sbistype' is static but
2129 used in inline function '_option_is_short' which is not static
2130 [-Werror] cc1: all warnings being treated as errors gmake[2]: ***
2131 [util/grub_mkimage-grub-mkimage.o] Error 1
2133 Update m4/extern-inline.m4 to current upstream gnulib version that
2134 contains fix for this (commit b9bfe78424b871f5b92e5ee9e7d21ef951a6801d).
2136 Reported-By: Beeblebrox <zaphod@berentweb.com>
2138 2015-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2140 syslinux_parse: Fix the case of unknown localboot.
2141 Reported by: Jordan Uggla
2143 configure.ac: Fix the name of pciaccess header.
2145 Fix canonicalize_file_name clash.
2146 canonicalize_file_name clashed with gnulib function. Additionally
2147 it was declared in 2 places: emu/misc.h and util/misc.h. Added
2148 grub_ prefix and removed second declaration.
2150 2015-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2152 Remove emu libusb support.
2153 It's disabled by default and has been broken for a long time.
2154 As nobody is interested in fixing and maintaining it, remove it.
2156 configure.ac: Remove unused COND_clang
2158 Remove libgcc dependency.
2159 libgcc for boot environment isn't always present and compatible.
2160 libgcc is often absent if endianness or bit-size at boot is different
2162 libgcc may use optimised opcodes that aren't available on boot time.
2163 So instead of relying on libgcc shipped with the compiler, supply
2164 the functions in GRUB directly.
2165 Tests are present to ensure that those replacement functions behave the
2166 way compiler expects them to.
2168 types.h: Use __builtin_bswap* with clang.
2169 clang pretends to be GCC 4.2 but we use __builtin_bswap* only with GCC 4.3+.
2170 clang support __builtin_bswap*, so use it.
2172 configure.ac: Set $CPPFLAGS when checking for no_app_regs.
2173 Fixes compilation for sparc64 with clang.
2175 Don't continue to query block-size if disk doesn't have it.
2176 Stops poluting screen with a lot of "block-size: exception -21".
2178 2015-02-28 Andrei Borzenkov <arvidjaar@gmail.com>
2180 grub-probe: free temporary variable
2182 2015-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2184 exclude.pot: Add new technical strings
2186 grub-probe: Mark a "[default=]" for translation.
2188 grub-shell: Add missing --locale-directory.
2189 Fixes the language tests is no make install was done.
2191 ntfs_test: Skip is setfattr is unavailable.
2193 2015-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2195 emu/cache: Change declaration of __clear_cache to match builtin declaration.
2196 Fixes compile of arm64-emu.
2198 arm/dl: Fix handling of nonstandard relocation sizes
2200 gzio: Optimize by removing division.
2202 raid6: Optimize by removing division.
2204 dmraid_nvidia: Fix division by 0 and missing byte-swap.
2206 crypto: restrict cipher block size to power of 2.
2207 All current ciphers have blocks which are power of 2 and it's
2208 unlikely to change. Other block length would be tricky to handle anyway.
2209 This restriction allows avoiding extra divisions.
2211 jpeg: Optimise by replacing division with shifts.
2213 png: Optimize by avoiding divisions.
2215 Add missing lib/division.c
2217 fbblit: Optimize by replacing division with additions and shifts.
2219 bitmap_scale: Optimize by moving division out of the loop.
2221 minilzo: Skip parts tha we don't need.
2223 2015-02-23 Vladimir Serbinenko <phcoder@gmail.com>
2225 mips: Fix soft-float handling.
2226 Add -msoft-float alongside clang arguments to specify ABI.
2227 Specify ABI in asm files explicitly.
2228 This trigers asm warning due to gcc failing to propagate -msoft-float
2231 Add missing grub_ prefix in memcpy invocation
2233 Allow clang compilation for thumb with -mthumb-interwork.
2234 clang already uses -mthumb-interwork behaviour even thout it doesn't
2237 arm64: Fix compilation failure.
2238 Don't supply +nosimd to asm files.
2239 Otherwise +nosimd coming from flags forbids some of instructions
2240 used in cache_flush.
2242 Supply signed division to fix ARM compilation.
2243 Previously we supplied only unsigned divisions on platforms that need software
2245 Yet compiler may itself use a signed division. A typical example would be a
2246 difference between 2 pointers which involves division by object size.
2248 2015-02-22 Vladimir Serbinenko <phcoder@gmail.com>
2250 acpi: Fix unused function warning.
2252 configure.ac: Add ia64-specific way to disable floats.
2254 i386/tsc: Fix unused function warning on xen.
2256 2015-02-22 Vladimir Serbinenko <phcoder@gmail.com>
2258 Experimental support for clang for sparc64.
2259 Automatically discover command line options to make clang and
2260 gcc behave in same way.
2264 2015-02-22 Vladimir Serbinenko <phcoder@gmail.com>
2266 Discover which option provides soft-float on configure stage.
2267 Deals with clang needing other arguments to stop issuing floating
2268 instructions than gcc.
2270 2015-02-21 Vladimir Serbinenko <phcoder@gmail.com>
2272 mips: Switch to more portable .org
2273 Binary is unchanged.
2275 sparc64: Switch to more portable .org.
2276 Binaries are unchanged.
2278 kernel-8086: Switch to more portable .org.
2280 Relax requirements on asm for non-BIOS i386 platforms.
2281 These platforms don't have a hard limit on size of resulting code16
2282 code, so we don't care if assembly is bigger than necessarry.
2284 qemu: Switch to more portable .org
2285 Binary is checked identical.
2287 qemu: Fix GateA20 enabling.
2288 GateA20 code was inactive due to address error.
2290 qemu: Fix compilation
2292 Remove realmode.S from coreboot and qemu.
2293 It's not used there.
2295 Remove obsolete ADDR32 and DATA32 checks.
2297 i386: Remove needless ADDR32 prefixes when address is known and fixed.
2298 Shaves off 6 bytes in lzma_decompress.img.
2300 i386-pc/boot: Explicitly mark kernel_address[_high] as local.
2301 Otherwise apple asm might try to make accesses relocatable.
2303 Change dot assignmnet to more portable .org.
2304 Binary is unchanged (verified)
2306 i386: Move from explicit ADDR32/DATA32 prefixes to instruction suffixes.
2308 Binary is unchanged (verified).
2310 Test which flags make our asm compile.
2311 Previously we relied on assumption that clang always needs -no-integrated-as
2312 but it's not always true.
2314 INSTALL: clarify that clang support is experimental
2316 zfs/mzap_lookup: Fix argument types
2318 wildcard: Mark unused argument as such.
2320 ofdisk: Exclude floppies from scanning.
2321 It causes similar hang as CD on at least the qemu.
2323 configure: Add -msoft-float to CCASFLAGS
2324 Otherwise mismatch between API flags triggers linker failure
2326 mips/startup_raw: Use more portable .asciz
2328 Provide __aeabi_mem{cpy,set}
2329 Fixes ARM compilation
2331 div_test: Don't try to divide by zero
2333 INSTALL: Fix names of host flags to match actual behaviour
2335 Strip .MIPS.abiflags which causes compile failure
2337 2015-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2339 configure: Move adding of include options to the very end to avoid subshell.
2341 configure: Add missing comma.
2343 2015-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2345 ext2: Ignore INCOMPAT_MMP.
2346 It's not really incompatible as long as driver never writes to FS.
2348 ext2: Support META_BG.
2349 This fixes bug that system would become unbootable after ext*
2350 online resize if no resize_inode was created at ext* format time.
2352 2015-02-16 Andrei Borzenkov <arvidjaar@gmail.com>
2354 tests: remove hardcoded paths from syslinux_test
2355 abs_top_srcdir appeared in Autoconf 2.52f. Minimal grub requirement
2356 is 2.60 so we should be good here.
2358 build-sys: add syslinux test files to tarball
2360 2015-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2362 Add test for syslinux converter
2364 2015-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2366 Don't remove initrd= parameter.
2367 Based on simplified patch by Lunar.
2371 2015-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2373 syslinux_parse: Always output comments even if no entries are found.
2375 2015-02-15 Andrei Borzenkov <arvidjaar@gmail.com>
2377 diskfilter_make_raid: more memory leaks in failure path
2379 2015-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2381 disk/lvm: Use zalloc to ensure that segments are initialised to sane value.
2382 Reported by: EmanueL Czirai.
2384 2015-02-14 Daniel Kiper <daniel.kiper@oracle.com>
2386 multiboot2: Fix information request tag size calculation
2388 2015-02-14 Andrei Borzenkov <arvidjaar@gmail.com>
2390 diskfilter: fix double free of lv names for mdraid
2391 Avoid micro-optimization in grub_diskfilter_make_raid and make sure
2392 name and fullname are independent strings. This avoids need to special
2393 case it everywhere else.
2395 Also fix memory leak in failure case in grub_diskfilter_make_raid.
2399 2015-02-14 Andrei Borzenkov <arvidjaar@gmail.com>
2401 diskfilter: fix crash in validate_lv for mdraid arrays
2402 Commit 750f4bacd3262376ced3f837d8dc78f834ca233a put LV validation before
2403 actual vg assignment. Make grub_diskfilter_make_raid to assign ->vg as
2404 happens in other cases for consistency. Also clean up redundant code and add
2405 explicit NULL lv->vg check in validate_lv.
2407 Also fix segment validation in validate_lv; it became obvious when crash
2412 2015-02-12 Jiri Slaby <jslaby@suse.cz>
2414 util: mkimage, fix gcc5 build failure
2416 ../util/mkimage.c: In function 'grub_install_get_image_target':
2417 ../util/mkimage.c:954:5: error: loop exit may only be reached after undefined behavior [-Werror=aggressive-loop-optimizations]
2418 && j < ARRAY_SIZE (image_targets[i].names); j++)
2420 ../util/mkimage.c:953:39: note: possible undefined statement is here
2421 for (j = 0; image_targets[i].names[j]
2424 Well, let's move the index 'j' test before accesing the array to:
2425 1) make the loop obvious
2428 2015-02-03 Leif Lindholm <leif.lindholm@linaro.org>
2430 arm: implement additional relocations generated by gcc 4.9 at -O3
2431 GCC 4.9 also generates R_ARM_THM_MOVW_ABS_NC and R_ARM_THM_MOVT_ABS,
2432 as an alternative to ABS32.
2434 2015-01-30 Andrei Borzenkov <arvidjaar@gmail.com>
2436 setup: fix blocklist size calculation
2437 Found by: Coverity scan.
2439 grub-fstest: fix descriptor leak
2440 Found by: Coverity scan.
2442 2015-01-30 Andrei Borzenkov <arvidjaar@gmail.com>
2444 net/pxe: fix error condition
2445 Test return value of grub_netbuff_reserve(), buf itself cannot be
2448 Found by: Coverity scan.
2450 2015-01-30 Andrei Borzenkov <arvidjaar@gmail.com>
2452 grub-mkimage: fix potential NULL pointer dereference
2453 Move fatal check whether symtab_section is NULL before first reference.
2455 Found by: Coverity scan.
2457 2015-01-30 Andrei Borzenkov <arvidjaar@gmail.com>
2459 net/ip: check result of grub_netbuff_push
2460 Found by: Coverity scan.
2462 tests: add test command file tests
2463 This requires access to files in both host and grub image, so
2464 implementing as separate test unit instead of script test was
2467 test: consistently use TMPDIR and same name pattern for temp files
2469 test: fix previous commit - we need to return from subexpression
2470 ( ... ) was processed recursively, we need to return from it. Revert
2473 test: do not stop after first file test or closing bracket
2476 2015-01-28 Leif Lindholm <leif.lindholm@linaro.org>
2478 configure.ac: don't use -msoft-float for arm64
2479 aarch64 toolchains do not support the -msoft-float option added by
2480 commit 3661261f. Insted, for arm64 use -march=armv8-a+nofp+nosimd.
2482 Reported-by: Ryan Harkin <ryan.harkin@linaro.org>
2484 2015-01-28 Andrei Borzenkov <arvidjaar@gmail.com>
2486 script/execute.c: fix memory leak.
2487 Make sure to continue loop over array after failure to free
2490 Found by: Coverity scan.
2492 2015-01-28 Andrei Borzenkov <arvidjaar@gmail.com>
2494 syslinux_parse: fix memory leak.
2495 Found by: Coverity scan.
2497 2015-01-27 Andrei Borzenkov <arvidjaar@gmail.com>
2499 Change quotes to match overall style in NEWS
2501 loader/xnu: fix memory leak.
2502 Foound by: Coverity scan.
2504 util/grub-probe: fix memory leaks.
2505 Found by: Coverity scan.
2507 fs/hfsplus: fix memory leak.
2508 Found by: Coverity scan.
2510 fs/zfs/zfscrypt.c: fix indentation.
2512 fs/zfs/zfscrypt.c: fix memory leaks.
2513 Found by: Coverity scan.
2515 commands/parttool: fix memory leak.
2516 Found by: Coverity scan.
2518 fs/zfs/zfs.c: fix memory leak.
2519 Found by: Coverity scan.
2521 linux/ofpath: fix descriptor leak
2522 Found by: Coverity scan
2524 linux/hostdisk: use strncpy instead of strlcpy
2525 strlcpy is not available on Linux as part of standard libraries.
2526 It probably is not worth extra configure checks espicially as we
2527 need to handle missing function anyway.
2529 2015-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2531 Document intentional fallthroughs.
2532 Found by: Coverity scan.
2534 linux/ofpath: Fix error handling.
2535 Found by: Coverity Scan.
2537 linux/hostdisk: Limit strcpy size to buffer size.
2538 Found by: Coverity scan.
2540 fs/zfscrypt: Add missing explicit cast.
2541 Found by: Coverity scan.
2543 fs/zfs: Fix error handling.
2544 Found by: Coverity Scan.
2546 2015-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2548 fs/{cbfs,cpio}: Remove useless check if mode is NULL.
2549 Callers already ensure that it's not null.
2551 Found by: Coverity Scan.
2553 2015-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2555 commands/acpi: Use ALIGN_UP rather than manual expression.
2556 Improves readability and hopefully automatic scanning.
2558 Found by: Coverity Scan.
2560 2015-01-26 Andrei Borzenkov <arvidjaar@gmail.com>
2562 util/setup: fix memory leak.
2563 Found by: Coverity scan.
2565 util/mkimage: fix memory leaks.
2566 Found by: Coverity scan.
2568 util/grub-mount: fix descriptor leak.
2569 Found by: Coverity scan.
2571 util/grub-mkstandalone: fix memory leak.
2572 Found by: Coverity scan.
2574 util/grub-install: rearrange code to avoid memory leak.
2575 Found by: Coverity scan.
2577 linux/getroot: fix memory leak.
2578 Found by: Coverity scan.
2580 util/install: fix memory leak.
2581 Found by: Coverity scan.
2583 util/setup: fix memory leak.
2584 Found by: Coverity scan.
2586 linux/ofpath: fix various memory leaks.
2587 Found by: Coverity scan.
2589 linux/getroot: fix descriptor leak.
2590 Found by: Coverity scan.
2592 2015-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2594 util/misc.c: Check ftello return value.
2595 Found by: Coverity scan.
2597 grub-macbless: Fix resource leak.
2598 Found by: Coverity scan.
2600 grub-install: Fix memory leak.
2601 Found by: Coverity scan.
2603 grub-install-common: Fix sizeof usage.
2604 Found by: Coverity scan.
2606 util/getroot: Add missing grub_disk_close.
2607 Found by: Coverity scan.
2609 vbe: Fix incorrect register usage.
2610 Found by: Coverity scan.
2612 unix/password: Fix file descriptor leak.
2613 Found by: Coverity scan.
2615 linux/getroot: Fix error handling.
2616 Found by: Coverity scan.
2618 linux/blocklist: Fix memory leak.
2619 Found by: Coverity scan.
2621 devmapper/getroot: Fix memory leak.
2622 Found by: Coverity scan.
2624 normal/misc: Close device on all pathes.
2625 Found by: Coverity scan.
2627 normal/main: Fix error handling.
2628 Found by: Coverity scan.
2630 xnu: Add missing error check.
2631 Found by: Coveriy scan.
2633 plan9: Add missing grub_device_close.
2634 Found by: Coverity scan.
2636 multiboot: Simplify to avoid confusing assignment.
2637 Found by: Coverity scan.
2639 bsd: Add missing null-pointer check.
2640 Found by: Coverity scan.
2642 lib/syslinux_parse: Add missing error check.
2643 Found by: Coverity scan.
2645 lib/syslinux_parse: Fix memory leak.
2646 Found by: Coveriy scan.
2648 lib/syslinux_parse: Add missing alloc check.
2649 Found by: Coverity scan.
2651 i386/pc/mmap: Fix memset size.
2652 Found by: Coverity scan.
2654 gfxmenu/theme_loader: Add missing allos error check.
2655 Found by: Coverity scan.
2657 gfxmenu/icon_manager: Fix null pointer dereference.
2658 Found by: Coverity scan.
2660 fs/ufs: Add missing error check.
2661 Found by: Coverity scan.
2663 configure.ac: Always add -D_FILE_OFFSET_BITS=64.
2665 2015-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2667 fs/sfs: Fix error check and add sanity check.
2668 Found by: Coverity scan.
2670 fs/reiserfs: Fix sector count overflow.
2671 Found by: Coverity scan.
2673 fs/ntfs: Add sizes sanity checks.
2674 Found by: Coverity scan.
2676 fs/ntfs: Add missing free.
2677 Found by: Coverity scan.
2679 2015-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2681 fs/minix: Fix sector promotion to 64-bit.
2682 While on it make GRUB_MINIX_ZONE2SECT into function.
2684 Found by: Coverity scan
2686 2015-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2688 grub_iso9660_read: Explicitly check read_node return value.
2689 Not really needed as grub_errno is already checked but is nicer.
2691 Found by: Coverity scan.
2693 2015-01-25 Andrei Borzenkov <arvidjaar@gmail.com>
2695 commands/fileXX: Fix remaining memory leak.
2696 Found by: Coverity Scan.
2698 2015-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2700 fs/hfs: Add pointer sanity checks.
2701 Found by: Coverity scan.
2703 fs/hfs/hfs_open: Check that mount succeeded.
2704 Found by: Coverity scan.
2706 fs/fat: Fix codepath to properly free on error.
2707 Found by: Coverity scan.
2709 fs/cpio_common: Add a sanity check on namesize.
2710 Found by: Coverity scan.
2712 fs/cbfs: Add missing free.
2713 Found by: Coverity scan.
2715 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2717 font: Add missing free.
2718 Found by: Coverity Scan.
2720 biosdisk: Add missing cast.
2721 Found by: Coverity scan.
2723 disk/geli: Add missing free.
2724 Found by: Coverity scan.
2726 disk/geli: Add missing seek success check.
2727 Found by: Coverity scan.
2729 disk/diskfilter: Add missing lv presence check.
2730 Found by: Coverity scan.
2732 disk/cryptodisk: Add missing error check.
2733 Found by: Coverity scan.
2735 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2737 disk/ahci: Fix device_map_range argument.
2738 Argument is not used on x86, hence it's gone unnoticed.
2740 Found by: Coverity scan.
2742 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2744 disk/AFsplitter: check argument validity before doing any allocs.
2745 This avoids possible memory leaks.
2747 Found by: Coverity scan.
2749 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2751 commands/wildcard: Add missing free.
2752 Found by: Coverity scan.
2754 commands/verify: Fix sha1 context zeroing-out.
2755 Current code doesn't zero-out context completely. It's a minor issue
2756 really as sha1 init already takes care of initing the context.
2758 commands/tr: Simplify and fix missing parameter test.
2759 Found by: Coverity scan
2761 commands/syslinux: Add missing free.
2762 Found by: Coverity scan.
2764 commands/parttool: Add missing device close.
2765 Found by: Coverity scan.
2767 commands/nativedisk: Add missing device_close.
2768 Found by: Coverity scan.
2770 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2772 commands/macbless: Handle device opening errors correctly.
2773 Wrong variable was checked for errors.
2775 Found by: Coverity scan.
2777 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2779 commands/macbless: Fix potential overflow.
2780 Is a minor concern as no such FS would be created under normal circumstances
2781 and failure was benign.
2783 Found by: Coverity scan.
2785 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2787 commands/macbless: Remove incorrect grub_free.
2788 Found by: Coverity Scan
2790 commands/legacycfg: Fix resource leaks.
2792 zfs: Fix disk-matching logic.
2793 Reported by: Tim Chase <dweeezil>
2795 commands/hdparm: Add missing grub_disk_close.
2796 Found by: Coverity scan.
2798 gptsync: Add missing device_close.
2799 Found by: Coverity scan
2801 commands/fileXX: Fix memory leak.
2802 Found by: Coverity Scan.
2804 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2806 commands/file: Change the confusing loop stop condition.
2807 Old condition was used to zero-out header variable on exit of the loop.
2808 This is correct but confusing. Replace with in-loop logic.
2810 Found by: Coverity Scan.
2812 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2814 commands/acpi: Use ALIGN_UP rather than manual expression.
2815 Improves readability and hopefully automatic scanning.
2817 Found by: Coverity Scan.
2819 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2821 uhci: Fix null pointer dereference.
2822 Found by: Coverity scan.
2824 Always add -msoft-float to avoid compiler generating float arithmetics.
2826 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2828 Generate empty ChangeLog if no .git is available.
2829 When making dist from a git snapshot without repo available make dist would
2830 fail to find ChangeLog. Generate empty ChangeLog if no ChangeLog is already
2831 present and repo is not available.
2833 Reported by: Andrei Borzenkov <arvidjaar@gmail.com>
2835 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2837 Makefile.am: Fix Changelog cutoff address.
2838 gitlog-to-changelog Doesn't generate entries for cutoff day, only
2839 for days after the cutoff date, adjust by one to compensate.
2841 efidisk: Return the determined root disk even if partition is unknown.
2843 util/grub-mkrescue.c: Always include part_msdos and part_gpt on EFI.
2844 When booted from stick, EFI would use GPT partition and our root
2845 device detection algortihm depends on GRUB's ability to see the same
2846 partitions. Hence include msdos and gpt partmap modules on EFI even when
2847 they're not needed to access root filesystem.
2849 conf/Makefile.common: Remove unused {LD,C}FLAGS_CPU.
2851 Autogenerate ChangeLog from git changelog.
2852 Old ChangeLog is moved to ChangeLog-2015. For all changes starting from
2853 this one ChangeLog will be generated from gitlog only on explicit make
2854 invocation and make dist.
2856 2015-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2858 * tests/file_filter/file: Really add missing file.
2860 2015-01-23 Andrei Borzenkov <arvidjaar@gmail.com>
2862 Mention platform "none" in NEWS
2864 2015-01-23 Andrey Borzenkov <arvidjaar@gmail.com>
2866 accept also hdX as alias to native Xen disk name
2867 To be compatible with legacy pv-grub, sort disks by increasing order of handle
2868 value. This allows reusing legacy pv-grub menu.lst which is using hdX names.
2870 Suggested-By: Michael Chang <mchang@suse.com>