1. 16 Feb, 2018 5 commits
  2. 23 Jun, 2017 1 commit
  3. 25 Apr, 2017 1 commit
  4. 12 Apr, 2017 1 commit
  5. 04 Apr, 2017 3 commits
    • Andrei Borzenkov's avatar
      Add gnulib-fix-gcc7-fallthrough.diff · 007f0b40
      Andrei Borzenkov authored
      As long as the code is not upstream, add it as explicit patch for the
      case of gnulib refresh.
      007f0b40
    • Andrei Borzenkov's avatar
      i386, x86_64, ppc: fix switch fallthrough cases with GCC7 · 4bd4a887
      Andrei Borzenkov authored
      In util/getroot and efidisk slightly modify exitsing comment to mostly
      retain it but still make GCC7 compliant with respect to fall through
      annotation.
      
      In grub-core/lib/xzembed/xz_dec_lzma2.c it adds same comments as
      upstream.
      
      In grub-core/tests/setjmp_tets.c declare functions as "noreturn" to
      suppress GCC7 warning.
      
      In grub-core/gnulib/regexec.c use new __attribute__, because existing
      annotation is not recognized by GCC7 parser (which requires that comment
      immediately precedes case statement).
      
      Otherwise add FALLTHROUGH comment.
      
      Closes: 50598
      4bd4a887
    • Andrei Borzenkov's avatar
      btrfs: avoid "used uninitialized" error with GCC7 · 6cef7f60
      Andrei Borzenkov authored
      sblock was local and so considered new variable on every loop
      iteration.
      
      Closes: 50597
      6cef7f60
  6. 02 Apr, 2017 1 commit
  7. 15 Mar, 2017 2 commits
  8. 14 Mar, 2017 1 commit
    • Andrei Borzenkov's avatar
      efi: skip iPXE block device. · c42cb97f
      Andrei Borzenkov authored
      iPXE adds Simple File System Protocol to loaded image handle, as side
      effect it also adds Block IO protocol (according to comments, to work
      around some bugs in EDK2). GRUB assumes that every device with Block IO
      is disk and skips network initialization entirely. But iPXE Block IO
      implementation is just a stub which always fails for every operation
      so cannot be used. Attempt to detect and skip such devices.
      
      We are using media ID which iPXE sets to "iPXE" and block IO size in
      hope that no real device would announce 1B block ...
      
      Closes: 50518
      c42cb97f
  9. 05 Mar, 2017 1 commit
  10. 27 Feb, 2017 2 commits
  11. 26 Feb, 2017 1 commit
    • Andrei Borzenkov's avatar
      grub-fs-tester: improve squash4 tests · f34ed1f5
      Andrei Borzenkov authored
      1. Make sure files are not multiple of block size. This will ensure tail packing
      for squash4 and may also trigger more codes paths in other filesystems.
      
      2. Call mksquashfs with -always-use-fragments to force tail packing.
      f34ed1f5
  12. 25 Feb, 2017 1 commit
    • Andrei Borzenkov's avatar
      efi: strip off final NULL from File Path in grub_efi_get_filename · 892dfbe1
      Andrei Borzenkov authored
      UEFI 2.6 9.3.6.4 File Path Media Device Path says that Path Name is
      "A NULL-terminated Path string including directory and file names".
      
      Strip final NULL from Path Name in each File Path node when constructing
      full path. To be on safe side, strip all of them.
      
      Fixes failure chainloading grub from grub, when loaded grub truncates
      image path and does not find its grub.cfg.
      
      https://bugzilla.opensuse.org/show_bug.cgi?id=1026344
      
      This was triggered by commit ce95549c;
      before it we built Path Name without trailing NULL, and apparently all
      other bootloaders use single File Path node, thus not exposing this bug.
      892dfbe1
  13. 24 Feb, 2017 1 commit
    • Andrei Borzenkov's avatar
      squash4: fix handling of fragments and sparse files · 951306c5
      Andrei Borzenkov authored
      1. Do not assume block list and fragment are mutually exclusive. Squash
      can pack file tail as fragment (unless -no-fragments is specified); so
      check read offset and read either from block list or from fragments as
      appropriate.
      
      2. Support sparse files with zero blocks.
      
      3. Fix fragment read - frag.offset is absolute fragment position,
      not offset relative to ino.chunk.
      
      Reported and tested by Carlo Caione <carlo@endlessm.com>
      951306c5
  14. 22 Feb, 2017 1 commit
  15. 12 Feb, 2017 1 commit
  16. 07 Feb, 2017 1 commit
  17. 06 Feb, 2017 1 commit
    • Vladimir Serbinenko's avatar
      xen: Fix handling of GRUB chainloading. · 8a96fc40
      Vladimir Serbinenko authored
      In case of GRUB we put remapper after domain pages and not at 0x0.
      In this case we use max_addr to put remapper. Unfortunately we increment
      max_addr as well in this case resulting in virt mapping mapping page
      at old max_addr and trying to boot using new max_addr.
      
      Closes 46014.
      8a96fc40
  18. 03 Feb, 2017 6 commits
  19. 02 Feb, 2017 9 commits