1. 22 Mar, 2016 1 commit
    • Andrei Borzenkov's avatar
      configure: set -fno-pie together with -fno-PIE · f4d35d49
      Andrei Borzenkov authored
      OpenBSD 5.9 apparently defaults to -fpie. We use -fno-PIE when appropriate
      already, but that is not enough - it does not turn off -fpie.
      Actually check for -fPIE is not precise enough. __PIE__ is set for both
      -fpie and -fPIE but with different values. As far as I can tell, both
      options were introduced at the same time, so both should always be supported.
      This fixes compilation on OpenBSD 5.9 which otherwise created insanely big
      Reported, suggested and tested by: Jiri B <jirib@devio.us>
  2. 20 Mar, 2016 1 commit
  3. 19 Mar, 2016 1 commit
  4. 15 Mar, 2016 1 commit
    • Aaron Luft's avatar
      Remove the variable oldname which is attempting to free stack space. · 76eac44a
      Aaron Luft authored
      Historically this variable hold previous value of filename that
      had to be freed if allocated previously. Currently this branch
      is entered only if filename was not allocated previously so it
      became redundant. It did not cause real problems because grub_free
      was not called, but code is confusing and causes compilation error
      in some cases.
  5. 12 Mar, 2016 1 commit
  6. 11 Mar, 2016 2 commits
  7. 10 Mar, 2016 1 commit
  8. 05 Mar, 2016 2 commits
  9. 28 Feb, 2016 1 commit
  10. 27 Feb, 2016 15 commits
  11. 26 Feb, 2016 3 commits
  12. 25 Feb, 2016 1 commit
    • Josef Bacik's avatar
      net: fix ipv6 routing · eb9f401f
      Josef Bacik authored
      ipv6 routing in grub2 is broken, we cannot talk to anything outside our local
      network or anything that doesn't route in our global namespace.  This patch
      fixes this by doing a couple of things
      1) Read the router information off of the router advertisement.  If we have a
      router lifetime we need to take the source address and create a route from it.
      2) Changes the routing stuff slightly to allow you to specify a gateway _and_ an
      interface.  Since the router advertisements come in on the link local address we
      need to associate it with the global address on the card.  So when we are
      processing the router advertisement, either use the SLAAC interface we create
      and add the route to that interface, or loop through the global addresses we
      currently have on our interface and associate it with one of those addresses.
      We need to have a special case here for the default route so that it gets used,
      we do this by setting the masksize to 0 to mean it encompasses all networks.
      The routing code will automatically select the best route so if there is a
      closer match we will use that.
      With this patch I can now talk to ipv6 addresses outside of my local network.
      Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
  13. 24 Feb, 2016 1 commit
  14. 23 Feb, 2016 1 commit
  15. 22 Feb, 2016 5 commits
    • Andrei Borzenkov's avatar
      multiboot2: zero reserved field in memory map · 15dfea84
      Andrei Borzenkov authored
      Documentation says, bootloader should set reserved field to zero.
      Reported by Wink Saville <wink@saville.com>
    • Vladimir Serbinenko's avatar
      Improve EHCI logging · 054d1325
      Vladimir Serbinenko authored
      Add dprintf's on common error paths and remove some entries which are too
    • Vladimir Serbinenko's avatar
      usb_keyboard: Remove useless include · 0678b5d6
      Vladimir Serbinenko authored
      This prevents non-PCI machines from having USB.
    • Vladimir Serbinenko's avatar
      Refresh before abort · be4e9d20
      Vladimir Serbinenko authored
      This ensures that abort message is actually visible to the user.
    • Eric Snowberg's avatar
      ieee1275: prevent buffer over-read · bc220962
      Eric Snowberg authored
      Prevent buffer over-read in grub_machine_mmap_iterate. This was
      causing phys_base from being calculated properly. This then
      caused the wrong value to be placed in ramdisk_image within
      struct linux_hdrs. Which prevented the ramdisk from loading on
      Newer SPARC systems contain more than 8 available memory entries.
      For example on a T5-8 with 2TB of memory, the memory layout could
      look like this:
      T5-8 Memory
      reg                      00000000 30000000 0000003f b0000000
                               00000800 00000000 00000040 00000000
                               00001000 00000000 00000040 00000000
                               00001800 00000000 00000040 00000000
                               00002000 00000000 00000040 00000000
                               00002800 00000000 00000040 00000000
                               00003000 00000000 00000040 00000000
                               00003800 00000000 00000040 00000000
      available                00003800 00000000 0000003f ffcae000
                               00003000 00000000 00000040 00000000
                               00002800 00000000 00000040 00000000
                               00002000 00000000 00000040 00000000
                               00001800 00000000 00000040 00000000
                               00001000 00000000 00000040 00000000
                               00000800 00000000 00000040 00000000
                               00000000 70000000 0000003f 70000000
                               00000000 6eef8000 00000000 00002000
                               00000000 30400000 00000000 3eaf6000
      name                     memory
      Signed-off-by: default avatarEric Snowberg <eric.snowberg@oracle.com>
  16. 21 Feb, 2016 1 commit
    • Thomas Huth's avatar
      menu_entry: Disable cursor during update_screen() · 625934ec
      Thomas Huth authored
      When running grub in a VGA console of a KVM pseries guest on PowerPC,
      you can see the cursor sweeping over the whole line when entering a
      character in editor mode. This is visible because grub always refreshes
      the whole line when entering a character in editor mode, and drawing
      characters is quite a slow operation with the firmware used for the
      powerpc pseries guests (SLOF).
      To avoid this ugliness, the cursor should be disabled when refreshing
      the screen contents during update_screen().
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
  17. 17 Feb, 2016 2 commits