1. 21 Jan, 2015 13 commits
  2. 19 Jan, 2015 1 commit
  3. 09 Dec, 2014 1 commit
  4. 07 Dec, 2014 4 commits
    • David Kozub's avatar
      grub-core/kern/arm/misc.S: fix unaligned grub_uint64_t local variable · 17328db3
      David Kozub authored
      The unaligned local in __aeabi_uidivmod leads to a store to a 64bit
      value at an address that is not divisible by 8 (in grub_divmod64).
      The compiler most likely generates a STRD instruction to store it and
      this causes an exception.
      
      Fixes Savannah bug #43632.
      
      This includes improvements done by Leif Lindholm.
      17328db3
    • Peter Nelson's avatar
    • Andrei Borzenkov's avatar
      Avoid use of non-portable echo -n in grub-mkconfig · cdae5bf2
      Andrei Borzenkov authored
      util/grub-mkconfig_lib.in(version_test_gt): "echo -n" is not really needed,
      final newline is stripped by command substitution.
      
      util/grub.d/10_kfreebsd.in, util/grub.d/10_linux.in,
      util/grub.d/20_linux_xen.in: change how list is built, to avoid echo -n
      completely.
      
      util/grub.d/30_os-prober.in: add spaces to printed line directly
      
      Closes 43668.
      cdae5bf2
    • Curtis Larsen's avatar
      fix double free in grub_net_recv_tcp_packet · 06eadf5e
      Curtis Larsen authored
      Using the http module to download config files, produces memory errors,
      after the config file is downloaded.
      
      The error was traced to the tcp stack in grub-core/net/tcp.c. The wrong
      netbuff pointer was being freed in the clean up loop.
      
      Changing the code to free the correct netbuff pointer removes the runtime
      error.
      
      Closes 42765.
      06eadf5e
  5. 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
      ebb3d958
    • 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)
      272e0466
    • 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.
      4b94e322
  6. 01 Dec, 2014 2 commits
  7. 30 Nov, 2014 1 commit
  8. 28 Nov, 2014 8 commits
  9. 20 Nov, 2014 2 commits
  10. 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
      pointer.
      
      Parent function, grub_set_prefix_and_root, does check the pointer
      before using.
      004a2b1e
  11. 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
      testing.
      72ec399a
  12. 14 Oct, 2014 1 commit
  13. 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
      include/grub.
      77063f4c
  14. 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
      CPU.
      
      * 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
      !COND_real_platform.
      * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
      is defined.
      5d90f6e5