1. 30 Jun, 2015 5 commits
    • Ingo Molnar's avatar
      x86/fpu: Disable XSAVES* support for now · e392edcd
      Ingo Molnar authored
      commit e88221c5 upstream.
      
      The kernel's handling of 'compacted' xsave state layout is buggy:
      
          http://marc.info/?l=linux-kernel&m=142967852317199
      
      I don't have such a system, and the description there is vague, but
      from extrapolation I guess that there were two kinds of bugs
      observed:
      
        - boot crashes, due to size calculations being wrong and the dynamic
          allocation allocating a too small xstate area. (This is now fixed
          in the new FPU code - but still present in stable kernels.)
      
        - FPU state corruption and ABI breakage: if signal handlers try to
          change the FPU state in standard format, which then the kernel
          tries to restore in the compacted format.
      
      These breakages are scary, but they only occur on a small number of
      systems that have XSAVES* CPU support. Yet we have had XSAVES support
      in the upstream kernel for a large number of stable kernel releases,
      and the fixes are involved and unproven.
      
      So do the safe resolution first: disable XSAVES* support and only
      use the standard xstate format. This makes the code work and is
      easy to backport.
      
      On top of this we can work on enabling (and testing!) proper
      compacted format support, without backporting pressure, on top of the
      new, cleaned up FPU code.
      
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Timo Aaltonen <timo.aaltonen@canonical.com>
      Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
      e392edcd
    • Kamal Mostafa's avatar
      Revert "tools/vm: fix page-flags build" · 1dcf99c1
      Kamal Mostafa authored
      This reverts commit 3ddd7003
      from 3.19-stable.
      
      Patch is not suitable for 3.19-stable (breaks "make -C tools/vm").
      
      Cc: Sasha Levin <sasha.levin@oracle.com>
      Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
      1dcf99c1
    • Sasha Levin's avatar
      vfs: read file_handle only once in handle_to_path · aba95ae0
      Sasha Levin authored
      commit 161f873b upstream.
      
      We used to read file_handle twice.  Once to get the amount of extra
      bytes, and once to fetch the entire structure.
      
      This may be problematic since we do size verifications only after the
      first read, so if the number of extra bytes changes in userspace between
      the first and second calls, we'll have an incoherent view of
      file_handle.
      
      Instead, read the constant size once, and copy that over to the final
      structure without having to re-read it again.
      Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Reference: CVE-2015-1420
      Cc: Moritz Muehlenhoff <jmm@debian.org>
      Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
      aba95ae0
    • Kamal Mostafa's avatar
      [3.19-stable only] Revert "Drivers: hv: vmbus: Add support for VMBus panic notifier handler" · dd8c40b9
      Kamal Mostafa authored
      This reverts commit 501f9540.
      
      New feature; not qualified for -stable kernels.
      Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
      dd8c40b9
    • Kamal Mostafa's avatar
      [3.19-stable only] Revert "Drivers: hv: vmbus: Correcting truncation error for... · 69faf5f8
      Kamal Mostafa authored
      [3.19-stable only] Revert "Drivers: hv: vmbus: Correcting truncation error for constant HV_CRASH_CTL_CRASH_NOTIFY"
      
      This reverts commit 000c4860.
      
      New feature; not qualified for -stable kernels.
      Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
      69faf5f8
  2. 22 Jun, 2015 1 commit
  3. 18 Jun, 2015 1 commit
  4. 17 Jun, 2015 23 commits
  5. 16 Jun, 2015 10 commits