]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Import grub2_2.02~beta3.orig.tar.xz
[grub2.git] / ChangeLog
1 2016-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Release 2.02~beta3
4
5 grub_arch_sync_dma_caches: Accept volatile address
6
7 2016-02-27 Leif Lindholm <leif.lindholm@linaro.org>
8
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.
13
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
16 requirements.
17
18 Also sanity check the io_align field in grub_efidisk_open() for
19 power-of-two-ness and bail if invalid.
20
21 2016-02-27 Vladimir Serbinenko <phcoder@gmail.com>
22
23 usbtrans: Fix memory coherence and use-after-free.
24
25 ehci: Fix memory coherence
26 This is a no-op on x86 but necessarry on ARM and may be necessarry on MIPS.
27
28 arm-uboot: Make self-relocatable to allow loading at any address
29
30 Allow _start == 0 with relocatable images
31
32 2016-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33
34 Provide __bss_start and _end symbols in grub-mkimage.
35 For this ensure that all bss sections are merged.
36
37 We need this to correctly prelink non-PE relocatable images.
38
39 2016-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40
41 Encapsulate image layout into a separate structure.
42 Currently we pass around a lot of pointer. Instead put all relevant data
43 into one structure.
44
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.
48
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
53 from mkimage.c
54
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.
58
59 cat: Don't switch terminal mode when there is nothing to highlight.
60 This just pollutes serial console.
61
62 Use console rather than serial_efi0 on arm64-efi in tests
63
64 2016-02-27 Andrei Borzenkov <arvidjaar@gmail.com>
65
66 efidisk: fix misplaced parenthesis in b00e4c2
67
68 2016-02-26 Andrei Borzenkov <arvidjaar@gmail.com>
69
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.
74
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.
78
79 Reported and tested by Andreas Loew <Andreas.Loew@gmx.net>
80
81 2016-02-26 Vladimir Serbinenko <phcoder@gmail.com>
82
83 Regenerate checksums
84
85 Makefile: Don't delete default_payload.elf if it doesn't exist.
86
87 2016-02-25 Josef Bacik <jbacik@fb.com>
88
89 net: fix ipv6 routing
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
93
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.
96
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.
107
108 With this patch I can now talk to ipv6 addresses outside of my local network.
109 Thanks,
110
111 2016-02-24 Vladimir Serbinenko <phcoder@gmail.com>
112
113 ieee1275: fix signed comparison
114
115 2016-02-23 Andrei Borzenkov <arvidjaar@gmail.com>
116
117 search: actually skip floppy with --no-floppy
118 grub_device_iterate() ignores device when iterator returns 1, not 0.
119
120 Reported by Carlos E. R. <robin.listas@telefonica.net>
121
122 2016-02-23 Andrei Borzenkov <arvidjaar@gmail.com>
123
124 multiboot2: zero reserved field in memory map
125 Documentation says, bootloader should set reserved field to zero.
126
127 Reported by Wink Saville <wink@saville.com>
128
129 2016-02-22 Vladimir Serbinenko <phcoder@gmail.com>
130
131 Improve EHCI logging
132 Add dprintf's on common error paths and remove some entries which are too
133 noisy.
134
135 usb_keyboard: Remove useless include
136 This prevents non-PCI machines from having USB.
137
138 Refresh before abort
139 This ensures that abort message is actually visible to the user.
140
141 2016-02-22 Eric Snowberg <eric.snowberg@oracle.com>
142
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
148 boot.
149
150 Newer SPARC systems contain more than 8 available memory entries.
151
152 For example on a T5-8 with 2TB of memory, the memory layout could
153 look like this:
154
155 T5-8 Memory
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
174 name memory
175
176 2016-02-22 Thomas Huth <thuth@redhat.com>
177
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().
187
188 2016-02-17 Vladimir Serbinenko <phcoder@gmail.com>
189
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.
193
194 default_payload.elf: Include password_pbkdf2.
195 Withoout this module we may end up in a system where no password is
196 accepted.
197
198 default_payload.elf: Add modules from $(EXTRA_PAYLOAD_MODULES).
199 This allows coreboot building system to add extra modules depending
200 on user config.
201
202 mm: Avoid integer overflow.
203
204 Remove -Wno-maybe-uninitialized as it may not be present.
205
206 Fix warnings when compiling with -O3
207
208 2016-02-14 Vladimir Serbinenko <phcoder@gmail.com>
209
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.
213
214 2016-02-12 Eric Snowberg <eric.snowberg@oracle.com>
215
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
219 map.
220
221 2016-02-12 Andreas Freimuth <andreas_freimuth@web.de>
222
223 Add Thinkpad T410s button cmos address.
224
225 2016-02-12 Vladimir Serbinenko <phcoder@gmail.com>
226
227 TODO: Remove obsolete link
228
229 2016-02-12 Toomas Soome <tsoome@me.com>
230
231 lz4: Fix pointer overflow
232
233 2016-02-12 Vladimir Serbinenko <phcoder@gmail.com>
234
235 grub-shell: Update 32-bit OVMF binary name.
236
237 2016-02-12 Daniel Kiper <daniel.kiper@oracle.com>
238
239 relocator: Fix integer underflow.
240
241 2016-02-12 Vladimir Serbinenko <phcoder@gmail.com>
242
243 Change -v to -V for version of shell utils.
244
245 xnu: Add new kernel path to autoconfig.
246
247 arm64: Use cpu timer for timekeeping.
248
249 powerpc: Trim header in tests.
250
251 default_payload: Include syslinuxcfg, all filesystems and xnu.
252
253 xnu: Supply random seed.
254 Now we're able to load kernels up to El Capitan.
255
256 Add RNG module.
257
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.
262
263 printf: Fix and test %% behaviour in presence of subsequenbt args.
264
265 Split pmtimer wait and tsc measurement from pmtimer tsc calibration.
266
267 Make grub_cpu_is_tsc_supported generally available.
268
269 Make grub_acpi_find_fadt accessible generically
270
271 Make unaligned types public.
272 This simplifies code which has to handle those types.
273
274 Fix emu compilation error on arm.
275
276 2016-02-11 Vladimir Serbinenko <phcoder@gmail.com>
277
278 xnu: Include relocated EFI in heap size.
279
280 xnu: supply ramsize to the kernel.
281 Without this info recent kernels crash as they allocate no heap.
282
283 2016-02-03 Andrei Borzenkov <arvidjaar@gmail.com>
284
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.
288
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
293 in this case.
294
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
297 as well.
298
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
301
302 a) have non-empty .moddeps section. Without either externally visible symbols
303 or .moddeps modules are completely useless and should not be built.
304
305 b) do not have any relocations.
306
307 Closes: 46986
308
309 v2: add run-time check for empty symbol table if relocations are present as
310 suggested by Vladimir.
311
312 2016-02-01 Andrei Borzenkov <arvidjaar@gmail.com>
313
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.
320
321 This still respects user settings GRUB_DISABLE_LINUX_UUID. Not sure what we
322 should do in this case.
323
324 Closes: 45709
325
326 2016-01-22 Vladimir Serbinenko <phcoder@gmail.com>
327
328 Error out if mtools invocation fails.
329
330 arm64: Add support for relocations needed for linaro gcc
331
332 efiemu: Fix compilation failure
333
334 Document cpuid -p
335
336 2016-01-22 Robert Elliott <elliott@hpe.com>
337
338 efiemu: Handle persistent RAM and unknown possible future additions.
339
340 2016-01-22 Vladimir Serbinenko <phcoder@gmail.com>
341
342 Document expr1 expr2 syntax for test command
343
344 2016-01-22 Michael Chang <mchang@suse.com>
345
346 Restore terminal settings on grub-emu exit.
347
348 2016-01-22 Vladimir Serbinenko <phcoder@gmail.com>
349
350 xen_boot: Remove obsolete module type distinctions.
351
352 arm: Ignore qemu clock bug
353
354 i386-ieee1275: Increase maximum heap size to accomodate highres graphi tests
355
356 2016-01-20 Colin Watson <cjwatson@ubuntu.com>
357
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.
362
363 Fixes Debian bug #812047.
364
365 2016-01-16 Colin Watson <cjwatson@ubuntu.com>
366
367 loader/bsd: Fix signed/unsigned comparison
368
369 ahci, ehci: Fix typos
370
371 2016-01-16 Andrei Borzenkov <arvidjaar@gmail.com>
372
373 grub-probe: fix memory leak
374 Found by: Coverity scan.
375 CID: 73783
376
377 2016-01-16 Andrei Borzenkov <arvidjaar@gmail.com>
378
379 tftp: fix memory leaks in open
380 If protocol open fails, file is immediately freed, so data was leaked.
381
382 Found by: Coverity scan.
383 CID: 96659
384
385 2016-01-16 Andrei Borzenkov <arvidjaar@gmail.com>
386
387 tcp: fix memory leaks
388 Found by: Coverity scan.
389 CID: 96639, 96647
390
391 net: fix memory leaks
392 Found by: Coverity scan.
393 CID: 96638, 96648
394
395 legacycfg: fix memory leaks and add NULL check
396 Memory leaks found by Coverity scan.
397 CID: 96642, 96645
398
399 2016-01-15 Andrei Borzenkov <arvidjaar@gmail.com>
400
401 loader: Unintended sign extension
402 CID: 96707, 96699, 96693, 96691, 96711, 96709, 96708, 96703, 96702,
403 96700, 96698, 96696, 96695, 96692, 96710, 96705
404
405 2016-01-12 Andrei Borzenkov <arvidjaar@gmail.com>
406
407 script: fix memory leak
408 Found by: Coverity scan.
409 CID: 96637
410
411 normal: fix memory leak
412 Found by: Coverity scan.
413 CID: 96641, 96670, 96667
414
415 xnu: fix memory leak
416 Found by: Coverity scan.
417 CID: 96663
418
419 truecrypt: fix memory leak
420 Found by: Coverity scan.
421 CID: 156611
422
423 gfxmenu: fix memory leak
424 Found by: Coverity scan.
425 CID: 96657
426
427 efiemu: fix memory leak
428 Found by: Coverity scan.
429 CID: 156610
430
431 efidisk: fix memory leak
432 Found by: Coverity scan.
433 CID: 96644
434
435 verify: fix memory leak
436 Found by: Coverity scan.
437 CID: 96643
438
439 password_pbkdf2: fix memory leak
440 Found by: Coverity scan.
441 CID: 96656
442
443 parttool: fix memory leak
444 Found by: Coverity scan.
445 CID: 96652
446
447 2016-01-12 Andrei Borzenkov <arvidjaar@gmail.com>
448
449 nativedisk: fix memory leak
450 Based on Coverity scan.
451 CID: 96660
452
453 Extended to also cover other error return places.
454
455 2016-01-12 Andrei Borzenkov <arvidjaar@gmail.com>
456
457 acpi: fix memory leak
458 Found by: Coverity scan.
459 CID: 96673
460
461 2016-01-10 Andrei Borzenkov <arvidjaar@gmail.com>
462
463 grub-install: include ehci in list of native modules
464 This matches behavior of "nativedisk" command.
465
466 Reported and tested by Smith Henry <sh37092@gmail.com>
467
468 2016-01-10 Andrei Borzenkov <arvidjaar@gmail.com>
469
470 grub-mkimage: remove redundant NULL check
471 Found by: Coverity scan.
472 CID: 73737
473
474 2016-01-10 Andrei Borzenkov <arvidjaar@gmail.com>
475
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
479 members to 0.
480
481 Found by: Coverity scan.
482 CID: 73837
483
484 2016-01-10 Andrei Borzenkov <arvidjaar@gmail.com>
485
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
490
491 - failure to validate blocklist install (read content did not match
492 just written)
493
494 - failure to detect Linux MD on disk after online hot addition
495 (GRUB got stale superblock)
496
497 Closes: 46691
498
499 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
500
501 setup: fix NULL pointer dereference
502 Check return value of grub_guess_root_devices
503
504 Found by: Coverity scan.
505 CID: 73638, 73751
506
507 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
508
509 mkimage: fix unintended sign extension
510 Found by: Coverity scan.
511 CID: 73691, 73717
512
513 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
514
515 util/getroot: delete dead code
516 is_part cannot be non-zero at this point.
517
518 Found by: Coveruty scan.
519 CID: 73838
520
521 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
522
523 loader/multiboot: fix unintended sign extension
524 Found by: Coveruty scan.
525 CID: 73700, 73763
526
527 kern/elf: fix unintended sign extension
528 Found by: Coverity scan.
529 CID: 73729, 73735, 73758, 73760
530
531 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
532
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.
538
539 CID: 86724
540
541 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
542
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
547 grub_strchr.
548
549 CID: 86725
550
551 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
552
553 grub-mklayout: check subscript bounds
554 Found by: Coverity scan.
555 CID: 73686
556
557 grub-probe: fix memory leak
558 Found by: Coverity scan.
559 CID: 73783
560
561 gfxmenu: fix memory leak
562 Found by: Coverity scan.
563 CID: 73766
564
565 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
566
567 util/setup: fix grub_util_path_list leak
568 Add helper grub_util_free_path_list and use it where appropriate.
569
570 Found by: Coverity scan.
571 CID: 73727
572
573 2016-01-09 Andrei Borzenkov <arvidjaar@gmail.com>
574
575 setup: fix memory leak
576 Found by: Coverity scan.
577 CID: 73680, 73715
578
579 efiemu: check return value of grub_efiemu_write_value
580 Found by: Coverity scan.
581 CID: 73590
582
583 efiemu: change code to avoid Coverity false positive
584 CID: 73623
585
586 efiemu: fix unintended sign extension
587 Found by: Coverity scan.
588 CID: 73883, 73637
589
590 hfs: fix memory leak
591 Found by: Coverity scan.
592 CID: 156531
593
594 grub-module-verifier: fix unintended sign extension
595 Found by: Coverity scan.
596 CID: 156533, 156532
597
598 2016-01-08 Vladimir Serbinenko <phcoder@gmail.com>
599
600 Tests: Support arm-efi
601
602 2016-01-07 Vladimir Serbinenko <phcoder@gmail.com>
603
604 arm64/setjmp: Add missing move for arg1 == 0 case.
605
606 grub-shell: Support arm64-efi
607
608 2016-01-07 Mark Salter <msalter@redhat.com>
609
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.
615
616 2016-01-07 Vladimir Serbinenko <phcoder@gmail.com>
617
618 x86_64-efi: Automatically add -bios OVMF.fd to qemu in tests.
619
620 Allow GRUB_QEMU_OPTS to override machine.
621
622 arm64: Disable tests that need native drivers.
623
624 Disable NetBSD bootcheck on EFI until it supports ACPI on EFI.
625
626 grub-shell: Use new cbfstool syntax.
627
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.
631
632 hddboot_test: reenable on OVMF
633 OVMF now supports booting from disks.
634
635 iee1275/datetime: Fix off-by-1 error.
636
637 2016-01-07 Vladimir Serbinenko <phcoder@gmail.com>
638
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.
642
643 On coreboot boot all *BSD except 32-bit NetBSD which apparently does some
644 early BIOS calls.
645
646 2016-01-05 Vladimir Serbinenko <phcoder@gmail.com>
647
648 minixfs_test: Check if mkfs.minixfs supports -B option.
649
650 Add memdisk support to grub-emu.
651 Use it to add custom files, so that tests which need them work.
652
653 Move file loading functions to grub-emu.
654 So that we can use it in grub-emu as well as utils.
655
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.
659
660 Update checksums
661
662 2016-01-02 Andrei Borzenkov <arvidjaar@gmail.com>
663
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
667
668 Reported-By: Goh Lip <g.lip@gmx.com>
669
670 2016-01-02 Andrei Borzenkov <arvidjaar@gmail.com>
671
672 acpihalt: fix GRUB_DSDT_TEST compilation
673
674 2016-01-01 Andrei Borzenkov <arvidjaar@gmail.com>
675
676 Add missing BUILD_EXEEXT
677
678 2015-12-31 Vladimir Serbinenko <phcoder@gmail.com>
679
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
683 problem
684
685 2015-12-31 Andrey Borzenkov <arvidjaar@gmail.com>
686
687 remove temporary .bin files (kernel and modules)
688
689 add dejavu built fonts to cleanfiles
690
691 2015-12-31 Andrei Borzenkov <arvidjaar@gmail.com>
692
693 Add grub-module-verifier files to EXTRA_DIST
694
695 2015-12-31 Vladimir Serbinenko <phcoder@gmail.com>
696
697 configure: Add -fno-unwind-tables if supported.
698 Unwind tables are useless for us bt consume space if present. Ensure that they
699 are not.
700
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.
704
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.
710
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.
714
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
720 this.
721
722 Strip .ARM.exidx
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
725 with module loading.
726
727 module-verifier: Check range-limited relative relocations.
728 Check that they point to the same module, so will end up in the same
729 chunk of memory.
730
731 xen/relocator: Use local symbol to ensure that code is relocation-free.
732
733 backtrace: Fix register call syntax
734
735 Verify modules on build-time rather than failing in runtime.
736
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.
740
741 2015-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
742
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.
747
748 Also use it for Windows as well - chainloader prober may actually return
749 different strings (Windows, MS-DOS, Windows9xME).
750
751 2015-12-30 Vladimir Serbinenko <phcoder@gmail.com>
752
753 backtrace: Remove assembly assumption that grub_backtrace_pointer is under 4G
754
755 2015-12-30 Andrei Borzenkov <arvidjaar@gmail.com>
756
757 menu: fix line count calculation for long lines
758 It gave one extra screen line if length was exactly equal to screen
759 width.
760
761 Reported by Michael Chang.
762 Also-By: Michael Chang <mchang@suse.com>
763
764 2015-12-29 Vladimir Serbinenko <phcoder@gmail.com>
765
766 grub-mkrescue: Delete temporary file
767 Reported by: Thomas Schmitt
768
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.
772
773 exfat: Fix stream extension flag parsing.
774
775 2015-12-26 Andrei Borzenkov <arvidjaar@gmail.com>
776
777 devmapper: check for valid device abstraction in get_grub_dev
778 This was lost when code was refactored. Patch restores previous behavior.
779
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.
783
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.
786
787 For now let's fix regression; future behavior needs to be discussed.
788
789 Closes: 45163
790
791 2015-12-19 Andrei Borzenkov <arvidjaar@gmail.com>
792
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.
796
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.
800
801 2015-12-17 Robert Elliott <elliott@hpe.com>
802
803 lsefimmap: support persistent memory and other UEFI 2.5 features
804 This should accompany
805 76ce1de740 Translate UEFI persistent memory type
806
807 1. Add a string for the EfiPersistentMemory type 14 that was
808 added in UEFI 2.5.
809
810 2. Decode the memory attributes that were added in UEFI 2.5:
811 * NV (non-volatile)
812 * MORE_RELIABLE (higher reliable, e.g., mirrored memory in a system
813 with partial memory mirroring)
814 * RO (read-only)
815
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.)
818
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.
823
824 5. In the lsefimmap command, rewrite the print statements to
825 * avoid rounding
826 * avoid a big nested if/else tree.
827
828 For example: In the sixth entry below, the value of 309MB implies
829 316416KB but is really reporting 316436KB.
830
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.
834
835 Old format:
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
855
856 New format:
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
876
877 2015-12-16 Andrei Borzenkov <arvidjaar@gmail.com>
878
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.
882
883 Closes: 46540
884
885 2015-12-16 Andrei Borzenkov <arvidjaar@gmail.com>
886
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).
890
891 2015-12-16 Hector Marco-Gisbert <hecmargi@upv.es>
892
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
897
898 CVE-2015-8370
899
900 Also-By: Andrey Borzenkov <arvidjaar@gmail.com>
901
902 2015-12-15 Andrei Borzenkov <arvidjaar@gmail.com>
903
904 NEWS: more additions
905 Also-By: Robert Elliott <elliott@hpe.com>
906
907 2015-12-15 Robert Elliott <elliott@hpe.com>
908
909 Translate UEFI persistent memory type
910 Define
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
914
915 and translate GRUB_EFI_PERSISTENT_MEMORY to GRUB_MEMORY_PERSISTENT in
916 grub_efi_mmap_iterate().
917
918 Includes
919 * adding the E820 names to lsmmap
920 * handling the E820 types in make_efi_memtype()
921
922 Suggested-by: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
923 Suggested-by: Andrei Borzenkov <arvidjaar@gmail.com>
924
925 2015-12-14 Vladimir Serbinenko <phcoder@gmail.com>
926
927 Document bootlocation discovery limitations and xen platform limitations
928
929 2015-12-07 Josef Bacik <jbacik@fb.com>
930
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
938 out. Thanks,
939
940 2015-12-01 Michael Chang <mchang@suse.com>
941
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.
946
947 Reported and tested by Vitaly Kuznetsov <vkuznets@redhat.com>
948
949 2015-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
950
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).
955
956 2015-11-27 Andrei Borzenkov <arvidjaar@gmail.com>
957
958 Replace numbers with grub_memory_type_t enums
959
960 2015-11-27 Andrei Borzenkov <arvidjaar@gmail.com>
961
962 configure: fix macports flex version detection
963 Macports add extra information after version itself:
964
965 $flex --version
966 flex 2.5.35 Apple(flex-31)
967
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.
970
971 Reported by Peter Cheung <mcheung63@hotmail.com>
972
973 2015-11-27 Vladimir Serbinenko <phcoder@gmail.com>
974
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.
979
980 Based on patch by Michael Chang.
981
982 2015-11-26 Andrei Borzenkov <arvidjaar@gmail.com>
983
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
987 marked as available.
988
989 Move default case into its own block and add explicit FALLTHROUGH
990 annotation.
991
992 Reported by Elliott, Robert (Persistent Memory) <elliott@hpe.com>
993
994 2015-11-24 Josef Bacik <jbacik@fb.com>
995
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,
1000
1001 2015-11-18 Andrei Borzenkov <arvidjaar@gmail.com>
1002
1003 unix: do not close stdin in grub_passwd_get
1004 This makes it impossible to read from stdin without controlling tty:
1005
1006 10:/mnt # echo -e passwd\\npasswd | setsid ./grub-mkpasswd-pbkdf2
1007 Enter password:
1008 Reenter password: ./grub-mkpasswd-pbkdf2: error: failure to read password.
1009 10:/mnt
1010
1011 2015-11-17 Andrei Borzenkov <arvidjaar@gmail.com>
1012
1013 lsefisystab: add missing comma after 7994077
1014
1015 2015-11-14 Pavel Bludov <pbludov@gmail.com>
1016
1017 Add some UUIDs found in the hardware
1018
1019 2015-11-13 Konstantin Vlasov <kvlasov@odin.com>
1020
1021 gfxterm: fix calculation of terminal-top and terminal-height
1022 They used screen width, not height.
1023
1024 2015-11-12 Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1025
1026 ofdisk: add sas disks to the device list
1027
1028 2015-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 multiboot: Don't rely on particular ordering of options.
1031
1032 multiboot_mbi: Fix handling of --quirk-bad-kludge.
1033
1034 2015-11-12 Fu Wei <fu.wei@linaro.org>
1035
1036 xen_boot: Remove useless file_name_index variable.
1037
1038 Document ARM64 xen commands
1039
1040 2015-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1041
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
1046
1047 2015-11-11 Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1048
1049 ofdisk: add a comment about vscsi method
1050
1051 2015-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 fdt.mod: Move license tag to the right file.
1054
1055 2015-11-09 Fu Wei <fu.wei@linaro.org>
1056
1057 fdt.mod: Add missing license tag.
1058
1059 2015-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 kern/elf: Ignore cast-align warnings
1062
1063 2015-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 cbfs: Fix corner case and compilation with recdent gcc
1066 Accept the header to touch the jump address at 0xfffffff0.
1067
1068 Fix compilation for 64-bit EFI with recent GCC.
1069
1070 2015-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1071
1072 fstester: Enforce LC_ALL=C
1073
1074 Adapt build-system to use imported xen headers.
1075
1076 Import xen headers directly into GRUB
1077
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>
1081
1082 Remove reliance C.UTF-8
1083
1084 genmoddep.awk: Add a test that we have no circular dependencies
1085
1086 Makefile.core.def: Break circular dependency on arm64.
1087
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).
1092
1093 2015-11-07 Andrei Borzenkov <arvidjaar@gmail.com>
1094
1095 partmap_test: check that parted is available
1096 Skip test if parted is unavailable instead of returning false failure.
1097
1098 2015-11-07 grub-devel@iam.tj <grub-devel@iam.tj>
1099
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
1103
1104 disk/cryptodisk.c:978: already mounted as crypto0
1105
1106 Store partition offset in cryptomount descriptor to distinguish between them.
1107
1108 2015-11-07 Andrey Borzenkov <arvidjaar@gmail.com>
1109
1110 doc: document config_directory and config_file variables
1111
1112 2015-11-07 Andrei Borzenkov <arvidjaar@gmail.com>
1113
1114 unix/getroot: remove unused MAJOR definition
1115 We use major() everywhere, these definitions just add to confusion.
1116
1117 Add comments to code for commit d313218
1118
1119 2015-11-07 Andrei Borzenkov <arvidjaar@gmail.com>
1120
1121 devmapper/getroot: use makedev instead of direct shift
1122 Fixes device detection with large number of devices.
1123
1124 Reported by Tim Wallberg <twalberg@comcast.net>
1125
1126 2015-11-06 Andrei Borzenkov <arvidjaar@gmail.com>
1127
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.
1132
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
1135 places.
1136
1137 Also remove redundant zeroing code where we fill in the whole memory block
1138 anyway.
1139
1140 2015-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 configure.ac: Explicitly add -mno-sse3 on x86.
1143
1144 README: Remove dead link to the wiki
1145
1146 2015-10-29 Andrei Borzenkov <arvidjaar@gmail.com>
1147
1148 NEWS: mention powerpc64le support
1149
1150 2015-10-29 Ignat Korchagin <ignat>
1151
1152 tcp: Fix uninited mac address when accepting connection.
1153
1154 2015-10-29 Fu Wei <fu.wei@linaro.org>
1155
1156 arm64: Add support for xen boot protocol.
1157
1158 2015-10-29 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 arm64: Move FDT functions to separate module
1161
1162 2015-10-27 Andrei Borzenkov <arvidjaar@gmail.com>
1163
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
1167
1168 2015-10-26 Eric Snowberg <eric.snowberg@oracle.com>
1169
1170 ofdisk: Fix devpath freeing logic.
1171
1172 2015-10-26 Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1173
1174 Implement cross-endian ELF load for powerpc
1175
1176 2015-10-25 Peter Jones <pjones@redhat.com>
1177
1178 Use EFI_SIMPLE_TEXT_INPUT_EX to support key combinations.
1179
1180 2015-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
1181
1182 configure: find options to force endian on MIPS
1183
1184 2015-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
1185
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.
1190
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".
1194
1195 Reported-By: Mark H Weaver <mhw@netris.org>
1196 Also-By: Mark H Weaver <mhw@netris.org>
1197
1198 2015-10-12 Andrei Borzenkov <arvidjaar@gmail.com>
1199
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.
1203
1204 Reported-By: Josef Bacik <jbacik@fb.com>
1205
1206 2015-10-11 Andrei Borzenkov <arvidjaar@gmail.com>
1207
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.
1211
1212 2015-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 mips: Make setjmp code N32-compliant.
1215
1216 mips: Make the assembly-code N32-compatible.
1217 There are no $t4 or $t5 in N32 but there are $a4 and $a5.
1218
1219 2015-10-10 Andrei Borzenkov <arvidjaar@gmail.com>
1220
1221 progress: avoid NULL dereference for net files
1222 From original patch by dann frazier <dann.frazier@canonical.com>:
1223
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
1230 on it.
1231
1232 grub_net_fs_open() already saved copy of file name as ->net->name, so change
1233 progress module to use it.
1234
1235 Also, grub_file_open may leave file->name as NULL if grub_strdup fails. Check
1236 for it.
1237
1238 Also-By: dann frazier <dann.frazier@canonical.com>
1239
1240 2015-10-10 Andrei Borzenkov <arvidjaar@gmail.com>
1241
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).
1246
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.
1249
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.
1252
1253 Reported-By: Arch Stack <archstacker@gmail.com>
1254 Also-By: Arch Stack <archstacker@gmail.com>
1255
1256 2015-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 mips/dl: Handle addend in RELA entries.
1259
1260 gfxmenu/model: Delete empty file.
1261
1262 2015-10-09 Alexander Bluhm <bluhm@genua.de>
1263
1264 ufs: Fix parameters to grub_memset.
1265 len = 0 made simply no sense. Fix parameters to be in line with read.
1266
1267 2015-10-07 Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
1268
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:
1273
1274 ok select net:speed=auto,duplex=auto
1275 Unknown key 'speed'
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
1279
1280 Can't open device
1281 ok
1282
1283 Therefore, let's not set SUFFIX for such devices.
1284
1285 2015-10-07 Eric Snowberg <eric.snowberg@oracle.com>
1286
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.
1290
1291 2015-09-13 Andrei Borzenkov <arvidjaar@gmail.com>
1292
1293 cryptodisk: strip parenthesis from backing device name
1294 Otherwise subsequent disk open fails.
1295
1296 Reported-By: Klemens Nanni <contact@autoboot.org>
1297
1298 2015-08-22 Felix Zielcke <fzielcke@z-51.de>
1299
1300 disk/ldm, partmap/msdos.c: fix spelling error
1301
1302 2015-08-13 Andrei Borzenkov <arvidjaar@gmail.com>
1303
1304 net: do not try to load protocol module via itself
1305 Otherwise we get infinite recursion.
1306
1307 Closes: 45729
1308
1309 2015-08-09 Josef Bacik <jbacik@fb.com>
1310
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,
1319
1320 cc: Peter Jones <pjones@redhat.com>
1321
1322 2015-08-09 Andrei Borzenkov <arvidjaar@gmail.com>
1323
1324 linguas.sh: fix error when removing non-existing autogenerated files
1325
1326 2015-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 ahci: Ensure that bus mastering is set.
1329 Fixes ahci_test failing on several platforms.
1330
1331 2015-07-27 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 archelp: Never pass NULL as mtime.
1334 Moves complexity from fs code (NULL check) to common code (passing non-NULL).
1335
1336 HFS: Convert to fshelp.
1337 HFS doesn't handle "." and ".." properly. Convert it to fshelp to reuse the
1338 logic.
1339
1340 FAT: Convert to fshelp.
1341 exFAT doesn't handle "." and ".." correctly, convert it to fshelp to
1342 reuse the same logic.
1343
1344 BFS: Convert to fshelp.
1345 BFS doesn't handle ".." correctly, so convert it to fshelp to reuse the logic.
1346
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.
1353
1354 Switch procfs to use archelp.
1355 This fixes handling of "." and "..".
1356
1357 grub-install: Use a+ in fopen rather than r+.
1358 r+ does not create a file if none exists.
1359
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'
1363
1364 2015-07-24 Ignat Korchagin <ignat@cloudflare.com>
1365
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.
1369
1370 2015-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1371
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
1375
1376 xfs_test: Test both crc and non-crc filesystems.
1377
1378 xfs: Fix handling of symlink with crc-enabled filesystem.
1379
1380 reiserfs: Fix handling of first entry in the directory.
1381 Fixes garbage being added to "." filename.
1382
1383 2015-07-23 Ignat Korchagin <ignat@cloudflare.com>
1384
1385 efi: fix memory leak in variable handling
1386
1387 2015-07-23 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 exclude.pot: Add missing blacklisted strings.
1390
1391 archelp: Fix handling of dot and dotdot at the end of the name.
1392 Fixes cpio_test and tar_test.
1393
1394 arm-emu: Add __aeabi_memcpy* and __aeabi_memclr* symbols.
1395 Fixes compilation with clang.
1396
1397 2015-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 fwstart: Fix loading of address of read_spd_fail.
1400
1401 fwstart: Add missing argument to p2align.
1402 Resulting binary is unchanged as it happens we were already aligned
1403 by chance.
1404
1405 2015-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 fwstart: Replace blt with bltz.
1408 blt A, $zero, B and bltz A, B are equivalent but clang recognizes only
1409 later, so use it.
1410
1411 Resulting binary is unchanged.
1412
1413 2015-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1414
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.
1419
1420 Revert "mips: Fix soft-float handling."
1421
1422 This partially reverts commit 6a4ecd276ed39f66be0ad6ff0f8ff67598098605.
1423
1424 2015-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 ARM: provide __aeabi_memclr* and __aeabi_memcpy* symbols
1427 Fixes compilation with recent clang.
1428
1429 diskfilter: Make name a const char to fix compilation error.
1430
1431 dmraid_nvidia: Set a name to usable value to avoid null dereference.
1432 Reported by: Andrei Borzenkov
1433
1434 configure.ac: Handle powerpc64le compiler
1435 Also-by: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1436
1437 2015-07-20 Bernhard Übelacker <bernhardu@vr-web.de>
1438
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
1443
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.
1448
1449 2015-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 XFS: Fix wrong alignment treatment.
1452
1453 grub_ext2_read_block: Fix return type on error.
1454
1455 2015-07-05 Andrei Borzenkov <arvidjaar@gmail.com>
1456
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).
1460
1461 2015-06-26 Michael Chang <mchang@suse.com>
1462
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.
1467
1468 2015-06-26 Andrei Borzenkov <arvidjaar@gmail.com>
1469
1470 chainloader: fix resoource leak
1471 Found by: Coverity scan.
1472 CID: 96651
1473
1474 loader/bsd: fix memory leak
1475 Found by: Coverity scan.
1476 CID: 96662, 96665
1477
1478 2015-06-20 Andrei Borzenkov <arvidjaar@gmail.com>
1479
1480 loader/bsd: free memory leaks
1481 Found by: Coverity scan.
1482 CID: 96671, 96658, 96653
1483
1484 search_wrap: fix memory leak
1485 Found by: Coverity scan.
1486 CID: 96675
1487
1488 password_pbkdf2: fix memory leak
1489 Found by: Coverity scan.
1490 CID: 96676
1491
1492 normal: fix memory leak
1493 Found by: Coverity scan.
1494 CID: 96677
1495
1496 efi/serial: fix memory leak
1497 Found by: Coverity scan.
1498 CID: 96678
1499
1500 ohci: fix memory leak
1501 Found by: Coverity scan.
1502 CID: 96679
1503
1504 loader/bsd: free memory leaks
1505 Found by: Coverity scan.
1506 CID: 96682
1507
1508 multiboot: fix memory leak
1509 Found by: Coverity scan.
1510 CID: 96684
1511
1512 normal: fix memory leak
1513 Found by: Coverity scan.
1514 CID: 96685
1515
1516 loader/bsd: fix memory leak
1517 Found by: Coverity scan.
1518 CID: 96686
1519
1520 reed_solomon: fix memory leak
1521 Found by: Coverity scan.
1522 CID: 96688
1523
1524 usb: fix use after free
1525 Found by: Coverity scan.
1526 CID: 96704
1527
1528 xnu: fix use after free
1529 Found by: Coverity scan.
1530 CID: 96706
1531
1532 disk/scsi: fix use after free
1533 Found by: Coverity scan.
1534 CID: 96713
1535
1536 efi/chainloader: fix use after free
1537 Found by: Coverity scan.
1538 CID: 96714
1539
1540 search: fix use after free
1541 Found by: Coverity scan.
1542 CID: 96715
1543
1544 NEWS: emu libusb support removed
1545
1546 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1547
1548 grub-probe: fix memory leak in probe (ofpath)
1549 Found by: Coverity scan.
1550 CID: 73772
1551
1552 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1553
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
1557 loop.
1558
1559 Calms down Coverity scan.
1560 CID: 73739
1561
1562 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1563
1564 zfs: fix memory leak
1565 Found by: Coverity scan.
1566 CID: 73647
1567
1568 xfs: silence Coverity overflow warning
1569 inode size cannot really overflow integer, but Coverity does not know it.
1570 CID: 96602
1571
1572 zfs: memory leak
1573 Found by Coverity scan.
1574 CID: 96603
1575
1576 unix/getroot: memory leak
1577 Found by Coverity scan.
1578 CID: 96605
1579
1580 unix/relpath: memory leak
1581 Found by Coverity scan.
1582 CID: 96606
1583
1584 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1585
1586 syslinux_parse: assorted issues found by Coverity
1587 1. Remove unneeded NULL check
1588 CID: 96607
1589
1590 2. Do not allocate storage for initrd, copy it directly from input
1591 buffer. Avoids memory leak in failure path.
1592 CID: 96604
1593
1594 3. Unchecked error return from print()
1595 CID: 96601, 73595
1596
1597 2015-06-19 Andrei Borzenkov <arvidjaar@gmail.com>
1598
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.
1602
1603 2015-06-18 Andrei Borzenkov <arvidjaar@gmail.com>
1604
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.
1608
1609 Closes: 45335
1610
1611 2015-06-18 Andrei Borzenkov <arvidjaar@gmail.com>
1612
1613 tests: regression tests for "." and ".." directory entries
1614
1615 2015-06-16 Andrei Borzenkov <arvidjaar@gmail.com>
1616
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.
1621
1622 Also follow UEFI specification recommendation and stop interfaces when
1623 closing them:
1624
1625 Unexpected system errors, reboots and hangs can occur if an OS is loaded
1626 and the network devices are not Shutdown() and Stopped().
1627
1628 Also by: Mark Salter <msalter@redhat.com>
1629 Closes: 45204
1630
1631 2015-06-16 Andrei Borzenkov <arvidjaar@gmail.com>
1632
1633 NEWS: mention libgcc removal
1634
1635 2015-06-15 Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
1636
1637 Add flag for powerpc ieee1275 to avoid unneeded optimizations
1638
1639 2015-06-12 Mark Salter <msalter@redhat.com>
1640
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().
1648
1649 2015-06-12 Paul Menzel <paulepanter@users.sourceforge.net>
1650
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.
1654
1655 2015-06-12 Andrei Borzenkov <arvidjaar@gmail.com>
1656
1657 NEWS: XFS v5 support
1658
1659 2015-06-12 Jan Kara <jack@suse.cz>
1660
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.
1665
1666 xfs: Add helpers for inode size
1667 Add helpers to return size of XFS inode on disk and when loaded in
1668 memory.
1669
1670 2015-06-04 Toomas Soome <tsoome@me.com>
1671
1672 multiboot_header_tag_module_align fix to confirm multiboot specification
1673
1674 2015-06-02 Leif Lindholm <leif.lindholm@linaro.org>
1675
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.
1679
1680 This also enables the removal of some further conditional build flag
1681 setting.
1682
1683 2015-06-01 dann frazier <dann.frazier@canonical.com>
1684
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.
1688
1689 The source file includes a GPLv3+ boilerplate, so fix this by declaring a
1690 GPLv3+ license using the GRUB_MOD_LICENSE macro.
1691
1692 2015-05-31 Paul Menzel <paulepanter@users.sourceforge.net>
1693
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
1697 debug messages.
1698
1699 2015-05-30 Andrei Borzenkov <arvidjaar@gmail.com>
1700
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.
1704
1705 "Access to menuentry" is a bit vague - change to "execute menuentry"
1706 to make it obvious, what access is granted.
1707
1708 2015-05-30 Paul Menzel <paulepanter@users.sourceforge.net>
1709
1710 Correct spelling of *scheduled*
1711 Run the command below
1712
1713 $ git grep -l schedulded | xargs sed -i 's/schedulded/scheduled/g'
1714
1715 and revert the change in `ChangeLog-2015`.
1716
1717 Including "miscellaneous" spelling fix noted by richardvoigt@gmail.com
1718
1719 2015-05-30 Toomas Soome <tsoome@me.com>
1720
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.
1726
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
1729 from bonus area.
1730
1731 2015-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1732
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
1737 locations.
1738
1739 2015-05-24 Paul Menzel <paulepanter@users.sourceforge.net>
1740
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`.
1743
1744 2015-05-19 Paul Menzel <paulepanter@users.sourceforge.net>
1745
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].
1750
1751 Running `coreboot_boottime` in the GRUB command line interface now shows
1752 descriptions for all time stamps again on the ASRock E350M1.
1753
1754 [1] http://review.coreboot.org/9608
1755
1756 2015-05-17 Andrei Borzenkov <arvidjaar@gmail.com>
1757
1758 bootp: ignore gateway_ip (relay) field.
1759 From RFC1542:
1760
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.
1769
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
1773 messages.
1774
1775 Leave code ifdef'd out for the time being in case we see regression.
1776
1777 Suggested by: Rink Springer <rink@rink.nu>
1778 Closes: 43396
1779
1780 2015-05-17 Andrei Borzenkov <arvidjaar@gmail.com>
1781
1782 hostdisk: fix crash with NULL device.map
1783 grub-macbless calls grub_util_biosdisk_init with NULL device.map.
1784
1785 2015-05-14 Andrei Borzenkov <arvidjaar@gmail.com>
1786
1787 zfs: fix integer truncation in zap_lookup
1788 Size after shift could exceed 16 bits; use grub_unit32_t for result.
1789
1790 Reported and tested by: Kostya Berger <bergerkos@yahoo.co.uk>
1791 Closes: 44448
1792
1793 2015-05-13 Andrei Borzenkov <arvidjaar@gmail.com>
1794
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.
1798
1799 2015-05-12 Jan Kara <jack@suse.cz>
1800
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.
1806
1807 2015-05-11 Jan Kara <jack@suse.cz>
1808
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.
1814
1815 2015-05-08 Andrei Borzenkov <arvidjaar@gmail.com>
1816
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.
1821
1822 Closes: 45002
1823
1824 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1825
1826 Add asm-tests to tarball
1827
1828 2015-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 util/grub-mkrescue: Fix compilation
1831
1832 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1833
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.
1839
1840 Open SNP device exclusively. This destroys all child MNP instances and
1841 stops background polling.
1842
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.
1847
1848 Based on patch from Mark Salter <msalter@redhat.com>
1849
1850 Also-By: Mark Salter <msalter@redhat.com>
1851 Closes: 41731
1852
1853 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1854
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.
1860
1861 Example of device hierarchy is
1862
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)
1867
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.
1871
1872 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1873
1874 efidisk: move device path helpers in core for efinet
1875
1876 convert to, not from, CPU byte order in DNS receive function
1877
1878 2015-05-07 Andrei Borzenkov <arvidjaar@gmail.com>
1879
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.
1885
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.
1889
1890 Reported-By: David Shaw <dshaw@jabberwocky.com>
1891
1892 2015-05-07 Daniel Kiper <daniel.kiper@oracle.com>
1893
1894 i386/relocator: Remove unused extern grub_relocator64_rip_addr
1895
1896 2015-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 grub-install-common: Increase buf size to 8192 as modinfo.sh is bigger.
1899
1900 2015-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 grub-mkrescue: Recognize -output as an alias of --output.
1903 This helps us to be in line with xorriso -as mkisofs.
1904
1905 Suggested by: Thomas Schmitt
1906
1907 2015-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 linux.c: Ensure that initrd is page-aligned.
1910
1911 Revert parts accidentally committed 2 commits ago.
1912
1913 2015-05-07 Fu Wei <fu.wei@linaro.org>
1914
1915 fdt.h: Add grub_fdt_set_reg64 macro
1916
1917 arm64: Export useful functions from linux.c
1918
1919 2015-05-04 Andrei Borzenkov <arvidjaar@gmail.com>
1920
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.
1926
1927 efinet: cannot free const char * pointer
1928
1929 efinet: memory leak on module removal
1930
1931 2015-05-03 Andrei Borzenkov <arvidjaar@gmail.com>
1932
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.
1938
1939 2015-05-03 Toomas Soome <tsoome@me.com>
1940
1941 zfs: com.delphix:embedded_data feature support
1942
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.
1947
1948 2015-04-29 Andrei Borzenkov <arvidjaar@gmail.com>
1949
1950 grub-mkconfig: use $pkgdatadir in scripts
1951 Otherwise scripts will source wrong grub-mkconfig_lib.
1952
1953 2015-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 Remove -V in grub-mkrescue.c
1956 It clashhes with -V which is alias to -volid.
1957
1958 2015-04-13 Toomas Soome <tsoome@me.com>
1959
1960 getroot: include sys/mkdev.h for makedev
1961 Solaris (like) systems need to include sys/mkdev.h for makedev() function.
1962
1963 2015-04-13 Toomas Soome <tsoome@me.com>
1964
1965 core/partmap: rename 'sun' to avoid clash with predefined symbol
1966 the symbol “sun” is defined macro in solaris derived systems, from
1967 gcc -dM -E:
1968
1969 and therefore can not be used as name.
1970
1971 2015-04-12 Paul Menzel <paulepanter@users.sourceforge.net>
1972
1973 docs/grub.texi: Fix spelling of cbfstool
1974
1975 2015-04-06 Andrei Borzenkov <arvidjaar@gmail.com>
1976
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.
1980
1981 Reported-By: Michael Zimmermann <sigmaepsilon92@gmail.com>
1982
1983 2015-03-28 Andrei Borzenkov <arvidjaar@gmail.com>
1984
1985 do not emit cryptomount without crypto UUID
1986
1987 2015-03-28 Sarah Newman <srn@prgmr.com>
1988
1989 grub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer from the stack.
1990
1991 2015-03-27 Andrei Borzenkov <arvidjaar@gmail.com>
1992
1993 net: trivial grub_cpu_to_XX_compile_time cleanup
1994
1995 2015-03-27 Lunar <lunar@torproject.org>
1996
1997 syslinux: Support {vesa,}menu.c32.
1998
1999 2015-03-27 Steve McIntyre <steve@einval.com>
2000
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.
2006
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.
2011
2012 2015-03-27 Michael Zimmermann <sigmaepsilon92@gmail.com>
2013
2014 Add missing initializers to silence suprious warnings.
2015
2016 2015-03-27 Leif Lindholm <leif.lindholm@linaro.org>
2017
2018 dl_helper: Cleanup
2019 Use the new thumb_get_instruction_word/thumb_set_instruction_word
2020 helpers throughout.
2021
2022 Style cleanup (missing spaces).
2023
2024 Move Thumb MOVW/MOVT handlers into Thumb relocation section of file.
2025
2026 2015-03-27 Martin Wilck <martin.wilck@ts.fujitsu.com>
2027
2028 efinet: Check for immediate completition.
2029 This both speeds GRUB up and workarounds unexpected EFI behaviour.
2030
2031 2015-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 Make Makefile.util.def independent of platform.
2034
2035 2015-03-27 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2036
2037 util/mkimage: Use stable timestamp when generating binaries.
2038
2039 2015-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 modinfo.sh.in: Add missing config variables.
2042
2043 Makefile.core.def: Remove obsolete LDADD_KERNEL
2044
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.
2049
2050 2015-03-23 Colin Watson <cjwatson@ubuntu.com>
2051
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.
2057
2058 2015-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2059
2060 compiler-rt-emu: Add missing file.
2061
2062 emunet: Fix init error checking.
2063 Otherwise emunet doesn't expose any cards.
2064
2065 fddboot_test: Add -no-pad to xorriso.
2066
2067 grub-mkrescue: pass all unrecognized options unchanged to xorriso.
2068
2069 cacheinfo: Add missing license information.
2070
2071 2015-03-19 Andrei Borzenkov <arvidjaar@gmail.com>
2072
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.
2076
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.
2079
2080 2015-03-19 Andrei Borzenkov <arvidjaar@gmail.com>
2081
2082 core: add LVM RAID1 support
2083 Closes 44534.
2084
2085 2015-03-16 Andrei Borzenkov <arvidjaar@gmail.com>
2086
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.
2090
2091 2015-03-15 Andrei Borzenkov <arvidjaar@gmail.com>
2092
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
2097 reference instead.
2098
2099 2015-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2100
2101 hfsplus: Fix potential access to uninited memory on invalid FS
2102
2103 2015-03-06 Jon McCune <jonmccune@google.com>
2104
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.
2108
2109 2015-03-05 Andrei Borzenkov <arvidjaar@gmail.com>
2110
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
2114
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
2119 ...
2120
2121 Update gnulib/argp-help.c to the current version which fixes this
2122 (commit b9bfe78424b871f5b92e5ee9e7d21ef951a6801d).
2123
2124 2015-03-05 Andrey Borzenkov <arvidjaar@gmail.com>
2125
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
2132
2133 Update m4/extern-inline.m4 to current upstream gnulib version that
2134 contains fix for this (commit b9bfe78424b871f5b92e5ee9e7d21ef951a6801d).
2135
2136 Reported-By: Beeblebrox <zaphod@berentweb.com>
2137
2138 2015-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 syslinux_parse: Fix the case of unknown localboot.
2141 Reported by: Jordan Uggla
2142
2143 configure.ac: Fix the name of pciaccess header.
2144
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.
2149
2150 2015-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2151
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.
2155
2156 configure.ac: Remove unused COND_clang
2157
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
2161 from running OS.
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.
2167
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.
2171
2172 configure.ac: Set $CPPFLAGS when checking for no_app_regs.
2173 Fixes compilation for sparc64 with clang.
2174
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".
2177
2178 2015-02-28 Andrei Borzenkov <arvidjaar@gmail.com>
2179
2180 grub-probe: free temporary variable
2181
2182 2015-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2183
2184 exclude.pot: Add new technical strings
2185
2186 grub-probe: Mark a "[default=]" for translation.
2187
2188 grub-shell: Add missing --locale-directory.
2189 Fixes the language tests is no make install was done.
2190
2191 ntfs_test: Skip is setfattr is unavailable.
2192
2193 2015-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2194
2195 emu/cache: Change declaration of __clear_cache to match builtin declaration.
2196 Fixes compile of arm64-emu.
2197
2198 arm/dl: Fix handling of nonstandard relocation sizes
2199
2200 gzio: Optimize by removing division.
2201
2202 raid6: Optimize by removing division.
2203
2204 dmraid_nvidia: Fix division by 0 and missing byte-swap.
2205
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.
2210
2211 jpeg: Optimise by replacing division with shifts.
2212
2213 png: Optimize by avoiding divisions.
2214
2215 Add missing lib/division.c
2216
2217 fbblit: Optimize by replacing division with additions and shifts.
2218
2219 bitmap_scale: Optimize by moving division out of the loop.
2220
2221 minilzo: Skip parts tha we don't need.
2222
2223 2015-02-23 Vladimir Serbinenko <phcoder@gmail.com>
2224
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
2229 but it's tolerable.
2230
2231 Add missing grub_ prefix in memcpy invocation
2232
2233 Allow clang compilation for thumb with -mthumb-interwork.
2234 clang already uses -mthumb-interwork behaviour even thout it doesn't
2235 support the option.
2236
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.
2241
2242 Supply signed division to fix ARM compilation.
2243 Previously we supplied only unsigned divisions on platforms that need software
2244 division.
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.
2247
2248 2015-02-22 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 acpi: Fix unused function warning.
2251
2252 configure.ac: Add ia64-specific way to disable floats.
2253
2254 i386/tsc: Fix unused function warning on xen.
2255
2256 2015-02-22 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 Experimental support for clang for sparc64.
2259 Automatically discover command line options to make clang and
2260 gcc behave in same way.
2261
2262 Tested with qemu.
2263
2264 2015-02-22 Vladimir Serbinenko <phcoder@gmail.com>
2265
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.
2269
2270 2015-02-21 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 mips: Switch to more portable .org
2273 Binary is unchanged.
2274
2275 sparc64: Switch to more portable .org.
2276 Binaries are unchanged.
2277
2278 kernel-8086: Switch to more portable .org.
2279
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.
2283
2284 qemu: Switch to more portable .org
2285 Binary is checked identical.
2286
2287 qemu: Fix GateA20 enabling.
2288 GateA20 code was inactive due to address error.
2289
2290 qemu: Fix compilation
2291
2292 Remove realmode.S from coreboot and qemu.
2293 It's not used there.
2294
2295 Remove obsolete ADDR32 and DATA32 checks.
2296
2297 i386: Remove needless ADDR32 prefixes when address is known and fixed.
2298 Shaves off 6 bytes in lzma_decompress.img.
2299
2300 i386-pc/boot: Explicitly mark kernel_address[_high] as local.
2301 Otherwise apple asm might try to make accesses relocatable.
2302
2303 Change dot assignmnet to more portable .org.
2304 Binary is unchanged (verified)
2305
2306 i386: Move from explicit ADDR32/DATA32 prefixes to instruction suffixes.
2307 Is more portable.
2308 Binary is unchanged (verified).
2309
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.
2313
2314 INSTALL: clarify that clang support is experimental
2315
2316 zfs/mzap_lookup: Fix argument types
2317
2318 wildcard: Mark unused argument as such.
2319
2320 ofdisk: Exclude floppies from scanning.
2321 It causes similar hang as CD on at least the qemu.
2322
2323 configure: Add -msoft-float to CCASFLAGS
2324 Otherwise mismatch between API flags triggers linker failure
2325
2326 mips/startup_raw: Use more portable .asciz
2327
2328 Provide __aeabi_mem{cpy,set}
2329 Fixes ARM compilation
2330
2331 div_test: Don't try to divide by zero
2332
2333 INSTALL: Fix names of host flags to match actual behaviour
2334
2335 Strip .MIPS.abiflags which causes compile failure
2336
2337 2015-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 configure: Move adding of include options to the very end to avoid subshell.
2340
2341 configure: Add missing comma.
2342
2343 2015-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 ext2: Ignore INCOMPAT_MMP.
2346 It's not really incompatible as long as driver never writes to FS.
2347
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.
2351
2352 2015-02-16 Andrei Borzenkov <arvidjaar@gmail.com>
2353
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.
2357
2358 build-sys: add syslinux test files to tarball
2359
2360 2015-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 Add test for syslinux converter
2363
2364 2015-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 Don't remove initrd= parameter.
2367 Based on simplified patch by Lunar.
2368
2369 Reported by: Lunar
2370
2371 2015-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 syslinux_parse: Always output comments even if no entries are found.
2374
2375 2015-02-15 Andrei Borzenkov <arvidjaar@gmail.com>
2376
2377 diskfilter_make_raid: more memory leaks in failure path
2378
2379 2015-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2380
2381 disk/lvm: Use zalloc to ensure that segments are initialised to sane value.
2382 Reported by: EmanueL Czirai.
2383
2384 2015-02-14 Daniel Kiper <daniel.kiper@oracle.com>
2385
2386 multiboot2: Fix information request tag size calculation
2387
2388 2015-02-14 Andrei Borzenkov <arvidjaar@gmail.com>
2389
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.
2394
2395 Also fix memory leak in failure case in grub_diskfilter_make_raid.
2396
2397 Closes: 41582
2398
2399 2015-02-14 Andrei Borzenkov <arvidjaar@gmail.com>
2400
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.
2406
2407 Also fix segment validation in validate_lv; it became obvious when crash
2408 was fixed.
2409
2410 Closes: 44199
2411
2412 2015-02-12 Jiri Slaby <jslaby@suse.cz>
2413
2414 util: mkimage, fix gcc5 build failure
2415 gcc5 reports:
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++)
2419 ^
2420 ../util/mkimage.c:953:39: note: possible undefined statement is here
2421 for (j = 0; image_targets[i].names[j]
2422 ^
2423
2424 Well, let's move the index 'j' test before accesing the array to:
2425 1) make the loop obvious
2426 2) make gcc happy
2427
2428 2015-02-03 Leif Lindholm <leif.lindholm@linaro.org>
2429
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.
2433
2434 2015-01-30 Andrei Borzenkov <arvidjaar@gmail.com>
2435
2436 setup: fix blocklist size calculation
2437 Found by: Coverity scan.
2438
2439 grub-fstest: fix descriptor leak
2440 Found by: Coverity scan.
2441
2442 2015-01-30 Andrei Borzenkov <arvidjaar@gmail.com>
2443
2444 net/pxe: fix error condition
2445 Test return value of grub_netbuff_reserve(), buf itself cannot be
2446 NULL here.
2447
2448 Found by: Coverity scan.
2449
2450 2015-01-30 Andrei Borzenkov <arvidjaar@gmail.com>
2451
2452 grub-mkimage: fix potential NULL pointer dereference
2453 Move fatal check whether symtab_section is NULL before first reference.
2454
2455 Found by: Coverity scan.
2456
2457 2015-01-30 Andrei Borzenkov <arvidjaar@gmail.com>
2458
2459 net/ip: check result of grub_netbuff_push
2460 Found by: Coverity scan.
2461
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
2465 more easy.
2466
2467 test: consistently use TMPDIR and same name pattern for temp files
2468
2469 test: fix previous commit - we need to return from subexpression
2470 ( ... ) was processed recursively, we need to return from it. Revert
2471 this change.
2472
2473 test: do not stop after first file test or closing bracket
2474 Closes: 44115
2475
2476 2015-01-28 Leif Lindholm <leif.lindholm@linaro.org>
2477
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.
2481
2482 Reported-by: Ryan Harkin <ryan.harkin@linaro.org>
2483
2484 2015-01-28 Andrei Borzenkov <arvidjaar@gmail.com>
2485
2486 script/execute.c: fix memory leak.
2487 Make sure to continue loop over array after failure to free
2488 allocated strings.
2489
2490 Found by: Coverity scan.
2491
2492 2015-01-28 Andrei Borzenkov <arvidjaar@gmail.com>
2493
2494 syslinux_parse: fix memory leak.
2495 Found by: Coverity scan.
2496
2497 2015-01-27 Andrei Borzenkov <arvidjaar@gmail.com>
2498
2499 Change quotes to match overall style in NEWS
2500
2501 loader/xnu: fix memory leak.
2502 Foound by: Coverity scan.
2503
2504 util/grub-probe: fix memory leaks.
2505 Found by: Coverity scan.
2506
2507 fs/hfsplus: fix memory leak.
2508 Found by: Coverity scan.
2509
2510 fs/zfs/zfscrypt.c: fix indentation.
2511
2512 fs/zfs/zfscrypt.c: fix memory leaks.
2513 Found by: Coverity scan.
2514
2515 commands/parttool: fix memory leak.
2516 Found by: Coverity scan.
2517
2518 fs/zfs/zfs.c: fix memory leak.
2519 Found by: Coverity scan.
2520
2521 linux/ofpath: fix descriptor leak
2522 Found by: Coverity scan
2523
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.
2528
2529 2015-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 Document intentional fallthroughs.
2532 Found by: Coverity scan.
2533
2534 linux/ofpath: Fix error handling.
2535 Found by: Coverity Scan.
2536
2537 linux/hostdisk: Limit strcpy size to buffer size.
2538 Found by: Coverity scan.
2539
2540 fs/zfscrypt: Add missing explicit cast.
2541 Found by: Coverity scan.
2542
2543 fs/zfs: Fix error handling.
2544 Found by: Coverity Scan.
2545
2546 2015-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 fs/{cbfs,cpio}: Remove useless check if mode is NULL.
2549 Callers already ensure that it's not null.
2550
2551 Found by: Coverity Scan.
2552
2553 2015-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 commands/acpi: Use ALIGN_UP rather than manual expression.
2556 Improves readability and hopefully automatic scanning.
2557
2558 Found by: Coverity Scan.
2559
2560 2015-01-26 Andrei Borzenkov <arvidjaar@gmail.com>
2561
2562 util/setup: fix memory leak.
2563 Found by: Coverity scan.
2564
2565 util/mkimage: fix memory leaks.
2566 Found by: Coverity scan.
2567
2568 util/grub-mount: fix descriptor leak.
2569 Found by: Coverity scan.
2570
2571 util/grub-mkstandalone: fix memory leak.
2572 Found by: Coverity scan.
2573
2574 util/grub-install: rearrange code to avoid memory leak.
2575 Found by: Coverity scan.
2576
2577 linux/getroot: fix memory leak.
2578 Found by: Coverity scan.
2579
2580 util/install: fix memory leak.
2581 Found by: Coverity scan.
2582
2583 util/setup: fix memory leak.
2584 Found by: Coverity scan.
2585
2586 linux/ofpath: fix various memory leaks.
2587 Found by: Coverity scan.
2588
2589 linux/getroot: fix descriptor leak.
2590 Found by: Coverity scan.
2591
2592 2015-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 util/misc.c: Check ftello return value.
2595 Found by: Coverity scan.
2596
2597 grub-macbless: Fix resource leak.
2598 Found by: Coverity scan.
2599
2600 grub-install: Fix memory leak.
2601 Found by: Coverity scan.
2602
2603 grub-install-common: Fix sizeof usage.
2604 Found by: Coverity scan.
2605
2606 util/getroot: Add missing grub_disk_close.
2607 Found by: Coverity scan.
2608
2609 vbe: Fix incorrect register usage.
2610 Found by: Coverity scan.
2611
2612 unix/password: Fix file descriptor leak.
2613 Found by: Coverity scan.
2614
2615 linux/getroot: Fix error handling.
2616 Found by: Coverity scan.
2617
2618 linux/blocklist: Fix memory leak.
2619 Found by: Coverity scan.
2620
2621 devmapper/getroot: Fix memory leak.
2622 Found by: Coverity scan.
2623
2624 normal/misc: Close device on all pathes.
2625 Found by: Coverity scan.
2626
2627 normal/main: Fix error handling.
2628 Found by: Coverity scan.
2629
2630 xnu: Add missing error check.
2631 Found by: Coveriy scan.
2632
2633 plan9: Add missing grub_device_close.
2634 Found by: Coverity scan.
2635
2636 multiboot: Simplify to avoid confusing assignment.
2637 Found by: Coverity scan.
2638
2639 bsd: Add missing null-pointer check.
2640 Found by: Coverity scan.
2641
2642 lib/syslinux_parse: Add missing error check.
2643 Found by: Coverity scan.
2644
2645 lib/syslinux_parse: Fix memory leak.
2646 Found by: Coveriy scan.
2647
2648 lib/syslinux_parse: Add missing alloc check.
2649 Found by: Coverity scan.
2650
2651 i386/pc/mmap: Fix memset size.
2652 Found by: Coverity scan.
2653
2654 gfxmenu/theme_loader: Add missing allos error check.
2655 Found by: Coverity scan.
2656
2657 gfxmenu/icon_manager: Fix null pointer dereference.
2658 Found by: Coverity scan.
2659
2660 fs/ufs: Add missing error check.
2661 Found by: Coverity scan.
2662
2663 configure.ac: Always add -D_FILE_OFFSET_BITS=64.
2664
2665 2015-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2666
2667 fs/sfs: Fix error check and add sanity check.
2668 Found by: Coverity scan.
2669
2670 fs/reiserfs: Fix sector count overflow.
2671 Found by: Coverity scan.
2672
2673 fs/ntfs: Add sizes sanity checks.
2674 Found by: Coverity scan.
2675
2676 fs/ntfs: Add missing free.
2677 Found by: Coverity scan.
2678
2679 2015-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 fs/minix: Fix sector promotion to 64-bit.
2682 While on it make GRUB_MINIX_ZONE2SECT into function.
2683
2684 Found by: Coverity scan
2685
2686 2015-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 grub_iso9660_read: Explicitly check read_node return value.
2689 Not really needed as grub_errno is already checked but is nicer.
2690
2691 Found by: Coverity scan.
2692
2693 2015-01-25 Andrei Borzenkov <arvidjaar@gmail.com>
2694
2695 commands/fileXX: Fix remaining memory leak.
2696 Found by: Coverity Scan.
2697
2698 2015-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 fs/hfs: Add pointer sanity checks.
2701 Found by: Coverity scan.
2702
2703 fs/hfs/hfs_open: Check that mount succeeded.
2704 Found by: Coverity scan.
2705
2706 fs/fat: Fix codepath to properly free on error.
2707 Found by: Coverity scan.
2708
2709 fs/cpio_common: Add a sanity check on namesize.
2710 Found by: Coverity scan.
2711
2712 fs/cbfs: Add missing free.
2713 Found by: Coverity scan.
2714
2715 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 font: Add missing free.
2718 Found by: Coverity Scan.
2719
2720 biosdisk: Add missing cast.
2721 Found by: Coverity scan.
2722
2723 disk/geli: Add missing free.
2724 Found by: Coverity scan.
2725
2726 disk/geli: Add missing seek success check.
2727 Found by: Coverity scan.
2728
2729 disk/diskfilter: Add missing lv presence check.
2730 Found by: Coverity scan.
2731
2732 disk/cryptodisk: Add missing error check.
2733 Found by: Coverity scan.
2734
2735 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 disk/ahci: Fix device_map_range argument.
2738 Argument is not used on x86, hence it's gone unnoticed.
2739
2740 Found by: Coverity scan.
2741
2742 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 disk/AFsplitter: check argument validity before doing any allocs.
2745 This avoids possible memory leaks.
2746
2747 Found by: Coverity scan.
2748
2749 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2750
2751 commands/wildcard: Add missing free.
2752 Found by: Coverity scan.
2753
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.
2757
2758 commands/tr: Simplify and fix missing parameter test.
2759 Found by: Coverity scan
2760
2761 commands/syslinux: Add missing free.
2762 Found by: Coverity scan.
2763
2764 commands/parttool: Add missing device close.
2765 Found by: Coverity scan.
2766
2767 commands/nativedisk: Add missing device_close.
2768 Found by: Coverity scan.
2769
2770 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2771
2772 commands/macbless: Handle device opening errors correctly.
2773 Wrong variable was checked for errors.
2774
2775 Found by: Coverity scan.
2776
2777 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2778
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.
2782
2783 Found by: Coverity scan.
2784
2785 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 commands/macbless: Remove incorrect grub_free.
2788 Found by: Coverity Scan
2789
2790 commands/legacycfg: Fix resource leaks.
2791
2792 zfs: Fix disk-matching logic.
2793 Reported by: Tim Chase <dweeezil>
2794
2795 commands/hdparm: Add missing grub_disk_close.
2796 Found by: Coverity scan.
2797
2798 gptsync: Add missing device_close.
2799 Found by: Coverity scan
2800
2801 commands/fileXX: Fix memory leak.
2802 Found by: Coverity Scan.
2803
2804 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2805
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.
2809
2810 Found by: Coverity Scan.
2811
2812 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 commands/acpi: Use ALIGN_UP rather than manual expression.
2815 Improves readability and hopefully automatic scanning.
2816
2817 Found by: Coverity Scan.
2818
2819 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 uhci: Fix null pointer dereference.
2822 Found by: Coverity scan.
2823
2824 Always add -msoft-float to avoid compiler generating float arithmetics.
2825
2826 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2827
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.
2832
2833 Reported by: Andrei Borzenkov <arvidjaar@gmail.com>
2834
2835 2015-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2836
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.
2840
2841 efidisk: Return the determined root disk even if partition is unknown.
2842
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.
2848
2849 conf/Makefile.common: Remove unused {LD,C}FLAGS_CPU.
2850
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.
2855
2856 2015-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 * tests/file_filter/file: Really add missing file.
2859
2860 2015-01-23 Andrei Borzenkov <arvidjaar@gmail.com>
2861
2862 Mention platform "none" in NEWS
2863
2864 2015-01-23 Andrey Borzenkov <arvidjaar@gmail.com>
2865
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.
2869
2870 Suggested-By: Michael Chang <mchang@suse.com>
2871 Closes: 44026