1. 05 Dec, 2014 3 commits
    • Andrei Borzenkov's avatar
      fix memory corruption in pubkey filter over network · ebb3d958
      Andrei Borzenkov authored
      grub_pubkey_open closed original file after it was read; it set
      io->device to NULL to prevent grub_file_close from trying to close device.
      But network device itself is stacked (net -> bufio); and bufio preserved
      original netfs file which hold reference to device. grub_file_close(io)
      called grub_bufio_close which called grub_file_close for original file.
      grub_file_close(netfs-file) now also called grub_device_close which
      freed file->device->net. So file structure returned by grub_pubkey_open
      now had device->net pointed to freed memory. When later file was closed,
      it was attempted to be freed again.
      Change grub_pubkey_open to behave like other filters - preserve original
      parent file and pass grub_file_close down to parent. In this way only the
      original file will close device. We really need to move this logic into
      core instead.
      Also plug memory leaks in error paths on the way.
      Reported-By: default avatarRobert Kliewer <robert.kliewer@gmail.com>
      Closes: bug #43601
    • Andrei Borzenkov's avatar
      add file filters tests · 272e0466
      Andrei Borzenkov authored
      Tests file access with all filters enabled. It does it both for local
      and network access, due to regression in signature checking over network.
      This includes all files in distribution to not depend on existence
      of compression tools and gpg. Test preloads all required modules to
      avoid having to provide signatures for them.
      Still not implemented is file offset filter (is not available in grub
      script, needs extra module)
    • Andrei Borzenkov's avatar
      grub-shell: support --files also for net boot · 4b94e322
      Andrei Borzenkov authored
      This allows running tests that require extra files using netboot as well.
  2. 01 Dec, 2014 2 commits
  3. 30 Nov, 2014 1 commit
  4. 28 Nov, 2014 8 commits
  5. 20 Nov, 2014 2 commits
  6. 17 Nov, 2014 1 commit
    • Leif Lindholm's avatar
      efi: check *path non-null before grub_strrchr · 004a2b1e
      Leif Lindholm authored
      The EFI version of grub_machine_get_bootlocation crops the boot image
      name back to the last / in order to get a directory path. However, it
      does not check that *name is actually set before calling grub_strrchr
      to do this, and neither does grub_strrchr before dereferencing a NULL
      Parent function, grub_set_prefix_and_root, does check the pointer
      before using.
  7. 03 Nov, 2014 1 commit
    • Michael Chang's avatar
      icmp6 fix no respond to neighbor solicit message · 72ec399a
      Michael Chang authored
      The structure size used in grub_netbuff_pull to get the pointer to
      option header is apparently wrong, which leads to subsequent range check
      failed and therefore not responding to any neighbor solicit message in my
  8. 14 Oct, 2014 1 commit
  9. 25 Sep, 2014 1 commit
    • Colin Watson's avatar
      Fix in-tree --platform=none · 77063f4c
      Colin Watson authored
      * configure.ac: Only remove include/grub/cpu and
      include/grub/machine in the --platform=none case, not all of
  10. 23 Sep, 2014 1 commit
    • Colin Watson's avatar
      Add a new "none" platform that only builds utilities · 5d90f6e5
      Colin Watson authored
      This makes it possible to build generally-useful utilities such as
      grub-mount even if the rest of GRUB has not been ported to the target
      * configure.ac: Add "none" platform.  Default to it for unsupported
      CPUs rather than stopping with a fatal error.  Don't downgrade
      x86_64-none to i386.  Define COND_real_platform Automake conditional
      if the platform is anything other than "none".  Don't do any include
      directory linking for "none".
      * Makefile.am: Skip building grub-core and all bootcheck targets if
      * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
      is defined.
  11. 22 Sep, 2014 1 commit
  12. 21 Sep, 2014 8 commits
  13. 19 Sep, 2014 1 commit
  14. 15 Sep, 2014 1 commit
  15. 08 Sep, 2014 1 commit
    • Michael Chang's avatar
      Fix incorrect address reference in btrfs · 54bd9a06
      Michael Chang authored
      We encountered a weird random kernel initrd unpacking error on btrfs
      and finally found it was caused by incorrect address reference in range
      check for type GRUB_BTRFS_EXTENT_REGULAR and the entire result is
      This is a quick fix to make the address reference to the
      grub_btrfs_extent_data structure correctly, not the pointer variable
      to it.
      Any suggestions to this patch is welcome.
  16. 07 Sep, 2014 2 commits
  17. 25 Aug, 2014 1 commit
  18. 14 Aug, 2014 1 commit
  19. 13 Aug, 2014 1 commit
  20. 10 Aug, 2014 2 commits